Skip to content

Commit 3359ddb

Browse files
author
SDKAuto
committed
CodeGen from PR 25009 in Azure/azure-rest-api-specs
Merge 26a951b36321252017950c4d43cce3ed3bab6e46 into c8b7a0090e6cd089110c9ed46ef884ebff32c047
1 parent f0b556f commit 3359ddb

Some content is hidden

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

50 files changed

+426
-158
lines changed

sdk/network/arm-network/CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# Release History
22

3-
## 32.0.0 (2023-07-06)
3+
## 32.0.0 (2023-07-27)
44

55
**Features**
66

7+
- Added operation LoadBalancers.migrateToIpBased
8+
- Added Interface LoadBalancersMigrateToIpBasedOptionalParams
9+
- Added Interface MigratedPools
10+
- Added Interface MigrateLoadBalancerToIpBasedRequest
711
- Added Type Alias AdminState
12+
- Added Type Alias LoadBalancersMigrateToIpBasedResponse
13+
- Added Type Alias SyncMode
814
- Interface ActiveDefaultSecurityAdminRule has a new optional parameter resourceGuid
915
- Interface ActiveSecurityAdminRule has a new optional parameter resourceGuid
1016
- Interface AdminRule has a new optional parameter resourceGuid
1117
- Interface AdminRuleCollection has a new optional parameter resourceGuid
1218
- Interface ApplicationGateway has a new optional parameter defaultPredefinedSslPolicy
19+
- Interface ApplicationGatewayFrontendIPConfiguration has a new optional parameter httpListeners
20+
- Interface BackendAddressPool has a new optional parameter syncMode
1321
- Interface ConfigurationGroup has a new optional parameter resourceGuid
1422
- Interface ConnectivityConfiguration has a new optional parameter resourceGuid
1523
- Interface DefaultAdminRule has a new optional parameter resourceGuid
@@ -21,10 +29,13 @@
2129
- Interface SecurityAdminConfiguration has a new optional parameter resourceGuid
2230
- Interface VirtualNetworkGateway has a new optional parameter adminState
2331
- Added Enum KnownAdminState
24-
- Class NetworkManagementClient has a new signature
32+
- Added Enum KnownSyncMode
33+
- Enum KnownApplicationGatewaySkuName has a new value Basic
34+
- Enum KnownApplicationGatewayTier has a new value Basic
2535

2636
**Breaking Changes**
2737

38+
- Class NetworkManagementClient has a new signature
2839
- Enum KnownApplicationGatewayCustomErrorStatusCode no longer has value HttpStatus499
2940

3041

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": "dc8e57407efc3c2557cf6aaa1e6384df590bf2b3",
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/[email protected].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/[email protected].0",
7-
"use": "@autorest/[email protected].5"
6+
"release_tool": "@azure-tools/[email protected].1",
7+
"use": "@autorest/typescript@^6.0.4"
88
}

