diff --git a/packages/@azure/arm-network/LICENSE.txt b/packages/@azure/arm-network/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-network/LICENSE.txt +++ b/packages/@azure/arm-network/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/packages/@azure/arm-network/README.md b/packages/@azure/arm-network/README.md index 71cc22360cd4..2b20ec8987a7 100644 --- a/packages/@azure/arm-network/README.md +++ b/packages/@azure/arm-network/README.md @@ -1,100 +1,100 @@ -## Azure NetworkManagementClient SDK for JavaScript - -This package contains an isomorphic SDK for NetworkManagementClient. - -### Currently supported environments - -- Node.js version 6.x.x or higher -- Browser JavaScript - -### How to Install - -```bash -npm install @azure/arm-network -``` - -### How to use - -#### nodejs - Authentication, client creation and get applicationGateways as an example written in TypeScript. - -##### Install @azure/ms-rest-nodeauth - -```bash -npm install @azure/ms-rest-nodeauth -``` - -##### Sample code - -```typescript -import * as msRest from "@azure/ms-rest-js"; -import * as msRestAzure from "@azure/ms-rest-azure-js"; -import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; -import { NetworkManagementClient, NetworkManagementModels, NetworkManagementMappers } from "@azure/arm-network"; -const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; - -msRestNodeAuth.interactiveLogin().then((creds) => { - const client = new NetworkManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const applicationGatewayName = "testapplicationGatewayName"; - client.applicationGateways.get(resourceGroupName, applicationGatewayName).then((result) => { - console.log("The result is:"); - console.log(result); - }); -}).catch((err) => { - console.error(err); -}); -``` - -#### browser - Authentication, client creation and get applicationGateways as an example written in JavaScript. - -##### Install @azure/ms-rest-browserauth - -```bash -npm install @azure/ms-rest-browserauth -``` - -##### Sample code - -See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. - -- index.html -```html - - - - @azure/arm-network sample - - - - - - - - -``` - -## Related projects - -- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) +## Azure NetworkManagementClient SDK for JavaScript + +This package contains an isomorphic SDK for NetworkManagementClient. + +### Currently supported environments + +- Node.js version 6.x.x or higher +- Browser JavaScript + +### How to Install + +```bash +npm install @azure/arm-network +``` + +### How to use + +#### nodejs - Authentication, client creation and get applicationGateways as an example written in TypeScript. + +##### Install @azure/ms-rest-nodeauth + +```bash +npm install @azure/ms-rest-nodeauth +``` + +##### Sample code + +```typescript +import * as msRest from "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/ms-rest-azure-js"; +import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; +import { NetworkManagementClient, NetworkManagementModels, NetworkManagementMappers } from "@azure/arm-network"; +const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; + +msRestNodeAuth.interactiveLogin().then((creds) => { + const client = new NetworkManagementClient(creds, subscriptionId); + const resourceGroupName = "testresourceGroupName"; + const applicationGatewayName = "testapplicationGatewayName"; + client.applicationGateways.get(resourceGroupName, applicationGatewayName).then((result) => { + console.log("The result is:"); + console.log(result); + }); +}).catch((err) => { + console.error(err); +}); +``` + +#### browser - Authentication, client creation and get applicationGateways as an example written in JavaScript. + +##### Install @azure/ms-rest-browserauth + +```bash +npm install @azure/ms-rest-browserauth +``` + +##### Sample code + +See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser. + +- index.html +```html + + + + @azure/arm-network sample + + + + + + + + +``` + +## Related projects + +- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) diff --git a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts index a10d4b1c97c6..d6b86108be5a 100644 --- a/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationGatewaysMappers.ts @@ -46,6 +46,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -78,6 +79,11 @@ export { ApplicationGatewayBackendHealthPool, ApplicationGatewayBackendHealthHttpSettings, ApplicationGatewayBackendHealthServer, + ApplicationGatewayAvailableServerVariablesResult, + ErrorModel, + ErrorDetails, + ApplicationGatewayAvailableRequestHeadersResult, + ApplicationGatewayAvailableResponseHeadersResult, ApplicationGatewayAvailableWafRuleSetsResult, ApplicationGatewayFirewallRuleSet, ApplicationGatewayFirewallRuleGroup, @@ -97,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 945f0e809afb..429b9305fa48 100644 --- a/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/applicationSecurityGroupsMappers.ts @@ -13,6 +13,7 @@ export { ApplicationSecurityGroup, Resource, BaseResource, + TagsObject, ApplicationSecurityGroupListResult, SubResource, SecurityRule, @@ -29,6 +30,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -90,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 81140554e3cb..8386c3e06f12 100644 --- a/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts +++ b/packages/@azure/arm-network/lib/models/availableEndpointServicesMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 117f9e1be4a6..b800b97394d2 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallFqdnTagsMappers.ts @@ -30,6 +30,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -90,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 8642165afde2..628126e041a8 100644 --- a/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts +++ b/packages/@azure/arm-network/lib/models/azureFirewallsMappers.ts @@ -49,6 +49,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 d4f219f1fa3f..2e5a572ae32d 100644 --- a/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts +++ b/packages/@azure/arm-network/lib/models/bgpServiceCommunitiesMappers.ts @@ -31,6 +31,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -92,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 24d462a92423..5d82a4ae0864 100644 --- a/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts +++ b/packages/@azure/arm-network/lib/models/connectionMonitorsMappers.ts @@ -38,6 +38,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -99,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 b636650d28ce..985d98e425e9 100644 --- a/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts +++ b/packages/@azure/arm-network/lib/models/ddosProtectionPlansMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 770ba6ce4a33..67a3908eac79 100644 --- a/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/defaultSecurityRulesMappers.ts @@ -38,6 +38,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 d58f38bd33f7..572fd2013ad9 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitAuthorizationsMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 68ccdc717bf3..bba3f6e0ad1c 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitConnectionsMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 d0f823573604..b6a48bb1606e 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitPeeringsMappers.ts @@ -46,6 +46,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -98,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 c99754de34fa..87ae9bf521fe 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCircuitsMappers.ts @@ -57,6 +57,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -109,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 f68416fb16b8..e95dba6848cd 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteConnectionsMappers.ts @@ -40,6 +40,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -92,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 cb318fe1f6e0..84be306fe96f 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionPeeringsMappers.ts @@ -47,6 +47,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -99,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 cc65965162c4..cdf9c6d94ebe 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteCrossConnectionsMappers.ts @@ -56,6 +56,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -108,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 ec429115f876..35e440fc8a91 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteGatewaysMappers.ts @@ -44,6 +44,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -96,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 0cda01dfdc0f..bb1cd245b895 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteLinksMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteLinksMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 7cb8bf9f49ad..aad96bd489fb 100644 --- a/packages/@azure/arm-network/lib/models/expressRoutePortsLocationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRoutePortsLocationsMappers.ts @@ -31,6 +31,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -92,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 27489667d17c..c93c176231ea 100644 --- a/packages/@azure/arm-network/lib/models/expressRoutePortsMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRoutePortsMappers.ts @@ -41,6 +41,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -93,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 e8c3a2aee73b..f6ef394dbc17 100644 --- a/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts +++ b/packages/@azure/arm-network/lib/models/expressRouteServiceProvidersMappers.ts @@ -31,6 +31,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -92,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 f6e6ab3a7add..a9bab3d6df35 100644 --- a/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/hubVirtualNetworkConnectionsMappers.ts @@ -40,6 +40,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -92,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 6c00c3994d31..3d1d0c8bd039 100644 --- a/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/inboundNatRulesMappers.ts @@ -35,6 +35,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 67a3519adbaa..270d63894aa4 100644 --- a/packages/@azure/arm-network/lib/models/index.ts +++ b/packages/@azure/arm-network/lib/models/index.ts @@ -713,6 +713,26 @@ export interface PublicIPAddressDnsSettings { reverseFqdn?: string; } +/** + * @interface + * An interface representing DdosSettings. + * Contains the DDoS protection settings of the public IP. + * + */ +export interface DdosSettings { + /** + * @member {SubResource} [ddosCustomPolicy] The DDoS custom policy associated + * with the public IP. + */ + ddosCustomPolicy?: SubResource; + /** + * @member {ProtectionCoverage} [protectionCoverage] The DDoS protection + * policy customizability of the public IP. Only standard coverage will have + * the ability to be customized. Possible values include: 'Basic', 'Standard' + */ + protectionCoverage?: ProtectionCoverage; +} + /** * @interface * An interface representing IpTag. @@ -768,6 +788,11 @@ export interface PublicIPAddress extends Resource { * record associated with the public IP address. */ dnsSettings?: PublicIPAddressDnsSettings; + /** + * @member {DdosSettings} [ddosSettings] The DDoS protection custom policy + * associated with the public IP address. + */ + ddosSettings?: DdosSettings; /** * @member {IpTag[]} [ipTags] The list of tags associated with the public IP * address. @@ -2841,6 +2866,48 @@ export interface ApplicationGateway extends Resource { identity?: ManagedServiceIdentity; } +/** + * @interface + * An interface representing ApplicationGatewayAvailableServerVariablesResult. + * Response for ApplicationGatewayAvailableServerVariables API service call. + * + */ +export interface ApplicationGatewayAvailableServerVariablesResult { + /** + * @member {string[]} [value] The list of supported server variables in + * application gateway. + */ + value?: string[]; +} + +/** + * @interface + * An interface representing ApplicationGatewayAvailableRequestHeadersResult. + * Response for ApplicationGatewayAvailableRequestHeaders API service call. + * + */ +export interface ApplicationGatewayAvailableRequestHeadersResult { + /** + * @member {string[]} [value] The list of supported request headers in + * application gateway. + */ + value?: string[]; +} + +/** + * @interface + * An interface representing ApplicationGatewayAvailableResponseHeadersResult. + * Response for ApplicationGatewayAvailableResponeHeaders API service call. + * + */ +export interface ApplicationGatewayAvailableResponseHeadersResult { + /** + * @member {string[]} [value] The list of supported response header in + * application gateway. + */ + value?: string[]; +} + /** * @interface * An interface representing ApplicationGatewayFirewallRule. @@ -2985,6 +3052,52 @@ export interface ApplicationGatewaySslPredefinedPolicy extends SubResource { minProtocolVersion?: ApplicationGatewaySslProtocol; } +/** + * @interface + * An interface representing ErrorDetails. + */ +export interface ErrorDetails { + /** + * @member {string} [code] + */ + code?: string; + /** + * @member {string} [target] + */ + target?: string; + /** + * @member {string} [message] + */ + message?: string; +} + +/** + * @interface + * An interface representing ErrorModel. + */ +export interface ErrorModel { + /** + * @member {string} [code] + */ + code?: string; + /** + * @member {string} [message] + */ + message?: string; + /** + * @member {string} [target] + */ + target?: string; + /** + * @member {ErrorDetails[]} [details] + */ + details?: ErrorDetails[]; + /** + * @member {string} [innerError] + */ + innerError?: string; +} + /** * @interface * An interface representing TagsObject. @@ -3453,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. @@ -5262,52 +5456,6 @@ export interface LoadBalancer extends Resource { etag?: string; } -/** - * @interface - * An interface representing ErrorDetails. - */ -export interface ErrorDetails { - /** - * @member {string} [code] - */ - code?: string; - /** - * @member {string} [target] - */ - target?: string; - /** - * @member {string} [message] - */ - message?: string; -} - -/** - * @interface - * An interface representing ErrorModel. - */ -export interface ErrorModel { - /** - * @member {string} [code] - */ - code?: string; - /** - * @member {string} [message] - */ - message?: string; - /** - * @member {string} [target] - */ - target?: string; - /** - * @member {ErrorDetails[]} [details] - */ - details?: ErrorDetails[]; - /** - * @member {string} [innerError] - */ - innerError?: string; -} - /** * @interface * An interface representing AzureAsyncOperationResult. @@ -11568,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' @@ -12080,6 +12244,14 @@ export type TunnelConnectionStatus = 'Unknown' | 'Connecting' | 'Connected' | 'N */ export type HubVirtualNetworkConnectionStatus = 'Unknown' | 'Connecting' | 'Connected' | 'NotConnected'; +/** + * Defines values for ProtectionCoverage. + * Possible values include: 'Basic', 'Standard' + * @readonly + * @enum {string} + */ +export type ProtectionCoverage = 'Basic' | 'Standard'; + /** * Defines values for Protocol1. * Possible values include: 'Tcp', 'Udp', 'All' @@ -12202,6 +12374,63 @@ export type ApplicationGatewaysBackendHealthResponse = ApplicationGatewayBackend }; }; +/** + * Contains response data for the listAvailableServerVariables operation. + */ +export type ApplicationGatewaysListAvailableServerVariablesResponse = ApplicationGatewayAvailableServerVariablesResult & { + /** + * 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: ApplicationGatewayAvailableServerVariablesResult; + }; +}; + +/** + * Contains response data for the listAvailableRequestHeaders operation. + */ +export type ApplicationGatewaysListAvailableRequestHeadersResponse = ApplicationGatewayAvailableRequestHeadersResult & { + /** + * 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: ApplicationGatewayAvailableRequestHeadersResult; + }; +}; + +/** + * Contains response data for the listAvailableResponseHeaders operation. + */ +export type ApplicationGatewaysListAvailableResponseHeadersResponse = ApplicationGatewayAvailableResponseHeadersResult & { + /** + * 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: ApplicationGatewayAvailableResponseHeadersResult; + }; +}; + /** * Contains response data for the listAvailableWafRuleSets operation. */ @@ -12430,6 +12659,25 @@ export type ApplicationSecurityGroupsCreateOrUpdateResponse = ApplicationSecurit }; }; +/** + * Contains response data for the updateTags operation. + */ +export type ApplicationSecurityGroupsUpdateTagsResponse = ApplicationSecurityGroup & { + /** + * 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: ApplicationSecurityGroup; + }; +}; + /** * Contains response data for the listAll operation. */ @@ -12487,6 +12735,25 @@ export type ApplicationSecurityGroupsBeginCreateOrUpdateResponse = ApplicationSe }; }; +/** + * Contains response data for the beginUpdateTags operation. + */ +export type ApplicationSecurityGroupsBeginUpdateTagsResponse = ApplicationSecurityGroup & { + /** + * 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: ApplicationSecurityGroup; + }; +}; + /** * Contains response data for the listAllNext operation. */ @@ -12810,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 53507cc334b7..09c66a454d20 100644 --- a/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts +++ b/packages/@azure/arm-network/lib/models/interfaceEndpointsMappers.ts @@ -28,6 +28,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -90,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 890e31557648..90bd1b167931 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerBackendAddressPoolsMappers.ts @@ -35,6 +35,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 4e34f7a63579..1c77c861294d 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerFrontendIPConfigurationsMappers.ts @@ -32,6 +32,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, NetworkInterfaceDnsSettings, RouteTable, @@ -90,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 d307b29c9c98..78732cfe759d 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerLoadBalancingRulesMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 310c3fbb3c6a..2ab11550e9a7 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerNetworkInterfacesMappers.ts @@ -29,6 +29,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 d1e9cc05ca35..9cd1784aad25 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerOutboundRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerOutboundRulesMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 9143d8747942..43530c455d4a 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancerProbesMappers.ts @@ -39,6 +39,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 ca540035da6f..41302834e681 100644 --- a/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/loadBalancersMappers.ts @@ -34,6 +34,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, NetworkInterfaceDnsSettings, RouteTable, @@ -97,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 55f2734b84cc..24cfb89a2309 100644 --- a/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/localNetworkGatewaysMappers.ts @@ -33,6 +33,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -94,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 ba84b8382540..e6ce93c93510 100644 --- a/packages/@azure/arm-network/lib/models/mappers.ts +++ b/packages/@azure/arm-network/lib/models/mappers.ts @@ -923,6 +923,29 @@ export const PublicIPAddressDnsSettings: msRest.CompositeMapper = { } }; +export const DdosSettings: msRest.CompositeMapper = { + serializedName: "DdosSettings", + type: { + name: "Composite", + className: "DdosSettings", + modelProperties: { + ddosCustomPolicy: { + serializedName: "ddosCustomPolicy", + type: { + name: "Composite", + className: "SubResource" + } + }, + protectionCoverage: { + serializedName: "protectionCoverage", + type: { + name: "String" + } + } + } + } +}; + export const IpTag: msRest.CompositeMapper = { serializedName: "IpTag", type: { @@ -986,6 +1009,13 @@ export const PublicIPAddress: msRest.CompositeMapper = { className: "PublicIPAddressDnsSettings" } }, + ddosSettings: { + serializedName: "properties.ddosSettings", + type: { + name: "Composite", + className: "DdosSettings" + } + }, ipTags: { serializedName: "properties.ipTags", type: { @@ -3819,6 +3849,69 @@ export const ApplicationGateway: msRest.CompositeMapper = { } }; +export const ApplicationGatewayAvailableServerVariablesResult: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayAvailableServerVariablesResult", + type: { + name: "Composite", + className: "ApplicationGatewayAvailableServerVariablesResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ApplicationGatewayAvailableRequestHeadersResult: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayAvailableRequestHeadersResult", + type: { + name: "Composite", + className: "ApplicationGatewayAvailableRequestHeadersResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const ApplicationGatewayAvailableResponseHeadersResult: msRest.CompositeMapper = { + serializedName: "ApplicationGatewayAvailableResponseHeadersResult", + type: { + name: "Composite", + className: "ApplicationGatewayAvailableResponseHeadersResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const ApplicationGatewayFirewallRule: msRest.CompositeMapper = { serializedName: "ApplicationGatewayFirewallRule", type: { @@ -4029,6 +4122,80 @@ export const ApplicationGatewaySslPredefinedPolicy: msRest.CompositeMapper = { } }; +export const ErrorDetails: msRest.CompositeMapper = { + serializedName: "ErrorDetails", + type: { + name: "Composite", + className: "ErrorDetails", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + } + } + } +}; + +export const ErrorModel: msRest.CompositeMapper = { + serializedName: "Error", + type: { + name: "Composite", + className: "ErrorModel", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String" + } + }, + message: { + serializedName: "message", + type: { + name: "String" + } + }, + target: { + serializedName: "target", + type: { + name: "String" + } + }, + details: { + serializedName: "details", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetails" + } + } + } + }, + innerError: { + serializedName: "innerError", + type: { + name: "String" + } + } + } + } +}; + export const TagsObject: msRest.CompositeMapper = { serializedName: "TagsObject", type: { @@ -4712,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: { @@ -6995,80 +7253,6 @@ export const LoadBalancer: msRest.CompositeMapper = { } }; -export const ErrorDetails: msRest.CompositeMapper = { - serializedName: "ErrorDetails", - type: { - name: "Composite", - className: "ErrorDetails", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - } - } - } -}; - -export const ErrorModel: msRest.CompositeMapper = { - serializedName: "Error", - type: { - name: "Composite", - className: "ErrorModel", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String" - } - }, - message: { - serializedName: "message", - type: { - name: "String" - } - }, - target: { - serializedName: "target", - type: { - name: "String" - } - }, - details: { - serializedName: "details", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetails" - } - } - } - }, - innerError: { - serializedName: "innerError", - type: { - name: "String" - } - } - } - } -}; - export const AzureAsyncOperationResult: msRest.CompositeMapper = { serializedName: "AzureAsyncOperationResult", type: { diff --git a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts index b2b18d10673f..dfdb80c6d01c 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceIPConfigurationsMappers.ts @@ -34,6 +34,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 64900fb91d3c..1f7cb61dac0e 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceLoadBalancersMappers.ts @@ -34,6 +34,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, NetworkInterfaceDnsSettings, RouteTable, @@ -96,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 7fb0fe450489..227bf08f7f64 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfaceTapConfigurationsMappers.ts @@ -37,6 +37,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 b80447d9ea66..c832721298b9 100644 --- a/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkInterfacesMappers.ts @@ -29,6 +29,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -98,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 3bd75d4a3b5a..7c391fb45e0a 100644 --- a/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkProfilesMappers.ts @@ -32,6 +32,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -96,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 20e4118a6d42..8041fe5788ec 100644 --- a/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkSecurityGroupsMappers.ts @@ -29,6 +29,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 b95ff50b5fbd..9e827d4b8c48 100644 --- a/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts +++ b/packages/@azure/arm-network/lib/models/networkWatchersMappers.ts @@ -94,6 +94,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -146,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 d2a8321ddb57..874108132d44 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnGatewaysMappers.ts @@ -46,6 +46,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -98,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 69b5755e1531..8aa0d39e5d29 100644 --- a/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts +++ b/packages/@azure/arm-network/lib/models/p2sVpnServerConfigurationsMappers.ts @@ -45,6 +45,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -97,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 b9d89677521a..e3ab77d548b9 100644 --- a/packages/@azure/arm-network/lib/models/parameters.ts +++ b/packages/@azure/arm-network/lib/models/parameters.ts @@ -26,7 +26,7 @@ export const apiVersion0: msRest.OperationQueryParameter = { required: true, isConstant: true, serializedName: "api-version", - defaultValue: '2018-10-01', + defaultValue: '2018-12-01', type: { name: "String" } @@ -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 8b96e08aad38..8f8ebcc50417 100644 --- a/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPAddressesMappers.ts @@ -42,6 +42,7 @@ export { ServiceAssociationLink, Delegation, PublicIPAddressDnsSettings, + DdosSettings, IpTag, TagsObject, PublicIPAddressListResult, @@ -91,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 6150f30e4e9f..709a335422fb 100644 --- a/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts +++ b/packages/@azure/arm-network/lib/models/publicIPPrefixesMappers.ts @@ -34,6 +34,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, BackendAddressPool, @@ -94,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 0a1c18438495..4548f3a7aa14 100644 --- a/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFilterRulesMappers.ts @@ -40,6 +40,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -92,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 3342e6a85f4a..b043337e3b8d 100644 --- a/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeFiltersMappers.ts @@ -47,6 +47,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -99,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 6f58adedb2c2..948319f157af 100644 --- a/packages/@azure/arm-network/lib/models/routeTablesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routeTablesMappers.ts @@ -30,6 +30,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -91,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 38e8c03f0671..5247c8f016e3 100644 --- a/packages/@azure/arm-network/lib/models/routesMappers.ts +++ b/packages/@azure/arm-network/lib/models/routesMappers.ts @@ -38,6 +38,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 58e0c7ca30b4..1d3b20e6297b 100644 --- a/packages/@azure/arm-network/lib/models/securityRulesMappers.ts +++ b/packages/@azure/arm-network/lib/models/securityRulesMappers.ts @@ -38,6 +38,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 a55b797a92fb..9cd200f836b5 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPoliciesMappers.ts @@ -30,6 +30,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -91,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 c06fed981f71..c80d756c90bd 100644 --- a/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/serviceEndpointPolicyDefinitionsMappers.ts @@ -38,6 +38,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -90,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 e0983bc332d3..e50b865e2909 100644 --- a/packages/@azure/arm-network/lib/models/subnetsMappers.ts +++ b/packages/@azure/arm-network/lib/models/subnetsMappers.ts @@ -28,6 +28,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -90,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 b085bfd2a1ed..c0f771ec2852 100644 --- a/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualHubsMappers.ts @@ -44,6 +44,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -96,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 041f610561aa..98d3bddacddb 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewayConnectionsMappers.ts @@ -53,6 +53,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -105,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 9b99dca8ea82..d654090df4a7 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkGatewaysMappers.ts @@ -59,6 +59,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -111,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 706dd5e18f93..0b8fee17d4ea 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkPeeringsMappers.ts @@ -40,6 +40,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -92,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 c743ee3b6641..60180de6e2ea 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworkTapsMappers.ts @@ -37,6 +37,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -91,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 bf4f42f36d2d..3f8a596a53d9 100644 --- a/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualNetworksMappers.ts @@ -31,6 +31,7 @@ export { PublicIPAddressSku, IPConfiguration, PublicIPAddressDnsSettings, + DdosSettings, IpTag, ApplicationGatewayBackendAddressPool, ApplicationGatewayBackendAddress, @@ -99,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 ca27936c2c49..13acc3d04409 100644 --- a/packages/@azure/arm-network/lib/models/virtualWansMappers.ts +++ b/packages/@azure/arm-network/lib/models/virtualWansMappers.ts @@ -47,6 +47,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -99,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 b0c59247239d..e607f5f9d7c5 100644 --- a/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnConnectionsMappers.ts @@ -41,6 +41,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -93,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 f2c2586ffa1f..bb18581afc6b 100644 --- a/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnGatewaysMappers.ts @@ -44,6 +44,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -96,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 b5e5eaa51253..1ba35a3635cc 100644 --- a/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts +++ b/packages/@azure/arm-network/lib/models/vpnSitesMappers.ts @@ -44,6 +44,7 @@ export { PublicIPAddress, PublicIPAddressSku, PublicIPAddressDnsSettings, + DdosSettings, IpTag, IPConfigurationProfile, ResourceNavigationLink, @@ -96,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 991493633a7a..efc01fd022f3 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/networkManagementClientContext.ts b/packages/@azure/arm-network/lib/networkManagementClientContext.ts index acfbe2e70db3..11d3d5ab0d9a 100644 --- a/packages/@azure/arm-network/lib/networkManagementClientContext.ts +++ b/packages/@azure/arm-network/lib/networkManagementClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-network"; -const packageVersion = "0.2.1"; +const packageVersion = "0.2.2"; export class NetworkManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-network/lib/operations/applicationGateways.ts b/packages/@azure/arm-network/lib/operations/applicationGateways.ts index 50b702269fc5..56c80f1aac6f 100644 --- a/packages/@azure/arm-network/lib/operations/applicationGateways.ts +++ b/packages/@azure/arm-network/lib/operations/applicationGateways.ts @@ -185,6 +185,78 @@ export class ApplicationGateways { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Lists all available server variables. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableServerVariables(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableServerVariables(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableServerVariables(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableServerVariables(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableServerVariablesOperationSpec, + callback) as Promise; + } + + /** + * Lists all available request headers. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableRequestHeaders(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableRequestHeaders(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableRequestHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableRequestHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableRequestHeadersOperationSpec, + callback) as Promise; + } + + /** + * Lists all available response headers. + * @param [options] The optional parameters + * @returns Promise + */ + listAvailableResponseHeaders(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + listAvailableResponseHeaders(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + listAvailableResponseHeaders(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + listAvailableResponseHeaders(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listAvailableResponseHeadersOperationSpec, + callback) as Promise; + } + /** * Lists all available web application firewall rule sets. * @param [options] The optional parameters @@ -556,6 +628,75 @@ const listAllOperationSpec: msRest.OperationSpec = { serializer }; +const listAvailableServerVariablesOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableServerVariables", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayAvailableServerVariablesResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listAvailableRequestHeadersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableRequestHeaders", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayAvailableRequestHeadersResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + +const listAvailableResponseHeadersOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableResponseHeaders", + urlParameters: [ + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.ApplicationGatewayAvailableResponseHeadersResult + }, + default: { + bodyMapper: Mappers.ErrorModel + } + }, + serializer +}; + const listAvailableWafRuleSetsOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableWafRuleSets", diff --git a/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts b/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts index a3b3ff12c223..779621dd76c0 100644 --- a/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts +++ b/packages/@azure/arm-network/lib/operations/applicationSecurityGroups.ts @@ -85,6 +85,19 @@ export class ApplicationSecurityGroups { .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; } + /** + * Updates an application security group's tags. + * @param resourceGroupName The name of the resource group. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @param [options] The optional parameters + * @returns Promise + */ + updateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.beginUpdateTags(resourceGroupName,applicationSecurityGroupName,parameters,options) + .then(lroPoller => lroPoller.pollUntilFinished()) as Promise; + } + /** * Gets all application security groups in a subscription. * @param [options] The optional parameters @@ -176,6 +189,26 @@ export class ApplicationSecurityGroups { options); } + /** + * Updates an application security group's tags. + * @param resourceGroupName The name of the resource group. + * @param applicationSecurityGroupName The name of the application security group. + * @param parameters Parameters supplied to update application security group tags. + * @param [options] The optional parameters + * @returns Promise + */ + beginUpdateTags(resourceGroupName: string, applicationSecurityGroupName: string, parameters: Models.TagsObject, options?: msRest.RequestOptionsBase): Promise { + return this.client.sendLRORequest( + { + resourceGroupName, + applicationSecurityGroupName, + parameters, + options + }, + beginUpdateTagsOperationSpec, + options); + } + /** * Gets all application security groups in a subscription. * @param nextPageLink The NextLink from the previous successful call to List operation. @@ -367,6 +400,38 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { serializer }; +const beginUpdateTagsOperationSpec: msRest.OperationSpec = { + httpMethod: "PATCH", + path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}", + urlParameters: [ + Parameters.resourceGroupName, + Parameters.applicationSecurityGroupName, + Parameters.subscriptionId + ], + queryParameters: [ + Parameters.apiVersion0 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + requestBody: { + parameterPath: "parameters", + mapper: { + ...Mappers.TagsObject, + required: true + } + }, + responses: { + 200: { + bodyMapper: Mappers.ApplicationSecurityGroup + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + const listAllNextOperationSpec: msRest.OperationSpec = { httpMethod: "GET", baseUrl: "https://management.azure.com", 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..4a240729a46c --- /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 "@azure/ms-rest-js"; +import * as msRestAzure from "@azure/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";