diff --git a/.scripts/automation_generate.sh b/.scripts/automation_generate.sh index 789f6f9a53b2..9e838ef0d214 100644 --- a/.scripts/automation_generate.sh +++ b/.scripts/automation_generate.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -code-gen-pipeline --inputJsonPath=$1 --outputJsonPath=$2 --use=@autorest/typescript@6.0.0-rc.2 +code-gen-pipeline --inputJsonPath=$1 --outputJsonPath=$2 --use=@autorest/typescript@6.0.0-rc.2 --cadlEmitter=@azure-tools/cadl-typescript diff --git a/.scripts/automation_init.sh b/.scripts/automation_init.sh index 914705cf72a0..5097275e0f8b 100644 --- a/.scripts/automation_init.sh +++ b/.scripts/automation_init.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash npm install -g @microsoft/rush@5.75.0 -npm install -g @azure-tools/js-sdk-release-tools +npm install -g azure-tools-js-sdk-release-tools diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index a9f4ff539885..4fc2ba9b768c 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,94 @@ # Release History + +## 31.0.0 (2022-11-10) + +**Features** -## 30.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface ProtocolCustomSettingsFormat + - Added Type Alias DdosCustomPolicyProtocol + - Added Type Alias DdosCustomPolicyTriggerSensitivityOverride + - Added Type Alias DdosSettingsProtectionCoverage + - Interface DdosCustomPolicy has a new optional parameter protocolCustomSettings + - Interface DdosCustomPolicy has a new optional parameter publicIPAddresses + - Interface DdosSettings has a new optional parameter ddosCustomPolicy + - Interface DdosSettings has a new optional parameter protectedIP + - Interface DdosSettings has a new optional parameter protectionCoverage + - Added Enum KnownDdosCustomPolicyProtocol + - Added Enum KnownDdosCustomPolicyTriggerSensitivityOverride + - Added Enum KnownDdosSettingsProtectionCoverage -### Other Changes +**Breaking Changes** + - Removed operation group ApplicationGatewayWafDynamicManifests + - Removed operation group ApplicationGatewayWafDynamicManifestsDefault + - Removed operation group RouteMaps + - Removed operation group VipSwap + - Removed operation PublicIPAddresses.beginDdosProtectionStatus + - Removed operation PublicIPAddresses.beginDdosProtectionStatusAndWait + - Removed operation VirtualHubs.beginGetInboundRoutes + - Removed operation VirtualHubs.beginGetInboundRoutesAndWait + - Removed operation VirtualHubs.beginGetOutboundRoutes + - Removed operation VirtualHubs.beginGetOutboundRoutesAndWait + - Removed operation VirtualNetworks.beginListDdosProtectionStatusAndWait + - Interface ApplicationGatewayClientAuthConfiguration no longer has parameter verifyClientRevocation + - Interface ApplicationGatewayFirewallRule no longer has parameter action + - Interface ApplicationGatewayFirewallRule no longer has parameter ruleIdString + - Interface ApplicationGatewayFirewallRule no longer has parameter state + - Interface ApplicationGatewayFirewallRuleSet no longer has parameter tiers + - Interface CustomIpPrefix no longer has parameter asn + - Interface CustomIpPrefix no longer has parameter expressRouteAdvertise + - Interface CustomIpPrefix no longer has parameter geo + - Interface CustomIpPrefix no longer has parameter prefixType + - Interface DdosProtectionPlan no longer has parameter publicIpAddresses + - Interface DdosSettings no longer has parameter ddosProtectionPlan + - Interface DdosSettings no longer has parameter protectionMode + - Interface ExpressRouteConnection no longer has parameter enablePrivateLinkFastPath + - Interface ExpressRouteGateway no longer has parameter allowNonVirtualWanTraffic + - Interface ExpressRouteLink no longer has parameter coloLocation + - Interface ExpressRoutePort no longer has parameter billingType + - Interface ListActiveConnectivityConfigurationsOptionalParams no longer has parameter top + - Interface ListActiveSecurityAdminRulesOptionalParams no longer has parameter top + - Interface ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams no longer has parameter top + - Interface ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams no longer has parameter top + - Interface ManagedRuleOverride no longer has parameter action + - Interface NetworkInterface no longer has parameter disableTcpStateTracking + - Interface NetworkManagerDeploymentStatusListOptionalParams no longer has parameter top + - Interface Probe no longer has parameter probeThreshold + - Interface RoutingConfiguration no longer has parameter inboundRouteMap + - Interface RoutingConfiguration no longer has parameter outboundRouteMap + - Interface VirtualHub no longer has parameter routeMaps + - Interface VirtualNetworkGateway no longer has parameter allowRemoteVnetTraffic + - Interface VirtualNetworkGateway no longer has parameter allowVirtualWanTraffic + - Interface VirtualNetworkGateway no longer has parameter virtualNetworkGatewayPolicyGroups + - Interface VirtualNetworkGatewayConnection no longer has parameter enablePrivateLinkFastPath + - Interface VirtualNetworkGatewayConnectionListEntity no longer has parameter enablePrivateLinkFastPath + - Interface VnetRoute no longer has parameter staticRoutesConfig + - Interface VpnClientConfiguration no longer has parameter vngClientConnectionConfigurations + - Class NetworkManagementClient no longer has parameter applicationGatewayWafDynamicManifests + - Class NetworkManagementClient no longer has parameter applicationGatewayWafDynamicManifestsDefault + - Class NetworkManagementClient no longer has parameter routeMaps + - Class NetworkManagementClient no longer has parameter vipSwap + - Removed Enum KnownActionType + - Removed Enum KnownApplicationGatewayClientRevocationOptions + - Removed Enum KnownApplicationGatewayRuleSetStatusOptions + - Removed Enum KnownApplicationGatewayTierTypes + - Removed Enum KnownApplicationGatewayWafRuleActionTypes + - Removed Enum KnownApplicationGatewayWafRuleStateTypes + - Removed Enum KnownCustomIpPrefixType + - Removed Enum KnownDdosSettingsProtectionMode + - Removed Enum KnownExpressRoutePortsBillingType + - Removed Enum KnownGeo + - Removed Enum KnownIsWorkloadProtected + - Removed Enum KnownNextStep + - Removed Enum KnownRouteMapActionType + - Removed Enum KnownRouteMapMatchCondition + - Removed Enum KnownVnetLocalRouteOverrideCriteria + - Enum KnownCommissionedState no longer has value Deprovisioned + - Enum KnownManagedRuleEnabledState no longer has value Enabled + - Enum KnownNetworkIntentPolicyBasedService no longer has value AllowRulesOnly + - Enum KnownWebApplicationFirewallTransform no longer has value Uppercase + + ## 30.0.0 (2022-09-29) **Features** diff --git a/sdk/network/arm-network/README.md b/sdk/network/arm-network/README.md index ee877b144500..dbafed899284 100644 --- a/sdk/network/arm-network/README.md +++ b/sdk/network/arm-network/README.md @@ -13,7 +13,7 @@ Network Client ### Currently supported environments -- [LTS versions of Node.js](https://nodejs.org/about/releases/) +- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule) - Latest versions of Safari, Chrome, Edge and Firefox. See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details. diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 03f20ca61a2c..488ab7f8fb06 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "065b070773ed6fa98ede768ad602f4c4d2edf739", + "commit": "88fb6974c573f26166df63a2bd79f9ee8397eb4a", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\network\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.1.20220727.1 --generate-sample=true", - "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.4.2", - "use": "@autorest/typescript@6.0.0-rc.1.20220727.1" + "autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/network/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.2", + "repository_url": "https://github.com/openapi-env-test/azure-rest-api-specs.git", + "release_tool": "azure-tools-js-sdk-release-tools@2.5.1", + "use": "@autorest/typescript@6.0.0-rc.2" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index 3ea6a2335fdd..e9c9eebfb030 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "30.0.1", + "version": "31.0.0", "engines": { "node": ">=14.0.0" }, @@ -109,13 +109,5 @@ } ] }, - "autoPublish": true, - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "autoPublish": true +} \ No newline at end of file diff --git a/sdk/network/arm-network/review/arm-network.api.md b/sdk/network/arm-network/review/arm-network.api.md index a15699133e8d..62039686a064 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -20,15 +20,6 @@ export interface AadAuthenticationParameters { // @public export type Access = string; -// @public -export interface Action { - parameters?: Parameter[]; - type?: RouteMapActionType; -} - -// @public -export type ActionType = string; - // @public export interface ActiveBaseSecurityAdminRule { commitTime?: Date; @@ -422,12 +413,8 @@ export interface ApplicationGatewayBackendSettings extends SubResource { // @public export interface ApplicationGatewayClientAuthConfiguration { verifyClientCertIssuerDN?: boolean; - verifyClientRevocation?: ApplicationGatewayClientRevocationOptions; } -// @public -export type ApplicationGatewayClientRevocationOptions = string; - // @public export interface ApplicationGatewayConnectionDraining { drainTimeoutInSec: number; @@ -459,25 +446,13 @@ export interface ApplicationGatewayFirewallExclusion { selectorMatchOperator: string; } -// @public -export interface ApplicationGatewayFirewallManifestRuleSet { - ruleGroups: ApplicationGatewayFirewallRuleGroup[]; - ruleSetType: string; - ruleSetVersion: string; - status?: ApplicationGatewayRuleSetStatusOptions; - tiers?: ApplicationGatewayTierTypes[]; -} - // @public export type ApplicationGatewayFirewallMode = string; // @public export interface ApplicationGatewayFirewallRule { - action?: ApplicationGatewayWafRuleActionTypes; description?: string; ruleId: number; - ruleIdString?: string; - state?: ApplicationGatewayWafRuleStateTypes; } // @public @@ -493,7 +468,6 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { ruleGroups?: ApplicationGatewayFirewallRuleGroup[]; ruleSetType?: string; ruleSetVersion?: string; - tiers?: ApplicationGatewayTierTypes[]; } // @public @@ -857,9 +831,6 @@ export interface ApplicationGatewayRoutingRule extends SubResource { readonly type?: string; } -// @public -export type ApplicationGatewayRuleSetStatusOptions = string; - // @public export interface ApplicationGateways { beginBackendHealth(resourceGroupName: string, applicationGatewayName: string, options?: ApplicationGatewaysBackendHealthOptionalParams): Promise, ApplicationGatewaysBackendHealthResponse>>; @@ -1102,9 +1073,6 @@ export type ApplicationGatewaysUpdateTagsResponse = ApplicationGateway; // @public export type ApplicationGatewayTier = string; -// @public -export type ApplicationGatewayTierTypes = string; - // @public export interface ApplicationGatewayTrustedClientCertificate extends SubResource { readonly clientCertIssuerDN?: string; @@ -1147,59 +1115,6 @@ export interface ApplicationGatewayUrlPathMap extends SubResource { readonly type?: string; } -// @public -export interface ApplicationGatewayWafDynamicManifestResult { - availableRuleSets?: ApplicationGatewayFirewallManifestRuleSet[]; - id?: string; - readonly name?: string; - ruleSetType?: string; - ruleSetVersion?: string; - readonly type?: string; -} - -// @public -export interface ApplicationGatewayWafDynamicManifestResultList { - nextLink?: string; - value?: ApplicationGatewayWafDynamicManifestResult[]; -} - -// @public -export interface ApplicationGatewayWafDynamicManifests { - list(location: string, options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface ApplicationGatewayWafDynamicManifestsDefault { - get(location: string, options?: ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams): Promise; -} - -// @public -export interface ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationGatewayWafDynamicManifestsDefaultGetResponse = ApplicationGatewayWafDynamicManifestResult; - -// @public -export interface ApplicationGatewayWafDynamicManifestsGetNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationGatewayWafDynamicManifestsGetNextResponse = ApplicationGatewayWafDynamicManifestResultList; - -// @public -export interface ApplicationGatewayWafDynamicManifestsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type ApplicationGatewayWafDynamicManifestsGetResponse = ApplicationGatewayWafDynamicManifestResultList; - -// @public -export type ApplicationGatewayWafRuleActionTypes = string; - -// @public -export type ApplicationGatewayWafRuleStateTypes = string; - // @public export interface ApplicationGatewayWebApplicationFirewallConfiguration { disabledRuleGroups?: ApplicationGatewayFirewallDisabledRuleGroup[]; @@ -2741,14 +2656,6 @@ export type CoverageLevel = string; // @public export type CreatedByType = string; -// @public -export interface Criterion { - asPath?: string[]; - community?: string[]; - matchCondition?: RouteMapMatchCondition; - routePrefix?: string[]; -} - // @public export interface CrossTenantScopes { readonly managementGroups?: string[]; @@ -2764,19 +2671,15 @@ export interface CustomDnsConfigPropertiesFormat { // @public export interface CustomIpPrefix extends Resource { - asn?: string; authorizationMessage?: string; readonly childCustomIpPrefixes?: SubResource[]; cidr?: string; commissionedState?: CommissionedState; customIpPrefixParent?: SubResource; readonly etag?: string; - expressRouteAdvertise?: boolean; extendedLocation?: ExtendedLocation; readonly failedReason?: string; - geo?: Geo; noInternetAdvertise?: boolean; - prefixType?: CustomIpPrefixType; readonly provisioningState?: ProvisioningState; readonly publicIpPrefixes?: SubResource[]; readonly resourceGuid?: string; @@ -2860,9 +2763,6 @@ export interface CustomIpPrefixListResult { value?: CustomIpPrefix[]; } -// @public -export type CustomIpPrefixType = string; - // @public export interface DdosCustomPolicies { beginCreateOrUpdate(resourceGroupName: string, ddosCustomPolicyName: string, parameters: DdosCustomPolicy, options?: DdosCustomPoliciesCreateOrUpdateOptionalParams): Promise, DdosCustomPoliciesCreateOrUpdateResponse>>; @@ -2905,10 +2805,18 @@ export type DdosCustomPoliciesUpdateTagsResponse = DdosCustomPolicy; // @public export interface DdosCustomPolicy extends Resource { readonly etag?: string; + protocolCustomSettings?: ProtocolCustomSettingsFormat[]; readonly provisioningState?: ProvisioningState; + readonly publicIPAddresses?: SubResource[]; readonly resourceGuid?: string; } +// @public +export type DdosCustomPolicyProtocol = string; + +// @public +export type DdosCustomPolicyTriggerSensitivityOverride = string; + // @public export interface DdosProtectionPlan { readonly etag?: string; @@ -2916,7 +2824,6 @@ export interface DdosProtectionPlan { location?: string; readonly name?: string; readonly provisioningState?: ProvisioningState; - readonly publicIpAddresses?: SubResource[]; readonly resourceGuid?: string; tags?: { [propertyName: string]: string; @@ -3002,12 +2909,13 @@ export type DdosProtectionPlansUpdateTagsResponse = DdosProtectionPlan; // @public export interface DdosSettings { - ddosProtectionPlan?: SubResource; - protectionMode?: DdosSettingsProtectionMode; + ddosCustomPolicy?: SubResource; + protectedIP?: boolean; + protectionCoverage?: DdosSettingsProtectionCoverage; } // @public -export type DdosSettingsProtectionMode = string; +export type DdosSettingsProtectionCoverage = string; // @public export interface DefaultAdminRule extends BaseAdminRule { @@ -3316,13 +3224,6 @@ export interface EffectiveRouteListResult { value?: EffectiveRoute[]; } -// @public -export interface EffectiveRouteMapRoute { - asPath?: string; - bgpCommunities?: string; - prefix?: string[]; -} - // @public export type EffectiveRouteSource = string; @@ -3876,7 +3777,6 @@ export type ExpressRouteCircuitsUpdateTagsResponse = ExpressRouteCircuit; export interface ExpressRouteConnection extends SubResource { authorizationKey?: string; enableInternetSecurity?: boolean; - enablePrivateLinkFastPath?: boolean; expressRouteCircuitPeering?: ExpressRouteCircuitPeeringId; expressRouteGatewayBypass?: boolean; name: string; @@ -4138,7 +4038,6 @@ export type ExpressRouteCrossConnectionsUpdateTagsResponse = ExpressRouteCrossCo // @public export interface ExpressRouteGateway extends Resource { - allowNonVirtualWanTraffic?: boolean; autoScaleConfiguration?: ExpressRouteGatewayPropertiesAutoScaleConfiguration; readonly etag?: string; expressRouteConnections?: ExpressRouteConnection[]; @@ -4223,7 +4122,6 @@ export type ExpressRouteGatewaysUpdateTagsResponse = ExpressRouteGateway; // @public export interface ExpressRouteLink extends SubResource { adminState?: ExpressRouteLinkAdminState; - readonly coloLocation?: string; readonly connectorType?: ExpressRouteLinkConnectorType; readonly etag?: string; readonly interfaceName?: string; @@ -4298,7 +4196,6 @@ export type ExpressRoutePeeringType = string; export interface ExpressRoutePort extends Resource { readonly allocationDate?: string; bandwidthInGbps?: number; - billingType?: ExpressRoutePortsBillingType; readonly circuits?: SubResource[]; encapsulation?: ExpressRoutePortsEncapsulation; readonly etag?: string; @@ -4397,9 +4294,6 @@ export interface ExpressRoutePorts { updateTags(resourceGroupName: string, expressRoutePortName: string, parameters: TagsObject, options?: ExpressRoutePortsUpdateTagsOptionalParams): Promise; } -// @public -export type ExpressRoutePortsBillingType = string; - // @public export interface ExpressRoutePortsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -5169,9 +5063,6 @@ export interface GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParam // @public export type GeneratevirtualwanvpnserverconfigurationvpnprofileResponse = VpnProfileResponse; -// @public -export type Geo = string; - // @public export interface GetActiveSessionsNextOptionalParams extends coreClient.OperationOptions { } @@ -5202,18 +5093,6 @@ export interface GetBastionShareableLinkOptionalParams extends coreClient.Operat // @public export type GetBastionShareableLinkResponse = BastionShareableLinkListResult; -// @public -export interface GetInboundRoutesParameters { - connectionType?: string; - resourceUri?: string; -} - -// @public -export interface GetOutboundRoutesParameters { - connectionType?: string; - resourceUri?: string; -} - // @public export interface GetVpnSitesConfigurationRequest { outputBlobSasUrl: string; @@ -5838,23 +5717,12 @@ export type IsGlobal = string; // @public export type IssueType = string; -// @public -export type IsWorkloadProtected = string; - // @public export enum KnownAccess { Allow = "Allow", Deny = "Deny" } -// @public -export enum KnownActionType { - Allow = "Allow", - AnomalyScoring = "AnomalyScoring", - Block = "Block", - Log = "Log" -} - // @public export enum KnownAddressPrefixType { IPPrefix = "IPPrefix", @@ -5876,12 +5744,6 @@ export enum KnownApplicationGatewayBackendHealthServerHealth { Up = "Up" } -// @public -export enum KnownApplicationGatewayClientRevocationOptions { - None = "None", - Ocsp = "OCSP" -} - // @public export enum KnownApplicationGatewayCookieBasedAffinity { Disabled = "Disabled", @@ -5937,14 +5799,6 @@ export enum KnownApplicationGatewayRequestRoutingRuleType { PathBasedRouting = "PathBasedRouting" } -// @public -export enum KnownApplicationGatewayRuleSetStatusOptions { - Deprecated = "Deprecated", - GA = "GA", - Preview = "Preview", - Supported = "Supported" -} - // @public export enum KnownApplicationGatewaySkuName { StandardLarge = "Standard_Large", @@ -6020,29 +5874,6 @@ export enum KnownApplicationGatewayTier { WAFV2 = "WAF_v2" } -// @public -export enum KnownApplicationGatewayTierTypes { - Standard = "Standard", - StandardV2 = "Standard_v2", - WAF = "WAF", - WAFV2 = "WAF_v2" -} - -// @public -export enum KnownApplicationGatewayWafRuleActionTypes { - Allow = "Allow", - AnomalyScoring = "AnomalyScoring", - Block = "Block", - Log = "Log", - None = "None" -} - -// @public -export enum KnownApplicationGatewayWafRuleStateTypes { - Disabled = "Disabled", - Enabled = "Enabled" -} - // @public export enum KnownAssociationType { Associated = "Associated", @@ -6148,7 +5979,6 @@ export enum KnownCommissionedState { CommissionedNoInternetAdvertise = "CommissionedNoInternetAdvertise", Commissioning = "Commissioning", Decommissioning = "Decommissioning", - Deprovisioned = "Deprovisioned", Deprovisioning = "Deprovisioning", Provisioned = "Provisioned", Provisioning = "Provisioning" @@ -6230,17 +6060,24 @@ export enum KnownCreatedByType { } // @public -export enum KnownCustomIpPrefixType { - Child = "Child", - Parent = "Parent", - Singular = "Singular" +export enum KnownDdosCustomPolicyProtocol { + Syn = "Syn", + Tcp = "Tcp", + Udp = "Udp" } // @public -export enum KnownDdosSettingsProtectionMode { - Disabled = "Disabled", - Enabled = "Enabled", - VirtualNetworkInherited = "VirtualNetworkInherited" +export enum KnownDdosCustomPolicyTriggerSensitivityOverride { + Default = "Default", + High = "High", + Low = "Low", + Relaxed = "Relaxed" +} + +// @public +export enum KnownDdosSettingsProtectionCoverage { + Basic = "Basic", + Standard = "Standard" } // @public @@ -6406,12 +6243,6 @@ export enum KnownExpressRoutePortAuthorizationUseStatus { InUse = "InUse" } -// @public -export enum KnownExpressRoutePortsBillingType { - MeteredData = "MeteredData", - UnlimitedData = "UnlimitedData" -} - // @public export enum KnownExpressRoutePortsEncapsulation { Dot1Q = "Dot1Q", @@ -6508,19 +6339,6 @@ export enum KnownGatewayLoadBalancerTunnelProtocol { Vxlan = "VXLAN" } -// @public -export enum KnownGeo { - Afri = "AFRI", - Apac = "APAC", - AQ = "AQ", - Euro = "EURO", - Global = "GLOBAL", - Latam = "LATAM", - ME = "ME", - NAM = "NAM", - Oceania = "OCEANIA" -} - // @public export enum KnownGroupConnectivity { DirectlyConnected = "DirectlyConnected", @@ -6654,12 +6472,6 @@ export enum KnownIssueType { UserDefinedRoute = "UserDefinedRoute" } -// @public -export enum KnownIsWorkloadProtected { - False = "False", - True = "True" -} - // @public export enum KnownLoadBalancerBackendAddressAdminState { Down = "Down", @@ -6697,8 +6509,7 @@ export enum KnownLoadDistribution { // @public export enum KnownManagedRuleEnabledState { - Disabled = "Disabled", - Enabled = "Enabled" + Disabled = "Disabled" } // @public @@ -6709,7 +6520,6 @@ export enum KnownNatGatewaySkuName { // @public export enum KnownNetworkIntentPolicyBasedService { All = "All", - AllowRulesOnly = "AllowRulesOnly", None = "None" } @@ -6752,13 +6562,6 @@ export enum KnownNextHopType { VnetLocal = "VnetLocal" } -// @public -export enum KnownNextStep { - Continue = "Continue", - Terminate = "Terminate", - Unknown = "Unknown" -} - // @public export enum KnownOfficeTrafficCategory { All = "All", @@ -6931,24 +6734,6 @@ export enum KnownRouteFilterRuleType { Community = "Community" } -// @public -export enum KnownRouteMapActionType { - Add = "Add", - Drop = "Drop", - Remove = "Remove", - Replace = "Replace", - Unknown = "Unknown" -} - -// @public -export enum KnownRouteMapMatchCondition { - Contains = "Contains", - Equals = "Equals", - NotContains = "NotContains", - NotEquals = "NotEquals", - Unknown = "Unknown" -} - // @public export enum KnownRouteNextHopType { Internet = "Internet", @@ -7204,12 +6989,6 @@ export enum KnownVirtualWanSecurityProviderType { Native = "Native" } -// @public -export enum KnownVnetLocalRouteOverrideCriteria { - Contains = "Contains", - Equal = "Equal" -} - // @public export enum KnownVpnAuthenticationType { AAD = "AAD", @@ -7346,14 +7125,12 @@ export enum KnownWebApplicationFirewallTransform { Lowercase = "Lowercase", RemoveNulls = "RemoveNulls", Trim = "Trim", - Uppercase = "Uppercase", UrlDecode = "UrlDecode", UrlEncode = "UrlEncode" } // @public export interface ListActiveConnectivityConfigurationsOptionalParams extends coreClient.OperationOptions { - top?: number; } // @public @@ -7361,7 +7138,6 @@ export type ListActiveConnectivityConfigurationsResponse = ActiveConnectivityCon // @public export interface ListActiveSecurityAdminRulesOptionalParams extends coreClient.OperationOptions { - top?: number; } // @public @@ -7381,7 +7157,6 @@ export interface ListHubVirtualNetworkConnectionsResult { // @public export interface ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams extends coreClient.OperationOptions { - top?: number; } // @public @@ -7389,7 +7164,6 @@ export type ListNetworkManagerEffectiveConnectivityConfigurationsResponse = Netw // @public export interface ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams extends coreClient.OperationOptions { - top?: number; } // @public @@ -7401,12 +7175,6 @@ export interface ListP2SVpnGatewaysResult { value?: P2SVpnGateway[]; } -// @public -export interface ListRouteMapsResult { - nextLink?: string; - value?: RouteMap[]; -} - // @public export interface ListRoutingIntentResult { nextLink?: string; @@ -7964,7 +7732,6 @@ export interface ManagedRuleGroupOverride { // @public export interface ManagedRuleOverride { - action?: ActionType; ruleId: string; state?: ManagedRuleEnabledState; } @@ -8354,7 +8121,6 @@ export interface NetworkIntentPolicyConfiguration { // @public export interface NetworkInterface extends Resource { auxiliaryMode?: NetworkInterfaceAuxiliaryMode; - disableTcpStateTracking?: boolean; dnsSettings?: NetworkInterfaceDnsSettings; readonly dscpConfiguration?: SubResource; enableAcceleratedNetworking?: boolean; @@ -8767,10 +8533,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) applicationGateways: ApplicationGateways; // (undocumented) - applicationGatewayWafDynamicManifests: ApplicationGatewayWafDynamicManifests; - // (undocumented) - applicationGatewayWafDynamicManifestsDefault: ApplicationGatewayWafDynamicManifestsDefault; - // (undocumented) applicationSecurityGroups: ApplicationSecurityGroups; // (undocumented) availableDelegations: AvailableDelegations; @@ -8943,8 +8705,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) routeFilters: RouteFilters; // (undocumented) - routeMaps: RouteMaps; - // (undocumented) routes: Routes; // (undocumented) routeTables: RouteTables; @@ -8980,8 +8740,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { // (undocumented) usages: Usages; // (undocumented) - vipSwap: VipSwap; - // (undocumented) virtualApplianceSites: VirtualApplianceSites; // (undocumented) virtualApplianceSkus: VirtualApplianceSkus; @@ -9107,7 +8865,6 @@ export interface NetworkManagerDeploymentStatus { // @public export interface NetworkManagerDeploymentStatusListOptionalParams extends coreClient.OperationOptions { - top?: number; } // @public @@ -9773,9 +9530,6 @@ export interface NextHopResult { // @public export type NextHopType = string; -// @public -export type NextStep = string; - // @public export interface O365BreakOutCategoryPolicies { allow?: boolean; @@ -10196,13 +9950,6 @@ export interface PacketCaptureStorageLocation { // @public export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; -// @public -export interface Parameter { - asPath?: string[]; - community?: string[]; - routePrefix?: string[]; -} - // @public export interface PatchObject { tags?: { @@ -10736,7 +10483,6 @@ export interface Probe extends SubResource { name?: string; numberOfProbes?: number; port?: number; - probeThreshold?: number; protocol?: ProbeProtocol; readonly provisioningState?: ProvisioningState; requestPath?: string; @@ -10763,6 +10509,14 @@ export interface ProtocolConfiguration { httpConfiguration?: HttpConfiguration; } +// @public +export interface ProtocolCustomSettingsFormat { + protocol?: DdosCustomPolicyProtocol; + sourceRateOverride?: string; + triggerRateOverride?: string; + triggerSensitivityOverride?: DdosCustomPolicyTriggerSensitivityOverride; +} + // @public export type ProtocolType = string; @@ -10804,8 +10558,6 @@ export interface PublicIPAddressDnsSettings { export interface PublicIPAddresses { beginCreateOrUpdate(resourceGroupName: string, publicIpAddressName: string, parameters: PublicIPAddress, options?: PublicIPAddressesCreateOrUpdateOptionalParams): Promise, PublicIPAddressesCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, publicIpAddressName: string, parameters: PublicIPAddress, options?: PublicIPAddressesCreateOrUpdateOptionalParams): Promise; - beginDdosProtectionStatus(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDdosProtectionStatusOptionalParams): Promise, PublicIPAddressesDdosProtectionStatusResponse>>; - beginDdosProtectionStatusAndWait(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDdosProtectionStatusOptionalParams): Promise; beginDelete(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesDeleteOptionalParams): Promise; get(resourceGroupName: string, publicIpAddressName: string, options?: PublicIPAddressesGetOptionalParams): Promise; @@ -10829,15 +10581,6 @@ export interface PublicIPAddressesCreateOrUpdateOptionalParams extends coreClien // @public export type PublicIPAddressesCreateOrUpdateResponse = PublicIPAddress; -// @public -export interface PublicIPAddressesDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type PublicIPAddressesDdosProtectionStatusResponse = PublicIpDdosProtectionStatusResult; - // @public export interface PublicIPAddressesDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -10980,14 +10723,6 @@ export type PublicIPAddressSkuName = string; // @public export type PublicIPAddressSkuTier = string; -// @public -export interface PublicIpDdosProtectionStatusResult { - ddosProtectionPlanId?: string; - isWorkloadProtected?: IsWorkloadProtected; - publicIpAddress?: string; - publicIpAddressId?: string; -} - // @public export interface PublicIPPrefix extends Resource { customIPPrefix?: SubResource; @@ -11398,77 +11133,6 @@ export interface RouteListResult { value?: Route[]; } -// @public -export interface RouteMap extends SubResource { - associatedInboundConnections?: string[]; - associatedOutboundConnections?: string[]; - readonly etag?: string; - readonly name?: string; - readonly provisioningState?: ProvisioningState; - rules?: RouteMapRule[]; - readonly type?: string; -} - -// @public -export type RouteMapActionType = string; - -// @public -export type RouteMapMatchCondition = string; - -// @public -export interface RouteMapRule { - actions?: Action[]; - matchCriteria?: Criterion[]; - name?: string; - nextStepIfMatched?: NextStep; -} - -// @public -export interface RouteMaps { - beginCreateOrUpdate(resourceGroupName: string, virtualHubName: string, routeMapName: string, routeMapParameters: RouteMap, options?: RouteMapsCreateOrUpdateOptionalParams): Promise, RouteMapsCreateOrUpdateResponse>>; - beginCreateOrUpdateAndWait(resourceGroupName: string, virtualHubName: string, routeMapName: string, routeMapParameters: RouteMap, options?: RouteMapsCreateOrUpdateOptionalParams): Promise; - beginDelete(resourceGroupName: string, virtualHubName: string, routeMapName: string, options?: RouteMapsDeleteOptionalParams): Promise, void>>; - beginDeleteAndWait(resourceGroupName: string, virtualHubName: string, routeMapName: string, options?: RouteMapsDeleteOptionalParams): Promise; - get(resourceGroupName: string, virtualHubName: string, routeMapName: string, options?: RouteMapsGetOptionalParams): Promise; - list(resourceGroupName: string, virtualHubName: string, options?: RouteMapsListOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface RouteMapsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export type RouteMapsCreateOrUpdateResponse = RouteMap; - -// @public -export interface RouteMapsDeleteOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface RouteMapsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type RouteMapsGetResponse = RouteMap; - -// @public -export interface RouteMapsListNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type RouteMapsListNextResponse = ListRouteMapsResult; - -// @public -export interface RouteMapsListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type RouteMapsListResponse = ListRouteMapsResult; - // @public export type RouteNextHopType = string; @@ -11607,8 +11271,6 @@ export type RouteTablesUpdateTagsResponse = RouteTable; // @public export interface RoutingConfiguration { associatedRouteTable?: SubResource; - inboundRouteMap?: SubResource; - outboundRouteMap?: SubResource; propagatedRouteTables?: PropagatedRouteTable; vnetRoutes?: VnetRoute; } @@ -12332,9 +11994,6 @@ export interface Sku { name?: BastionHostSkuName; } -// @public -export type SlotType = "Production" | "Staging"; - // @public export interface StaticMember extends ChildResource { readonly provisioningState?: ProvisioningState; @@ -12400,12 +12059,6 @@ export interface StaticRoute { nextHopIpAddress?: string; } -// @public -export interface StaticRoutesConfig { - readonly propagateStaticRoutes?: boolean; - vnetLocalRouteOverrideCriteria?: VnetLocalRouteOverrideCriteria; -} - // @public export interface Subnet extends SubResource { addressPrefix?: string; @@ -12563,25 +12216,6 @@ export interface SupportedSecurityProvidersOptionalParams extends coreClient.Ope // @public export type SupportedSecurityProvidersResponse = VirtualWanSecurityProviders; -// @public -export interface SwapResource { - readonly id?: string; - readonly name?: string; - properties?: SwapResourceProperties; - readonly type?: string; -} - -// @public -export interface SwapResourceListResult { - // (undocumented) - value?: SwapResource[]; -} - -// @public -export interface SwapResourceProperties { - slotType?: SlotType; -} - // @public export type SyncRemoteAddressSpace = string; @@ -12771,34 +12405,6 @@ export interface VerificationIPFlowResult { ruleName?: string; } -// @public -export interface VipSwap { - beginCreate(groupName: string, resourceName: string, parameters: SwapResource, options?: VipSwapCreateOptionalParams): Promise, void>>; - beginCreateAndWait(groupName: string, resourceName: string, parameters: SwapResource, options?: VipSwapCreateOptionalParams): Promise; - get(groupName: string, resourceName: string, options?: VipSwapGetOptionalParams): Promise; - list(groupName: string, resourceName: string, options?: VipSwapListOptionalParams): Promise; -} - -// @public -export interface VipSwapCreateOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface VipSwapGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type VipSwapGetResponse = SwapResource; - -// @public -export interface VipSwapListOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type VipSwapListResponse = SwapResourceListResult; - // @public export interface VirtualApplianceNicProperties { readonly name?: string; @@ -12910,7 +12516,6 @@ export interface VirtualHub extends Resource { p2SVpnGateway?: SubResource; preferredRoutingGateway?: PreferredRoutingGateway; readonly provisioningState?: ProvisioningState; - readonly routeMaps?: SubResource[]; routeTable?: VirtualHubRouteTable; readonly routingState?: RoutingState; securityPartnerProvider?: SubResource; @@ -13143,10 +12748,6 @@ export interface VirtualHubs { beginDeleteAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsDeleteOptionalParams): Promise; beginGetEffectiveVirtualHubRoutes(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise, void>>; beginGetEffectiveVirtualHubRoutesAndWait(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams): Promise; - beginGetInboundRoutes(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise, void>>; - beginGetInboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getInboundRoutesParameters: GetInboundRoutesParameters, options?: VirtualHubsGetInboundRoutesOptionalParams): Promise; - beginGetOutboundRoutes(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise, void>>; - beginGetOutboundRoutesAndWait(resourceGroupName: string, virtualHubName: string, getOutboundRoutesParameters: GetOutboundRoutesParameters, options?: VirtualHubsGetOutboundRoutesOptionalParams): Promise; get(resourceGroupName: string, virtualHubName: string, options?: VirtualHubsGetOptionalParams): Promise; list(options?: VirtualHubsListOptionalParams): PagedAsyncIterableIterator; listByResourceGroup(resourceGroupName: string, options?: VirtualHubsListByResourceGroupOptionalParams): PagedAsyncIterableIterator; @@ -13175,22 +12776,10 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams extends c updateIntervalInMs?: number; } -// @public -export interface VirtualHubsGetInboundRoutesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export interface VirtualHubsGetOptionalParams extends coreClient.OperationOptions { } -// @public -export interface VirtualHubsGetOutboundRoutesOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - // @public export type VirtualHubsGetResponse = VirtualHub; @@ -13259,12 +12848,6 @@ export interface VirtualNetworkConnectionGatewayReference { id: string; } -// @public -export interface VirtualNetworkDdosProtectionStatusResult { - nextLink?: string; - value?: PublicIpDdosProtectionStatusResult[]; -} - // @public export interface VirtualNetworkEncryption { enabled: boolean; @@ -13277,8 +12860,6 @@ export type VirtualNetworkEncryptionEnforcement = string; // @public export interface VirtualNetworkGateway extends Resource { active?: boolean; - allowRemoteVnetTraffic?: boolean; - allowVirtualWanTraffic?: boolean; bgpSettings?: BgpSettings; customRoutes?: AddressSpace; disableIPSecReplayProtection?: boolean; @@ -13296,7 +12877,6 @@ export interface VirtualNetworkGateway extends Resource { readonly provisioningState?: ProvisioningState; readonly resourceGuid?: string; sku?: VirtualNetworkGatewaySku; - virtualNetworkGatewayPolicyGroups?: VirtualNetworkGatewayPolicyGroup[]; vNetExtendedLocationResourceId?: string; vpnClientConfiguration?: VpnClientConfiguration; vpnGatewayGeneration?: VpnGatewayGeneration; @@ -13314,7 +12894,6 @@ export interface VirtualNetworkGatewayConnection extends Resource { readonly egressBytesTransferred?: number; egressNatRules?: SubResource[]; enableBgp?: boolean; - enablePrivateLinkFastPath?: boolean; readonly etag?: string; expressRouteGatewayBypass?: boolean; gatewayCustomBgpIpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; @@ -13344,7 +12923,6 @@ export interface VirtualNetworkGatewayConnectionListEntity extends Resource { connectionType: VirtualNetworkGatewayConnectionType; readonly egressBytesTransferred?: number; enableBgp?: boolean; - enablePrivateLinkFastPath?: boolean; readonly etag?: string; expressRouteGatewayBypass?: boolean; gatewayCustomBgpIpAddresses?: GatewayCustomBgpIpAddressIpConfiguration[]; @@ -13598,24 +13176,6 @@ export interface VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayOptiona // @public export type VirtualNetworkGatewayNatRulesListByVirtualNetworkGatewayResponse = ListVirtualNetworkGatewayNatRulesResult; -// @public -export interface VirtualNetworkGatewayPolicyGroup extends SubResource { - readonly etag?: string; - isDefault?: boolean; - name?: string; - policyMembers?: VirtualNetworkGatewayPolicyGroupMember[]; - priority?: number; - readonly provisioningState?: ProvisioningState; - readonly vngClientConnectionConfigurations?: SubResource[]; -} - -// @public -export interface VirtualNetworkGatewayPolicyGroupMember { - attributeType?: VpnPolicyMemberAttributeType; - attributeValue?: string; - name?: string; -} - // @public export interface VirtualNetworkGateways { beginCreateOrUpdate(resourceGroupName: string, virtualNetworkGatewayName: string, parameters: VirtualNetworkGateway, options?: VirtualNetworkGatewaysCreateOrUpdateOptionalParams): Promise, VirtualNetworkGatewaysCreateOrUpdateResponse>>; @@ -13989,7 +13549,6 @@ export interface VirtualNetworks { beginCreateOrUpdateAndWait(resourceGroupName: string, virtualNetworkName: string, parameters: VirtualNetwork, options?: VirtualNetworksCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksDeleteOptionalParams): Promise; - beginListDdosProtectionStatusAndWait(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksListDdosProtectionStatusOptionalParams): PagedAsyncIterableIterator; checkIPAddressAvailability(resourceGroupName: string, virtualNetworkName: string, ipAddress: string, options?: VirtualNetworksCheckIPAddressAvailabilityOptionalParams): Promise; get(resourceGroupName: string, virtualNetworkName: string, options?: VirtualNetworksGetOptionalParams): Promise; list(resourceGroupName: string, options?: VirtualNetworksListOptionalParams): PagedAsyncIterableIterator; @@ -14042,26 +13601,6 @@ export interface VirtualNetworksListAllOptionalParams extends coreClient.Operati // @public export type VirtualNetworksListAllResponse = VirtualNetworkListResult; -// @public -export interface VirtualNetworksListDdosProtectionStatusNextOptionalParams extends coreClient.OperationOptions { - skipToken?: string; - top?: number; -} - -// @public -export type VirtualNetworksListDdosProtectionStatusNextResponse = VirtualNetworkDdosProtectionStatusResult; - -// @public -export interface VirtualNetworksListDdosProtectionStatusOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - skipToken?: string; - top?: number; - updateIntervalInMs?: number; -} - -// @public -export type VirtualNetworksListDdosProtectionStatusResponse = VirtualNetworkDdosProtectionStatusResult; - // @public export interface VirtualNetworksListNextOptionalParams extends coreClient.OperationOptions { } @@ -14451,23 +13990,10 @@ export interface VirtualWanVpnProfileParameters { export interface Vm extends Resource { } -// @public -export type VnetLocalRouteOverrideCriteria = string; - // @public export interface VnetRoute { readonly bgpConnections?: SubResource[]; staticRoutes?: StaticRoute[]; - staticRoutesConfig?: StaticRoutesConfig; -} - -// @public -export interface VngClientConnectionConfiguration extends SubResource { - readonly etag?: string; - name?: string; - readonly provisioningState?: ProvisioningState; - virtualNetworkGatewayPolicyGroups?: SubResource[]; - vpnClientAddressPool?: AddressSpace; } // @public @@ -14481,7 +14007,6 @@ export interface VpnClientConfiguration { radiusServerAddress?: string; radiusServers?: RadiusServer[]; radiusServerSecret?: string; - vngClientConnectionConfigurations?: VngClientConnectionConfiguration[]; vpnAuthenticationTypes?: VpnAuthenticationType[]; vpnClientAddressPool?: AddressSpace; vpnClientIpsecPolicies?: IpsecPolicy[]; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index 2b6b40d13e2c..0b299e0870fe 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -249,10 +249,12 @@ export interface PublicIPAddressDnsSettings { /** Contains the DDoS protection settings of the public IP. */ export interface DdosSettings { - /** The DDoS protection mode of the public IP */ - protectionMode?: DdosSettingsProtectionMode; - /** The DDoS protection plan associated with the public IP. Can only be set if ProtectionMode is Enabled */ - ddosProtectionPlan?: SubResource; + /** The DDoS custom policy associated with the public IP. */ + ddosCustomPolicy?: SubResource; + /** The DDoS protection policy customizability of the public IP. Only standard coverage will have the ability to be customized. */ + protectionCoverage?: DdosSettingsProtectionCoverage; + /** Enables DDoS protection on the public IP. */ + protectedIP?: boolean; } /** Contains the IpTag associated with the object. */ @@ -364,8 +366,6 @@ export interface ApplicationGatewayCustomError { export interface ApplicationGatewayClientAuthConfiguration { /** Verify client certificate issuer name on the application gateway. */ verifyClientCertIssuerDN?: boolean; - /** Verify client certificate revocation status. */ - verifyClientRevocation?: ApplicationGatewayClientRevocationOptions; } /** Rewrite rule of an application gateway. */ @@ -647,12 +647,6 @@ export interface ApplicationGatewayFirewallRuleGroup { export interface ApplicationGatewayFirewallRule { /** The identifier of the web application firewall rule. */ ruleId: number; - /** The string representation of the web application firewall rule identifier. */ - ruleIdString?: string; - /** The string representation of the web application firewall rule state. */ - state?: ApplicationGatewayWafRuleStateTypes; - /** The string representation of the web application firewall rule action. */ - action?: ApplicationGatewayWafRuleActionTypes; /** The description of the web application firewall rule. */ description?: string; } @@ -665,50 +659,6 @@ export interface ApplicationGatewayAvailableSslPredefinedPolicies { nextLink?: string; } -/** Response for ApplicationGatewayWafDynamicManifest API service call. */ -export interface ApplicationGatewayWafDynamicManifestResult { - /** Resource ID. */ - id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** The available rulesets. */ - availableRuleSets?: ApplicationGatewayFirewallManifestRuleSet[]; - /** The type of the web application firewall rule set. */ - ruleSetType?: string; - /** The version of the web application firewall rule set type. */ - ruleSetVersion?: string; -} - -/** Properties of the web application firewall rule set. */ -export interface ApplicationGatewayFirewallManifestRuleSet { - /** The type of the web application firewall rule set. */ - ruleSetType: string; - /** The version of the web application firewall rule set type. */ - ruleSetVersion: string; - /** The rule set status */ - status?: ApplicationGatewayRuleSetStatusOptions; - /** Tier of an application gateway that support the rule set. */ - tiers?: ApplicationGatewayTierTypes[]; - /** The rule groups of the web application firewall rule set. */ - ruleGroups: ApplicationGatewayFirewallRuleGroup[]; -} - -/** Response for ApplicationGatewayWafDynamicManifests API service call. */ -export interface ApplicationGatewayWafDynamicManifestResultList { - /** The list of application gateway waf manifest. */ - value?: ApplicationGatewayWafDynamicManifestResult[]; - /** URL to get the next set of results. */ - nextLink?: string; -} - /** A list of application security groups. */ export interface ApplicationSecurityGroupListResult { /** A list of application security groups. */ @@ -1134,6 +1084,18 @@ export interface CustomIpPrefixListResult { nextLink?: string; } +/** DDoS custom policy properties. */ +export interface ProtocolCustomSettingsFormat { + /** The protocol for which the DDoS protection policy is being customized. */ + protocol?: DdosCustomPolicyProtocol; + /** The customized DDoS protection trigger rate. */ + triggerRateOverride?: string; + /** The customized DDoS protection source rate. */ + sourceRateOverride?: string; + /** 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. */ + triggerSensitivityOverride?: DdosCustomPolicyTriggerSensitivityOverride; +} + /** A DDoS protection plan in a resource group. */ export interface DdosProtectionPlan { /** @@ -1170,11 +1132,6 @@ export interface DdosProtectionPlan { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** - * The list of public IPs associated with the DDoS protection plan resource. This list is read-only. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly publicIpAddresses?: SubResource[]; /** * The list of virtual networks associated with the DDoS protection plan resource. This list is read-only. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1570,17 +1527,6 @@ export interface ExpressRoutePortAuthorizationListResult { nextLink?: string; } -/** Response for ListExpressRouteProviderPort API service call. */ -export interface ExpressRouteProviderPortListResult { - /** A list of ExpressRouteProviderPort resources. */ - value?: ExpressRouteProviderPort[]; - /** - * The URL to get the next set of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - /** ThreatIntel Whitelist for Firewall Policy. */ export interface FirewallPolicyThreatIntelWhitelist { /** List of IP addresses for the ThreatIntel Whitelist. */ @@ -3953,18 +3899,6 @@ export interface AutoApprovedPrivateLinkService { privateLinkService?: string; } -/** Response for GetPublicIpAddressDdosProtectionStatusOperation API service call. */ -export interface PublicIpDdosProtectionStatusResult { - /** Public IP ARM resource ID */ - publicIpAddressId?: string; - /** IP Address of the Public IP Resource */ - publicIpAddress?: string; - /** Value indicating whether the IP address is DDoS workload protected or not. */ - isWorkloadProtected?: IsWorkloadProtected; - /** DDoS protection plan Resource Id of a if IP address is protected through a plan. */ - ddosProtectionPlanId?: string; -} - /** SKU of a public IP prefix. */ export interface PublicIPPrefixSku { /** Name of a public IP prefix SKU. */ @@ -4369,14 +4303,6 @@ export interface VirtualNetworkUsageName { readonly value?: string; } -/** Response for GetVirtualNetworkDdosProtectionStatusOperation. */ -export interface VirtualNetworkDdosProtectionStatusResult { - /** The Ddos Protection Status Result for each public ip under a virtual network. */ - value?: PublicIpDdosProtectionStatusResult[]; - /** The URL to get the next set of results. */ - nextLink?: string; -} - /** VirtualNetworkGatewaySku details. */ export interface VirtualNetworkGatewaySku { /** Gateway SKU name. */ @@ -4416,8 +4342,6 @@ export interface VpnClientConfiguration { aadAudience?: string; /** The AADIssuer property of the VirtualNetworkGateway resource for vpn client connection used for AAD authentication. */ aadIssuer?: string; - /** per ip address pool connection policy for virtual network gateway P2S client. */ - vngClientConnectionConfigurations?: VngClientConnectionConfiguration[]; } /** An IPSec Policy configuration for a virtual network gateway connection. */ @@ -4450,16 +4374,6 @@ export interface RadiusServer { radiusServerSecret?: string; } -/** Vpn Client Connection configuration PolicyGroup member */ -export interface VirtualNetworkGatewayPolicyGroupMember { - /** Name of the VirtualNetworkGatewayPolicyGroupMember. */ - name?: string; - /** The Vpn Policy member attribute type. */ - attributeType?: VpnPolicyMemberAttributeType; - /** The value of Attribute used for this VirtualNetworkGatewayPolicyGroupMember. */ - attributeValue?: string; -} - /** BGP settings details. */ export interface BgpSettings { /** The BGP speaker's ASN. */ @@ -4999,10 +4913,6 @@ export interface RoutingConfiguration { propagatedRouteTables?: PropagatedRouteTable; /** List of routes that control routing from VirtualHub into a virtual network connection. */ vnetRoutes?: VnetRoute; - /** The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes. */ - inboundRouteMap?: SubResource; - /** The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes. */ - outboundRouteMap?: SubResource; } /** The list of RouteTables to advertise the routes to. */ @@ -5015,8 +4925,6 @@ export interface PropagatedRouteTable { /** List of routes that control routing from VirtualHub into a virtual network connection. */ export interface VnetRoute { - /** Configuration for static routes on this HubVnetConnection. */ - staticRoutesConfig?: StaticRoutesConfig; /** List of all Static Routes. */ staticRoutes?: StaticRoute[]; /** @@ -5026,17 +4934,6 @@ export interface VnetRoute { readonly bgpConnections?: SubResource[]; } -/** Configuration for static routes on this HubVnetConnectionConfiguration for static routes on this HubVnetConnection. */ -export interface StaticRoutesConfig { - /** - * Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly propagateStaticRoutes?: boolean; - /** Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke. */ - vnetLocalRouteOverrideCriteria?: VnetLocalRouteOverrideCriteria; -} - /** List of all Static Routes. */ export interface StaticRoute { /** The name of the StaticRoute that is unique within a VnetRoute. */ @@ -5131,56 +5028,6 @@ export interface ListVirtualHubsResult { nextLink?: string; } -/** A RouteMap Rule. */ -export interface RouteMapRule { - /** The unique name for the rule. */ - name?: string; - /** List of matching criterion which will be applied to traffic. */ - matchCriteria?: Criterion[]; - /** List of actions which will be applied on a match. */ - actions?: Action[]; - /** Next step after rule is evaluated. Current supported behaviors are 'Continue'(to next rule) and 'Terminate'. */ - nextStepIfMatched?: NextStep; -} - -/** A matching criteria which matches routes based on route prefix, community, and AS path. */ -export interface Criterion { - /** List of route prefixes which this criteria matches. */ - routePrefix?: string[]; - /** List of BGP communities which this criteria matches. */ - community?: string[]; - /** List of AS paths which this criteria matches. */ - asPath?: string[]; - /** Match condition to apply RouteMap rules. */ - matchCondition?: RouteMapMatchCondition; -} - -/** Action to be taken on a route matching a RouteMap criterion. */ -export interface Action { - /** Type of action to be taken. Supported types are 'Remove', 'Add', 'Replace', and 'Drop.' */ - type?: RouteMapActionType; - /** List of parameters relevant to the action.For instance if type is drop then parameters has list of prefixes to be dropped.If type is add, parameters would have list of ASN numbers to be added */ - parameters?: Parameter[]; -} - -/** Parameters for an Action. */ -export interface Parameter { - /** List of route prefixes. */ - routePrefix?: string[]; - /** List of BGP communities. */ - community?: string[]; - /** List of AS paths. */ - asPath?: string[]; -} - -/** List of RouteMaps and a URL nextLink to get the next set of results. */ -export interface ListRouteMapsResult { - /** List of RouteMaps. */ - value?: RouteMap[]; - /** URL to get the next set of operation list results if there are any. */ - nextLink?: string; -} - /** List of HubVirtualNetworkConnections and a URL nextLink to get the next set of results. */ export interface ListHubVirtualNetworkConnectionsResult { /** List of HubVirtualNetworkConnections. */ @@ -5444,22 +5291,6 @@ export interface EffectiveRoutesParameters { virtualWanResourceType?: string; } -/** The parameters specifying the connection resource whose inbound routes are being requested. */ -export interface GetInboundRoutesParameters { - /** The connection resource whose inbound routes are being requested. */ - resourceUri?: string; - /** The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ - connectionType?: string; -} - -/** The parameters specifying the connection resource whose outbound routes are being requested. */ -export interface GetOutboundRoutesParameters { - /** The connection resource whose outbound routes are being requested. */ - resourceUri?: string; - /** The type of the specified connection resource like ExpressRouteConnection, HubVirtualNetworkConnection, VpnConnection and P2SConnection. */ - connectionType?: string; -} - /** The routing policy object used in a RoutingIntent resource. */ export interface RoutingPolicy { /** The unique name for the routing policy. */ @@ -5615,40 +5446,17 @@ export interface ManagedRuleOverride { ruleId: string; /** The state of the managed rule. Defaults to Disabled if not specified. */ state?: ManagedRuleEnabledState; - /** Describes the override action to be applied when rule matches. */ - action?: ActionType; } -/** SwapResource to represent slot type on the specified cloud service. */ -export interface SwapResource { - /** - * Resource Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Resource name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; +/** Response for ListExpressRouteProviderPort API service call. */ +export interface ExpressRouteProviderPortListResult { + /** A list of ExpressRouteProviderPort resources. */ + value?: ExpressRouteProviderPort[]; /** - * Resource type. + * The URL to get the next set of results. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; - /** Swap resource properties */ - properties?: SwapResourceProperties; -} - -/** Swap resource properties */ -export interface SwapResourceProperties { - /** Specifies slot info on a cloud service */ - slotType?: SlotType; -} - -/** SwapResource List with single entry to represent slot type on the specified cloud service. */ -export interface SwapResourceListResult { - value?: SwapResource[]; + readonly nextLink?: string; } /** Properties of the FirewallPolicyNatRuleCollectionAction. */ @@ -5726,16 +5534,6 @@ export interface VirtualHubEffectiveRoute { routeOrigin?: string; } -/** The effective RouteMap route configured on the connection resource. */ -export interface EffectiveRouteMapRoute { - /** The address prefix of the route. */ - prefix?: string[]; - /** BGP communities of the route. */ - bgpCommunities?: string; - /** The ASPath of this route. */ - asPath?: string; -} - /** IP configuration of an application gateway. Currently 1 public and 1 private IP configuration is allowed. */ export interface ApplicationGatewayIPConfiguration extends SubResource { /** Name of the IP configuration that is unique within an Application Gateway. */ @@ -7539,11 +7337,6 @@ export interface ExpressRouteLink extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly rackId?: string; - /** - * Cololocation for ExpressRoute Hybrid Direct. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly coloLocation?: string; /** * Physical fiber port type. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -7693,8 +7486,6 @@ export interface Probe extends SubResource { intervalInSeconds?: number; /** The number of probes where if no response, will result in stopping further traffic from being delivered to the endpoint. This values allows endpoints to be taken out of rotation faster or slower than the typical times used in Azure. */ numberOfProbes?: number; - /** The number of consecutive successful or failed probes in order to allow or deny traffic from being delivered to this endpoint. After failing the number of consecutive probes equal to this value, the endpoint will be taken out of rotation and require the same number of successful consecutive probes to be placed back in rotation. */ - probeThreshold?: number; /** The URI used for requesting health status from the VM. Path is required if a protocol is set to http. Otherwise, it is not allowed. There is no default value. */ requestPath?: string; /** @@ -8038,53 +7829,6 @@ export interface VpnClientRevokedCertificate extends SubResource { readonly provisioningState?: ProvisioningState; } -/** A vpn client connection configuration for client connection configuration. */ -export interface VngClientConnectionConfiguration extends SubResource { - /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ - name?: string; - /** - * 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; - /** The reference to the address space resource which represents Address space for P2S VpnClient. */ - vpnClientAddressPool?: AddressSpace; - /** List of references to virtualNetworkGatewayPolicyGroups */ - virtualNetworkGatewayPolicyGroups?: SubResource[]; - /** - * The provisioning state of the VngClientConnectionConfiguration resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; -} - -/** Parameters for VirtualNetworkGatewayPolicyGroup. */ -export interface VirtualNetworkGatewayPolicyGroup extends SubResource { - /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ - name?: string; - /** - * 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; - /** Shows if this is a Default VirtualNetworkGatewayPolicyGroup or not. */ - isDefault?: boolean; - /** Priority for VirtualNetworkGatewayPolicyGroup. */ - priority?: number; - /** Multiple PolicyMembers for VirtualNetworkGatewayPolicyGroup. */ - policyMembers?: VirtualNetworkGatewayPolicyGroupMember[]; - /** - * List of references to vngClientConnectionConfigurations. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vngClientConnectionConfigurations?: SubResource[]; - /** - * The provisioning state of the VirtualNetworkGatewayPolicyGroup resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; -} - /** VirtualNetworkGatewayNatRule Resource. */ export interface VirtualNetworkGatewayNatRule extends SubResource { /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -8260,36 +8004,6 @@ export interface VirtualHubRouteTableV2 extends SubResource { readonly provisioningState?: ProvisioningState; } -/** The RouteMap child resource of a Virtual hub. */ -export interface RouteMap extends SubResource { - /** - * The name of the resource that is unique within a resource group. This name can be used to access the resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * 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; - /** - * Resource type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly type?: string; - /** List of connections which have this RoutMap associated for inbound traffic. */ - associatedInboundConnections?: string[]; - /** List of connections which have this RoutMap associated for outbound traffic. */ - associatedOutboundConnections?: string[]; - /** List of RouteMap rules to be applied. */ - rules?: RouteMapRule[]; - /** - * The provisioning state of the RouteMap resource. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; -} - /** HubVirtualNetworkConnection Resource. */ export interface HubVirtualNetworkConnection extends SubResource { /** The name of the resource that is unique within a resource group. This name can be used to access the resource. */ @@ -8501,8 +8215,6 @@ export interface ExpressRouteConnection extends SubResource { enableInternetSecurity?: boolean; /** Enable FastPath to vWan Firewall hub. */ expressRouteGatewayBypass?: boolean; - /** Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ - enablePrivateLinkFastPath?: boolean; /** The Routing Configuration indicating the associated and propagated route tables on this connection. */ routingConfiguration?: RoutingConfiguration; } @@ -8833,8 +8545,6 @@ export interface NetworkInterface extends Resource { readonly vnetEncryptionSupported?: boolean; /** If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. */ enableAcceleratedNetworking?: boolean; - /** Indicates whether to disable tcp state tracking. */ - disableTcpStateTracking?: boolean; /** Indicates whether IP forwarding is enabled on this network interface. */ enableIPForwarding?: boolean; /** @@ -9234,8 +8944,6 @@ export interface ApplicationGatewayFirewallRuleSet extends Resource { ruleSetVersion?: string; /** The rule groups of the web application firewall rule set. */ ruleGroups?: ApplicationGatewayFirewallRuleGroup[]; - /** Tier of an application gateway that support the rule set. */ - tiers?: ApplicationGatewayTierTypes[]; } /** Response for ApplicationGatewayAvailableSslOptions API service call. */ @@ -9358,8 +9066,6 @@ export interface CustomIpPrefix extends Resource { readonly etag?: string; /** A list of availability zones denoting the IP allocated for the resource needs to come from. */ zones?: string[]; - /** The ASN for CIDR advertising. Should be an integer as string. */ - asn?: string; /** The prefix range in CIDR notation. Should include the start address and the prefix length. */ cidr?: string; /** Signed message for WAN validation. */ @@ -9375,14 +9081,8 @@ export interface CustomIpPrefix extends Resource { readonly childCustomIpPrefixes?: SubResource[]; /** The commissioned state of the Custom IP Prefix. */ commissionedState?: CommissionedState; - /** Whether to do express route advertise. */ - expressRouteAdvertise?: boolean; - /** The Geo for CIDR advertising. Should be an Geo code. */ - geo?: Geo; /** Whether to Advertise the range to Internet. */ noInternetAdvertise?: boolean; - /** Type of custom IP prefix. Should be Singular, Parent, or Child. */ - prefixType?: CustomIpPrefixType; /** * The list of all referenced PublicIpPrefixes. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -9422,6 +9122,13 @@ export interface DdosCustomPolicy extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; + /** + * 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[]; + /** The protocol-specific DDoS policy customization parameters. */ + protocolCustomSettings?: ProtocolCustomSettingsFormat[]; } /** Differentiated Services Code Point configuration for any given network interface */ @@ -9647,42 +9354,6 @@ export interface ExpressRoutePort extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly resourceGuid?: string; - /** The billing type of the ExpressRoutePort resource. */ - billingType?: ExpressRoutePortsBillingType; -} - -/** ExpressRouteProviderPort resource. */ -export interface ExpressRouteProviderPort extends Resource { - /** - * 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; - /** - * The name of the port pair. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly portPairDescriptor?: string; - /** - * The name of the primary port. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly primaryAzurePort?: string; - /** - * The name of the secondary port. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly secondaryAzurePort?: string; - /** The peering location of the port pair. */ - peeringLocation?: string; - /** Overprovisioning factor for the port pair. */ - overprovisionFactor?: number; - /** Bandwidth of the port in Mbps */ - portBandwidthInMbps?: number; - /** Used Bandwidth of the port in Mbps */ - usedBandwidthInMbps?: number; - /** Remaining Bandwidth of the port in Mbps */ - remainingBandwidthInMbps?: number; } /** FirewallPolicy Resource. */ @@ -10158,8 +9829,6 @@ export interface VirtualNetworkGateway extends Resource { sku?: VirtualNetworkGatewaySku; /** The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. */ vpnClientConfiguration?: VpnClientConfiguration; - /** The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway. */ - virtualNetworkGatewayPolicyGroups?: VirtualNetworkGatewayPolicyGroup[]; /** Virtual network gateway's BGP speaker settings. */ bgpSettings?: BgpSettings; /** The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. */ @@ -10187,10 +9856,6 @@ export interface VirtualNetworkGateway extends Resource { natRules?: VirtualNetworkGatewayNatRule[]; /** EnableBgpRouteTranslationForNat flag. */ enableBgpRouteTranslationForNat?: boolean; - /** Configures this gateway to accept traffic from remote Virtual WAN networks. */ - allowVirtualWanTraffic?: boolean; - /** Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN. */ - allowRemoteVnetTraffic?: boolean; } /** A common class for general resource information. */ @@ -10262,8 +9927,6 @@ export interface VirtualNetworkGatewayConnectionListEntity extends Resource { readonly provisioningState?: ProvisioningState; /** Bypass ExpressRoute Gateway for data forwarding. */ expressRouteGatewayBypass?: boolean; - /** Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ - enablePrivateLinkFastPath?: boolean; } /** A common class for general resource information. */ @@ -10370,8 +10033,6 @@ export interface VirtualNetworkGatewayConnection extends Resource { readonly provisioningState?: ProvisioningState; /** Bypass ExpressRoute Gateway for data forwarding. */ expressRouteGatewayBypass?: boolean; - /** Bypass the ExpressRoute gateway when accessing private-links. ExpressRoute FastPath (expressRouteGatewayBypass) must be enabled. */ - enablePrivateLinkFastPath?: boolean; } /** VirtualRouter Resource. */ @@ -10605,11 +10266,6 @@ export interface VirtualHub extends Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly ipConfigurations?: SubResource[]; - /** - * List of references to RouteMaps. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly routeMaps?: SubResource[]; /** VirtualRouter ASN. */ virtualRouterAsn?: number; /** VirtualRouter IPs. */ @@ -10675,8 +10331,6 @@ export interface ExpressRouteGateway extends Resource { readonly provisioningState?: ProvisioningState; /** The Virtual Hub where the ExpressRoute gateway is or will be deployed. */ virtualHub?: VirtualHubId; - /** Configures this gateway to accept traffic from non Virtual WAN networks. */ - allowNonVirtualWanTraffic?: boolean; } /** Defines web application firewall policy. */ @@ -10719,6 +10373,40 @@ export interface WebApplicationFirewallPolicy extends Resource { readonly pathBasedRules?: SubResource[]; } +/** ExpressRouteProviderPort resource. */ +export interface ExpressRouteProviderPort extends Resource { + /** + * 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; + /** + * The name of the port pair. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly portPairDescriptor?: string; + /** + * The name of the primary port. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryAzurePort?: string; + /** + * The name of the secondary port. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryAzurePort?: string; + /** The peering location of the port pair. */ + peeringLocation?: string; + /** Overprovisioning factor for the port pair. */ + overprovisionFactor?: number; + /** Bandwidth of the port in Mbps */ + portBandwidthInMbps?: number; + /** Used Bandwidth of the port in Mbps */ + usedBandwidthInMbps?: number; + /** Remaining Bandwidth of the port in Mbps */ + remainingBandwidthInMbps?: number; +} + /** The visibility list of the private link service. */ export interface PrivateLinkServicePropertiesVisibility extends ResourceSet {} @@ -11874,26 +11562,23 @@ export enum KnownPublicIPAddressSkuTier { */ export type PublicIPAddressSkuTier = string; -/** Known values of {@link DdosSettingsProtectionMode} that the service accepts. */ -export enum KnownDdosSettingsProtectionMode { - /** VirtualNetworkInherited */ - VirtualNetworkInherited = "VirtualNetworkInherited", - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link DdosSettingsProtectionCoverage} that the service accepts. */ +export enum KnownDdosSettingsProtectionCoverage { + /** Basic */ + Basic = "Basic", + /** Standard */ + Standard = "Standard" } /** - * Defines values for DdosSettingsProtectionMode. \ - * {@link KnownDdosSettingsProtectionMode} can be used interchangeably with DdosSettingsProtectionMode, + * Defines values for DdosSettingsProtectionCoverage. \ + * {@link KnownDdosSettingsProtectionCoverage} can be used interchangeably with DdosSettingsProtectionCoverage, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **VirtualNetworkInherited** \ - * **Enabled** \ - * **Disabled** + * **Basic** \ + * **Standard** */ -export type DdosSettingsProtectionMode = string; +export type DdosSettingsProtectionCoverage = string; /** Known values of {@link NatGatewaySkuName} that the service accepts. */ export enum KnownNatGatewaySkuName { @@ -12114,24 +11799,6 @@ export enum KnownApplicationGatewayCustomErrorStatusCode { */ export type ApplicationGatewayCustomErrorStatusCode = string; -/** Known values of {@link ApplicationGatewayClientRevocationOptions} that the service accepts. */ -export enum KnownApplicationGatewayClientRevocationOptions { - /** None */ - None = "None", - /** Ocsp */ - Ocsp = "OCSP" -} - -/** - * Defines values for ApplicationGatewayClientRevocationOptions. \ - * {@link KnownApplicationGatewayClientRevocationOptions} can be used interchangeably with ApplicationGatewayClientRevocationOptions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **OCSP** - */ -export type ApplicationGatewayClientRevocationOptions = string; - /** Known values of {@link ApplicationGatewayRequestRoutingRuleType} that the service accepts. */ export enum KnownApplicationGatewayRequestRoutingRuleType { /** Basic */ @@ -12240,99 +11907,6 @@ export enum KnownApplicationGatewayBackendHealthServerHealth { */ export type ApplicationGatewayBackendHealthServerHealth = string; -/** Known values of {@link ApplicationGatewayWafRuleStateTypes} that the service accepts. */ -export enum KnownApplicationGatewayWafRuleStateTypes { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" -} - -/** - * Defines values for ApplicationGatewayWafRuleStateTypes. \ - * {@link KnownApplicationGatewayWafRuleStateTypes} can be used interchangeably with ApplicationGatewayWafRuleStateTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Enabled** \ - * **Disabled** - */ -export type ApplicationGatewayWafRuleStateTypes = string; - -/** Known values of {@link ApplicationGatewayWafRuleActionTypes} that the service accepts. */ -export enum KnownApplicationGatewayWafRuleActionTypes { - /** None */ - None = "None", - /** AnomalyScoring */ - AnomalyScoring = "AnomalyScoring", - /** Allow */ - Allow = "Allow", - /** Block */ - Block = "Block", - /** Log */ - Log = "Log" -} - -/** - * Defines values for ApplicationGatewayWafRuleActionTypes. \ - * {@link KnownApplicationGatewayWafRuleActionTypes} can be used interchangeably with ApplicationGatewayWafRuleActionTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **AnomalyScoring** \ - * **Allow** \ - * **Block** \ - * **Log** - */ -export type ApplicationGatewayWafRuleActionTypes = string; - -/** Known values of {@link ApplicationGatewayTierTypes} that the service accepts. */ -export enum KnownApplicationGatewayTierTypes { - /** Standard */ - Standard = "Standard", - /** WAF */ - WAF = "WAF", - /** StandardV2 */ - StandardV2 = "Standard_v2", - /** WAFV2 */ - WAFV2 = "WAF_v2" -} - -/** - * Defines values for ApplicationGatewayTierTypes. \ - * {@link KnownApplicationGatewayTierTypes} can be used interchangeably with ApplicationGatewayTierTypes, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Standard** \ - * **WAF** \ - * **Standard_v2** \ - * **WAF_v2** - */ -export type ApplicationGatewayTierTypes = string; - -/** Known values of {@link ApplicationGatewayRuleSetStatusOptions} that the service accepts. */ -export enum KnownApplicationGatewayRuleSetStatusOptions { - /** Preview */ - Preview = "Preview", - /** GA */ - GA = "GA", - /** Supported */ - Supported = "Supported", - /** Deprecated */ - Deprecated = "Deprecated" -} - -/** - * Defines values for ApplicationGatewayRuleSetStatusOptions. \ - * {@link KnownApplicationGatewayRuleSetStatusOptions} can be used interchangeably with ApplicationGatewayRuleSetStatusOptions, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Preview** \ - * **GA** \ - * **Supported** \ - * **Deprecated** - */ -export type ApplicationGatewayRuleSetStatusOptions = string; - /** Known values of {@link AzureFirewallRCActionType} that the service accepts. */ export enum KnownAzureFirewallRCActionType { /** Allow */ @@ -12518,16 +12092,14 @@ export enum KnownCommissionedState { Provisioned = "Provisioned", /** Commissioning */ Commissioning = "Commissioning", - /** CommissionedNoInternetAdvertise */ - CommissionedNoInternetAdvertise = "CommissionedNoInternetAdvertise", /** Commissioned */ Commissioned = "Commissioned", /** Decommissioning */ Decommissioning = "Decommissioning", /** Deprovisioning */ Deprovisioning = "Deprovisioning", - /** Deprovisioned */ - Deprovisioned = "Deprovisioned" + /** CommissionedNoInternetAdvertise */ + CommissionedNoInternetAdvertise = "CommissionedNoInternetAdvertise" } /** @@ -12538,73 +12110,57 @@ export enum KnownCommissionedState { * **Provisioning** \ * **Provisioned** \ * **Commissioning** \ - * **CommissionedNoInternetAdvertise** \ * **Commissioned** \ * **Decommissioning** \ * **Deprovisioning** \ - * **Deprovisioned** + * **CommissionedNoInternetAdvertise** */ export type CommissionedState = string; -/** Known values of {@link Geo} that the service accepts. */ -export enum KnownGeo { - /** Global */ - Global = "GLOBAL", - /** Afri */ - Afri = "AFRI", - /** Apac */ - Apac = "APAC", - /** Euro */ - Euro = "EURO", - /** Latam */ - Latam = "LATAM", - /** NAM */ - NAM = "NAM", - /** ME */ - ME = "ME", - /** Oceania */ - Oceania = "OCEANIA", - /** AQ */ - AQ = "AQ" +/** Known values of {@link DdosCustomPolicyProtocol} that the service accepts. */ +export enum KnownDdosCustomPolicyProtocol { + /** Tcp */ + Tcp = "Tcp", + /** Udp */ + Udp = "Udp", + /** Syn */ + Syn = "Syn" } /** - * Defines values for Geo. \ - * {@link KnownGeo} can be used interchangeably with Geo, + * Defines values for DdosCustomPolicyProtocol. \ + * {@link KnownDdosCustomPolicyProtocol} can be used interchangeably with DdosCustomPolicyProtocol, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **GLOBAL** \ - * **AFRI** \ - * **APAC** \ - * **EURO** \ - * **LATAM** \ - * **NAM** \ - * **ME** \ - * **OCEANIA** \ - * **AQ** + * **Tcp** \ + * **Udp** \ + * **Syn** */ -export type Geo = string; +export type DdosCustomPolicyProtocol = string; -/** Known values of {@link CustomIpPrefixType} that the service accepts. */ -export enum KnownCustomIpPrefixType { - /** Singular */ - Singular = "Singular", - /** Parent */ - Parent = "Parent", - /** Child */ - Child = "Child" +/** Known values of {@link DdosCustomPolicyTriggerSensitivityOverride} that the service accepts. */ +export enum KnownDdosCustomPolicyTriggerSensitivityOverride { + /** Relaxed */ + Relaxed = "Relaxed", + /** Low */ + Low = "Low", + /** Default */ + Default = "Default", + /** High */ + High = "High" } /** - * Defines values for CustomIpPrefixType. \ - * {@link KnownCustomIpPrefixType} can be used interchangeably with CustomIpPrefixType, + * Defines values for DdosCustomPolicyTriggerSensitivityOverride. \ + * {@link KnownDdosCustomPolicyTriggerSensitivityOverride} can be used interchangeably with DdosCustomPolicyTriggerSensitivityOverride, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Singular** \ - * **Parent** \ - * **Child** + * **Relaxed** \ + * **Low** \ + * **Default** \ + * **High** */ -export type CustomIpPrefixType = string; +export type DdosCustomPolicyTriggerSensitivityOverride = string; /** Known values of {@link ProtocolType} that the service accepts. */ export enum KnownProtocolType { @@ -12927,24 +12483,6 @@ export enum KnownExpressRouteLinkMacSecSciState { */ export type ExpressRouteLinkMacSecSciState = string; -/** Known values of {@link ExpressRoutePortsBillingType} that the service accepts. */ -export enum KnownExpressRoutePortsBillingType { - /** MeteredData */ - MeteredData = "MeteredData", - /** UnlimitedData */ - UnlimitedData = "UnlimitedData" -} - -/** - * Defines values for ExpressRoutePortsBillingType. \ - * {@link KnownExpressRoutePortsBillingType} can be used interchangeably with ExpressRoutePortsBillingType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **MeteredData** \ - * **UnlimitedData** - */ -export type ExpressRoutePortsBillingType = string; - /** Known values of {@link ExpressRoutePortAuthorizationUseStatus} that the service accepts. */ export enum KnownExpressRoutePortAuthorizationUseStatus { /** Available */ @@ -13472,9 +13010,7 @@ export enum KnownNetworkIntentPolicyBasedService { /** None */ None = "None", /** All */ - All = "All", - /** AllowRulesOnly */ - AllowRulesOnly = "AllowRulesOnly" + All = "All" } /** @@ -13483,8 +13019,7 @@ export enum KnownNetworkIntentPolicyBasedService { * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ - * **All** \ - * **AllowRulesOnly** + * **All** */ export type NetworkIntentPolicyBasedService = string; @@ -14130,24 +13665,6 @@ export enum KnownEvaluationState { */ export type EvaluationState = string; -/** Known values of {@link IsWorkloadProtected} that the service accepts. */ -export enum KnownIsWorkloadProtected { - /** False */ - False = "False", - /** True */ - True = "True" -} - -/** - * Defines values for IsWorkloadProtected. \ - * {@link KnownIsWorkloadProtected} can be used interchangeably with IsWorkloadProtected, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **False** \ - * **True** - */ -export type IsWorkloadProtected = string; - /** Known values of {@link PublicIPPrefixSkuName} that the service accepts. */ export enum KnownPublicIPPrefixSkuName { /** Standard */ @@ -14769,27 +14286,6 @@ export enum KnownPfsGroup { */ export type PfsGroup = string; -/** Known values of {@link VpnPolicyMemberAttributeType} that the service accepts. */ -export enum KnownVpnPolicyMemberAttributeType { - /** CertificateGroupId */ - CertificateGroupId = "CertificateGroupId", - /** AADGroupId */ - AADGroupId = "AADGroupId", - /** RadiusAzureGroupId */ - RadiusAzureGroupId = "RadiusAzureGroupId" -} - -/** - * Defines values for VpnPolicyMemberAttributeType. \ - * {@link KnownVpnPolicyMemberAttributeType} can be used interchangeably with VpnPolicyMemberAttributeType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **CertificateGroupId** \ - * **AADGroupId** \ - * **RadiusAzureGroupId** - */ -export type VpnPolicyMemberAttributeType = string; - /** Known values of {@link VpnNatRuleType} that the service accepts. */ export enum KnownVpnNatRuleType { /** Static */ @@ -15036,23 +14532,26 @@ export enum KnownVpnGatewayTunnelingProtocol { */ export type VpnGatewayTunnelingProtocol = string; -/** Known values of {@link VnetLocalRouteOverrideCriteria} that the service accepts. */ -export enum KnownVnetLocalRouteOverrideCriteria { - /** Contains */ - Contains = "Contains", - /** Equal */ - Equal = "Equal" +/** Known values of {@link VpnPolicyMemberAttributeType} that the service accepts. */ +export enum KnownVpnPolicyMemberAttributeType { + /** CertificateGroupId */ + CertificateGroupId = "CertificateGroupId", + /** AADGroupId */ + AADGroupId = "AADGroupId", + /** RadiusAzureGroupId */ + RadiusAzureGroupId = "RadiusAzureGroupId" } /** - * Defines values for VnetLocalRouteOverrideCriteria. \ - * {@link KnownVnetLocalRouteOverrideCriteria} can be used interchangeably with VnetLocalRouteOverrideCriteria, + * Defines values for VpnPolicyMemberAttributeType. \ + * {@link KnownVpnPolicyMemberAttributeType} can be used interchangeably with VpnPolicyMemberAttributeType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Contains** \ - * **Equal** + * **CertificateGroupId** \ + * **AADGroupId** \ + * **RadiusAzureGroupId** */ -export type VnetLocalRouteOverrideCriteria = string; +export type VpnPolicyMemberAttributeType = string; /** Known values of {@link RoutingState} that the service accepts. */ export enum KnownRoutingState { @@ -15120,81 +14619,6 @@ export enum KnownHubRoutingPreference { */ export type HubRoutingPreference = string; -/** Known values of {@link RouteMapMatchCondition} that the service accepts. */ -export enum KnownRouteMapMatchCondition { - /** Unknown */ - Unknown = "Unknown", - /** Contains */ - Contains = "Contains", - /** Equals */ - Equals = "Equals", - /** NotContains */ - NotContains = "NotContains", - /** NotEquals */ - NotEquals = "NotEquals" -} - -/** - * Defines values for RouteMapMatchCondition. \ - * {@link KnownRouteMapMatchCondition} can be used interchangeably with RouteMapMatchCondition, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Contains** \ - * **Equals** \ - * **NotContains** \ - * **NotEquals** - */ -export type RouteMapMatchCondition = string; - -/** Known values of {@link RouteMapActionType} that the service accepts. */ -export enum KnownRouteMapActionType { - /** Unknown */ - Unknown = "Unknown", - /** Remove */ - Remove = "Remove", - /** Add */ - Add = "Add", - /** Replace */ - Replace = "Replace", - /** Drop */ - Drop = "Drop" -} - -/** - * Defines values for RouteMapActionType. \ - * {@link KnownRouteMapActionType} can be used interchangeably with RouteMapActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Remove** \ - * **Add** \ - * **Replace** \ - * **Drop** - */ -export type RouteMapActionType = string; - -/** Known values of {@link NextStep} that the service accepts. */ -export enum KnownNextStep { - /** Unknown */ - Unknown = "Unknown", - /** Continue */ - Continue = "Continue", - /** Terminate */ - Terminate = "Terminate" -} - -/** - * Defines values for NextStep. \ - * {@link KnownNextStep} can be used interchangeably with NextStep, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Unknown** \ - * **Continue** \ - * **Terminate** - */ -export type NextStep = string; - /** Known values of {@link VpnConnectionStatus} that the service accepts. */ export enum KnownVpnConnectionStatus { /** Unknown */ @@ -15404,8 +14828,6 @@ export type WebApplicationFirewallOperator = string; /** Known values of {@link WebApplicationFirewallTransform} that the service accepts. */ export enum KnownWebApplicationFirewallTransform { - /** Uppercase */ - Uppercase = "Uppercase", /** Lowercase */ Lowercase = "Lowercase", /** Trim */ @@ -15425,7 +14847,6 @@ export enum KnownWebApplicationFirewallTransform { * {@link KnownWebApplicationFirewallTransform} can be used interchangeably with WebApplicationFirewallTransform, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Uppercase** \ * **Lowercase** \ * **Trim** \ * **UrlDecode** \ @@ -15555,9 +14976,7 @@ export type OwaspCrsExclusionEntrySelectorMatchOperator = string; /** Known values of {@link ManagedRuleEnabledState} that the service accepts. */ export enum KnownManagedRuleEnabledState { /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled" + Disabled = "Disabled" } /** @@ -15565,35 +14984,10 @@ export enum KnownManagedRuleEnabledState { * {@link KnownManagedRuleEnabledState} can be used interchangeably with ManagedRuleEnabledState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **Disabled** */ export type ManagedRuleEnabledState = string; -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** AnomalyScoring */ - AnomalyScoring = "AnomalyScoring", - /** Allow */ - Allow = "Allow", - /** Block */ - Block = "Block", - /** Log */ - Log = "Log" -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AnomalyScoring** \ - * **Allow** \ - * **Block** \ - * **Log** - */ -export type ActionType = string; - /** Known values of {@link FirewallPolicyNatRuleCollectionActionType} that the service accepts. */ export enum KnownFirewallPolicyNatRuleCollectionActionType { /** Dnat */ @@ -15859,8 +15253,6 @@ export type FirewallPolicyIdpsSignatureSeverity = 1 | 2 | 3; export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2; /** Defines values for PacketCaptureTargetType. */ export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS"; -/** Defines values for SlotType. */ -export type SlotType = "Production" | "Staging"; /** Optional parameters. */ export interface ApplicationGatewaysDeleteOptionalParams @@ -16092,27 +15484,6 @@ export interface ApplicationGatewayPrivateEndpointConnectionsListNextOptionalPar /** Contains response data for the listNext operation. */ export type ApplicationGatewayPrivateEndpointConnectionsListNextResponse = ApplicationGatewayPrivateEndpointConnectionListResult; -/** Optional parameters. */ -export interface ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApplicationGatewayWafDynamicManifestsDefaultGetResponse = ApplicationGatewayWafDynamicManifestResult; - -/** Optional parameters. */ -export interface ApplicationGatewayWafDynamicManifestsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type ApplicationGatewayWafDynamicManifestsGetResponse = ApplicationGatewayWafDynamicManifestResultList; - -/** Optional parameters. */ -export interface ApplicationGatewayWafDynamicManifestsGetNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getNext operation. */ -export type ApplicationGatewayWafDynamicManifestsGetNextResponse = ApplicationGatewayWafDynamicManifestResultList; - /** Optional parameters. */ export interface ApplicationSecurityGroupsDeleteOptionalParams extends coreClient.OperationOptions { @@ -16472,49 +15843,30 @@ export interface CheckDnsNameAvailabilityOptionalParams /** Contains response data for the checkDnsNameAvailability operation. */ export type CheckDnsNameAvailabilityResponse = DnsNameAvailabilityResult; -/** Optional parameters. */ -export interface ExpressRouteProviderPortOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the expressRouteProviderPort operation. */ -export type ExpressRouteProviderPortResponse = ExpressRouteProviderPort; - /** Optional parameters. */ export interface ListActiveConnectivityConfigurationsOptionalParams - extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listActiveConnectivityConfigurations operation. */ export type ListActiveConnectivityConfigurationsResponse = ActiveConnectivityConfigurationsListResult; /** Optional parameters. */ export interface ListActiveSecurityAdminRulesOptionalParams - extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listActiveSecurityAdminRules operation. */ export type ListActiveSecurityAdminRulesResponse = ActiveSecurityAdminRulesListResult; /** Optional parameters. */ export interface ListNetworkManagerEffectiveConnectivityConfigurationsOptionalParams - extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNetworkManagerEffectiveConnectivityConfigurations operation. */ export type ListNetworkManagerEffectiveConnectivityConfigurationsResponse = NetworkManagerEffectiveConnectivityConfigurationListResult; /** Optional parameters. */ export interface ListNetworkManagerEffectiveSecurityAdminRulesOptionalParams - extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the listNetworkManagerEffectiveSecurityAdminRules operation. */ export type ListNetworkManagerEffectiveSecurityAdminRulesResponse = NetworkManagerEffectiveSecurityAdminRulesListResult; @@ -16538,6 +15890,13 @@ export interface GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParam /** Contains response data for the generatevirtualwanvpnserverconfigurationvpnprofile operation. */ export type GeneratevirtualwanvpnserverconfigurationvpnprofileResponse = VpnProfileResponse; +/** Optional parameters. */ +export interface ExpressRouteProviderPortOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the expressRouteProviderPort operation. */ +export type ExpressRouteProviderPortResponse = ExpressRouteProviderPort; + /** Optional parameters. */ export interface PutBastionShareableLinkNextOptionalParams extends coreClient.OperationOptions {} @@ -16838,18 +16197,6 @@ export interface PublicIPAddressesListOptionalParams /** Contains response data for the list operation. */ export type PublicIPAddressesListResponse = PublicIPAddressListResult; -/** Optional parameters. */ -export interface PublicIPAddressesDdosProtectionStatusOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the ddosProtectionStatus operation. */ -export type PublicIPAddressesDdosProtectionStatusResponse = PublicIpDdosProtectionStatusResult; - /** Optional parameters. */ export interface PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesOptionalParams extends coreClient.OperationOptions {} @@ -17710,16 +17057,6 @@ export interface ExpressRoutePortAuthorizationsListNextOptionalParams /** Contains response data for the listNext operation. */ export type ExpressRoutePortAuthorizationsListNextResponse = ExpressRoutePortAuthorizationListResult; -/** Optional parameters. */ -export interface ExpressRouteProviderPortsLocationListOptionalParams - extends coreClient.OperationOptions { - /** The filter to apply on the operation. For example, you can use $filter=location eq '{state}'. */ - filter?: string; -} - -/** Contains response data for the list operation. */ -export type ExpressRouteProviderPortsLocationListResponse = ExpressRouteProviderPortListResult; - /** Optional parameters. */ export interface FirewallPoliciesDeleteOptionalParams extends coreClient.OperationOptions { @@ -18510,10 +17847,7 @@ export type NetworkManagerCommitsPostResponse = NetworkManagerCommit; /** Optional parameters. */ export interface NetworkManagerDeploymentStatusListOptionalParams - extends coreClient.OperationOptions { - /** An optional query parameter which specifies the maximum number of records to be returned by the server. */ - top?: number; -} + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type NetworkManagerDeploymentStatusListResponse = NetworkManagerDeploymentStatusListResult; @@ -20497,22 +19831,6 @@ export interface VirtualNetworksListUsageOptionalParams /** Contains response data for the listUsage operation. */ export type VirtualNetworksListUsageResponse = VirtualNetworkListUsageResult; -/** Optional parameters. */ -export interface VirtualNetworksListDdosProtectionStatusOptionalParams - extends coreClient.OperationOptions { - /** The max number of ip addresses to return. */ - top?: number; - /** The skipToken that is given with nextLink. */ - skipToken?: string; - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the listDdosProtectionStatus operation. */ -export type VirtualNetworksListDdosProtectionStatusResponse = VirtualNetworkDdosProtectionStatusResult; - /** Optional parameters. */ export interface VirtualNetworksListAllNextOptionalParams extends coreClient.OperationOptions {} @@ -20534,18 +19852,6 @@ export interface VirtualNetworksListUsageNextOptionalParams /** Contains response data for the listUsageNext operation. */ export type VirtualNetworksListUsageNextResponse = VirtualNetworkListUsageResult; -/** Optional parameters. */ -export interface VirtualNetworksListDdosProtectionStatusNextOptionalParams - extends coreClient.OperationOptions { - /** The max number of ip addresses to return. */ - top?: number; - /** The skipToken that is given with nextLink. */ - skipToken?: string; -} - -/** Contains response data for the listDdosProtectionStatusNext operation. */ -export type VirtualNetworksListDdosProtectionStatusNextResponse = VirtualNetworkDdosProtectionStatusResult; - /** Optional parameters. */ export interface SubnetsDeleteOptionalParams extends coreClient.OperationOptions { @@ -21654,24 +20960,6 @@ export interface VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface VirtualHubsGetInboundRoutesOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface VirtualHubsGetOutboundRoutesOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - /** Optional parameters. */ export interface VirtualHubsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} @@ -21686,48 +20974,6 @@ export interface VirtualHubsListNextOptionalParams /** Contains response data for the listNext operation. */ export type VirtualHubsListNextResponse = ListVirtualHubsResult; -/** Optional parameters. */ -export interface RouteMapsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type RouteMapsGetResponse = RouteMap; - -/** Optional parameters. */ -export interface RouteMapsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type RouteMapsCreateOrUpdateResponse = RouteMap; - -/** Optional parameters. */ -export interface RouteMapsDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface RouteMapsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type RouteMapsListResponse = ListRouteMapsResult; - -/** Optional parameters. */ -export interface RouteMapsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type RouteMapsListNextResponse = ListRouteMapsResult; - /** Optional parameters. */ export interface HubVirtualNetworkConnectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { @@ -22559,26 +21805,14 @@ export interface WebApplicationFirewallPoliciesListAllNextOptionalParams export type WebApplicationFirewallPoliciesListAllNextResponse = WebApplicationFirewallPolicyListResult; /** Optional parameters. */ -export interface VipSwapGetOptionalParams extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type VipSwapGetResponse = SwapResource; - -/** Optional parameters. */ -export interface VipSwapCreateOptionalParams +export interface ExpressRouteProviderPortsLocationListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** The filter to apply on the operation. For example, you can use $filter=location eq '{state}'. */ + filter?: string; } -/** Optional parameters. */ -export interface VipSwapListOptionalParams - extends coreClient.OperationOptions {} - /** Contains response data for the list operation. */ -export type VipSwapListResponse = SwapResourceListResult; +export type ExpressRouteProviderPortsLocationListResponse = ExpressRouteProviderPortListResult; /** Optional parameters. */ export interface NetworkManagementClientOptionalParams diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 221dcb1c98e5..d25978bc839f 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -601,17 +601,23 @@ export const DdosSettings: coreClient.CompositeMapper = { name: "Composite", className: "DdosSettings", modelProperties: { - protectionMode: { - serializedName: "protectionMode", + ddosCustomPolicy: { + serializedName: "ddosCustomPolicy", + type: { + name: "Composite", + className: "SubResource" + } + }, + protectionCoverage: { + serializedName: "protectionCoverage", type: { name: "String" } }, - ddosProtectionPlan: { - serializedName: "ddosProtectionPlan", + protectedIP: { + serializedName: "protectedIP", type: { - name: "Composite", - className: "SubResource" + name: "Boolean" } } } @@ -896,12 +902,6 @@ export const ApplicationGatewayClientAuthConfiguration: coreClient.CompositeMapp type: { name: "Boolean" } - }, - verifyClientRevocation: { - serializedName: "verifyClientRevocation", - type: { - name: "String" - } } } } @@ -1773,24 +1773,6 @@ export const ApplicationGatewayFirewallRule: coreClient.CompositeMapper = { name: "Number" } }, - ruleIdString: { - serializedName: "ruleIdString", - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, description: { serializedName: "description", type: { @@ -1828,139 +1810,6 @@ export const ApplicationGatewayAvailableSslPredefinedPolicies: coreClient.Compos } }; -export const ApplicationGatewayWafDynamicManifestResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayWafDynamicManifestResult", - modelProperties: { - id: { - serializedName: "id", - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - availableRuleSets: { - serializedName: "properties.availableRuleSets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayFirewallManifestRuleSet" - } - } - } - }, - ruleSetType: { - serializedName: "properties.defaultRuleSet.ruleSetType", - type: { - name: "String" - } - }, - ruleSetVersion: { - serializedName: "properties.defaultRuleSet.ruleSetVersion", - type: { - name: "String" - } - } - } - } -}; - -export const ApplicationGatewayFirewallManifestRuleSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayFirewallManifestRuleSet", - modelProperties: { - ruleSetType: { - serializedName: "ruleSetType", - required: true, - type: { - name: "String" - } - }, - ruleSetVersion: { - serializedName: "ruleSetVersion", - required: true, - type: { - name: "String" - } - }, - status: { - serializedName: "status", - type: { - name: "String" - } - }, - tiers: { - serializedName: "tiers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - ruleGroups: { - serializedName: "ruleGroups", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayFirewallRuleGroup" - } - } - } - } - } - } -}; - -export const ApplicationGatewayWafDynamicManifestResultList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationGatewayWafDynamicManifestResultList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApplicationGatewayWafDynamicManifestResult" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const ApplicationSecurityGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3114,6 +2963,39 @@ export const CustomIpPrefixListResult: coreClient.CompositeMapper = { } }; +export const ProtocolCustomSettingsFormat: coreClient.CompositeMapper = { + 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 DdosProtectionPlan: coreClient.CompositeMapper = { type: { name: "Composite", @@ -3174,19 +3056,6 @@ export const DdosProtectionPlan: coreClient.CompositeMapper = { name: "String" } }, - publicIpAddresses: { - serializedName: "properties.publicIpAddresses", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, virtualNetworks: { serializedName: "properties.virtualNetworks", readOnly: true, @@ -4327,34 +4196,6 @@ export const ExpressRoutePortAuthorizationListResult: coreClient.CompositeMapper } }; -export const ExpressRouteProviderPortListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpressRouteProviderPortListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExpressRouteProviderPort" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const FirewallPolicyThreatIntelWhitelist: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11355,39 +11196,6 @@ export const AutoApprovedPrivateLinkService: coreClient.CompositeMapper = { } }; -export const PublicIpDdosProtectionStatusResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublicIpDdosProtectionStatusResult", - modelProperties: { - publicIpAddressId: { - serializedName: "publicIpAddressId", - type: { - name: "String" - } - }, - publicIpAddress: { - serializedName: "publicIpAddress", - type: { - name: "String" - } - }, - isWorkloadProtected: { - serializedName: "isWorkloadProtected", - type: { - name: "String" - } - }, - ddosProtectionPlanId: { - serializedName: "ddosProtectionPlanId", - type: { - name: "String" - } - } - } - } -}; - export const PublicIPPrefixSku: coreClient.CompositeMapper = { type: { name: "Composite", @@ -12401,46 +12209,19 @@ export const VirtualNetworkUsageName: coreClient.CompositeMapper = { } }; -export const VirtualNetworkDdosProtectionStatusResult: coreClient.CompositeMapper = { +export const VirtualNetworkGatewaySku: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualNetworkDdosProtectionStatusResult", + className: "VirtualNetworkGatewaySku", modelProperties: { - value: { - serializedName: "value", + name: { + serializedName: "name", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PublicIpDdosProtectionStatusResult" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkGatewaySku: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewaySku", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - tier: { - serializedName: "tier", + tier: { + serializedName: "tier", type: { name: "String" } @@ -12567,18 +12348,6 @@ export const VpnClientConfiguration: coreClient.CompositeMapper = { type: { name: "String" } - }, - vngClientConnectionConfigurations: { - serializedName: "vngClientConnectionConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VngClientConnectionConfiguration" - } - } - } } } } @@ -12677,33 +12446,6 @@ export const RadiusServer: coreClient.CompositeMapper = { } }; -export const VirtualNetworkGatewayPolicyGroupMember: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewayPolicyGroupMember", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - attributeType: { - serializedName: "attributeType", - type: { - name: "String" - } - }, - attributeValue: { - serializedName: "attributeValue", - type: { - name: "String" - } - } - } - } -}; - export const BgpSettings: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14042,20 +13784,6 @@ export const RoutingConfiguration: coreClient.CompositeMapper = { name: "Composite", className: "VnetRoute" } - }, - inboundRouteMap: { - serializedName: "inboundRouteMap", - type: { - name: "Composite", - className: "SubResource" - } - }, - outboundRouteMap: { - serializedName: "outboundRouteMap", - type: { - name: "Composite", - className: "SubResource" - } } } } @@ -14098,13 +13826,6 @@ export const VnetRoute: coreClient.CompositeMapper = { name: "Composite", className: "VnetRoute", modelProperties: { - staticRoutesConfig: { - serializedName: "staticRoutesConfig", - type: { - name: "Composite", - className: "StaticRoutesConfig" - } - }, staticRoutes: { serializedName: "staticRoutes", type: { @@ -14134,28 +13855,6 @@ export const VnetRoute: coreClient.CompositeMapper = { } }; -export const StaticRoutesConfig: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "StaticRoutesConfig", - modelProperties: { - propagateStaticRoutes: { - serializedName: "propagateStaticRoutes", - readOnly: true, - type: { - name: "Boolean" - } - }, - vnetLocalRouteOverrideCriteria: { - serializedName: "vnetLocalRouteOverrideCriteria", - type: { - name: "String" - } - } - } - } -}; - export const StaticRoute: coreClient.CompositeMapper = { type: { name: "Composite", @@ -14444,195 +14143,6 @@ export const ListVirtualHubsResult: coreClient.CompositeMapper = { } }; -export const RouteMapRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RouteMapRule", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - matchCriteria: { - serializedName: "matchCriteria", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Criterion" - } - } - } - }, - actions: { - serializedName: "actions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Action" - } - } - } - }, - nextStepIfMatched: { - serializedName: "nextStepIfMatched", - type: { - name: "String" - } - } - } - } -}; - -export const Criterion: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Criterion", - modelProperties: { - routePrefix: { - serializedName: "routePrefix", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - community: { - serializedName: "community", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - asPath: { - serializedName: "asPath", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - matchCondition: { - serializedName: "matchCondition", - type: { - name: "String" - } - } - } - } -}; - -export const Action: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Action", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - parameters: { - serializedName: "parameters", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Parameter" - } - } - } - } - } - } -}; - -export const Parameter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Parameter", - modelProperties: { - routePrefix: { - serializedName: "routePrefix", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - community: { - serializedName: "community", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - asPath: { - serializedName: "asPath", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const ListRouteMapsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListRouteMapsResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RouteMap" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const ListHubVirtualNetworkConnectionsResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15382,48 +14892,6 @@ export const EffectiveRoutesParameters: coreClient.CompositeMapper = { } }; -export const GetInboundRoutesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GetInboundRoutesParameters", - modelProperties: { - resourceUri: { - serializedName: "resourceUri", - type: { - name: "String" - } - }, - connectionType: { - serializedName: "connectionType", - type: { - name: "String" - } - } - } - } -}; - -export const GetOutboundRoutesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GetOutboundRoutesParameters", - modelProperties: { - resourceUri: { - serializedName: "resourceUri", - type: { - name: "String" - } - }, - connectionType: { - serializedName: "connectionType", - type: { - name: "String" - } - } - } - } -}; - export const RoutingPolicy: coreClient.CompositeMapper = { type: { name: "Composite", @@ -15882,126 +15350,67 @@ export const ManagedRuleSet: coreClient.CompositeMapper = { name: "Composite", className: "ManagedRuleGroupOverride" } - } - } - } - } - } -}; - -export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleGroupOverride", - modelProperties: { - ruleGroupName: { - serializedName: "ruleGroupName", - required: true, - type: { - name: "String" - } - }, - rules: { - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedRuleOverride" - } - } - } - } - } - } -}; - -export const ManagedRuleOverride: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ManagedRuleOverride", - modelProperties: { - ruleId: { - serializedName: "ruleId", - required: true, - type: { - name: "String" - } - }, - state: { - serializedName: "state", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - } - } - } -}; - -export const SwapResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SwapResource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" + } } - }, - type: { - serializedName: "type", - readOnly: true, + } + } + } +}; + +export const ManagedRuleGroupOverride: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedRuleGroupOverride", + modelProperties: { + ruleGroupName: { + serializedName: "ruleGroupName", + required: true, type: { name: "String" } }, - properties: { - serializedName: "properties", + rules: { + serializedName: "rules", type: { - name: "Composite", - className: "SwapResourceProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedRuleOverride" + } + } } } } } }; -export const SwapResourceProperties: coreClient.CompositeMapper = { +export const ManagedRuleOverride: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwapResourceProperties", + className: "ManagedRuleOverride", modelProperties: { - slotType: { - serializedName: "slotType", + ruleId: { + serializedName: "ruleId", + required: true, type: { - name: "Enum", - allowedValues: ["Production", "Staging"] + name: "String" + } + }, + state: { + serializedName: "state", + type: { + name: "String" } } } } }; -export const SwapResourceListResult: coreClient.CompositeMapper = { +export const ExpressRouteProviderPortListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SwapResourceListResult", + className: "ExpressRouteProviderPortListResult", modelProperties: { value: { serializedName: "value", @@ -16010,10 +15419,17 @@ export const SwapResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SwapResource" + className: "ExpressRouteProviderPort" } } } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } } } } @@ -16236,38 +15652,6 @@ export const VirtualHubEffectiveRoute: coreClient.CompositeMapper = { } }; -export const EffectiveRouteMapRoute: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EffectiveRouteMapRoute", - modelProperties: { - prefix: { - serializedName: "prefix", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - bgpCommunities: { - serializedName: "bgpCommunities", - type: { - name: "String" - } - }, - asPath: { - serializedName: "asPath", - type: { - name: "String" - } - } - } - } -}; - export const ApplicationGatewayIPConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -20520,13 +19904,6 @@ export const ExpressRouteLink: coreClient.CompositeMapper = { name: "String" } }, - coloLocation: { - serializedName: "properties.coloLocation", - readOnly: true, - type: { - name: "String" - } - }, connectorType: { serializedName: "properties.connectorType", readOnly: true, @@ -20856,12 +20233,6 @@ export const Probe: coreClient.CompositeMapper = { name: "Number" } }, - probeThreshold: { - serializedName: "properties.probeThreshold", - type: { - name: "Number" - } - }, requestPath: { serializedName: "properties.requestPath", type: { @@ -21630,122 +21001,6 @@ export const VpnClientRevokedCertificate: coreClient.CompositeMapper = { } }; -export const VngClientConnectionConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VngClientConnectionConfiguration", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - vpnClientAddressPool: { - serializedName: "properties.vpnClientAddressPool", - type: { - name: "Composite", - className: "AddressSpace" - } - }, - virtualNetworkGatewayPolicyGroups: { - serializedName: "properties.virtualNetworkGatewayPolicyGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualNetworkGatewayPolicyGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualNetworkGatewayPolicyGroup", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - isDefault: { - serializedName: "properties.isDefault", - type: { - name: "Boolean" - } - }, - priority: { - serializedName: "properties.priority", - type: { - name: "Number" - } - }, - policyMembers: { - serializedName: "properties.policyMembers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkGatewayPolicyGroupMember" - } - } - } - }, - vngClientConnectionConfigurations: { - serializedName: "properties.vngClientConnectionConfigurations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const VirtualNetworkGatewayNatRule: coreClient.CompositeMapper = { type: { name: "Composite", @@ -22128,80 +21383,20 @@ export const VirtualHubRouteTableV2: coreClient.CompositeMapper = { name: "String" } }, - routes: { - serializedName: "properties.routes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualHubRouteV2" - } - } - } - }, - attachedConnections: { - serializedName: "properties.attachedConnections", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const RouteMap: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RouteMap", - modelProperties: { - ...SubResource.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - associatedInboundConnections: { - serializedName: "properties.associatedInboundConnections", + routes: { + serializedName: "properties.routes", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "VirtualHubRouteV2" } } } }, - associatedOutboundConnections: { - serializedName: "properties.associatedOutboundConnections", + attachedConnections: { + serializedName: "properties.attachedConnections", type: { name: "Sequence", element: { @@ -22211,18 +21406,6 @@ export const RouteMap: coreClient.CompositeMapper = { } } }, - rules: { - serializedName: "properties.rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RouteMapRule" - } - } - } - }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, @@ -22780,12 +21963,6 @@ export const ExpressRouteConnection: coreClient.CompositeMapper = { name: "Boolean" } }, - enablePrivateLinkFastPath: { - serializedName: "properties.enablePrivateLinkFastPath", - type: { - name: "Boolean" - } - }, routingConfiguration: { serializedName: "properties.routingConfiguration", type: { @@ -23564,12 +22741,6 @@ export const NetworkInterface: coreClient.CompositeMapper = { name: "Boolean" } }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, enableIPForwarding: { serializedName: "properties.enableIPForwarding", type: { @@ -24696,17 +23867,6 @@ export const ApplicationGatewayFirewallRuleSet: coreClient.CompositeMapper = { } } } - }, - tiers: { - serializedName: "properties.tiers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } } } } @@ -25072,12 +24232,6 @@ export const CustomIpPrefix: coreClient.CompositeMapper = { } } }, - asn: { - serializedName: "properties.asn", - type: { - name: "String" - } - }, cidr: { serializedName: "properties.cidr", type: { @@ -25122,30 +24276,12 @@ export const CustomIpPrefix: coreClient.CompositeMapper = { name: "String" } }, - expressRouteAdvertise: { - serializedName: "properties.expressRouteAdvertise", - type: { - name: "Boolean" - } - }, - geo: { - serializedName: "properties.geo", - type: { - name: "String" - } - }, noInternetAdvertise: { serializedName: "properties.noInternetAdvertise", type: { name: "Boolean" } }, - prefixType: { - serializedName: "properties.prefixType", - type: { - name: "String" - } - }, publicIpPrefixes: { serializedName: "properties.publicIpPrefixes", readOnly: true, @@ -25210,6 +24346,31 @@ export const DdosCustomPolicy: coreClient.CompositeMapper = { type: { name: "String" } + }, + publicIPAddresses: { + serializedName: "properties.publicIPAddresses", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource" + } + } + } + }, + protocolCustomSettings: { + serializedName: "properties.protocolCustomSettings", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ProtocolCustomSettingsFormat" + } + } + } } } } @@ -25750,80 +24911,6 @@ export const ExpressRoutePort: coreClient.CompositeMapper = { type: { name: "String" } - }, - billingType: { - serializedName: "properties.billingType", - type: { - name: "String" - } - } - } - } -}; - -export const ExpressRouteProviderPort: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExpressRouteProviderPort", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - serializedName: "etag", - readOnly: true, - type: { - name: "String" - } - }, - portPairDescriptor: { - serializedName: "properties.portPairDescriptor", - readOnly: true, - type: { - name: "String" - } - }, - primaryAzurePort: { - serializedName: "properties.primaryAzurePort", - readOnly: true, - type: { - name: "String" - } - }, - secondaryAzurePort: { - serializedName: "properties.secondaryAzurePort", - readOnly: true, - type: { - name: "String" - } - }, - peeringLocation: { - serializedName: "properties.peeringLocation", - type: { - name: "String" - } - }, - overprovisionFactor: { - serializedName: "properties.overprovisionFactor", - type: { - name: "Number" - } - }, - portBandwidthInMbps: { - serializedName: "properties.portBandwidthInMbps", - type: { - name: "Number" - } - }, - usedBandwidthInMbps: { - serializedName: "properties.usedBandwidthInMbps", - type: { - name: "Number" - } - }, - remainingBandwidthInMbps: { - serializedName: "properties.remainingBandwidthInMbps", - type: { - name: "Number" - } } } } @@ -27049,18 +26136,6 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { className: "VpnClientConfiguration" } }, - virtualNetworkGatewayPolicyGroups: { - serializedName: "properties.virtualNetworkGatewayPolicyGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualNetworkGatewayPolicyGroup" - } - } - } - }, bgpSettings: { serializedName: "properties.bgpSettings", type: { @@ -27125,18 +26200,6 @@ export const VirtualNetworkGateway: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - allowVirtualWanTraffic: { - serializedName: "properties.allowVirtualWanTraffic", - type: { - name: "Boolean" - } - }, - allowRemoteVnetTraffic: { - serializedName: "properties.allowRemoteVnetTraffic", - type: { - name: "Boolean" - } } } } @@ -27321,12 +26384,6 @@ export const VirtualNetworkGatewayConnectionListEntity: coreClient.CompositeMapp type: { name: "Boolean" } - }, - enablePrivateLinkFastPath: { - serializedName: "properties.enablePrivateLinkFastPath", - type: { - name: "Boolean" - } } } } @@ -27604,12 +26661,6 @@ export const VirtualNetworkGatewayConnection: coreClient.CompositeMapper = { type: { name: "Boolean" } - }, - enablePrivateLinkFastPath: { - serializedName: "properties.enablePrivateLinkFastPath", - type: { - name: "Boolean" - } } } } @@ -28251,19 +27302,6 @@ export const VirtualHub: coreClient.CompositeMapper = { } } }, - routeMaps: { - serializedName: "properties.routeMaps", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, virtualRouterAsn: { constraints: { InclusiveMaximum: 4294967295, @@ -28452,12 +27490,6 @@ export const ExpressRouteGateway: coreClient.CompositeMapper = { name: "Composite", className: "VirtualHubId" } - }, - allowNonVirtualWanTraffic: { - serializedName: "properties.allowNonVirtualWanTraffic", - type: { - name: "Boolean" - } } } } @@ -28559,6 +27591,74 @@ export const WebApplicationFirewallPolicy: coreClient.CompositeMapper = { } }; +export const ExpressRouteProviderPort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressRouteProviderPort", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + serializedName: "etag", + readOnly: true, + type: { + name: "String" + } + }, + portPairDescriptor: { + serializedName: "properties.portPairDescriptor", + readOnly: true, + type: { + name: "String" + } + }, + primaryAzurePort: { + serializedName: "properties.primaryAzurePort", + readOnly: true, + type: { + name: "String" + } + }, + secondaryAzurePort: { + serializedName: "properties.secondaryAzurePort", + readOnly: true, + type: { + name: "String" + } + }, + peeringLocation: { + serializedName: "properties.peeringLocation", + type: { + name: "String" + } + }, + overprovisionFactor: { + serializedName: "properties.overprovisionFactor", + type: { + name: "Number" + } + }, + portBandwidthInMbps: { + serializedName: "properties.portBandwidthInMbps", + type: { + name: "Number" + } + }, + usedBandwidthInMbps: { + serializedName: "properties.usedBandwidthInMbps", + type: { + name: "Number" + } + }, + remainingBandwidthInMbps: { + serializedName: "properties.remainingBandwidthInMbps", + type: { + name: "Number" + } + } + } + } +}; + export const PrivateLinkServicePropertiesVisibility: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 6303f37dafc9..1eebb225da5b 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -127,9 +127,6 @@ import { VpnServerConfigurationPolicyGroup as VpnServerConfigurationPolicyGroupMapper, VirtualHub as VirtualHubMapper, EffectiveRoutesParameters as EffectiveRoutesParametersMapper, - GetInboundRoutesParameters as GetInboundRoutesParametersMapper, - GetOutboundRoutesParameters as GetOutboundRoutesParametersMapper, - RouteMap as RouteMapMapper, HubVirtualNetworkConnection as HubVirtualNetworkConnectionMapper, VpnGateway as VpnGatewayMapper, VpnGatewayPacketCaptureStartParameters as VpnGatewayPacketCaptureStartParametersMapper, @@ -148,8 +145,7 @@ import { HubIpConfiguration as HubIpConfigurationMapper, HubRouteTable as HubRouteTableMapper, RoutingIntent as RoutingIntentMapper, - WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper, - SwapResource as SwapResourceMapper + WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -201,7 +197,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-05-01", + defaultValue: "2022-01-01", isConstant: true, serializedName: "api-version", type: { @@ -297,17 +293,6 @@ export const parameters2: OperationParameter = { mapper: ApplicationGatewayPrivateEndpointConnectionMapper }; -export const location: OperationURLParameter = { - parameterPath: "location", - mapper: { - serializedName: "location", - required: true, - type: { - name: "String" - } - } -}; - export const applicationSecurityGroupName: OperationURLParameter = { parameterPath: "applicationSecurityGroupName", mapper: { @@ -324,6 +309,17 @@ export const parameters3: OperationParameter = { mapper: ApplicationSecurityGroupMapper }; +export const location: OperationURLParameter = { + parameterPath: "location", + mapper: { + serializedName: "location", + required: true, + type: { + name: "String" + } + } +}; + export const azureFirewallName: OperationURLParameter = { parameterPath: "azureFirewallName", mapper: { @@ -403,17 +399,6 @@ export const domainNameLabel: OperationQueryParameter = { } }; -export const providerport: OperationURLParameter = { - parameterPath: "providerport", - mapper: { - serializedName: "providerport", - required: true, - type: { - name: "String" - } - } -}; - export const parameters6: OperationParameter = { parameterPath: "parameters", mapper: ActiveConfigurationParameterMapper @@ -430,20 +415,6 @@ export const networkManagerName: OperationURLParameter = { } }; -export const top: OperationQueryParameter = { - parameterPath: ["options", "top"], - mapper: { - constraints: { - InclusiveMaximum: 20, - InclusiveMinimum: 1 - }, - serializedName: "$top", - type: { - name: "Number" - } - } -}; - export const parameters7: OperationParameter = { parameterPath: "parameters", mapper: QueryRequestOptionsMapper @@ -476,6 +447,17 @@ export const vpnClientParams: OperationParameter = { mapper: VirtualWanVpnProfileParametersMapper }; +export const providerport: OperationURLParameter = { + parameterPath: "providerport", + mapper: { + serializedName: "providerport", + required: true, + type: { + name: "String" + } + } +}; + export const cloudServiceName: OperationURLParameter = { parameterPath: "cloudServiceName", mapper: { @@ -777,16 +759,6 @@ export const authorizationParameters1: OperationParameter = { mapper: ExpressRoutePortAuthorizationMapper }; -export const filter: OperationQueryParameter = { - parameterPath: ["options", "filter"], - mapper: { - serializedName: "$filter", - type: { - name: "String" - } - } -}; - export const firewallPolicyName: OperationURLParameter = { parameterPath: "firewallPolicyName", mapper: { @@ -1042,6 +1014,20 @@ export const parameters30: OperationParameter = { mapper: PatchObjectMapper }; +export const top: OperationQueryParameter = { + parameterPath: ["options", "top"], + mapper: { + constraints: { + InclusiveMaximum: 20, + InclusiveMinimum: 1 + }, + serializedName: "$top", + type: { + name: "Number" + } + } +}; + export const skipToken: OperationQueryParameter = { parameterPath: ["options", "skipToken"], mapper: { @@ -1677,26 +1663,6 @@ export const ipAddress: OperationQueryParameter = { } }; -export const top1: OperationQueryParameter = { - parameterPath: ["options", "top"], - mapper: { - serializedName: "top", - type: { - name: "Number" - } - } -}; - -export const skipToken1: OperationQueryParameter = { - parameterPath: ["options", "skipToken"], - mapper: { - serializedName: "skipToken", - type: { - name: "String" - } - } -}; - export const subnetName: OperationURLParameter = { parameterPath: "subnetName", mapper: { @@ -2050,32 +2016,6 @@ export const effectiveRoutesParameters: OperationParameter = { mapper: EffectiveRoutesParametersMapper }; -export const getInboundRoutesParameters: OperationParameter = { - parameterPath: "getInboundRoutesParameters", - mapper: GetInboundRoutesParametersMapper -}; - -export const getOutboundRoutesParameters: OperationParameter = { - parameterPath: "getOutboundRoutesParameters", - mapper: GetOutboundRoutesParametersMapper -}; - -export const routeMapName: OperationURLParameter = { - parameterPath: "routeMapName", - mapper: { - serializedName: "routeMapName", - required: true, - type: { - name: "String" - } - } -}; - -export const routeMapParameters: OperationParameter = { - parameterPath: "routeMapParameters", - mapper: RouteMapMapper -}; - export const hubVirtualNetworkConnectionParameters: OperationParameter = { parameterPath: "hubVirtualNetworkConnectionParameters", mapper: HubVirtualNetworkConnectionMapper @@ -2288,30 +2228,12 @@ export const parameters87: OperationParameter = { mapper: WebApplicationFirewallPolicyMapper }; -export const resourceName: OperationURLParameter = { - parameterPath: "resourceName", - mapper: { - serializedName: "resourceName", - required: true, - type: { - name: "String" - } - } -}; - -export const singletonResource: OperationURLParameter = { - parameterPath: "singletonResource", +export const filter: OperationQueryParameter = { + parameterPath: ["options", "filter"], mapper: { - defaultValue: "swap", - isConstant: true, - serializedName: "singletonResource", + serializedName: "$filter", type: { name: "String" } } }; - -export const parameters88: OperationParameter = { - parameterPath: "parameters", - mapper: SwapResourceMapper -}; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 742c8eee424b..e289ac367788 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -16,8 +16,6 @@ import { ApplicationGatewaysImpl, ApplicationGatewayPrivateLinkResourcesImpl, ApplicationGatewayPrivateEndpointConnectionsImpl, - ApplicationGatewayWafDynamicManifestsDefaultImpl, - ApplicationGatewayWafDynamicManifestsImpl, ApplicationSecurityGroupsImpl, AvailableDelegationsImpl, AvailableResourceGroupDelegationsImpl, @@ -45,7 +43,6 @@ import { ExpressRoutePortsImpl, ExpressRouteLinksImpl, ExpressRoutePortAuthorizationsImpl, - ExpressRouteProviderPortsLocationImpl, FirewallPoliciesImpl, FirewallPolicyRuleCollectionGroupsImpl, FirewallPolicyIdpsSignaturesImpl, @@ -125,7 +122,6 @@ import { VpnServerConfigurationsImpl, ConfigurationPolicyGroupsImpl, VirtualHubsImpl, - RouteMapsImpl, HubVirtualNetworkConnectionsImpl, VpnGatewaysImpl, VpnLinkConnectionsImpl, @@ -143,14 +139,12 @@ import { HubRouteTablesImpl, RoutingIntentOperationsImpl, WebApplicationFirewallPoliciesImpl, - VipSwapImpl + ExpressRouteProviderPortsLocationImpl } from "./operations"; import { ApplicationGateways, ApplicationGatewayPrivateLinkResources, ApplicationGatewayPrivateEndpointConnections, - ApplicationGatewayWafDynamicManifestsDefault, - ApplicationGatewayWafDynamicManifests, ApplicationSecurityGroups, AvailableDelegations, AvailableResourceGroupDelegations, @@ -178,7 +172,6 @@ import { ExpressRoutePorts, ExpressRouteLinks, ExpressRoutePortAuthorizations, - ExpressRouteProviderPortsLocation, FirewallPolicies, FirewallPolicyRuleCollectionGroups, FirewallPolicyIdpsSignatures, @@ -258,7 +251,6 @@ import { VpnServerConfigurations, ConfigurationPolicyGroups, VirtualHubs, - RouteMaps, HubVirtualNetworkConnections, VpnGateways, VpnLinkConnections, @@ -276,7 +268,7 @@ import { HubRouteTables, RoutingIntentOperations, WebApplicationFirewallPolicies, - VipSwap + ExpressRouteProviderPortsLocation } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; @@ -302,8 +294,6 @@ import { DisconnectActiveSessionsResponse, CheckDnsNameAvailabilityOptionalParams, CheckDnsNameAvailabilityResponse, - ExpressRouteProviderPortOptionalParams, - ExpressRouteProviderPortResponse, ActiveConfigurationParameter, ListActiveConnectivityConfigurationsOptionalParams, ListActiveConnectivityConfigurationsResponse, @@ -319,6 +309,8 @@ import { VirtualWanVpnProfileParameters, GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams, GeneratevirtualwanvpnserverconfigurationvpnprofileResponse, + ExpressRouteProviderPortOptionalParams, + ExpressRouteProviderPortResponse, PutBastionShareableLinkNextResponse, GetBastionShareableLinkNextResponse, GetActiveSessionsNextResponse, @@ -358,7 +350,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/30.0.1`; + const packageDetails = `azsdk-js-arm-network/31.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -419,12 +411,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.applicationGatewayPrivateEndpointConnections = new ApplicationGatewayPrivateEndpointConnectionsImpl( this ); - this.applicationGatewayWafDynamicManifestsDefault = new ApplicationGatewayWafDynamicManifestsDefaultImpl( - this - ); - this.applicationGatewayWafDynamicManifests = new ApplicationGatewayWafDynamicManifestsImpl( - this - ); this.applicationSecurityGroups = new ApplicationSecurityGroupsImpl(this); this.availableDelegations = new AvailableDelegationsImpl(this); this.availableResourceGroupDelegations = new AvailableResourceGroupDelegationsImpl( @@ -472,9 +458,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.expressRoutePortAuthorizations = new ExpressRoutePortAuthorizationsImpl( this ); - this.expressRouteProviderPortsLocation = new ExpressRouteProviderPortsLocationImpl( - this - ); this.firewallPolicies = new FirewallPoliciesImpl(this); this.firewallPolicyRuleCollectionGroups = new FirewallPolicyRuleCollectionGroupsImpl( this @@ -596,7 +579,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.vpnServerConfigurations = new VpnServerConfigurationsImpl(this); this.configurationPolicyGroups = new ConfigurationPolicyGroupsImpl(this); this.virtualHubs = new VirtualHubsImpl(this); - this.routeMaps = new RouteMapsImpl(this); this.hubVirtualNetworkConnections = new HubVirtualNetworkConnectionsImpl( this ); @@ -620,7 +602,9 @@ export class NetworkManagementClient extends coreClient.ServiceClient { this.webApplicationFirewallPolicies = new WebApplicationFirewallPoliciesImpl( this ); - this.vipSwap = new VipSwapImpl(this); + this.expressRouteProviderPortsLocation = new ExpressRouteProviderPortsLocationImpl( + this + ); } /** @@ -1220,21 +1204,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { ); } - /** - * Retrieves detail of a provider port. - * @param providerport The name of the provider port. - * @param options The options parameters. - */ - expressRouteProviderPort( - providerport: string, - options?: ExpressRouteProviderPortOptionalParams - ): Promise { - return this.sendOperationRequest( - { providerport, options }, - expressRouteProviderPortOperationSpec - ); - } - /** * Lists active connectivity configurations in a network manager. * @param resourceGroupName The name of the resource group. @@ -1427,6 +1396,21 @@ export class NetworkManagementClient extends coreClient.ServiceClient { return poller.pollUntilDone(); } + /** + * Retrieves detail of a provider port. + * @param providerport The name of the provider port. + * @param options The options parameters. + */ + expressRouteProviderPort( + providerport: string, + options?: ExpressRouteProviderPortOptionalParams + ): Promise { + return this.sendOperationRequest( + { providerport, options }, + expressRouteProviderPortOperationSpec + ); + } + /** * PutBastionShareableLinkNext * @param resourceGroupName The name of the resource group. @@ -1515,8 +1499,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { applicationGateways: ApplicationGateways; applicationGatewayPrivateLinkResources: ApplicationGatewayPrivateLinkResources; applicationGatewayPrivateEndpointConnections: ApplicationGatewayPrivateEndpointConnections; - applicationGatewayWafDynamicManifestsDefault: ApplicationGatewayWafDynamicManifestsDefault; - applicationGatewayWafDynamicManifests: ApplicationGatewayWafDynamicManifests; applicationSecurityGroups: ApplicationSecurityGroups; availableDelegations: AvailableDelegations; availableResourceGroupDelegations: AvailableResourceGroupDelegations; @@ -1544,7 +1526,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { expressRoutePorts: ExpressRoutePorts; expressRouteLinks: ExpressRouteLinks; expressRoutePortAuthorizations: ExpressRoutePortAuthorizations; - expressRouteProviderPortsLocation: ExpressRouteProviderPortsLocation; firewallPolicies: FirewallPolicies; firewallPolicyRuleCollectionGroups: FirewallPolicyRuleCollectionGroups; firewallPolicyIdpsSignatures: FirewallPolicyIdpsSignatures; @@ -1624,7 +1605,6 @@ export class NetworkManagementClient extends coreClient.ServiceClient { vpnServerConfigurations: VpnServerConfigurations; configurationPolicyGroups: ConfigurationPolicyGroups; virtualHubs: VirtualHubs; - routeMaps: RouteMaps; hubVirtualNetworkConnections: HubVirtualNetworkConnections; vpnGateways: VpnGateways; vpnLinkConnections: VpnLinkConnections; @@ -1642,7 +1622,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { hubRouteTables: HubRouteTables; routingIntentOperations: RoutingIntentOperations; webApplicationFirewallPolicies: WebApplicationFirewallPolicies; - vipSwap: VipSwap; + expressRouteProviderPortsLocation: ExpressRouteProviderPortsLocation; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -1805,27 +1785,6 @@ const checkDnsNameAvailabilityOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const expressRouteProviderPortOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ExpressRouteProviderPort - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.providerport - ], - headerParameters: [Parameters.accept], - serializer -}; const listActiveConnectivityConfigurationsOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/listActiveConnectivityConfigurations", @@ -1839,7 +1798,7 @@ const listActiveConnectivityConfigurationsOperationSpec: coreClient.OperationSpe } }, requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1863,7 +1822,7 @@ const listActiveSecurityAdminRulesOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.parameters6, - queryParameters: [Parameters.apiVersion, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1888,7 +1847,7 @@ const listNetworkManagerEffectiveConnectivityConfigurationsOperationSpec: coreCl } }, requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1912,7 +1871,7 @@ const listNetworkManagerEffectiveSecurityAdminRulesOperationSpec: coreClient.Ope } }, requestBody: Parameters.parameters7, - queryParameters: [Parameters.apiVersion, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, @@ -1978,6 +1937,27 @@ const generatevirtualwanvpnserverconfigurationvpnprofileOperationSpec: coreClien mediaType: "json", serializer }; +const expressRouteProviderPortOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Network/expressRouteProviderPorts/{providerport}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ExpressRouteProviderPort + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.providerport + ], + headerParameters: [Parameters.accept], + serializer +}; const putBastionShareableLinkNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/applicationGatewayWafDynamicManifests.ts b/sdk/network/arm-network/src/operations/applicationGatewayWafDynamicManifests.ts deleted file mode 100644 index 920d986bc38e..000000000000 --- a/sdk/network/arm-network/src/operations/applicationGatewayWafDynamicManifests.ts +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { ApplicationGatewayWafDynamicManifests } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetworkManagementClient } from "../networkManagementClient"; -import { - ApplicationGatewayWafDynamicManifestResult, - ApplicationGatewayWafDynamicManifestsGetNextOptionalParams, - ApplicationGatewayWafDynamicManifestsGetOptionalParams, - ApplicationGatewayWafDynamicManifestsGetResponse, - ApplicationGatewayWafDynamicManifestsGetNextResponse -} from "../models"; - -/// -/** Class containing ApplicationGatewayWafDynamicManifests operations. */ -export class ApplicationGatewayWafDynamicManifestsImpl - implements ApplicationGatewayWafDynamicManifests { - private readonly client: NetworkManagementClient; - - /** - * Initialize a new instance of the class ApplicationGatewayWafDynamicManifests class. - * @param client Reference to the service client - */ - constructor(client: NetworkManagementClient) { - this.client = client; - } - - /** - * Gets the regional application gateway waf manifest. - * @param location The region where the nrp are located at. - * @param options The options parameters. - */ - public list( - location: string, - options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.getPagingAll(location, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.getPagingPage(location, options); - } - }; - } - - private async *getPagingPage( - location: string, - options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams - ): AsyncIterableIterator { - let result = await this._get(location, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._getNext(location, continuationToken, options); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *getPagingAll( - location: string, - options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams - ): AsyncIterableIterator { - for await (const page of this.getPagingPage(location, options)) { - yield* page; - } - } - - /** - * Gets the regional application gateway waf manifest. - * @param location The region where the nrp are located at. - * @param options The options parameters. - */ - private _get( - location: string, - options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - getOperationSpec - ); - } - - /** - * GetNext - * @param location The region where the nrp are located at. - * @param nextLink The nextLink from the previous successful call to the Get method. - * @param options The options parameters. - */ - private _getNext( - location: string, - nextLink: string, - options?: ApplicationGatewayWafDynamicManifestsGetNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, nextLink, options }, - getNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationGatewayWafDynamicManifestResultList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; -const getNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationGatewayWafDynamicManifestResultList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/network/arm-network/src/operations/applicationGatewayWafDynamicManifestsDefault.ts b/sdk/network/arm-network/src/operations/applicationGatewayWafDynamicManifestsDefault.ts deleted file mode 100644 index 9fa3feea34be..000000000000 --- a/sdk/network/arm-network/src/operations/applicationGatewayWafDynamicManifestsDefault.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { ApplicationGatewayWafDynamicManifestsDefault } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetworkManagementClient } from "../networkManagementClient"; -import { - ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams, - ApplicationGatewayWafDynamicManifestsDefaultGetResponse -} from "../models"; - -/** Class containing ApplicationGatewayWafDynamicManifestsDefault operations. */ -export class ApplicationGatewayWafDynamicManifestsDefaultImpl - implements ApplicationGatewayWafDynamicManifestsDefault { - private readonly client: NetworkManagementClient; - - /** - * Initialize a new instance of the class ApplicationGatewayWafDynamicManifestsDefault class. - * @param client Reference to the service client - */ - constructor(client: NetworkManagementClient) { - this.client = client; - } - - /** - * Gets the regional application gateway waf manifest. - * @param location The region where the nrp are located at. - * @param options The options parameters. - */ - get( - location: string, - options?: ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { location, options }, - getOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Network/locations/{location}/applicationGatewayWafDynamicManifests/dafault", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApplicationGatewayWafDynamicManifestResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.location - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/network/arm-network/src/operations/index.ts b/sdk/network/arm-network/src/operations/index.ts index a8eb2d961ddb..341ddad691ea 100644 --- a/sdk/network/arm-network/src/operations/index.ts +++ b/sdk/network/arm-network/src/operations/index.ts @@ -9,8 +9,6 @@ export * from "./applicationGateways"; export * from "./applicationGatewayPrivateLinkResources"; export * from "./applicationGatewayPrivateEndpointConnections"; -export * from "./applicationGatewayWafDynamicManifestsDefault"; -export * from "./applicationGatewayWafDynamicManifests"; export * from "./applicationSecurityGroups"; export * from "./availableDelegations"; export * from "./availableResourceGroupDelegations"; @@ -38,7 +36,6 @@ export * from "./expressRoutePortsLocations"; export * from "./expressRoutePorts"; export * from "./expressRouteLinks"; export * from "./expressRoutePortAuthorizations"; -export * from "./expressRouteProviderPortsLocation"; export * from "./firewallPolicies"; export * from "./firewallPolicyRuleCollectionGroups"; export * from "./firewallPolicyIdpsSignatures"; @@ -118,7 +115,6 @@ export * from "./vpnSitesConfiguration"; export * from "./vpnServerConfigurations"; export * from "./configurationPolicyGroups"; export * from "./virtualHubs"; -export * from "./routeMaps"; export * from "./hubVirtualNetworkConnections"; export * from "./vpnGateways"; export * from "./vpnLinkConnections"; @@ -136,4 +132,4 @@ export * from "./virtualHubIpConfiguration"; export * from "./hubRouteTables"; export * from "./routingIntentOperations"; export * from "./webApplicationFirewallPolicies"; -export * from "./vipSwap"; +export * from "./expressRouteProviderPortsLocation"; diff --git a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts index e90c7d946b83..a6ae51feb443 100644 --- a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts +++ b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts @@ -65,7 +65,7 @@ const listOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.parameters32, - queryParameters: [Parameters.apiVersion, Parameters.top], + queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, diff --git a/sdk/network/arm-network/src/operations/publicIPAddresses.ts b/sdk/network/arm-network/src/operations/publicIPAddresses.ts index 47f7f12d1477..353a22328ff2 100644 --- a/sdk/network/arm-network/src/operations/publicIPAddresses.ts +++ b/sdk/network/arm-network/src/operations/publicIPAddresses.ts @@ -42,8 +42,6 @@ import { PublicIPAddressesUpdateTagsResponse, PublicIPAddressesListAllResponse, PublicIPAddressesListResponse, - PublicIPAddressesDdosProtectionStatusOptionalParams, - PublicIPAddressesDdosProtectionStatusResponse, PublicIPAddressesListVirtualMachineScaleSetPublicIPAddressesResponse, PublicIPAddressesListVirtualMachineScaleSetVMPublicIPAddressesResponse, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOptionalParams, @@ -821,94 +819,6 @@ export class PublicIPAddressesImpl implements PublicIPAddresses { ); } - /** - * Gets the Ddos Protection Status of a Public IP Address - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param options The options parameters. - */ - async beginDdosProtectionStatus( - resourceGroupName: string, - publicIpAddressName: string, - options?: PublicIPAddressesDdosProtectionStatusOptionalParams - ): Promise< - PollerLike< - PollOperationState, - PublicIPAddressesDdosProtectionStatusResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, publicIpAddressName, options }, - ddosProtectionStatusOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Gets the Ddos Protection Status of a Public IP Address - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param options The options parameters. - */ - async beginDdosProtectionStatusAndWait( - resourceGroupName: string, - publicIpAddressName: string, - options?: PublicIPAddressesDdosProtectionStatusOptionalParams - ): Promise { - const poller = await this.beginDdosProtectionStatus( - resourceGroupName, - publicIpAddressName, - options - ); - return poller.pollUntilDone(); - } - /** * Gets information about all public IP addresses on a virtual machine scale set level. * @param resourceGroupName The name of the resource group. @@ -1358,37 +1268,6 @@ const listOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const ddosProtectionStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}/ddosProtectionStatus", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.PublicIpDdosProtectionStatusResult - }, - 201: { - bodyMapper: Mappers.PublicIpDdosProtectionStatusResult - }, - 202: { - bodyMapper: Mappers.PublicIpDdosProtectionStatusResult - }, - 204: { - bodyMapper: Mappers.PublicIpDdosProtectionStatusResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.publicIpAddressName - ], - headerParameters: [Parameters.accept], - serializer -}; const listVirtualMachineScaleSetPublicIPAddressesOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/publicipaddresses", diff --git a/sdk/network/arm-network/src/operations/routeMaps.ts b/sdk/network/arm-network/src/operations/routeMaps.ts deleted file mode 100644 index 82d82b25259d..000000000000 --- a/sdk/network/arm-network/src/operations/routeMaps.ts +++ /dev/null @@ -1,476 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { RouteMaps } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetworkManagementClient } from "../networkManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - RouteMap, - RouteMapsListNextOptionalParams, - RouteMapsListOptionalParams, - RouteMapsGetOptionalParams, - RouteMapsGetResponse, - RouteMapsCreateOrUpdateOptionalParams, - RouteMapsCreateOrUpdateResponse, - RouteMapsDeleteOptionalParams, - RouteMapsListResponse, - RouteMapsListNextResponse -} from "../models"; - -/// -/** Class containing RouteMaps operations. */ -export class RouteMapsImpl implements RouteMaps { - private readonly client: NetworkManagementClient; - - /** - * Initialize a new instance of the class RouteMaps class. - * @param client Reference to the service client - */ - constructor(client: NetworkManagementClient) { - this.client = client; - } - - /** - * Retrieves the details of all RouteMaps. - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param options The options parameters. - */ - public list( - resourceGroupName: string, - virtualHubName: string, - options?: RouteMapsListOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listPagingAll(resourceGroupName, virtualHubName, options); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listPagingPage(resourceGroupName, virtualHubName, options); - } - }; - } - - private async *listPagingPage( - resourceGroupName: string, - virtualHubName: string, - options?: RouteMapsListOptionalParams - ): AsyncIterableIterator { - let result = await this._list(resourceGroupName, virtualHubName, options); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listNext( - resourceGroupName, - virtualHubName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listPagingAll( - resourceGroupName: string, - virtualHubName: string, - options?: RouteMapsListOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - virtualHubName, - options - )) { - yield* page; - } - } - - /** - * Retrieves the details of a RouteMap. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - options?: RouteMapsGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, virtualHubName, routeMapName, options }, - getOperationSpec - ); - } - - /** - * Creates a RouteMap if it doesn't exist else updates the existing one. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param routeMapParameters Parameters supplied to create or update a RouteMap. - * @param options The options parameters. - */ - async beginCreateOrUpdate( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - routeMapParameters: RouteMap, - options?: RouteMapsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - RouteMapsCreateOrUpdateResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - virtualHubName, - routeMapName, - routeMapParameters, - options - }, - createOrUpdateOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "azure-async-operation" - }); - await poller.poll(); - return poller; - } - - /** - * Creates a RouteMap if it doesn't exist else updates the existing one. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param routeMapParameters Parameters supplied to create or update a RouteMap. - * @param options The options parameters. - */ - async beginCreateOrUpdateAndWait( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - routeMapParameters: RouteMap, - options?: RouteMapsCreateOrUpdateOptionalParams - ): Promise { - const poller = await this.beginCreateOrUpdate( - resourceGroupName, - virtualHubName, - routeMapName, - routeMapParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Deletes a RouteMap. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param options The options parameters. - */ - async beginDelete( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - options?: RouteMapsDeleteOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, virtualHubName, routeMapName, options }, - deleteOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Deletes a RouteMap. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param options The options parameters. - */ - async beginDeleteAndWait( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - options?: RouteMapsDeleteOptionalParams - ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - virtualHubName, - routeMapName, - options - ); - return poller.pollUntilDone(); - } - - /** - * Retrieves the details of all RouteMaps. - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param options The options parameters. - */ - private _list( - resourceGroupName: string, - virtualHubName: string, - options?: RouteMapsListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, virtualHubName, options }, - listOperationSpec - ); - } - - /** - * ListNext - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param nextLink The nextLink from the previous successful call to the List method. - * @param options The options parameters. - */ - private _listNext( - resourceGroupName: string, - virtualHubName: string, - nextLink: string, - options?: RouteMapsListNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, virtualHubName, nextLink, options }, - listNextOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.RouteMap - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualHubName, - Parameters.routeMapName - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.RouteMap - }, - 201: { - bodyMapper: Mappers.RouteMap - }, - 202: { - bodyMapper: Mappers.RouteMap - }, - 204: { - bodyMapper: Mappers.RouteMap - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.routeMapParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualHubName, - Parameters.routeMapName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps/{routeMapName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualHubName, - Parameters.routeMapName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeMaps", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ListRouteMapsResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualHubName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ListRouteMapsResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.virtualHubName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/network/arm-network/src/operations/vipSwap.ts b/sdk/network/arm-network/src/operations/vipSwap.ts deleted file mode 100644 index e0c8eb8a4806..000000000000 --- a/sdk/network/arm-network/src/operations/vipSwap.ts +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { VipSwap } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { NetworkManagementClient } from "../networkManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; -import { - VipSwapGetOptionalParams, - VipSwapGetResponse, - SwapResource, - VipSwapCreateOptionalParams, - VipSwapListOptionalParams, - VipSwapListResponse -} from "../models"; - -/** Class containing VipSwap operations. */ -export class VipSwapImpl implements VipSwap { - private readonly client: NetworkManagementClient; - - /** - * Initialize a new instance of the class VipSwap class. - * @param client Reference to the service client - */ - constructor(client: NetworkManagementClient) { - this.client = client; - } - - /** - * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type - * on a cloud service can either be Staging or Production - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param options The options parameters. - */ - get( - groupName: string, - resourceName: string, - options?: VipSwapGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { groupName, resourceName, options }, - getOperationSpec - ); - } - - /** - * Performs vip swap operation on swappable cloud services. - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param parameters SwapResource object where slot type should be the target slot after vip swap for - * the specified cloud service. - * @param options The options parameters. - */ - async beginCreate( - groupName: string, - resourceName: string, - parameters: SwapResource, - options?: VipSwapCreateOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { groupName, resourceName, parameters, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs - }); - await poller.poll(); - return poller; - } - - /** - * Performs vip swap operation on swappable cloud services. - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param parameters SwapResource object where slot type should be the target slot after vip swap for - * the specified cloud service. - * @param options The options parameters. - */ - async beginCreateAndWait( - groupName: string, - resourceName: string, - parameters: SwapResource, - options?: VipSwapCreateOptionalParams - ): Promise { - const poller = await this.beginCreate( - groupName, - resourceName, - parameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The - * slot type on a cloud service can either be Staging or Production - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param options The options parameters. - */ - list( - groupName: string, - resourceName: string, - options?: VipSwapListOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { groupName, resourceName, options }, - listOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SwapResource - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.groupName, - Parameters.resourceName, - Parameters.singletonResource - ], - headerParameters: [Parameters.accept], - serializer -}; -const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots/{singletonResource}", - httpMethod: "PUT", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.parameters88, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.groupName, - Parameters.resourceName, - Parameters.singletonResource - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Compute/cloudServices/{resourceName}/providers/Microsoft.Network/cloudServiceSlots", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SwapResourceListResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.groupName, - Parameters.resourceName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/network/arm-network/src/operations/virtualHubs.ts b/sdk/network/arm-network/src/operations/virtualHubs.ts index cbf467fe4a24..bfb25a16077b 100644 --- a/sdk/network/arm-network/src/operations/virtualHubs.ts +++ b/sdk/network/arm-network/src/operations/virtualHubs.ts @@ -31,10 +31,6 @@ import { VirtualHubsListByResourceGroupResponse, VirtualHubsListResponse, VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams, - GetInboundRoutesParameters, - VirtualHubsGetInboundRoutesOptionalParams, - GetOutboundRoutesParameters, - VirtualHubsGetOutboundRoutesOptionalParams, VirtualHubsListByResourceGroupNextResponse, VirtualHubsListNextResponse } from "../models"; @@ -467,196 +463,6 @@ export class VirtualHubsImpl implements VirtualHubs { return poller.pollUntilDone(); } - /** - * Gets the inbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection - * resource. - * @param options The options parameters. - */ - async beginGetInboundRoutes( - resourceGroupName: string, - virtualHubName: string, - getInboundRoutesParameters: GetInboundRoutesParameters, - options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - virtualHubName, - getInboundRoutesParameters, - options - }, - getInboundRoutesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Gets the inbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection - * resource. - * @param options The options parameters. - */ - async beginGetInboundRoutesAndWait( - resourceGroupName: string, - virtualHubName: string, - getInboundRoutesParameters: GetInboundRoutesParameters, - options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise { - const poller = await this.beginGetInboundRoutes( - resourceGroupName, - virtualHubName, - getInboundRoutesParameters, - options - ); - return poller.pollUntilDone(); - } - - /** - * Gets the outbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection - * resource. - * @param options The options parameters. - */ - async beginGetOutboundRoutes( - resourceGroupName: string, - virtualHubName: string, - getOutboundRoutesParameters: GetOutboundRoutesParameters, - options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { - resourceGroupName, - virtualHubName, - getOutboundRoutesParameters, - options - }, - getOutboundRoutesOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - - /** - * Gets the outbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection - * resource. - * @param options The options parameters. - */ - async beginGetOutboundRoutesAndWait( - resourceGroupName: string, - virtualHubName: string, - getOutboundRoutesParameters: GetOutboundRoutesParameters, - options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise { - const poller = await this.beginGetOutboundRoutes( - resourceGroupName, - virtualHubName, - getOutboundRoutesParameters, - options - ); - return poller.pollUntilDone(); - } - /** * ListByResourceGroupNext * @param resourceGroupName The resource group name of the VirtualHub. @@ -857,56 +663,6 @@ const getEffectiveVirtualHubRoutesOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; -const getInboundRoutesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/inboundRoutes", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.getInboundRoutesParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualHubName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; -const getOutboundRoutesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/outboundRoutes", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - requestBody: Parameters.getOutboundRoutesParameters, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualHubName - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer -}; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/virtualNetworks.ts b/sdk/network/arm-network/src/operations/virtualNetworks.ts index 709f7396480d..5d1c802650db 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworks.ts @@ -23,9 +23,6 @@ import { VirtualNetworkUsage, VirtualNetworksListUsageNextOptionalParams, VirtualNetworksListUsageOptionalParams, - PublicIpDdosProtectionStatusResult, - VirtualNetworksListDdosProtectionStatusNextOptionalParams, - VirtualNetworksListDdosProtectionStatusOptionalParams, VirtualNetworksDeleteOptionalParams, VirtualNetworksGetOptionalParams, VirtualNetworksGetResponse, @@ -39,11 +36,9 @@ import { VirtualNetworksCheckIPAddressAvailabilityOptionalParams, VirtualNetworksCheckIPAddressAvailabilityResponse, VirtualNetworksListUsageResponse, - VirtualNetworksListDdosProtectionStatusResponse, VirtualNetworksListAllNextResponse, VirtualNetworksListNextResponse, - VirtualNetworksListUsageNextResponse, - VirtualNetworksListDdosProtectionStatusNextResponse + VirtualNetworksListUsageNextResponse } from "../models"; /// @@ -222,78 +217,6 @@ export class VirtualNetworksImpl implements VirtualNetworks { } } - /** - * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param options The options parameters. - */ - public beginListDdosProtectionStatusAndWait( - resourceGroupName: string, - virtualNetworkName: string, - options?: VirtualNetworksListDdosProtectionStatusOptionalParams - ): PagedAsyncIterableIterator { - const iter = this.listDdosProtectionStatusPagingAll( - resourceGroupName, - virtualNetworkName, - options - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: () => { - return this.listDdosProtectionStatusPagingPage( - resourceGroupName, - virtualNetworkName, - options - ); - } - }; - } - - private async *listDdosProtectionStatusPagingPage( - resourceGroupName: string, - virtualNetworkName: string, - options?: VirtualNetworksListDdosProtectionStatusOptionalParams - ): AsyncIterableIterator { - const poller = await this._listDdosProtectionStatus( - resourceGroupName, - virtualNetworkName, - options - ); - let result: any = await poller.pollUntilDone(); - yield result.value || []; - let continuationToken = result.nextLink; - while (continuationToken) { - result = await this._listDdosProtectionStatusNext( - resourceGroupName, - virtualNetworkName, - continuationToken, - options - ); - continuationToken = result.nextLink; - yield result.value || []; - } - } - - private async *listDdosProtectionStatusPagingAll( - resourceGroupName: string, - virtualNetworkName: string, - options?: VirtualNetworksListDdosProtectionStatusOptionalParams - ): AsyncIterableIterator { - for await (const page of this.listDdosProtectionStatusPagingPage( - resourceGroupName, - virtualNetworkName, - options - )) { - yield* page; - } - } - /** * Deletes the specified virtual network. * @param resourceGroupName The name of the resource group. @@ -567,75 +490,6 @@ export class VirtualNetworksImpl implements VirtualNetworks { ); } - /** - * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param options The options parameters. - */ - private async _listDdosProtectionStatus( - resourceGroupName: string, - virtualNetworkName: string, - options?: VirtualNetworksListDdosProtectionStatusOptionalParams - ): Promise< - PollerLike< - PollOperationState, - VirtualNetworksListDdosProtectionStatusResponse - > - > { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec - ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback - } - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } - }; - }; - - const lro = new LroImpl( - sendOperation, - { resourceGroupName, virtualNetworkName, options }, - listDdosProtectionStatusOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" - }); - await poller.poll(); - return poller; - } - /** * ListAllNext * @param nextLink The nextLink from the previous successful call to the ListAll method. @@ -686,26 +540,6 @@ export class VirtualNetworksImpl implements VirtualNetworks { listUsageNextOperationSpec ); } - - /** - * ListDdosProtectionStatusNext - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param nextLink The nextLink from the previous successful call to the ListDdosProtectionStatus - * method. - * @param options The options parameters. - */ - private _listDdosProtectionStatusNext( - resourceGroupName: string, - virtualNetworkName: string, - nextLink: string, - options?: VirtualNetworksListDdosProtectionStatusNextOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceGroupName, virtualNetworkName, nextLink, options }, - listDdosProtectionStatusNextOperationSpec - ); - } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -894,41 +728,6 @@ const listUsageOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listDdosProtectionStatusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/ddosProtectionStatus", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult - }, - 201: { - bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult - }, - 202: { - bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult - }, - 204: { - bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.top1, - Parameters.skipToken1 - ], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.virtualNetworkName - ], - headerParameters: [Parameters.accept], - serializer -}; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -992,30 +791,3 @@ const listUsageNextOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer }; -const listDdosProtectionStatusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.VirtualNetworkDdosProtectionStatusResult - }, - 202: {}, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.top1, - Parameters.skipToken1 - ], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.virtualNetworkName - ], - headerParameters: [Parameters.accept], - serializer -}; diff --git a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayWafDynamicManifests.ts b/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayWafDynamicManifests.ts deleted file mode 100644 index c26f0f8d8506..000000000000 --- a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayWafDynamicManifests.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - ApplicationGatewayWafDynamicManifestResult, - ApplicationGatewayWafDynamicManifestsGetOptionalParams -} from "../models"; - -/// -/** Interface representing a ApplicationGatewayWafDynamicManifests. */ -export interface ApplicationGatewayWafDynamicManifests { - /** - * Gets the regional application gateway waf manifest. - * @param location The region where the nrp are located at. - * @param options The options parameters. - */ - list( - location: string, - options?: ApplicationGatewayWafDynamicManifestsGetOptionalParams - ): PagedAsyncIterableIterator; -} diff --git a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayWafDynamicManifestsDefault.ts b/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayWafDynamicManifestsDefault.ts deleted file mode 100644 index b3b5f82c44ae..000000000000 --- a/sdk/network/arm-network/src/operationsInterfaces/applicationGatewayWafDynamicManifestsDefault.ts +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams, - ApplicationGatewayWafDynamicManifestsDefaultGetResponse -} from "../models"; - -/** Interface representing a ApplicationGatewayWafDynamicManifestsDefault. */ -export interface ApplicationGatewayWafDynamicManifestsDefault { - /** - * Gets the regional application gateway waf manifest. - * @param location The region where the nrp are located at. - * @param options The options parameters. - */ - get( - location: string, - options?: ApplicationGatewayWafDynamicManifestsDefaultGetOptionalParams - ): Promise; -} diff --git a/sdk/network/arm-network/src/operationsInterfaces/index.ts b/sdk/network/arm-network/src/operationsInterfaces/index.ts index a8eb2d961ddb..341ddad691ea 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/index.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/index.ts @@ -9,8 +9,6 @@ export * from "./applicationGateways"; export * from "./applicationGatewayPrivateLinkResources"; export * from "./applicationGatewayPrivateEndpointConnections"; -export * from "./applicationGatewayWafDynamicManifestsDefault"; -export * from "./applicationGatewayWafDynamicManifests"; export * from "./applicationSecurityGroups"; export * from "./availableDelegations"; export * from "./availableResourceGroupDelegations"; @@ -38,7 +36,6 @@ export * from "./expressRoutePortsLocations"; export * from "./expressRoutePorts"; export * from "./expressRouteLinks"; export * from "./expressRoutePortAuthorizations"; -export * from "./expressRouteProviderPortsLocation"; export * from "./firewallPolicies"; export * from "./firewallPolicyRuleCollectionGroups"; export * from "./firewallPolicyIdpsSignatures"; @@ -118,7 +115,6 @@ export * from "./vpnSitesConfiguration"; export * from "./vpnServerConfigurations"; export * from "./configurationPolicyGroups"; export * from "./virtualHubs"; -export * from "./routeMaps"; export * from "./hubVirtualNetworkConnections"; export * from "./vpnGateways"; export * from "./vpnLinkConnections"; @@ -136,4 +132,4 @@ export * from "./virtualHubIpConfiguration"; export * from "./hubRouteTables"; export * from "./routingIntentOperations"; export * from "./webApplicationFirewallPolicies"; -export * from "./vipSwap"; +export * from "./expressRouteProviderPortsLocation"; diff --git a/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts b/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts index 75544d601098..37a00d07a04b 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/publicIPAddresses.ts @@ -26,8 +26,6 @@ import { TagsObject, PublicIPAddressesUpdateTagsOptionalParams, PublicIPAddressesUpdateTagsResponse, - PublicIPAddressesDdosProtectionStatusOptionalParams, - PublicIPAddressesDdosProtectionStatusResponse, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressOptionalParams, PublicIPAddressesGetVirtualMachineScaleSetPublicIPAddressResponse } from "../models"; @@ -205,33 +203,6 @@ export interface PublicIPAddresses { parameters: TagsObject, options?: PublicIPAddressesUpdateTagsOptionalParams ): Promise; - /** - * Gets the Ddos Protection Status of a Public IP Address - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param options The options parameters. - */ - beginDdosProtectionStatus( - resourceGroupName: string, - publicIpAddressName: string, - options?: PublicIPAddressesDdosProtectionStatusOptionalParams - ): Promise< - PollerLike< - PollOperationState, - PublicIPAddressesDdosProtectionStatusResponse - > - >; - /** - * Gets the Ddos Protection Status of a Public IP Address - * @param resourceGroupName The name of the resource group. - * @param publicIpAddressName The name of the public IP address. - * @param options The options parameters. - */ - beginDdosProtectionStatusAndWait( - resourceGroupName: string, - publicIpAddressName: string, - options?: PublicIPAddressesDdosProtectionStatusOptionalParams - ): Promise; /** * Get the specified public IP address in a virtual machine scale set. * @param resourceGroupName The name of the resource group. diff --git a/sdk/network/arm-network/src/operationsInterfaces/routeMaps.ts b/sdk/network/arm-network/src/operationsInterfaces/routeMaps.ts deleted file mode 100644 index ddb597043dba..000000000000 --- a/sdk/network/arm-network/src/operationsInterfaces/routeMaps.ts +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - RouteMap, - RouteMapsListOptionalParams, - RouteMapsGetOptionalParams, - RouteMapsGetResponse, - RouteMapsCreateOrUpdateOptionalParams, - RouteMapsCreateOrUpdateResponse, - RouteMapsDeleteOptionalParams -} from "../models"; - -/// -/** Interface representing a RouteMaps. */ -export interface RouteMaps { - /** - * Retrieves the details of all RouteMaps. - * @param resourceGroupName The resource group name of the RouteMap's resource group'. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param options The options parameters. - */ - list( - resourceGroupName: string, - virtualHubName: string, - options?: RouteMapsListOptionalParams - ): PagedAsyncIterableIterator; - /** - * Retrieves the details of a RouteMap. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - options?: RouteMapsGetOptionalParams - ): Promise; - /** - * Creates a RouteMap if it doesn't exist else updates the existing one. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param routeMapParameters Parameters supplied to create or update a RouteMap. - * @param options The options parameters. - */ - beginCreateOrUpdate( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - routeMapParameters: RouteMap, - options?: RouteMapsCreateOrUpdateOptionalParams - ): Promise< - PollerLike< - PollOperationState, - RouteMapsCreateOrUpdateResponse - > - >; - /** - * Creates a RouteMap if it doesn't exist else updates the existing one. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param routeMapParameters Parameters supplied to create or update a RouteMap. - * @param options The options parameters. - */ - beginCreateOrUpdateAndWait( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - routeMapParameters: RouteMap, - options?: RouteMapsCreateOrUpdateOptionalParams - ): Promise; - /** - * Deletes a RouteMap. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param options The options parameters. - */ - beginDelete( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - options?: RouteMapsDeleteOptionalParams - ): Promise, void>>; - /** - * Deletes a RouteMap. - * @param resourceGroupName The resource group name of the RouteMap's resource group. - * @param virtualHubName The name of the VirtualHub containing the RouteMap. - * @param routeMapName The name of the RouteMap. - * @param options The options parameters. - */ - beginDeleteAndWait( - resourceGroupName: string, - virtualHubName: string, - routeMapName: string, - options?: RouteMapsDeleteOptionalParams - ): Promise; -} diff --git a/sdk/network/arm-network/src/operationsInterfaces/vipSwap.ts b/sdk/network/arm-network/src/operationsInterfaces/vipSwap.ts deleted file mode 100644 index 51accab1c592..000000000000 --- a/sdk/network/arm-network/src/operationsInterfaces/vipSwap.ts +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PollerLike, PollOperationState } from "@azure/core-lro"; -import { - VipSwapGetOptionalParams, - VipSwapGetResponse, - SwapResource, - VipSwapCreateOptionalParams, - VipSwapListOptionalParams, - VipSwapListResponse -} from "../models"; - -/** Interface representing a VipSwap. */ -export interface VipSwap { - /** - * Gets the SwapResource which identifies the slot type for the specified cloud service. The slot type - * on a cloud service can either be Staging or Production - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param options The options parameters. - */ - get( - groupName: string, - resourceName: string, - options?: VipSwapGetOptionalParams - ): Promise; - /** - * Performs vip swap operation on swappable cloud services. - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param parameters SwapResource object where slot type should be the target slot after vip swap for - * the specified cloud service. - * @param options The options parameters. - */ - beginCreate( - groupName: string, - resourceName: string, - parameters: SwapResource, - options?: VipSwapCreateOptionalParams - ): Promise, void>>; - /** - * Performs vip swap operation on swappable cloud services. - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param parameters SwapResource object where slot type should be the target slot after vip swap for - * the specified cloud service. - * @param options The options parameters. - */ - beginCreateAndWait( - groupName: string, - resourceName: string, - parameters: SwapResource, - options?: VipSwapCreateOptionalParams - ): Promise; - /** - * Gets the list of SwapResource which identifies the slot type for the specified cloud service. The - * slot type on a cloud service can either be Staging or Production - * @param groupName The name of the resource group. - * @param resourceName The name of the cloud service. - * @param options The options parameters. - */ - list( - groupName: string, - resourceName: string, - options?: VipSwapListOptionalParams - ): Promise; -} diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts index 999a9d5aa925..80066bafc83f 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualHubs.ts @@ -20,11 +20,7 @@ import { VirtualHubsUpdateTagsOptionalParams, VirtualHubsUpdateTagsResponse, VirtualHubsDeleteOptionalParams, - VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams, - GetInboundRoutesParameters, - VirtualHubsGetInboundRoutesOptionalParams, - GetOutboundRoutesParameters, - VirtualHubsGetOutboundRoutesOptionalParams + VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams } from "../models"; /// @@ -145,60 +141,4 @@ export interface VirtualHubs { virtualHubName: string, options?: VirtualHubsGetEffectiveVirtualHubRoutesOptionalParams ): Promise; - /** - * Gets the inbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection - * resource. - * @param options The options parameters. - */ - beginGetInboundRoutes( - resourceGroupName: string, - virtualHubName: string, - getInboundRoutesParameters: GetInboundRoutesParameters, - options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise, void>>; - /** - * Gets the inbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getInboundRoutesParameters Parameters supplied to get the inbound routes for a connection - * resource. - * @param options The options parameters. - */ - beginGetInboundRoutesAndWait( - resourceGroupName: string, - virtualHubName: string, - getInboundRoutesParameters: GetInboundRoutesParameters, - options?: VirtualHubsGetInboundRoutesOptionalParams - ): Promise; - /** - * Gets the outbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection - * resource. - * @param options The options parameters. - */ - beginGetOutboundRoutes( - resourceGroupName: string, - virtualHubName: string, - getOutboundRoutesParameters: GetOutboundRoutesParameters, - options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise, void>>; - /** - * Gets the outbound routes configured for the Virtual Hub on a particular connection. - * @param resourceGroupName The resource group name of the VirtualHub. - * @param virtualHubName The name of the VirtualHub. - * @param getOutboundRoutesParameters Parameters supplied to get the outbound routes for a connection - * resource. - * @param options The options parameters. - */ - beginGetOutboundRoutesAndWait( - resourceGroupName: string, - virtualHubName: string, - getOutboundRoutesParameters: GetOutboundRoutesParameters, - options?: VirtualHubsGetOutboundRoutesOptionalParams - ): Promise; } diff --git a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts index d813bb7ba1d4..5e2b3d021204 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/virtualNetworks.ts @@ -14,8 +14,6 @@ import { VirtualNetworksListOptionalParams, VirtualNetworkUsage, VirtualNetworksListUsageOptionalParams, - PublicIpDdosProtectionStatusResult, - VirtualNetworksListDdosProtectionStatusOptionalParams, VirtualNetworksDeleteOptionalParams, VirtualNetworksGetOptionalParams, VirtualNetworksGetResponse, @@ -58,17 +56,6 @@ export interface VirtualNetworks { virtualNetworkName: string, options?: VirtualNetworksListUsageOptionalParams ): PagedAsyncIterableIterator; - /** - * Gets the Ddos Protection Status of all IP Addresses under the Virtual Network - * @param resourceGroupName The name of the resource group. - * @param virtualNetworkName The name of the virtual network. - * @param options The options parameters. - */ - beginListDdosProtectionStatusAndWait( - resourceGroupName: string, - virtualNetworkName: string, - options?: VirtualNetworksListDdosProtectionStatusOptionalParams - ): PagedAsyncIterableIterator; /** * Deletes the specified virtual network. * @param resourceGroupName The name of the resource group. diff --git a/sdk/network/arm-network/test/sampleTest.ts b/sdk/network/arm-network/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/network/arm-network/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/network/arm-network/tsconfig.json b/sdk/network/arm-network/tsconfig.json index 094dfbf3dbe3..3e6ae96443f3 100644 --- a/sdk/network/arm-network/tsconfig.json +++ b/sdk/network/arm-network/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-network": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules" diff --git a/sdk/purview/purview-administration-rest/swagger/README.md b/sdk/purview/purview-administration-rest/swagger/README.md index 10099375fe9a..4f6f98a9c6a9 100644 --- a/sdk/purview/purview-administration-rest/swagger/README.md +++ b/sdk/purview/purview-administration-rest/swagger/README.md @@ -1,35 +1,32 @@ -# Azure Purview Catalog TypeScript Protocol Layer +# JavaScript > see https://aka.ms/autorest ## Configuration -```yaml $(purview-account) == true -title: PurviewAccount -description: Purview Account Client -output-folder: ../src/account -source-code-folder-path: ./ -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/purview/data-plane/Azure.Analytics.Purview.Account/preview/2019-11-01-preview/account.json -``` - -```yaml $(purview-metadata) == true -title: PurviewMetadataPolicies -description: Purview Metadata Policies Client -output-folder: ../src/metadataPolicies -source-code-folder-path: ./ -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/main/specification/purview/data-plane/Azure.Analytics.Purview.MetadataPolicies/preview/2021-07-01-preview/purviewMetadataPolicy.json -``` - - -```yaml -modelerfour.lenient-model-deduplication: true -package-name: "@azure-rest/purview-administration" -generate-metadata: false +```yaml $(multi-client) +package-name: '@azure-rest/purview-administration' +generate-metadata: true license-header: MICROSOFT_MIT_NO_VERSION -package-version: 1.0.0-beta.2 rest-level-client: true add-credentials: true -credential-scopes: "https://purview.azure.net/.default" +credential-scopes: https://purview.azure.net/.default +require: + - https://github.com/Azure/azure-rest-api-specs/blob/9e30496a8803beb5a84909997e5cd7ea0f242fd8/specification/purview/data-plane/administration/readme.md use-extension: - "@autorest/typescript": "latest" + '@autorest/typescript': 6.0.0-beta.20 +tag: false +batch: + - purview-account: true + - purview-metadata: true +``` +```yaml $(purview-account) +output-folder: ../ +source-code-folder-path: ./src/account +title: PurviewAccount +``` +```yaml $(purview-metadata) +output-folder: ../ +source-code-folder-path: ./src/metadataPolicies +title: PurviewMetadataPolicies ```