From 0a3f1b4c008d41f4b3ee7602fcc6905267a1302b Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Aug 2023 11:23:19 +0000 Subject: [PATCH] CodeGen from PR 25201 in Azure/azure-rest-api-specs Merge 4317e0b41f2d8825aee94e1490cb4233b156974f into a3089b2764df11b10a8a43e2a5a33dbe4d3653ca --- sdk/network/arm-network/CHANGELOG.md | 26 +-- sdk/network/arm-network/_meta.json | 8 +- sdk/network/arm-network/package.json | 16 +- .../arm-network/review/arm-network.api.md | 31 ++++ sdk/network/arm-network/src/models/index.ts | 58 ++++++- sdk/network/arm-network/src/models/mappers.ts | 46 +++++ .../arm-network/src/models/parameters.ts | 158 +++++++++++------- .../src/networkManagementClient.ts | 2 +- .../src/operations/connectionMonitors.ts | 2 +- .../arm-network/src/operations/flowLogs.ts | 2 +- .../inboundSecurityRuleOperations.ts | 2 +- .../loadBalancerBackendAddressPools.ts | 2 +- .../src/operations/loadBalancers.ts | 43 +++++ .../src/operations/localNetworkGateways.ts | 2 +- ...anagementGroupNetworkManagerConnections.ts | 2 +- .../arm-network/src/operations/natGateways.ts | 2 +- .../src/operations/networkGroups.ts | 2 +- .../src/operations/networkManagerCommits.ts | 2 +- ...etworkManagerDeploymentStatusOperations.ts | 2 +- .../src/operations/networkManagers.ts | 4 +- .../src/operations/networkProfiles.ts | 2 +- .../src/operations/networkSecurityGroups.ts | 2 +- .../operations/networkVirtualAppliances.ts | 2 +- .../src/operations/networkWatchers.ts | 26 +-- .../src/operations/p2SVpnGateways.ts | 2 +- .../src/operations/packetCaptures.ts | 2 +- .../src/operations/privateDnsZoneGroups.ts | 2 +- .../src/operations/privateEndpoints.ts | 2 +- .../src/operations/privateLinkServices.ts | 8 +- .../src/operations/publicIPPrefixes.ts | 2 +- .../arm-network/src/operations/routeTables.ts | 2 +- .../src/operations/scopeConnections.ts | 2 +- .../operations/securityPartnerProviders.ts | 2 +- .../src/operations/serviceEndpointPolicies.ts | 2 +- .../src/operations/staticMembers.ts | 2 +- .../subscriptionNetworkManagerConnections.ts | 2 +- .../src/operations/virtualApplianceSites.ts | 2 +- .../src/operations/virtualHubBgpConnection.ts | 2 +- .../operations/virtualHubIpConfiguration.ts | 2 +- .../virtualNetworkGatewayConnections.ts | 10 +- .../src/operations/virtualNetworkGateways.ts | 12 +- .../src/operations/virtualNetworkTaps.ts | 2 +- .../src/operations/virtualNetworks.ts | 2 +- .../src/operations/virtualRouterPeerings.ts | 2 +- .../src/operations/virtualRouters.ts | 2 +- .../src/operations/vpnConnections.ts | 4 +- .../arm-network/src/operations/vpnGateways.ts | 4 +- .../webApplicationFirewallPolicies.ts | 2 +- .../src/operationsInterfaces/loadBalancers.ts | 15 +- sdk/network/arm-network/test/sampleTest.ts | 43 +++++ sdk/network/arm-network/tsconfig.json | 10 +- 51 files changed, 419 insertions(+), 169 deletions(-) create mode 100644 sdk/network/arm-network/test/sampleTest.ts diff --git a/sdk/network/arm-network/CHANGELOG.md b/sdk/network/arm-network/CHANGELOG.md index 6c76f93cc68b..993ba6ed1c6c 100644 --- a/sdk/network/arm-network/CHANGELOG.md +++ b/sdk/network/arm-network/CHANGELOG.md @@ -1,15 +1,21 @@ # Release History + +## 32.1.0 (2023-08-07) + +**Features** -## 32.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation LoadBalancers.migrateToIpBased + - Added Interface LoadBalancersMigrateToIpBasedOptionalParams + - Added Interface MigratedPools + - Added Interface MigrateLoadBalancerToIpBasedRequest + - Added Type Alias LoadBalancersMigrateToIpBasedResponse + - Added Type Alias SyncMode + - Interface BackendAddressPool has a new optional parameter syncMode + - Added Enum KnownSyncMode + - Enum KnownApplicationGatewaySkuName has a new value Basic + - Enum KnownApplicationGatewayTier has a new value Basic + + ## 32.0.0 (2023-07-06) **Features** diff --git a/sdk/network/arm-network/_meta.json b/sdk/network/arm-network/_meta.json index 2b129b5b05d0..e13eba682be6 100644 --- a/sdk/network/arm-network/_meta.json +++ b/sdk/network/arm-network/_meta.json @@ -1,8 +1,8 @@ { - "commit": "26cac4f70e9ce0e1c2f77de8303b47d1faa9ad33", + "commit": "f4d70b489b950b9c05344f9c9d1355eaa2797420", "readme": "specification/network/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --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.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --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.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/network/arm-network/package.json b/sdk/network/arm-network/package.json index f0b6085b98dd..9ce9d21c5bea 100644 --- a/sdk/network/arm-network/package.json +++ b/sdk/network/arm-network/package.json @@ -3,12 +3,12 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NetworkManagementClient.", - "version": "32.0.1", + "version": "32.1.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.3", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network" +} \ 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 31e553e3584b..538bf5f86dd6 100644 --- a/sdk/network/arm-network/review/arm-network.api.md +++ b/sdk/network/arm-network/review/arm-network.api.md @@ -1941,6 +1941,7 @@ export interface BackendAddressPool extends SubResource { readonly outboundRule?: SubResource; readonly outboundRules?: SubResource[]; readonly provisioningState?: ProvisioningState; + syncMode?: SyncMode; tunnelInterfaces?: GatewayLoadBalancerTunnelInterface[]; readonly type?: string; virtualNetwork?: SubResource; @@ -6069,6 +6070,7 @@ export enum KnownApplicationGatewayRuleSetStatusOptions { // @public export enum KnownApplicationGatewaySkuName { + Basic = "Basic", StandardLarge = "Standard_Large", StandardMedium = "Standard_Medium", StandardSmall = "Standard_Small", @@ -6136,6 +6138,7 @@ export enum KnownApplicationGatewaySslProtocol { // @public export enum KnownApplicationGatewayTier { + Basic = "Basic", Standard = "Standard", StandardV2 = "Standard_v2", WAF = "WAF", @@ -7212,6 +7215,12 @@ export enum KnownSeverity { Warning = "Warning" } +// @public +export enum KnownSyncMode { + Automatic = "Automatic", + Manual = "Manual" +} + // @public export enum KnownSyncRemoteAddressSpace { True = "true" @@ -7929,6 +7938,7 @@ export interface LoadBalancers { get(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise; list(resourceGroupName: string, options?: LoadBalancersListOptionalParams): PagedAsyncIterableIterator; listAll(options?: LoadBalancersListAllOptionalParams): PagedAsyncIterableIterator; + migrateToIpBased(groupName: string, loadBalancerName: string, options?: LoadBalancersMigrateToIpBasedOptionalParams): Promise; updateTags(resourceGroupName: string, loadBalancerName: string, parameters: TagsObject, options?: LoadBalancersUpdateTagsOptionalParams): Promise; } @@ -8004,6 +8014,14 @@ export interface LoadBalancersListOptionalParams extends coreClient.OperationOpt // @public export type LoadBalancersListResponse = LoadBalancerListResult; +// @public +export interface LoadBalancersMigrateToIpBasedOptionalParams extends coreClient.OperationOptions { + parameters?: MigrateLoadBalancerToIpBasedRequest; +} + +// @public +export type LoadBalancersMigrateToIpBasedResponse = MigratedPools; + // @public export interface LoadBalancersSwapPublicIpAddressesOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; @@ -8249,6 +8267,16 @@ export interface MetricSpecification { unit?: string; } +// @public +export interface MigratedPools { + migratedPools?: string[]; +} + +// @public +export interface MigrateLoadBalancerToIpBasedRequest { + pools?: string[]; +} + // @public export interface NatGateway extends Resource { readonly etag?: string; @@ -12890,6 +12918,9 @@ export interface SwapResourceProperties { slotType?: SlotType; } +// @public +export type SyncMode = string; + // @public export type SyncRemoteAddressSpace = string; diff --git a/sdk/network/arm-network/src/models/index.ts b/sdk/network/arm-network/src/models/index.ts index bcd3e86f9210..2a6b8f629a33 100644 --- a/sdk/network/arm-network/src/models/index.ts +++ b/sdk/network/arm-network/src/models/index.ts @@ -2051,6 +2051,18 @@ export interface InboundNatRulePortMapping { readonly backendPort?: number; } +/** The request for a migrateToIpBased API. */ +export interface MigrateLoadBalancerToIpBasedRequest { + /** A list of pool names that should be migrated from Nic based to IP based pool */ + pools?: string[]; +} + +/** The response for a migrateToIpBased API. */ +export interface MigratedPools { + /** A list of pools migrated from Nic based to IP based pool */ + migratedPools?: string[]; +} + /** Response for ListNatGateways API service call. */ export interface NatGatewayListResult { /** A list of Nat Gateways that exists in a resource group. */ @@ -6132,7 +6144,7 @@ export interface ApplicationGatewayProbe extends SubResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningState?: ProvisioningState; - /** Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Standard_v2 and WAF_v2 only. */ + /** Custom port which will be used for probing the backend servers. The valid value ranges from 1 to 65535. In case not set, port from http settings will be used. This property is valid for Basic, Standard_v2 and WAF_v2 only. */ port?: number; } @@ -6664,6 +6676,8 @@ export interface BackendAddressPool extends SubResource { drainPeriodInSeconds?: number; /** A reference to a virtual network. */ virtualNetwork?: SubResource; + /** Backend address synchronous mode for the backend pool */ + syncMode?: SyncMode; } /** Inbound NAT rule of the load balancer. */ @@ -11679,7 +11693,9 @@ export enum KnownApplicationGatewaySkuName { /** StandardV2 */ StandardV2 = "Standard_v2", /** WAFV2 */ - WAFV2 = "WAF_v2" + WAFV2 = "WAF_v2", + /** Basic */ + Basic = "Basic" } /** @@ -11693,7 +11709,8 @@ export enum KnownApplicationGatewaySkuName { * **WAF_Medium** \ * **WAF_Large** \ * **Standard_v2** \ - * **WAF_v2** + * **WAF_v2** \ + * **Basic** */ export type ApplicationGatewaySkuName = string; @@ -11706,7 +11723,9 @@ export enum KnownApplicationGatewayTier { /** StandardV2 */ StandardV2 = "Standard_v2", /** WAFV2 */ - WAFV2 = "WAF_v2" + WAFV2 = "WAF_v2", + /** Basic */ + Basic = "Basic" } /** @@ -11717,7 +11736,8 @@ export enum KnownApplicationGatewayTier { * **Standard** \ * **WAF** \ * **Standard_v2** \ - * **WAF_v2** + * **WAF_v2** \ + * **Basic** */ export type ApplicationGatewayTier = string; @@ -12432,6 +12452,24 @@ export enum KnownLoadBalancerBackendAddressAdminState { */ export type LoadBalancerBackendAddressAdminState = string; +/** Known values of {@link SyncMode} that the service accepts. */ +export enum KnownSyncMode { + /** Automatic */ + Automatic = "Automatic", + /** Manual */ + Manual = "Manual" +} + +/** + * Defines values for SyncMode. \ + * {@link KnownSyncMode} can be used interchangeably with SyncMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Automatic** \ + * **Manual** + */ +export type SyncMode = string; + /** Known values of {@link TransportProtocol} that the service accepts. */ export enum KnownTransportProtocol { /** Udp */ @@ -18699,6 +18737,16 @@ export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams /** Contains response data for the listInboundNatRulePortMappings operation. */ export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings; +/** Optional parameters. */ +export interface LoadBalancersMigrateToIpBasedOptionalParams + extends coreClient.OperationOptions { + /** Parameters supplied to the migrateToIpBased Api. */ + parameters?: MigrateLoadBalancerToIpBasedRequest; +} + +/** Contains response data for the migrateToIpBased operation. */ +export type LoadBalancersMigrateToIpBasedResponse = MigratedPools; + /** Optional parameters. */ export interface LoadBalancersListAllNextOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/network/arm-network/src/models/mappers.ts b/sdk/network/arm-network/src/models/mappers.ts index 2129e3df6570..6883e5c0a02d 100644 --- a/sdk/network/arm-network/src/models/mappers.ts +++ b/sdk/network/arm-network/src/models/mappers.ts @@ -5766,6 +5766,46 @@ export const InboundNatRulePortMapping: coreClient.CompositeMapper = { } }; +export const MigrateLoadBalancerToIpBasedRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MigrateLoadBalancerToIpBasedRequest", + modelProperties: { + pools: { + serializedName: "pools", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const MigratedPools: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MigratedPools", + modelProperties: { + migratedPools: { + serializedName: "migratedPools", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + export const NatGatewayListResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -18502,6 +18542,12 @@ export const BackendAddressPool: coreClient.CompositeMapper = { name: "Composite", className: "SubResource" } + }, + syncMode: { + serializedName: "properties.syncMode", + type: { + name: "String" + } } } } diff --git a/sdk/network/arm-network/src/models/parameters.ts b/sdk/network/arm-network/src/models/parameters.ts index 661a2dabda53..d628a5d409af 100644 --- a/sdk/network/arm-network/src/models/parameters.ts +++ b/sdk/network/arm-network/src/models/parameters.ts @@ -51,6 +51,7 @@ import { LoadBalancer as LoadBalancerMapper, LoadBalancerVipSwapRequest as LoadBalancerVipSwapRequestMapper, QueryInboundNatRulePortMappingRequest as QueryInboundNatRulePortMappingRequestMapper, + MigrateLoadBalancerToIpBasedRequest as MigrateLoadBalancerToIpBasedRequestMapper, BackendAddressPool as BackendAddressPoolMapper, InboundNatRule as InboundNatRuleMapper, NatGateway as NatGatewayMapper, @@ -203,7 +204,7 @@ export const applicationGatewayName: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-02-01", + defaultValue: "2023-04-01", isConstant: true, serializedName: "api-version", type: { @@ -965,6 +966,39 @@ export const backendPoolName: OperationURLParameter = { } }; +export const parameters29: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: MigrateLoadBalancerToIpBasedRequestMapper +}; + +export const groupName1: OperationURLParameter = { + parameterPath: "groupName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$") + }, + serializedName: "groupName", + required: true, + type: { + name: "String" + } + } +}; + +export const loadBalancerName1: OperationURLParameter = { + parameterPath: "loadBalancerName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$") + }, + serializedName: "loadBalancerName", + required: true, + type: { + name: "String" + } + } +}; + export const backendAddressPoolName: OperationURLParameter = { parameterPath: "backendAddressPoolName", mapper: { @@ -976,7 +1010,7 @@ export const backendAddressPoolName: OperationURLParameter = { } }; -export const parameters29: OperationParameter = { +export const parameters30: OperationParameter = { parameterPath: "parameters", mapper: BackendAddressPoolMapper }; @@ -1052,7 +1086,7 @@ export const natGatewayName: OperationURLParameter = { } }; -export const parameters30: OperationParameter = { +export const parameters31: OperationParameter = { parameterPath: "parameters", mapper: NatGatewayMapper }; @@ -1073,7 +1107,7 @@ export const tapConfigurationParameters: OperationParameter = { mapper: NetworkInterfaceTapConfigurationMapper }; -export const parameters31: OperationParameter = { +export const parameters32: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerMapper }; @@ -1088,7 +1122,7 @@ export const force: OperationQueryParameter = { } }; -export const parameters32: OperationParameter = { +export const parameters33: OperationParameter = { parameterPath: "parameters", mapper: PatchObjectMapper }; @@ -1103,17 +1137,17 @@ export const skipToken: OperationQueryParameter = { } }; -export const parameters33: OperationParameter = { +export const parameters34: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerCommitMapper }; -export const parameters34: OperationParameter = { +export const parameters35: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerDeploymentStatusParameterMapper }; -export const parameters35: OperationParameter = { +export const parameters36: OperationParameter = { parameterPath: "parameters", mapper: NetworkManagerConnectionMapper }; @@ -1167,7 +1201,7 @@ export const networkGroupName: OperationURLParameter = { } }; -export const parameters36: OperationParameter = { +export const parameters37: OperationParameter = { parameterPath: "parameters", mapper: NetworkGroupMapper }; @@ -1193,12 +1227,12 @@ export const staticMemberName: OperationURLParameter = { } }; -export const parameters37: OperationParameter = { +export const parameters38: OperationParameter = { parameterPath: "parameters", mapper: StaticMemberMapper }; -export const parameters38: OperationParameter = { +export const parameters39: OperationParameter = { parameterPath: "parameters", mapper: ScopeConnectionMapper }; @@ -1262,7 +1296,7 @@ export const networkProfileName: OperationURLParameter = { } }; -export const parameters39: OperationParameter = { +export const parameters40: OperationParameter = { parameterPath: "parameters", mapper: NetworkProfileMapper }; @@ -1278,7 +1312,7 @@ export const networkSecurityGroupName: OperationURLParameter = { } }; -export const parameters40: OperationParameter = { +export const parameters41: OperationParameter = { parameterPath: "parameters", mapper: NetworkSecurityGroupMapper }; @@ -1321,7 +1355,7 @@ export const networkVirtualApplianceName: OperationURLParameter = { } }; -export const parameters41: OperationParameter = { +export const parameters42: OperationParameter = { parameterPath: "parameters", mapper: NetworkVirtualApplianceMapper }; @@ -1337,7 +1371,7 @@ export const siteName: OperationURLParameter = { } }; -export const parameters42: OperationParameter = { +export const parameters43: OperationParameter = { parameterPath: "parameters", mapper: VirtualApplianceSiteMapper }; @@ -1353,12 +1387,12 @@ export const skuName: OperationURLParameter = { } }; -export const parameters43: OperationParameter = { +export const parameters44: OperationParameter = { parameterPath: "parameters", mapper: InboundSecurityRuleMapper }; -export const parameters44: OperationParameter = { +export const parameters45: OperationParameter = { parameterPath: "parameters", mapper: NetworkWatcherMapper }; @@ -1374,67 +1408,67 @@ export const networkWatcherName: OperationURLParameter = { } }; -export const parameters45: OperationParameter = { +export const parameters46: OperationParameter = { parameterPath: "parameters", mapper: TopologyParametersMapper }; -export const parameters46: OperationParameter = { +export const parameters47: OperationParameter = { parameterPath: "parameters", mapper: VerificationIPFlowParametersMapper }; -export const parameters47: OperationParameter = { +export const parameters48: OperationParameter = { parameterPath: "parameters", mapper: NextHopParametersMapper }; -export const parameters48: OperationParameter = { +export const parameters49: OperationParameter = { parameterPath: "parameters", mapper: SecurityGroupViewParametersMapper }; -export const parameters49: OperationParameter = { +export const parameters50: OperationParameter = { parameterPath: "parameters", mapper: TroubleshootingParametersMapper }; -export const parameters50: OperationParameter = { +export const parameters51: OperationParameter = { parameterPath: "parameters", mapper: QueryTroubleshootingParametersMapper }; -export const parameters51: OperationParameter = { +export const parameters52: OperationParameter = { parameterPath: "parameters", mapper: FlowLogInformationMapper }; -export const parameters52: OperationParameter = { +export const parameters53: OperationParameter = { parameterPath: "parameters", mapper: FlowLogStatusParametersMapper }; -export const parameters53: OperationParameter = { +export const parameters54: OperationParameter = { parameterPath: "parameters", mapper: ConnectivityParametersMapper }; -export const parameters54: OperationParameter = { +export const parameters55: OperationParameter = { parameterPath: "parameters", mapper: AzureReachabilityReportParametersMapper }; -export const parameters55: OperationParameter = { +export const parameters56: OperationParameter = { parameterPath: "parameters", mapper: AvailableProvidersListParametersMapper }; -export const parameters56: OperationParameter = { +export const parameters57: OperationParameter = { parameterPath: "parameters", mapper: NetworkConfigurationDiagnosticParametersMapper }; -export const parameters57: OperationParameter = { +export const parameters58: OperationParameter = { parameterPath: "parameters", mapper: PacketCaptureMapper }; @@ -1450,7 +1484,7 @@ export const packetCaptureName: OperationURLParameter = { } }; -export const parameters58: OperationParameter = { +export const parameters59: OperationParameter = { parameterPath: "parameters", mapper: ConnectionMonitorMapper }; @@ -1476,7 +1510,7 @@ export const migrate: OperationQueryParameter = { } }; -export const parameters59: OperationParameter = { +export const parameters60: OperationParameter = { parameterPath: "parameters", mapper: FlowLogMapper }; @@ -1503,7 +1537,7 @@ export const privateEndpointName: OperationURLParameter = { } }; -export const parameters60: OperationParameter = { +export const parameters61: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointMapper }; @@ -1519,7 +1553,7 @@ export const privateDnsZoneGroupName: OperationURLParameter = { } }; -export const parameters61: OperationParameter = { +export const parameters62: OperationParameter = { parameterPath: "parameters", mapper: PrivateDnsZoneGroupMapper }; @@ -1535,7 +1569,7 @@ export const serviceName: OperationURLParameter = { } }; -export const parameters62: OperationParameter = { +export const parameters63: OperationParameter = { parameterPath: "parameters", mapper: PrivateLinkServiceMapper }; @@ -1551,12 +1585,12 @@ export const peConnectionName: OperationURLParameter = { } }; -export const parameters63: OperationParameter = { +export const parameters64: OperationParameter = { parameterPath: "parameters", mapper: PrivateEndpointConnectionMapper }; -export const parameters64: OperationParameter = { +export const parameters65: OperationParameter = { parameterPath: "parameters", mapper: CheckPrivateLinkServiceVisibilityRequestMapper }; @@ -1572,7 +1606,7 @@ export const publicIpPrefixName: OperationURLParameter = { } }; -export const parameters65: OperationParameter = { +export const parameters66: OperationParameter = { parameterPath: "parameters", mapper: PublicIPPrefixMapper }; @@ -1609,7 +1643,7 @@ export const routeTableName: OperationURLParameter = { } }; -export const parameters66: OperationParameter = { +export const parameters67: OperationParameter = { parameterPath: "parameters", mapper: RouteTableMapper }; @@ -1641,7 +1675,7 @@ export const securityPartnerProviderName: OperationURLParameter = { } }; -export const parameters67: OperationParameter = { +export const parameters68: OperationParameter = { parameterPath: "parameters", mapper: SecurityPartnerProviderMapper }; @@ -1657,7 +1691,7 @@ export const serviceEndpointPolicyName: OperationURLParameter = { } }; -export const parameters68: OperationParameter = { +export const parameters69: OperationParameter = { parameterPath: "parameters", mapper: ServiceEndpointPolicyMapper }; @@ -1712,7 +1746,7 @@ export const location1: OperationURLParameter = { } }; -export const parameters69: OperationParameter = { +export const parameters70: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkMapper }; @@ -1800,7 +1834,7 @@ export const syncRemoteAddressSpace: OperationQueryParameter = { } }; -export const parameters70: OperationParameter = { +export const parameters71: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayMapper }; @@ -1826,7 +1860,7 @@ export const gatewayVip: OperationQueryParameter = { } }; -export const parameters71: OperationParameter = { +export const parameters72: OperationParameter = { parameterPath: "parameters", mapper: VpnClientParametersMapper }; @@ -1857,7 +1891,7 @@ export const vpnclientIpsecParams: OperationParameter = { mapper: VpnClientIPsecParametersMapper }; -export const parameters72: OperationParameter = { +export const parameters73: OperationParameter = { parameterPath: "parameters", mapper: VpnDeviceScriptParametersMapper }; @@ -1873,12 +1907,12 @@ export const virtualNetworkGatewayConnectionName: OperationURLParameter = { } }; -export const parameters73: OperationParameter = { +export const parameters74: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnPacketCaptureStartParametersMapper }; -export const parameters74: OperationParameter = { +export const parameters75: OperationParameter = { parameterPath: "parameters", mapper: VpnPacketCaptureStopParametersMapper }; @@ -1888,22 +1922,22 @@ export const request1: OperationParameter = { mapper: P2SVpnConnectionRequestMapper }; -export const parameters75: OperationParameter = { +export const parameters76: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkGatewayConnectionMapper }; -export const parameters76: OperationParameter = { +export const parameters77: OperationParameter = { parameterPath: "parameters", mapper: ConnectionSharedKeyMapper }; -export const parameters77: OperationParameter = { +export const parameters78: OperationParameter = { parameterPath: "parameters", mapper: ConnectionResetSharedKeyMapper }; -export const parameters78: OperationParameter = { +export const parameters79: OperationParameter = { parameterPath: "parameters", mapper: LocalNetworkGatewayMapper }; @@ -1949,7 +1983,7 @@ export const tapName: OperationURLParameter = { } }; -export const parameters79: OperationParameter = { +export const parameters80: OperationParameter = { parameterPath: "parameters", mapper: VirtualNetworkTapMapper }; @@ -1970,12 +2004,12 @@ export const virtualRouterName: OperationURLParameter = { } }; -export const parameters80: OperationParameter = { +export const parameters81: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterMapper }; -export const parameters81: OperationParameter = { +export const parameters82: OperationParameter = { parameterPath: "parameters", mapper: VirtualRouterPeeringMapper }; @@ -2163,12 +2197,12 @@ export const ipConfigurationId: OperationQueryParameter = { } }; -export const parameters82: OperationParameter = { +export const parameters83: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStartParametersMapper }; -export const parameters83: OperationParameter = { +export const parameters84: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnGatewayPacketCaptureStopParametersMapper }; @@ -2189,7 +2223,7 @@ export const vpnConnectionParameters: OperationParameter = { mapper: VpnConnectionMapper }; -export const parameters84: OperationParameter = { +export const parameters85: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStartParametersMapper }; @@ -2205,7 +2239,7 @@ export const vpnConnectionName: OperationURLParameter = { } }; -export const parameters85: OperationParameter = { +export const parameters86: OperationParameter = { parameterPath: ["options", "parameters"], mapper: VpnConnectionPacketCaptureStopParametersMapper }; @@ -2225,7 +2259,7 @@ export const p2SVpnGatewayParameters1: OperationParameter = { mapper: TagsObjectMapper }; -export const parameters86: OperationParameter = { +export const parameters87: OperationParameter = { parameterPath: "parameters", mapper: P2SVpnProfileParametersMapper }; @@ -2310,7 +2344,7 @@ export const connectionName1: OperationURLParameter = { } }; -export const parameters87: OperationParameter = { +export const parameters88: OperationParameter = { parameterPath: "parameters", mapper: BgpConnectionMapper }; @@ -2337,7 +2371,7 @@ export const ipConfigName: OperationURLParameter = { } }; -export const parameters88: OperationParameter = { +export const parameters89: OperationParameter = { parameterPath: "parameters", mapper: HubIpConfigurationMapper }; @@ -2377,7 +2411,7 @@ export const policyName: OperationURLParameter = { } }; -export const parameters89: OperationParameter = { +export const parameters90: OperationParameter = { parameterPath: "parameters", mapper: WebApplicationFirewallPolicyMapper }; diff --git a/sdk/network/arm-network/src/networkManagementClient.ts b/sdk/network/arm-network/src/networkManagementClient.ts index 5d459779d54d..ab9c464888de 100644 --- a/sdk/network/arm-network/src/networkManagementClient.ts +++ b/sdk/network/arm-network/src/networkManagementClient.ts @@ -379,7 +379,7 @@ export class NetworkManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-network/32.0.1`; + const packageDetails = `azsdk-js-arm-network/32.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/network/arm-network/src/operations/connectionMonitors.ts b/sdk/network/arm-network/src/operations/connectionMonitors.ts index e3471a24a39e..9a0ba8b2aa59 100644 --- a/sdk/network/arm-network/src/operations/connectionMonitors.ts +++ b/sdk/network/arm-network/src/operations/connectionMonitors.ts @@ -686,7 +686,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters58, + requestBody: Parameters.parameters59, queryParameters: [Parameters.apiVersion, Parameters.migrate], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/flowLogs.ts b/sdk/network/arm-network/src/operations/flowLogs.ts index 11feb8cb8849..fabefdfa3494 100644 --- a/sdk/network/arm-network/src/operations/flowLogs.ts +++ b/sdk/network/arm-network/src/operations/flowLogs.ts @@ -429,7 +429,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters59, + requestBody: Parameters.parameters60, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts index cde2be9b870c..4a2e9fdd7035 100644 --- a/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts +++ b/sdk/network/arm-network/src/operations/inboundSecurityRuleOperations.ts @@ -169,7 +169,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters43, + requestBody: Parameters.parameters44, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts index f8a2cfe2e21a..d7580bb09966 100644 --- a/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts +++ b/sdk/network/arm-network/src/operations/loadBalancerBackendAddressPools.ts @@ -452,7 +452,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters29, + requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/loadBalancers.ts b/sdk/network/arm-network/src/operations/loadBalancers.ts index aa7d5ecc5fe2..0cde19a76226 100644 --- a/sdk/network/arm-network/src/operations/loadBalancers.ts +++ b/sdk/network/arm-network/src/operations/loadBalancers.ts @@ -40,6 +40,8 @@ import { QueryInboundNatRulePortMappingRequest, LoadBalancersListInboundNatRulePortMappingsOptionalParams, LoadBalancersListInboundNatRulePortMappingsResponse, + LoadBalancersMigrateToIpBasedOptionalParams, + LoadBalancersMigrateToIpBasedResponse, LoadBalancersListAllNextResponse, LoadBalancersListNextResponse } from "../models"; @@ -603,6 +605,23 @@ export class LoadBalancersImpl implements LoadBalancers { return poller.pollUntilDone(); } + /** + * Migrate load balancer to IP Based + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The options parameters. + */ + migrateToIpBased( + groupName: string, + loadBalancerName: string, + options?: LoadBalancersMigrateToIpBasedOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { groupName, loadBalancerName, options }, + migrateToIpBasedOperationSpec + ); + } + /** * ListAllNext * @param nextLink The nextLink from the previous successful call to the ListAll method. @@ -836,6 +855,30 @@ const listInboundNatRulePortMappingsOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer }; +const migrateToIpBasedOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/migrateToIpBased", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.MigratedPools + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.parameters29, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.groupName1, + Parameters.loadBalancerName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/network/arm-network/src/operations/localNetworkGateways.ts b/sdk/network/arm-network/src/operations/localNetworkGateways.ts index b707e6040e0e..2c0ba03de05d 100644 --- a/sdk/network/arm-network/src/operations/localNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/localNetworkGateways.ts @@ -381,7 +381,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters78, + requestBody: Parameters.parameters79, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts index 08ec5bd3a005..b70222c26efa 100644 --- a/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/managementGroupNetworkManagerConnections.ts @@ -211,7 +211,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/natGateways.ts b/sdk/network/arm-network/src/operations/natGateways.ts index a12a948f5d8f..33a75bd86f9c 100644 --- a/sdk/network/arm-network/src/operations/natGateways.ts +++ b/sdk/network/arm-network/src/operations/natGateways.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters30, + requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkGroups.ts b/sdk/network/arm-network/src/operations/networkGroups.ts index c6aa5da29b7e..197e13b3ea20 100644 --- a/sdk/network/arm-network/src/operations/networkGroups.ts +++ b/sdk/network/arm-network/src/operations/networkGroups.ts @@ -343,7 +343,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters36, + requestBody: Parameters.parameters37, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerCommits.ts b/sdk/network/arm-network/src/operations/networkManagerCommits.ts index e8e888c3fd50..83a9ded1c567 100644 --- a/sdk/network/arm-network/src/operations/networkManagerCommits.ts +++ b/sdk/network/arm-network/src/operations/networkManagerCommits.ts @@ -155,7 +155,7 @@ const postOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters33, + requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts index 714819e8dad2..d4930a95e741 100644 --- a/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts +++ b/sdk/network/arm-network/src/operations/networkManagerDeploymentStatusOperations.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters34, + requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion, Parameters.top], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkManagers.ts b/sdk/network/arm-network/src/operations/networkManagers.ts index dfd4f26b1874..175581b41c5c 100644 --- a/sdk/network/arm-network/src/operations/networkManagers.ts +++ b/sdk/network/arm-network/src/operations/networkManagers.ts @@ -406,7 +406,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters31, + requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -453,7 +453,7 @@ const patchOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters32, + requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkProfiles.ts b/sdk/network/arm-network/src/operations/networkProfiles.ts index 0063be1a0136..38a0fe42e83d 100644 --- a/sdk/network/arm-network/src/operations/networkProfiles.ts +++ b/sdk/network/arm-network/src/operations/networkProfiles.ts @@ -426,7 +426,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters39, + requestBody: Parameters.parameters40, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts index b2becb503825..dc48205a47f5 100644 --- a/sdk/network/arm-network/src/operations/networkSecurityGroups.ts +++ b/sdk/network/arm-network/src/operations/networkSecurityGroups.ts @@ -514,7 +514,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters40, + requestBody: Parameters.parameters41, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts index a088f54f67f5..039f269e2265 100644 --- a/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts +++ b/sdk/network/arm-network/src/operations/networkVirtualAppliances.ts @@ -545,7 +545,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters41, + requestBody: Parameters.parameters42, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/networkWatchers.ts b/sdk/network/arm-network/src/operations/networkWatchers.ts index 4400cec01654..ce3959f41325 100644 --- a/sdk/network/arm-network/src/operations/networkWatchers.ts +++ b/sdk/network/arm-network/src/operations/networkWatchers.ts @@ -1441,7 +1441,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters44, + requestBody: Parameters.parameters45, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1572,7 +1572,7 @@ const getTopologyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters45, + requestBody: Parameters.parameters46, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1605,7 +1605,7 @@ const verifyIPFlowOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters46, + requestBody: Parameters.parameters47, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1638,7 +1638,7 @@ const getNextHopOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters47, + requestBody: Parameters.parameters48, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1671,7 +1671,7 @@ const getVMSecurityRulesOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters48, + requestBody: Parameters.parameters49, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1704,7 +1704,7 @@ const getTroubleshootingOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters49, + requestBody: Parameters.parameters50, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1737,7 +1737,7 @@ const getTroubleshootingResultOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters50, + requestBody: Parameters.parameters51, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1770,7 +1770,7 @@ const setFlowLogConfigurationOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters51, + requestBody: Parameters.parameters52, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1803,7 +1803,7 @@ const getFlowLogStatusOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters52, + requestBody: Parameters.parameters53, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1836,7 +1836,7 @@ const checkConnectivityOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters53, + requestBody: Parameters.parameters54, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1869,7 +1869,7 @@ const getAzureReachabilityReportOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters54, + requestBody: Parameters.parameters55, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1902,7 +1902,7 @@ const listAvailableProvidersOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters55, + requestBody: Parameters.parameters56, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1935,7 +1935,7 @@ const getNetworkConfigurationDiagnosticOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters56, + requestBody: Parameters.parameters57, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts index d1dbf66a6461..1185362dbbc4 100644 --- a/sdk/network/arm-network/src/operations/p2SVpnGateways.ts +++ b/sdk/network/arm-network/src/operations/p2SVpnGateways.ts @@ -1218,7 +1218,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters86, + requestBody: Parameters.parameters87, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/packetCaptures.ts b/sdk/network/arm-network/src/operations/packetCaptures.ts index 5891edfbf593..6a52ad36a909 100644 --- a/sdk/network/arm-network/src/operations/packetCaptures.ts +++ b/sdk/network/arm-network/src/operations/packetCaptures.ts @@ -562,7 +562,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters57, + requestBody: Parameters.parameters58, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts index 2807cc951e19..7db80e332a37 100644 --- a/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts +++ b/sdk/network/arm-network/src/operations/privateDnsZoneGroups.ts @@ -460,7 +460,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters61, + requestBody: Parameters.parameters62, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateEndpoints.ts b/sdk/network/arm-network/src/operations/privateEndpoints.ts index 39dd889edb57..aa840b54b51a 100644 --- a/sdk/network/arm-network/src/operations/privateEndpoints.ts +++ b/sdk/network/arm-network/src/operations/privateEndpoints.ts @@ -490,7 +490,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters60, + requestBody: Parameters.parameters61, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/privateLinkServices.ts b/sdk/network/arm-network/src/operations/privateLinkServices.ts index 7a45505a5092..aa69067f3176 100644 --- a/sdk/network/arm-network/src/operations/privateLinkServices.ts +++ b/sdk/network/arm-network/src/operations/privateLinkServices.ts @@ -1200,7 +1200,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters62, + requestBody: Parameters.parameters63, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1285,7 +1285,7 @@ const updatePrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters63, + requestBody: Parameters.parameters64, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1365,7 +1365,7 @@ const checkPrivateLinkServiceVisibilityOperationSpec: coreClient.OperationSpec = bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1397,7 +1397,7 @@ const checkPrivateLinkServiceVisibilityByResourceGroupOperationSpec: coreClient. bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters64, + requestBody: Parameters.parameters65, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts index c6e71a32d7d1..4928826b637a 100644 --- a/sdk/network/arm-network/src/operations/publicIPPrefixes.ts +++ b/sdk/network/arm-network/src/operations/publicIPPrefixes.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters65, + requestBody: Parameters.parameters66, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/routeTables.ts b/sdk/network/arm-network/src/operations/routeTables.ts index cee23eaa97f4..a50d181a6c66 100644 --- a/sdk/network/arm-network/src/operations/routeTables.ts +++ b/sdk/network/arm-network/src/operations/routeTables.ts @@ -509,7 +509,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters66, + requestBody: Parameters.parameters67, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/scopeConnections.ts b/sdk/network/arm-network/src/operations/scopeConnections.ts index a5a23b9446fe..15ab47732cac 100644 --- a/sdk/network/arm-network/src/operations/scopeConnections.ts +++ b/sdk/network/arm-network/src/operations/scopeConnections.ts @@ -238,7 +238,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters38, + requestBody: Parameters.parameters39, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts index eb8972fa2aa5..66abf6889112 100644 --- a/sdk/network/arm-network/src/operations/securityPartnerProviders.ts +++ b/sdk/network/arm-network/src/operations/securityPartnerProviders.ts @@ -521,7 +521,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters67, + requestBody: Parameters.parameters68, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts index a0a570f78c7b..f5748352f060 100644 --- a/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts +++ b/sdk/network/arm-network/src/operations/serviceEndpointPolicies.ts @@ -521,7 +521,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters68, + requestBody: Parameters.parameters69, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/staticMembers.ts b/sdk/network/arm-network/src/operations/staticMembers.ts index b67a9bd34465..728babfa616e 100644 --- a/sdk/network/arm-network/src/operations/staticMembers.ts +++ b/sdk/network/arm-network/src/operations/staticMembers.ts @@ -304,7 +304,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters37, + requestBody: Parameters.parameters38, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts index 5bd576a55f5c..0db755eb9e08 100644 --- a/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts +++ b/sdk/network/arm-network/src/operations/subscriptionNetworkManagerConnections.ts @@ -184,7 +184,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters35, + requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts index e282b4ecec3b..fd904825a361 100644 --- a/sdk/network/arm-network/src/operations/virtualApplianceSites.ts +++ b/sdk/network/arm-network/src/operations/virtualApplianceSites.ts @@ -457,7 +457,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters42, + requestBody: Parameters.parameters43, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts index 2662b778efcb..e0bf55628339 100644 --- a/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts +++ b/sdk/network/arm-network/src/operations/virtualHubBgpConnection.ts @@ -301,7 +301,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters87, + requestBody: Parameters.parameters88, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts index 519070619fad..b6f0b8976f96 100644 --- a/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts +++ b/sdk/network/arm-network/src/operations/virtualHubIpConfiguration.ts @@ -421,7 +421,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters88, + requestBody: Parameters.parameters89, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts index 71040efa8659..94518904a042 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGatewayConnections.ts @@ -1095,7 +1095,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters75, + requestBody: Parameters.parameters76, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1206,7 +1206,7 @@ const setSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters76, + requestBody: Parameters.parameters77, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1282,7 +1282,7 @@ const resetSharedKeyOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters77, + requestBody: Parameters.parameters78, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1315,7 +1315,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1348,7 +1348,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts index e5b8d5b83b55..36c64973ea7b 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkGateways.ts @@ -2006,7 +2006,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters70, + requestBody: Parameters.parameters71, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2214,7 +2214,7 @@ const generatevpnclientpackageOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2247,7 +2247,7 @@ const generateVpnProfileOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters71, + requestBody: Parameters.parameters72, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2481,7 +2481,7 @@ const vpnDeviceConfigurationScriptOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters72, + requestBody: Parameters.parameters73, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2514,7 +2514,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters73, + requestBody: Parameters.parameters74, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -2547,7 +2547,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters74, + requestBody: Parameters.parameters75, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts index 98e05f30021d..0824ac34950c 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworkTaps.ts @@ -512,7 +512,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters79, + requestBody: Parameters.parameters80, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualNetworks.ts b/sdk/network/arm-network/src/operations/virtualNetworks.ts index 24d626b5fcc9..7e1f0c783da7 100644 --- a/sdk/network/arm-network/src/operations/virtualNetworks.ts +++ b/sdk/network/arm-network/src/operations/virtualNetworks.ts @@ -837,7 +837,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters69, + requestBody: Parameters.parameters70, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts index 5c7eb95b4fa0..7fae28d777af 100644 --- a/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts +++ b/sdk/network/arm-network/src/operations/virtualRouterPeerings.ts @@ -446,7 +446,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters81, + requestBody: Parameters.parameters82, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/virtualRouters.ts b/sdk/network/arm-network/src/operations/virtualRouters.ts index 2f819b022fd7..69781b41b460 100644 --- a/sdk/network/arm-network/src/operations/virtualRouters.ts +++ b/sdk/network/arm-network/src/operations/virtualRouters.ts @@ -494,7 +494,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorModel } }, - requestBody: Parameters.parameters80, + requestBody: Parameters.parameters81, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnConnections.ts b/sdk/network/arm-network/src/operations/vpnConnections.ts index fae53be77e1a..c575e3f0cef8 100644 --- a/sdk/network/arm-network/src/operations/vpnConnections.ts +++ b/sdk/network/arm-network/src/operations/vpnConnections.ts @@ -682,7 +682,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters84, + requestBody: Parameters.parameters85, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -716,7 +716,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters85, + requestBody: Parameters.parameters86, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/vpnGateways.ts b/sdk/network/arm-network/src/operations/vpnGateways.ts index c46310de75a5..d31eeb22d8af 100644 --- a/sdk/network/arm-network/src/operations/vpnGateways.ts +++ b/sdk/network/arm-network/src/operations/vpnGateways.ts @@ -969,7 +969,7 @@ const startPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters82, + requestBody: Parameters.parameters83, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, @@ -1002,7 +1002,7 @@ const stopPacketCaptureOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters83, + requestBody: Parameters.parameters84, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts index 76bbf54e810b..51fd5c04d7c9 100644 --- a/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts +++ b/sdk/network/arm-network/src/operations/webApplicationFirewallPolicies.ts @@ -420,7 +420,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - requestBody: Parameters.parameters89, + requestBody: Parameters.parameters90, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, diff --git a/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts b/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts index df3962a99757..9ef33ed11f6b 100644 --- a/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts +++ b/sdk/network/arm-network/src/operationsInterfaces/loadBalancers.ts @@ -24,7 +24,9 @@ import { LoadBalancersSwapPublicIpAddressesOptionalParams, QueryInboundNatRulePortMappingRequest, LoadBalancersListInboundNatRulePortMappingsOptionalParams, - LoadBalancersListInboundNatRulePortMappingsResponse + LoadBalancersListInboundNatRulePortMappingsResponse, + LoadBalancersMigrateToIpBasedOptionalParams, + LoadBalancersMigrateToIpBasedResponse } from "../models"; /// @@ -180,4 +182,15 @@ export interface LoadBalancers { parameters: QueryInboundNatRulePortMappingRequest, options?: LoadBalancersListInboundNatRulePortMappingsOptionalParams ): Promise; + /** + * Migrate load balancer to IP Based + * @param groupName The name of the resource group. + * @param loadBalancerName The name of the load balancer. + * @param options The options parameters. + */ + migrateToIpBased( + groupName: string, + loadBalancerName: string, + options?: LoadBalancersMigrateToIpBasedOptionalParams + ): Promise; } 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"