Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-network] Update IpAllocationDelete.json to fix the Linter Error #6061

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions sdk/network/arm-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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**
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": "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/[email protected].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/[email protected].0",
"use": "@autorest/[email protected].5"
"release_tool": "@azure-tools/[email protected].1",
"use": "@autorest/typescript@^6.0.4"
}
16 changes: 4 additions & 12 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.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",
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