Skip to content

Commit abf4d57

Browse files
author
SDKAuto
committed
CodeGen from PR 25136 in Azure/azure-rest-api-specs
Merge 138cf0a2387a2a2854c013f27c4e23fda8b9edd3 into 58be094c6b365f8d4d73a91e293dfb4818e57cf6
1 parent 6edf73d commit abf4d57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+419
-169
lines changed

sdk/network/arm-network/CHANGELOG.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
# Release History
2+
3+
## 32.1.0 (2023-08-03)
4+
5+
**Features**
26

3-
## 32.0.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
7+
- Added operation LoadBalancers.migrateToIpBased
8+
- Added Interface LoadBalancersMigrateToIpBasedOptionalParams
9+
- Added Interface MigratedPools
10+
- Added Interface MigrateLoadBalancerToIpBasedRequest
11+
- Added Type Alias LoadBalancersMigrateToIpBasedResponse
12+
- Added Type Alias SyncMode
13+
- Interface BackendAddressPool has a new optional parameter syncMode
14+
- Added Enum KnownSyncMode
15+
- Enum KnownApplicationGatewaySkuName has a new value Basic
16+
- Enum KnownApplicationGatewayTier has a new value Basic
17+
18+
1319
## 32.0.0 (2023-07-06)
1420

1521
**Features**

sdk/network/arm-network/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "26cac4f70e9ce0e1c2f77de8303b47d1faa9ad33",
2+
"commit": "53239017d0ed98bf72242f094372acfdd34f69cd",
33
"readme": "specification/network/resource-manager/readme.md",
4-
"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",
4+
"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",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
7-
"use": "@autorest/typescript@6.0.5"
6+
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.1",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

sdk/network/arm-network/package.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for NetworkManagementClient.",
6-
"version": "32.0.1",
6+
"version": "32.1.0",
77
"engines": {
88
"node": ">=14.0.0"
99
},
1010
"dependencies": {
11-
"@azure/core-lro": "^2.5.3",
11+
"@azure/core-lro": "^2.5.4",
1212
"@azure/abort-controller": "^1.0.0",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
@@ -111,13 +111,5 @@
111111
]
112112
},
113113
"autoPublish": true,
114-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network",
115-
"//sampleConfiguration": {
116-
"productName": "",
117-
"productSlugs": [
118-
"azure"
119-
],
120-
"disableDocsMs": true,
121-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview"
122-
}
123-
}
114+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network"
115+
}

