Skip to content

Commit

Permalink
CodeGen from PR 24966 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Revert AppGw HttpListeners alias change (Azure#24966)
  • Loading branch information
SDKAuto committed Jul 28, 2023
1 parent e0d00e9 commit 9f7c8b4
Show file tree
Hide file tree
Showing 51 changed files with 418 additions and 158 deletions.
16 changes: 16 additions & 0 deletions sdk/network/arm-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 32.1.0 (2023-07-28)

**Features**

- 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**
Expand Down
8 changes: 4 additions & 4 deletions sdk/network/arm-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "26cac4f70e9ce0e1c2f77de8303b47d1faa9ad33",
"commit": "2a4fc9da93229e16716dc34ec5275ed94a918ac4",
"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"
}
14 changes: 3 additions & 11 deletions sdk/network/arm-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for NetworkManagementClient.",
"version": "32.0.0",
"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",
Expand Down Expand Up @@ -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"
}
31 changes: 31 additions & 0 deletions sdk/network/arm-network/review/arm-network.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -6069,6 +6070,7 @@ export enum KnownApplicationGatewayRuleSetStatusOptions {

// @public
export enum KnownApplicationGatewaySkuName {
Basic = "Basic",
StandardLarge = "Standard_Large",
StandardMedium = "Standard_Medium",
StandardSmall = "Standard_Small",
Expand Down Expand Up @@ -6136,6 +6138,7 @@ export enum KnownApplicationGatewaySslProtocol {

// @public
export enum KnownApplicationGatewayTier {
Basic = "Basic",
Standard = "Standard",
StandardV2 = "Standard_v2",
WAF = "WAF",
Expand Down Expand Up @@ -7212,6 +7215,12 @@ export enum KnownSeverity {
Warning = "Warning"
}

// @public
export enum KnownSyncMode {
Automatic = "Automatic",
Manual = "Manual"
}

// @public
export enum KnownSyncRemoteAddressSpace {
True = "true"
Expand Down Expand Up @@ -7929,6 +7938,7 @@ export interface LoadBalancers {
get(resourceGroupName: string, loadBalancerName: string, options?: LoadBalancersGetOptionalParams): Promise<LoadBalancersGetResponse>;
list(resourceGroupName: string, options?: LoadBalancersListOptionalParams): PagedAsyncIterableIterator<LoadBalancer>;
listAll(options?: LoadBalancersListAllOptionalParams): PagedAsyncIterableIterator<LoadBalancer>;
migrateToIpBased(groupName: string, loadBalancerName: string, options?: LoadBalancersMigrateToIpBasedOptionalParams): Promise<LoadBalancersMigrateToIpBasedResponse>;
updateTags(resourceGroupName: string, loadBalancerName: string, parameters: TagsObject, options?: LoadBalancersUpdateTagsOptionalParams): Promise<LoadBalancersUpdateTagsResponse>;
}

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -12890,6 +12918,9 @@ export interface SwapResourceProperties {
slotType?: SlotType;
}

// @public
export type SyncMode = string;

// @public
export type SyncRemoteAddressSpace = string;

Expand Down
58 changes: 53 additions & 5 deletions sdk/network/arm-network/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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. */
Expand Down Expand Up @@ -11679,7 +11693,9 @@ export enum KnownApplicationGatewaySkuName {
/** StandardV2 */
StandardV2 = "Standard_v2",
/** WAFV2 */
WAFV2 = "WAF_v2"
WAFV2 = "WAF_v2",
/** Basic */
Basic = "Basic"
}

/**
Expand All @@ -11693,7 +11709,8 @@ export enum KnownApplicationGatewaySkuName {
* **WAF_Medium** \
* **WAF_Large** \
* **Standard_v2** \
* **WAF_v2**
* **WAF_v2** \
* **Basic**
*/
export type ApplicationGatewaySkuName = string;

Expand All @@ -11706,7 +11723,9 @@ export enum KnownApplicationGatewayTier {
/** StandardV2 */
StandardV2 = "Standard_v2",
/** WAFV2 */
WAFV2 = "WAF_v2"
WAFV2 = "WAF_v2",
/** Basic */
Basic = "Basic"
}

/**
Expand All @@ -11717,7 +11736,8 @@ export enum KnownApplicationGatewayTier {
* **Standard** \
* **WAF** \
* **Standard_v2** \
* **WAF_v2**
* **WAF_v2** \
* **Basic**
*/
export type ApplicationGatewayTier = string;

Expand Down Expand Up @@ -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 */
Expand Down Expand Up @@ -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 {}
Expand Down
46 changes: 46 additions & 0 deletions sdk/network/arm-network/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -18502,6 +18542,12 @@ export const BackendAddressPool: coreClient.CompositeMapper = {
name: "Composite",
className: "SubResource"
}
},
syncMode: {
serializedName: "properties.syncMode",
type: {
name: "String"
}
}
}
}
Expand Down
Loading

0 comments on commit 9f7c8b4

Please sign in to comment.