diff --git a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts index 6ba75ed13bba..d6b86108be5a 100644 --- a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts @@ -103,6 +103,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts index 66792134043b..429b9305fa48 100644 --- a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts index 3e17be2d5cf9..8386c3e06f12 100644 --- a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts +++ b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, ExpressRouteCircuitAuthorization, RouteFilterRule, diff --git a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts index 1e2e7c128343..b800b97394d2 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRuleCollection, AzureFirewallNetworkRule, AzureFirewall, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts index 08ec7c8df5bd..628126e041a8 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts @@ -91,6 +91,8 @@ export { ApplicationGatewayAvailableSslOptions, ApplicationGatewaySslPredefinedPolicy, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts index 197c9cfdce48..2e5a572ae32d 100644 --- a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts +++ b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts index 24994145f1fb..5d82a4ae0864 100644 --- a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts +++ b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts @@ -100,6 +100,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/ddosCustomPoliciesMappers.ts b/packages/@azure/arm-network/lib/models/ddosCustomPoliciesMappers.ts new file mode 100644 index 000000000000..d8eac4b82dcd --- /dev/null +++ b/packages/@azure/arm-network/lib/models/ddosCustomPoliciesMappers.ts @@ -0,0 +1,182 @@ +/* + * 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) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +export { + CloudError, + DdosCustomPolicy, + Resource, + BaseResource, + SubResource, + ProtocolCustomSettingsFormat, + TagsObject, + NetworkInterfaceTapConfiguration, + VirtualNetworkTap, + NetworkInterfaceIPConfiguration, + ApplicationGatewayBackendAddressPool, + ApplicationGatewayBackendAddress, + BackendAddressPool, + InboundNatRule, + Subnet, + NetworkSecurityGroup, + SecurityRule, + ApplicationSecurityGroup, + NetworkInterface, + InterfaceEndpoint, + EndpointService, + NetworkInterfaceDnsSettings, + RouteTable, + Route, + ServiceEndpointPropertiesFormat, + ServiceEndpointPolicy, + ServiceEndpointPolicyDefinition, + IPConfiguration, + PublicIPAddress, + PublicIPAddressSku, + PublicIPAddressDnsSettings, + DdosSettings, + IpTag, + IPConfigurationProfile, + ResourceNavigationLink, + ServiceAssociationLink, + Delegation, + FrontendIPConfiguration, + ApplicationGatewayBackendHttpSettings, + ApplicationGatewayConnectionDraining, + ApplicationGatewayIPConfiguration, + ApplicationGatewayAuthenticationCertificate, + ApplicationGatewayTrustedRootCertificate, + ApplicationGatewaySslCertificate, + ApplicationGatewayFrontendIPConfiguration, + ApplicationGatewayFrontendPort, + ApplicationGatewayHttpListener, + ApplicationGatewayCustomError, + ApplicationGatewayPathRule, + ApplicationGatewayProbe, + ApplicationGatewayProbeHealthResponseMatch, + ApplicationGatewayRequestRoutingRule, + ApplicationGatewayRewriteRuleSet, + ApplicationGatewayRewriteRule, + ApplicationGatewayRewriteRuleActionSet, + ApplicationGatewayHeaderConfiguration, + ApplicationGatewayRedirectConfiguration, + ApplicationGatewayUrlPathMap, + ApplicationGateway, + ApplicationGatewaySku, + ApplicationGatewaySslPolicy, + ApplicationGatewayWebApplicationFirewallConfiguration, + ApplicationGatewayFirewallDisabledRuleGroup, + ApplicationGatewayFirewallExclusion, + ApplicationGatewayAutoscaleConfiguration, + ManagedServiceIdentity, + ManagedServiceIdentityUserAssignedIdentitiesValue, + ApplicationGatewayFirewallRuleSet, + ApplicationGatewayFirewallRuleGroup, + ApplicationGatewayFirewallRule, + ApplicationGatewayAvailableSslOptions, + ApplicationGatewaySslPredefinedPolicy, + AzureFirewallIPConfiguration, + AzureFirewallApplicationRuleCollection, + AzureFirewallRCAction, + AzureFirewallApplicationRule, + AzureFirewallApplicationRuleProtocol, + AzureFirewallNatRuleCollection, + AzureFirewallNatRCAction, + AzureFirewallNatRule, + AzureFirewallNetworkRuleCollection, + AzureFirewallNetworkRule, + AzureFirewall, + AzureFirewallFqdnTag, + DdosProtectionPlan, + EndpointServiceResult, + ExpressRouteCircuitAuthorization, + RouteFilterRule, + ExpressRouteCircuitConnection, + ExpressRouteCircuitPeering, + ExpressRouteCircuitPeeringConfig, + ExpressRouteCircuitStats, + RouteFilter, + Ipv6ExpressRouteCircuitPeeringConfig, + ExpressRouteConnectionId, + ExpressRouteCircuit, + ExpressRouteCircuitSku, + ExpressRouteCircuitServiceProviderProperties, + ExpressRouteServiceProvider, + ExpressRouteServiceProviderBandwidthsOffered, + ExpressRouteCrossConnectionPeering, + ExpressRouteCrossConnection, + ExpressRouteCircuitReference, + ExpressRouteConnection, + ExpressRouteCircuitPeeringId, + ExpressRouteGateway, + ExpressRouteGatewayPropertiesAutoScaleConfiguration, + ExpressRouteGatewayPropertiesAutoScaleConfigurationBounds, + VirtualHubId, + ExpressRoutePortsLocation, + ExpressRoutePortsLocationBandwidths, + ExpressRouteLink, + ExpressRoutePort, + LoadBalancingRule, + Probe, + InboundNatPool, + OutboundRule, + LoadBalancer, + LoadBalancerSku, + ContainerNetworkInterfaceConfiguration, + Container, + ContainerNetworkInterface, + ContainerNetworkInterfaceIpConfiguration, + NetworkProfile, + NetworkWatcher, + ConnectionMonitorResult, + ConnectionMonitorSource, + ConnectionMonitorDestination, + PublicIPPrefix, + PublicIPPrefixSku, + ReferencedPublicIpAddress, + PatchRouteFilterRule, + PatchRouteFilter, + BgpServiceCommunity, + BGPCommunity, + VirtualNetworkPeering, + AddressSpace, + VirtualNetwork, + DhcpOptions, + VirtualNetworkGatewayIPConfiguration, + VpnClientRootCertificate, + VpnClientRevokedCertificate, + VirtualNetworkGateway, + VirtualNetworkGatewaySku, + VpnClientConfiguration, + IpsecPolicy, + BgpSettings, + LocalNetworkGateway, + VirtualNetworkGatewayConnection, + TunnelConnectionHealth, + ConnectionSharedKey, + VirtualNetworkGatewayConnectionListEntity, + VirtualNetworkConnectionGatewayReference, + P2SVpnServerConfigVpnClientRootCertificate, + P2SVpnServerConfigVpnClientRevokedCertificate, + P2SVpnServerConfigRadiusServerRootCertificate, + P2SVpnServerConfigRadiusClientRootCertificate, + P2SVpnServerConfiguration, + VirtualWAN, + VpnSite, + DeviceProperties, + HubVirtualNetworkConnection, + VirtualHub, + VirtualHubRouteTable, + VirtualHubRoute, + VpnConnection, + VpnGateway, + P2SVpnGateway, + VpnClientConnectionHealth +} from "../models/mappers"; + diff --git a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts index 3a4946f10115..985d98e425e9 100644 --- a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts +++ b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, EndpointServiceResult, ExpressRouteCircuitAuthorization, RouteFilterRule, diff --git a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts index 544ea5e0b874..67a3908eac79 100644 --- a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts index 609d0b2ac85f..572fd2013ad9 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, RouteFilterRule, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts index 809cd9a24641..bba3f6e0ad1c 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts index d1e29a842c97..b6a48bb1606e 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts @@ -99,6 +99,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts index 42bf922ecd5e..87ae9bf521fe 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts @@ -110,6 +110,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteServiceProvider, diff --git a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts index 8ff00e020465..e95dba6848cd 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts index c59eb8378482..84be306fe96f 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts @@ -100,6 +100,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts index 2c8248737c06..cdf9c6d94ebe 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts @@ -109,6 +109,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts index a5fba47769ac..35e440fc8a91 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts @@ -97,6 +97,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteLinksMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteLinksMappers.ts index 51d02b2892e3..bb1cd245b895 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteLinksMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteLinksMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRoutePortsLocationsMappers.ts b/packages/@azure/arm-network/lib/models/expressRoutePortsLocationsMappers.ts index 3651d8e4b719..aad96bd489fb 100644 --- a/packages/@azure/arm-network/lib/models/expressRoutePortsLocationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRoutePortsLocationsMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRoutePortsMappers.ts b/packages/@azure/arm-network/lib/models/expressRoutePortsMappers.ts index 95140e97dccd..c93c176231ea 100644 --- a/packages/@azure/arm-network/lib/models/expressRoutePortsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRoutePortsMappers.ts @@ -94,6 +94,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts index da6bcada8d59..f6ef394dbc17 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts index 2edfddbddf11..a9bab3d6df35 100644 --- a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts index 6e45553e1f6b..3d1d0c8bd039 100644 --- a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/index.ts b/packages/@azure/arm-network/lib/models/index.ts index 96aea43c5e5e..5c18677bc2d8 100644 --- a/packages/@azure/arm-network/lib/models/index.ts +++ b/packages/@azure/arm-network/lib/models/index.ts @@ -3566,6 +3566,87 @@ export interface DnsNameAvailabilityResult { available?: boolean; } +/** + * @interface + * An interface representing ProtocolCustomSettingsFormat. + * DDoS custom policy properties. + * + */ +export interface ProtocolCustomSettingsFormat { + /** + * @member {DdosCustomPolicyProtocol} [protocol] The protocol for which the + * DDoS protection policy is being customized. Possible values include: + * 'Tcp', 'Udp', 'Syn' + */ + protocol?: DdosCustomPolicyProtocol; + /** + * @member {string} [triggerRateOverride] The customized DDoS protection + * trigger rate. + */ + triggerRateOverride?: string; + /** + * @member {string} [sourceRateOverride] The customized DDoS protection + * source rate. + */ + sourceRateOverride?: string; + /** + * @member {DdosCustomPolicyTriggerSensitivityOverride} + * [triggerSensitivityOverride] The customized DDoS protection trigger rate + * sensitivity degrees. High: Trigger rate set with most sensitivity w.r.t. + * normal traffic. Default: Trigger rate set with moderate sensitivity w.r.t. + * normal traffic. Low: Trigger rate set with less sensitivity w.r.t. normal + * traffic. Relaxed: Trigger rate set with least sensitivity w.r.t. normal + * traffic. Possible values include: 'Relaxed', 'Low', 'Default', 'High' + */ + triggerSensitivityOverride?: DdosCustomPolicyTriggerSensitivityOverride; +} + +/** + * @interface + * An interface representing DdosCustomPolicy. + * A DDoS custom policy in a resource group. + * + * @extends Resource + */ +export interface DdosCustomPolicy extends Resource { + /** + * @member {string} [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. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly resourceGuid?: string; + /** + * @member {string} [provisioningState] The provisioning state of the DDoS + * custom policy resource. Possible values are: 'Succeeded', 'Updating', + * 'Deleting', and 'Failed'. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly provisioningState?: string; + /** + * @member {SubResource[]} [publicIPAddresses] The list of public IPs + * associated with the DDoS custom policy resource. This list is read-only. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly publicIPAddresses?: SubResource[]; + /** + * @member {ProtocolCustomSettingsFormat[]} [protocolCustomSettings] The + * protocol-specific DDoS policy customization parameters. + */ + protocolCustomSettings?: ProtocolCustomSettingsFormat[]; + /** + * @member {string} [etag] A unique read-only string that changes whenever + * the resource is updated. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly etag?: string; +} + /** * @interface * An interface representing DdosProtectionPlan. @@ -11635,6 +11716,22 @@ export type AzureFirewallNatRCActionType = 'Snat' | 'Dnat'; */ export type AzureFirewallNetworkRuleProtocol = 'TCP' | 'UDP' | 'Any' | 'ICMP'; +/** + * Defines values for DdosCustomPolicyProtocol. + * Possible values include: 'Tcp', 'Udp', 'Syn' + * @readonly + * @enum {string} + */ +export type DdosCustomPolicyProtocol = 'Tcp' | 'Udp' | 'Syn'; + +/** + * Defines values for DdosCustomPolicyTriggerSensitivityOverride. + * Possible values include: 'Relaxed', 'Low', 'Default', 'High' + * @readonly + * @enum {string} + */ +export type DdosCustomPolicyTriggerSensitivityOverride = 'Relaxed' | 'Low' | 'Default' | 'High'; + /** * Defines values for AuthorizationUseStatus. * Possible values include: 'Available', 'InUse' @@ -12980,6 +13077,101 @@ export type SupportedSecurityProvidersResponse = VirtualWanSecurityProviders & { }; }; +/** + * Contains response data for the get operation. + */ +export type DdosCustomPoliciesGetResponse = DdosCustomPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DdosCustomPolicy; + }; +}; + +/** + * Contains response data for the createOrUpdate operation. + */ +export type DdosCustomPoliciesCreateOrUpdateResponse = DdosCustomPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DdosCustomPolicy; + }; +}; + +/** + * Contains response data for the updateTags operation. + */ +export type DdosCustomPoliciesUpdateTagsResponse = DdosCustomPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DdosCustomPolicy; + }; +}; + +/** + * Contains response data for the beginCreateOrUpdate operation. + */ +export type DdosCustomPoliciesBeginCreateOrUpdateResponse = DdosCustomPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DdosCustomPolicy; + }; +}; + +/** + * Contains response data for the beginUpdateTags operation. + */ +export type DdosCustomPoliciesBeginUpdateTagsResponse = DdosCustomPolicy & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DdosCustomPolicy; + }; +}; + /** * Contains response data for the get operation. */ diff --git a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts index e7d0f0e45f9a..09c66a454d20 100644 --- a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts +++ b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts index e30f8bb88041..90bd1b167931 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts index 59a01f9410b5..1c77c861294d 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts index ab97e6f6824a..78732cfe759d 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts index 4048d0ae32f8..2ab11550e9a7 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerOutboundRulesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerOutboundRulesMappers.ts index 633baba1dabd..9cd1784aad25 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerOutboundRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerOutboundRulesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts index aaca5cd6eda3..43530c455d4a 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts index c6bab00166bb..41302834e681 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts @@ -98,6 +98,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts index 32ae8466cc03..24cfb89a2309 100644 --- a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts @@ -95,6 +95,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/mappers.ts b/packages/@azure/arm-network/lib/models/mappers.ts index b971132f7c53..c84288cac728 100644 --- a/packages/@azure/arm-network/lib/models/mappers.ts +++ b/packages/@azure/arm-network/lib/models/mappers.ts @@ -4879,6 +4879,97 @@ export const DnsNameAvailabilityResult: msRest.CompositeMapper = { } }; +export const ProtocolCustomSettingsFormat: msRest.CompositeMapper = { + serializedName: "ProtocolCustomSettingsFormat", + type: { + name: "Composite", + className: "ProtocolCustomSettingsFormat", + modelProperties: { + protocol: { + serializedName: "protocol", + type: { + name: "String" + } + }, + triggerRateOverride: { + serializedName: "triggerRateOverride", + type: { + name: "String" + } + }, + sourceRateOverride: { + serializedName: "sourceRateOverride", + type: { + name: "String" + } + }, + triggerSensitivityOverride: { + serializedName: "triggerSensitivityOverride", + type: { + name: "String" + } + } + } + } +}; + +export const DdosCustomPolicy: msRest.CompositeMapper = { + serializedName: "DdosCustomPolicy", + type: { + name: "Composite", + className: "DdosCustomPolicy", + modelProperties: { + ...Resource.type.modelProperties, + resourceGuid: { + readOnly: true, + serializedName: "properties.resourceGuid", + type: { + name: "String" + } + }, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", + type: { + name: "String" + } + }, + publicIPAddresses: { + readOnly: true, + serializedName: "properties.publicIPAddresses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + protocolCustomSettings: { + serializedName: "properties.protocolCustomSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProtocolCustomSettingsFormat" + } + } + } + }, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + export const DdosProtectionPlan: msRest.CompositeMapper = { serializedName: "DdosProtectionPlan", type: { diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts index c7d81fd7bd26..dfdb80c6d01c 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts index 4b060f315681..1f7cb61dac0e 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts @@ -97,6 +97,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts index 3909f90183dc..227bf08f7f64 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts index e827c306b130..c832721298b9 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts @@ -99,6 +99,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts index e1ad57500544..7c391fb45e0a 100644 --- a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts @@ -97,6 +97,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts index ce876c5f323d..8041fe5788ec 100644 --- a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts index c1002210e4b0..9e827d4b8c48 100644 --- a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts @@ -147,6 +147,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts index bfc50bdd6e61..874108132d44 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts @@ -99,6 +99,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts index 3eb015b36e21..8aa0d39e5d29 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts @@ -98,6 +98,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/parameters.ts b/packages/@azure/arm-network/lib/models/parameters.ts index 198725d971c6..1a53977412cd 100644 --- a/packages/@azure/arm-network/lib/models/parameters.ts +++ b/packages/@azure/arm-network/lib/models/parameters.ts @@ -134,6 +134,16 @@ export const crossConnectionName: msRest.OperationURLParameter = { } } }; +export const ddosCustomPolicyName: msRest.OperationURLParameter = { + parameterPath: "ddosCustomPolicyName", + mapper: { + required: true, + serializedName: "ddosCustomPolicyName", + type: { + name: "String" + } + } +}; export const ddosProtectionPlanName: msRest.OperationURLParameter = { parameterPath: "ddosProtectionPlanName", mapper: { diff --git a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts index ecdd464eb903..8f8ebcc50417 100644 --- a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts index 782d7f7bc7d7..709a335422fb 100644 --- a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts @@ -95,6 +95,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts index 271970400963..4548f3a7aa14 100644 --- a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts index 937dec014976..b043337e3b8d 100644 --- a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts @@ -100,6 +100,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts index 326aa4e5760f..948319f157af 100644 --- a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/routesMappers.ts b/packages/@azure/arm-network/lib/models/routesMappers.ts index 4e223ae5c6e6..5247c8f016e3 100644 --- a/packages/@azure/arm-network/lib/models/routesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routesMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts index 8ff5c79e2e1d..1d3b20e6297b 100644 --- a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts index f2991cac1f3f..9cd200f836b5 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts index 641c4582e9c6..c80d756c90bd 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/subnetsMappers.ts b/packages/@azure/arm-network/lib/models/subnetsMappers.ts index d37ebfa91651..e50b865e2909 100644 --- a/packages/@azure/arm-network/lib/models/subnetsMappers.ts +++ b/packages/@azure/arm-network/lib/models/subnetsMappers.ts @@ -91,6 +91,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts index c471d9c91285..c0f771ec2852 100644 --- a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts @@ -97,6 +97,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts index 929a1e13606c..98d3bddacddb 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts @@ -106,6 +106,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts index 9c50dc445a26..d654090df4a7 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts @@ -112,6 +112,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts index b5097507803c..0b8fee17d4ea 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts @@ -93,6 +93,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts index 4eb43319e1df..60180de6e2ea 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts @@ -92,6 +92,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts index 144154ea8d35..3f8a596a53d9 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts @@ -100,6 +100,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts index 6f48000458fb..13acc3d04409 100644 --- a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts @@ -100,6 +100,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts index afd0bfb9801c..e607f5f9d7c5 100644 --- a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts @@ -94,6 +94,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts index c07458db3a3d..bb18581afc6b 100644 --- a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts @@ -97,6 +97,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts index 42b097dd0b6d..1ba35a3635cc 100644 --- a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts @@ -97,6 +97,8 @@ export { AzureFirewallNetworkRule, AzureFirewall, AzureFirewallFqdnTag, + DdosCustomPolicy, + ProtocolCustomSettingsFormat, DdosProtectionPlan, EndpointServiceResult, ExpressRouteCircuitAuthorization, diff --git a/packages/@azure/arm-network/lib/networkManagementClient.ts b/packages/@azure/arm-network/lib/networkManagementClient.ts index eea29bd25dea..5dc5209de236 100644 --- a/packages/@azure/arm-network/lib/networkManagementClient.ts +++ b/packages/@azure/arm-network/lib/networkManagementClient.ts @@ -24,6 +24,7 @@ class NetworkManagementClient extends NetworkManagementClientContext { availableResourceGroupDelegations: operations.AvailableResourceGroupDelegations; azureFirewalls: operations.AzureFirewalls; azureFirewallFqdnTags: operations.AzureFirewallFqdnTags; + ddosCustomPolicies: operations.DdosCustomPolicies; ddosProtectionPlans: operations.DdosProtectionPlans; availableEndpointServices: operations.AvailableEndpointServices; expressRouteCircuitAuthorizations: operations.ExpressRouteCircuitAuthorizations; @@ -101,6 +102,7 @@ class NetworkManagementClient extends NetworkManagementClientContext { this.availableResourceGroupDelegations = new operations.AvailableResourceGroupDelegations(this); this.azureFirewalls = new operations.AzureFirewalls(this); this.azureFirewallFqdnTags = new operations.AzureFirewallFqdnTags(this); + this.ddosCustomPolicies = new operations.DdosCustomPolicies(this); this.ddosProtectionPlans = new operations.DdosProtectionPlans(this); this.availableEndpointServices = new operations.AvailableEndpointServices(this); this.expressRouteCircuitAuthorizations = new operations.ExpressRouteCircuitAuthorizations(this); diff --git a/packages/@azure/arm-network/lib/operations/ddosCustomPolicies.ts b/packages/@azure/arm-network/lib/operations/ddosCustomPolicies.ts new file mode 100644 index 000000000000..28b9f45b4b3a --- /dev/null +++ b/packages/@azure/arm-network/lib/operations/ddosCustomPolicies.ts @@ -0,0 +1,276 @@ +/* + * 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) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "ms-rest-js"; +import * as msRestAzure from "ms-rest-azure-js"; +import * as Models from "../models"; +import * as Mappers from "../models/ddosCustomPoliciesMappers"; +import * as Parameters from "../models/parameters"; +import { NetworkManagementClientContext } from "../networkManagementClientContext"; + +/** Class representing a DdosCustomPolicies. */ +export class DdosCustomPolicies { + private readonly client: NetworkManagementClientContext; + + /** + * Create a DdosCustomPolicies. + * @param {NetworkManagementClientContext} client Reference to the service client. + */ + constructor(client: NetworkManagementClientContext) { + this.client = client; + } + + /** + * Deletes the specified DDoS custom policy. + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param [options] The optional parameters + * @returns Promise + */ + deleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.beginDeleteMethod(resourceGroupName,ddosCustomPolicyName,options) + .then(lroPoller => lroPoller.pollUntilFinished()); + } + + /** + * Gets information about the specified DDoS custom policy. + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceGroupName: string, ddosCustomPolicyName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param callback The callback + */ + get(resourceGroupName: string, ddosCustomPolicyName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param options The optional parameters + * @param callback The callback + */ + get(resourceGroupName: string, ddosCustomPolicyName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceGroupName: string, ddosCustomPolicyName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + ddosCustomPolicyName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Creates or updates a DDoS custom policy. + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param parameters Parameters supplied to the create or update operation. + * @param [options] The optional parameters + * @returns Promise + */ + createOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: Models.DdosCustomPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.beginCreateOrUpdate(resourceGroupName,ddosCustomPolicyName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Update a DDoS custom policy tags + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param parameters Parameters supplied to the update DDoS custom policy resource tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,ddosCustomPolicyName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + + /** + * Deletes the specified DDoS custom policy. + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param [options] The optional parameters + * @returns Promise + */ + beginDeleteMethod(resourceGroupName: string, ddosCustomPolicyName: string, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + ddosCustomPolicyName, + options + }, + beginDeleteMethodOperationSpec, + options); + } + + /** + * Creates or updates a DDoS custom policy. + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param parameters Parameters supplied to the create or update operation. + * @param [options] The optional parameters + * @returns Promise + */ + beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: Models.DdosCustomPolicy, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + ddosCustomPolicyName, + parameters, + options + }, + beginCreateOrUpdateOperationSpec, + options); + } + + /** + * Update a DDoS custom policy tags + * @param resourceGroupName The name of the resource group. + * @param ddosCustomPolicyName The name of the DDoS custom policy. + * @param parameters Parameters supplied to the update DDoS custom policy resource tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, ddosCustomPolicyName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + ddosCustomPolicyName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.ddosCustomPolicyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.DdosCustomPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginDeleteMethodOperationSpec: msRest.OperationSpec = { + httpMethod: "DELETE", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.ddosCustomPolicyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { + httpMethod: "PUT", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.ddosCustomPolicyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.DdosCustomPolicy, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DdosCustomPolicy + }, + 201: { + bodyMapper: Mappers.DdosCustomPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.ddosCustomPolicyName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.DdosCustomPolicy + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/packages/@azure/arm-network/lib/operations/index.ts b/packages/@azure/arm-network/lib/operations/index.ts index 988917538cb2..d2f3af235853 100644 --- a/packages/@azure/arm-network/lib/operations/index.ts +++ b/packages/@azure/arm-network/lib/operations/index.ts @@ -14,6 +14,7 @@ export * from "./availableDelegations"; export * from "./availableResourceGroupDelegations"; export * from "./azureFirewalls"; export * from "./azureFirewallFqdnTags"; +export * from "./ddosCustomPolicies"; export * from "./ddosProtectionPlans"; export * from "./availableEndpointServices"; export * from "./expressRouteCircuitAuthorizations";