sdk/network/arm-network/review/arm-network.api.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,7 @@ export interface BackendAddressPool extends SubResource {
19411941
readonly outboundRule?: SubResource;
19421942
readonly outboundRules?: SubResource[];
19431943
readonly provisioningState?: ProvisioningState;
1944+
syncMode?: SyncMode;
19441945
tunnelInterfaces?: GatewayLoadBalancerTunnelInterface[];
19451946
readonly type?: string;
19461947
virtualNetwork?: SubResource;
@@ -6069,6 +6070,7 @@ export enum KnownApplicationGatewayRuleSetStatusOptions {
60696070

60706071
// @public
60716072
export enum KnownApplicationGatewaySkuName {
6073+
Basic = "Basic",
60726074
StandardLarge = "Standard_Large",
60736075
StandardMedium = "Standard_Medium",
60746076
StandardSmall = "Standard_Small",
@@ -6136,6 +6138,7 @@ export enum KnownApplicationGatewaySslProtocol {
61366138

61376139
// @public
61386140
export enum KnownApplicationGatewayTier {
6141+
Basic = "Basic",
61396142
Standard = "Standard",
61406143
StandardV2 = "Standard_v2",
61416144
WAF = "WAF",
@@ -7212,6 +7215,12 @@ export enum KnownSeverity {
72127215
Warning = "Warning"
72137216
}
72147217

7218+
// @public
7219+
export enum KnownSyncMode {
7220+
Automatic = "Automatic",
7221+
Manual = "Manual"
7222+
}
7223+
72157224
// @public
72167225
export enum KnownSyncRemoteAddressSpace {
72177226
True = "true"
@@ -7929,6 +7938,7 @@ export interface LoadBalancers {
79297938
get(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise<LoadBalancersGetResponse>;
79307939
list(resourceGroupName: string, options?: LoadBalancersListOptionalParams): PagedAsyncIterableIterator<LoadBalancer>;
79317940
listAll(options?: LoadBalancersListAllOptionalParams): PagedAsyncIterableIterator<LoadBalancer>;
7941+
migrateToIpBased(groupName: string, loadBalancerName: string, options?: LoadBalancersMigrateToIpBasedOptionalParams): Promise<LoadBalancersMigrateToIpBasedResponse>;
79327942
updateTags(resourceGroupName: string, loadBalancerName: string, parameters: TagsObject, options?: LoadBalancersUpdateTagsOptionalParams): Promise<LoadBalancersUpdateTagsResponse>;
79337943
}
79347944

@@ -8004,6 +8014,14 @@ export interface LoadBalancersListOptionalParams extends coreClient.OperationOpt
80048014
// @public
80058015
export type LoadBalancersListResponse = LoadBalancerListResult;
80068016

8017+
// @public
8018+
export interface LoadBalancersMigrateToIpBasedOptionalParams extends coreClient.OperationOptions {
8019+
parameters?: MigrateLoadBalancerToIpBasedRequest;
8020+
}
8021+
8022+
// @public
8023+
export type LoadBalancersMigrateToIpBasedResponse = MigratedPools;
8024+
80078025
// @public
80088026
export interface LoadBalancersSwapPublicIpAddressesOptionalParams extends coreClient.OperationOptions {
80098027
resumeFrom?: string;
@@ -8249,6 +8267,16 @@ export interface MetricSpecification {
82498267
unit?: string;
82508268
}
82518269

8270+
// @public
8271+
export interface MigratedPools {
8272+
migratedPools?: string[];
8273+
}
8274+
8275+
// @public
8276+
export interface MigrateLoadBalancerToIpBasedRequest {
8277+
pools?: string[];
8278+
}
8279+
82528280
// @public
82538281
export interface NatGateway extends Resource {
82548282
readonly etag?: string;
@@ -12890,6 +12918,9 @@ export interface SwapResourceProperties {
1289012918
slotType?: SlotType;
1289112919
}
1289212920

12921+
// @public
12922+
export type SyncMode = string;
12923+
1289312924
// @public
1289412925
export type SyncRemoteAddressSpace = string;
1289512926

sdk/network/arm-network/src/models/index.ts

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2051,6 +2051,18 @@ export interface InboundNatRulePortMapping {
20512051
readonly backendPort?: number;
20522052
}
20532053

2054+
/** The request for a migrateToIpBased API. */
2055+
export interface MigrateLoadBalancerToIpBasedRequest {
2056+
/** A list of pool names that should be migrated from Nic based to IP based pool */
2057+
pools?: string[];
2058+
}
2059+
2060+
/** The response for a migrateToIpBased API. */
2061+
export interface MigratedPools {
2062+
/** A list of pools migrated from Nic based to IP based pool */
2063+
migratedPools?: string[];
2064+
}
2065+
20542066
/** Response for ListNatGateways API service call. */
20552067
export interface NatGatewayListResult {
20562068
/** A list of Nat Gateways that exists in a resource group. */
@@ -6132,7 +6144,7 @@ export interface ApplicationGatewayProbe extends SubResource {
61326144
* NOTE: This property will not be serialized. It can only be populated by the server.
61336145
*/
61346146
readonly provisioningState?: ProvisioningState;
6135-
/** 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. */
6147+
/** 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. */
61366148
port?: number;
61376149
}
61386150

@@ -6664,6 +6676,8 @@ export interface BackendAddressPool extends SubResource {
66646676
drainPeriodInSeconds?: number;
66656677
/** A reference to a virtual network. */
66666678
virtualNetwork?: SubResource;
6679+
/** Backend address synchronous mode for the backend pool */
6680+
syncMode?: SyncMode;
66676681
}
66686682

66696683
/** Inbound NAT rule of the load balancer. */
@@ -11679,7 +11693,9 @@ export enum KnownApplicationGatewaySkuName {
1167911693
/** StandardV2 */
1168011694
StandardV2 = "Standard_v2",
1168111695
/** WAFV2 */
11682-
WAFV2 = "WAF_v2"
11696+
WAFV2 = "WAF_v2",
11697+
/** Basic */
11698+
Basic = "Basic"
1168311699
}
1168411700

1168511701
/**
@@ -11693,7 +11709,8 @@ export enum KnownApplicationGatewaySkuName {
1169311709
* **WAF_Medium** \
1169411710
* **WAF_Large** \
1169511711
* **Standard_v2** \
11696-
* **WAF_v2**
11712+
* **WAF_v2** \
11713+
* **Basic**
1169711714
*/
1169811715
export type ApplicationGatewaySkuName = string;
1169911716

@@ -11706,7 +11723,9 @@ export enum KnownApplicationGatewayTier {
1170611723
/** StandardV2 */
1170711724
StandardV2 = "Standard_v2",
1170811725
/** WAFV2 */
11709-
WAFV2 = "WAF_v2"
11726+
WAFV2 = "WAF_v2",
11727+
/** Basic */
11728+
Basic = "Basic"
1171011729
}
1171111730

1171211731
/**
@@ -11717,7 +11736,8 @@ export enum KnownApplicationGatewayTier {
1171711736
* **Standard** \
1171811737
* **WAF** \
1171911738
* **Standard_v2** \
11720-
* **WAF_v2**
11739+
* **WAF_v2** \
11740+
* **Basic**
1172111741
*/
1172211742
export type ApplicationGatewayTier = string;
1172311743

@@ -12432,6 +12452,24 @@ export enum KnownLoadBalancerBackendAddressAdminState {
1243212452
*/
1243312453
export type LoadBalancerBackendAddressAdminState = string;
1243412454

12455+
/** Known values of {@link SyncMode} that the service accepts. */
12456+
export enum KnownSyncMode {
12457+
/** Automatic */
12458+
Automatic = "Automatic",
12459+
/** Manual */
12460+
Manual = "Manual"
12461+
}
12462+
12463+
/**
12464+
* Defines values for SyncMode. \
12465+
* {@link KnownSyncMode} can be used interchangeably with SyncMode,
12466+
* this enum contains the known values that the service supports.
12467+
* ### Known values supported by the service
12468+
* **Automatic** \
12469+
* **Manual**
12470+
*/
12471+
export type SyncMode = string;
12472+
1243512473
/** Known values of {@link TransportProtocol} that the service accepts. */
1243612474
export enum KnownTransportProtocol {
1243712475
/** Udp */
@@ -18699,6 +18737,16 @@ export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams
1869918737
/** Contains response data for the listInboundNatRulePortMappings operation. */
1870018738
export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings;
1870118739

18740+
/** Optional parameters. */
18741+
export interface LoadBalancersMigrateToIpBasedOptionalParams
18742+
extends coreClient.OperationOptions {
18743+
/** Parameters supplied to the migrateToIpBased Api. */
18744+
parameters?: MigrateLoadBalancerToIpBasedRequest;
18745+
}
18746+
18747+
/** Contains response data for the migrateToIpBased operation. */
18748+
export type LoadBalancersMigrateToIpBasedResponse = MigratedPools;
18749+
1870218750
/** Optional parameters. */
1870318751
export interface LoadBalancersListAllNextOptionalParams
1870418752
extends coreClient.OperationOptions {}

sdk/network/arm-network/src/models/mappers.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5766,6 +5766,46 @@ export const InboundNatRulePortMapping: coreClient.CompositeMapper = {
57665766
}
57675767
};
57685768

5769+
export const MigrateLoadBalancerToIpBasedRequest: coreClient.CompositeMapper = {
5770+
type: {
5771+
name: "Composite",
5772+
className: "MigrateLoadBalancerToIpBasedRequest",
5773+
modelProperties: {
5774+
pools: {
5775+
serializedName: "pools",
5776+
type: {
5777+
name: "Sequence",
5778+
element: {
5779+
type: {
5780+
name: "String"
5781+
}
5782+
}
5783+
}
5784+
}
5785+
}
5786+
}
5787+
};
5788+
5789+
export const MigratedPools: coreClient.CompositeMapper = {
5790+
type: {
5791+
name: "Composite",
5792+
className: "MigratedPools",
5793+
modelProperties: {
5794+
migratedPools: {
5795+
serializedName: "migratedPools",
5796+
type: {
5797+
name: "Sequence",
5798+
element: {
5799+
type: {
5800+
name: "String"
5801+
}
5802+
}
5803+
}
5804+
}
5805+
}
5806+
}
5807+
};
5808+
57695809
export const NatGatewayListResult: coreClient.CompositeMapper = {
57705810
type: {
57715811
name: "Composite",
@@ -18502,6 +18542,12 @@ export const BackendAddressPool: coreClient.CompositeMapper = {
1850218542
name: "Composite",
1850318543
className: "SubResource"
1850418544
}
18545+
},
18546+
syncMode: {
18547+
serializedName: "properties.syncMode",
18548+
type: {
18549+
name: "String"
18550+
}
1850518551
}
1850618552
}
1850718553
}

0 commit comments

Comments
 (0)