sdk/network/arm-network/package.json

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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-
}
114+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network"
123115
}

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ export type ApplicationGatewayFirewallUserSessionVariable = string;
509509
// @public
510510
export interface ApplicationGatewayFrontendIPConfiguration extends SubResource {
511511
readonly etag?: string;
512+
readonly httpListeners?: SubResource;
512513
name?: string;
513514
privateIPAddress?: string;
514515
privateIPAllocationMethod?: IPAllocationMethod;
@@ -1941,6 +1942,7 @@ export interface BackendAddressPool extends SubResource {
19411942
readonly outboundRule?: SubResource;
19421943
readonly outboundRules?: SubResource[];
19431944
readonly provisioningState?: ProvisioningState;
1945+
syncMode?: SyncMode;
19441946
tunnelInterfaces?: GatewayLoadBalancerTunnelInterface[];
19451947
readonly type?: string;
19461948
virtualNetwork?: SubResource;
@@ -6069,6 +6071,7 @@ export enum KnownApplicationGatewayRuleSetStatusOptions {
60696071

60706072
// @public
60716073
export enum KnownApplicationGatewaySkuName {
6074+
Basic = "Basic",
60726075
StandardLarge = "Standard_Large",
60736076
StandardMedium = "Standard_Medium",
60746077
StandardSmall = "Standard_Small",
@@ -6136,6 +6139,7 @@ export enum KnownApplicationGatewaySslProtocol {
61366139

61376140
// @public
61386141
export enum KnownApplicationGatewayTier {
6142+
Basic = "Basic",
61396143
Standard = "Standard",
61406144
StandardV2 = "Standard_v2",
61416145
WAF = "WAF",
@@ -7212,6 +7216,12 @@ export enum KnownSeverity {
72127216
Warning = "Warning"
72137217
}
72147218

7219+
// @public
7220+
export enum KnownSyncMode {
7221+
Automatic = "Automatic",
7222+
Manual = "Manual"
7223+
}
7224+
72157225
// @public
72167226
export enum KnownSyncRemoteAddressSpace {
72177227
True = "true"
@@ -7929,6 +7939,7 @@ export interface LoadBalancers {
79297939
get(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise<LoadBalancersGetResponse>;
79307940
list(resourceGroupName: string, options?: LoadBalancersListOptionalParams): PagedAsyncIterableIterator<LoadBalancer>;
79317941
listAll(options?: LoadBalancersListAllOptionalParams): PagedAsyncIterableIterator<LoadBalancer>;
7942+
migrateToIpBased(groupName: string, loadBalancerName: string, options?: LoadBalancersMigrateToIpBasedOptionalParams): Promise<LoadBalancersMigrateToIpBasedResponse>;
79327943
updateTags(resourceGroupName: string, loadBalancerName: string, parameters: TagsObject, options?: LoadBalancersUpdateTagsOptionalParams): Promise<LoadBalancersUpdateTagsResponse>;
79337944
}
79347945

@@ -8004,6 +8015,14 @@ export interface LoadBalancersListOptionalParams extends coreClient.OperationOpt
80048015
// @public
80058016
export type LoadBalancersListResponse = LoadBalancerListResult;
80068017

8018+
// @public
8019+
export interface LoadBalancersMigrateToIpBasedOptionalParams extends coreClient.OperationOptions {
8020+
parameters?: MigrateLoadBalancerToIpBasedRequest;
8021+
}
8022+
8023+
// @public
8024+
export type LoadBalancersMigrateToIpBasedResponse = MigratedPools;
8025+
80078026
// @public
80088027
export interface LoadBalancersSwapPublicIpAddressesOptionalParams extends coreClient.OperationOptions {
80098028
resumeFrom?: string;
@@ -8249,6 +8268,16 @@ export interface MetricSpecification {
82498268
unit?: string;
82508269
}
82518270

8271+
// @public
8272+
export interface MigratedPools {
8273+
migratedPools?: string[];
8274+
}
8275+
8276+
// @public
8277+
export interface MigrateLoadBalancerToIpBasedRequest {
8278+
pools?: string[];
8279+
}
8280+
82528281
// @public
82538282
export interface NatGateway extends Resource {
82548283
readonly etag?: string;
@@ -12890,6 +12919,9 @@ export interface SwapResourceProperties {
1289012919
slotType?: SlotType;
1289112920
}
1289212921

12922+
// @public
12923+
export type SyncMode = string;
12924+
1289312925
// @public
1289412926
export type SyncRemoteAddressSpace = string;
1289512927

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

Lines changed: 58 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. */
@@ -6068,6 +6080,11 @@ export interface ApplicationGatewayFrontendIPConfiguration extends SubResource {
60686080
* NOTE: This property will not be serialized. It can only be populated by the server.
60696081
*/
60706082
readonly provisioningState?: ProvisioningState;
6083+
/**
6084+
* Reference to the application gateway http listeners.
6085+
* NOTE: This property will not be serialized. It can only be populated by the server.
6086+
*/
6087+
readonly httpListeners?: SubResource;
60716088
}
60726089

60736090
/** Frontend port of an application gateway. */
@@ -6132,7 +6149,7 @@ export interface ApplicationGatewayProbe extends SubResource {
61326149
* NOTE: This property will not be serialized. It can only be populated by the server.
61336150
*/
61346151
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. */
6152+
/** 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. */
61366153
port?: number;
61376154
}
61386155

@@ -6664,6 +6681,8 @@ export interface BackendAddressPool extends SubResource {
66646681
drainPeriodInSeconds?: number;
66656682
/** A reference to a virtual network. */
66666683
virtualNetwork?: SubResource;
6684+
/** Backend address synchronous mode for the backend pool */
6685+
syncMode?: SyncMode;
66676686
}
66686687

66696688
/** Inbound NAT rule of the load balancer. */
@@ -11679,7 +11698,9 @@ export enum KnownApplicationGatewaySkuName {
1167911698
/** StandardV2 */
1168011699
StandardV2 = "Standard_v2",
1168111700
/** WAFV2 */
11682-
WAFV2 = "WAF_v2"
11701+
WAFV2 = "WAF_v2",
11702+
/** Basic */
11703+
Basic = "Basic"
1168311704
}
1168411705

1168511706
/**
@@ -11693,7 +11714,8 @@ export enum KnownApplicationGatewaySkuName {
1169311714
* **WAF_Medium** \
1169411715
* **WAF_Large** \
1169511716
* **Standard_v2** \
11696-
* **WAF_v2**
11717+
* **WAF_v2** \
11718+
* **Basic**
1169711719
*/
1169811720
export type ApplicationGatewaySkuName = string;
1169911721

@@ -11706,7 +11728,9 @@ export enum KnownApplicationGatewayTier {
1170611728
/** StandardV2 */
1170711729
StandardV2 = "Standard_v2",
1170811730
/** WAFV2 */
11709-
WAFV2 = "WAF_v2"
11731+
WAFV2 = "WAF_v2",
11732+
/** Basic */
11733+
Basic = "Basic"
1171011734
}
1171111735

1171211736
/**
@@ -11717,7 +11741,8 @@ export enum KnownApplicationGatewayTier {
1171711741
* **Standard** \
1171811742
* **WAF** \
1171911743
* **Standard_v2** \
11720-
* **WAF_v2**
11744+
* **WAF_v2** \
11745+
* **Basic**
1172111746
*/
1172211747
export type ApplicationGatewayTier = string;
1172311748

@@ -12432,6 +12457,24 @@ export enum KnownLoadBalancerBackendAddressAdminState {
1243212457
*/
1243312458
export type LoadBalancerBackendAddressAdminState = string;
1243412459

12460+
/** Known values of {@link SyncMode} that the service accepts. */
12461+
export enum KnownSyncMode {
12462+
/** Automatic */
12463+
Automatic = "Automatic",
12464+
/** Manual */
12465+
Manual = "Manual"
12466+
}
12467+
12468+
/**
12469+
* Defines values for SyncMode. \
12470+
* {@link KnownSyncMode} can be used interchangeably with SyncMode,
12471+
* this enum contains the known values that the service supports.
12472+
* ### Known values supported by the service
12473+
* **Automatic** \
12474+
* **Manual**
12475+
*/
12476+
export type SyncMode = string;
12477+
1243512478
/** Known values of {@link TransportProtocol} that the service accepts. */
1243612479
export enum KnownTransportProtocol {
1243712480
/** Udp */
@@ -18699,6 +18742,16 @@ export interface LoadBalancersListInboundNatRulePortMappingsOptionalParams
1869918742
/** Contains response data for the listInboundNatRulePortMappings operation. */
1870018743
export type LoadBalancersListInboundNatRulePortMappingsResponse = BackendAddressInboundNatRulePortMappings;
1870118744

18745+
/** Optional parameters. */
18746+
export interface LoadBalancersMigrateToIpBasedOptionalParams
18747+
extends coreClient.OperationOptions {
18748+
/** Parameters supplied to the migrateToIpBased Api. */
18749+
parameters?: MigrateLoadBalancerToIpBasedRequest;
18750+
}
18751+
18752+
/** Contains response data for the migrateToIpBased operation. */
18753+
export type LoadBalancersMigrateToIpBasedResponse = MigratedPools;
18754+
1870218755
/** Optional parameters. */
1870318756
export interface LoadBalancersListAllNextOptionalParams
1870418757
extends coreClient.OperationOptions {}

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

Lines changed: 53 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",
@@ -17056,6 +17096,13 @@ export const ApplicationGatewayFrontendIPConfiguration: coreClient.CompositeMapp
1705617096
type: {
1705717097
name: "String"
1705817098
}
17099+
},
17100+
httpListeners: {
17101+
serializedName: "properties.httpListeners",
17102+
type: {
17103+
name: "Composite",
17104+
className: "SubResource"
17105+
}
1705917106
}
1706017107
}
1706117108
}
@@ -18502,6 +18549,12 @@ export const BackendAddressPool: coreClient.CompositeMapper = {
1850218549
name: "Composite",
1850318550
className: "SubResource"
1850418551
}
18552+
},
18553+
syncMode: {
18554+
serializedName: "properties.syncMode",
18555+
type: {
18556+
name: "String"
18557+
}
1850518558
}
1850618559
}
1850718560
}

0 commit comments

Comments
 (0)