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] hostnames for l4 listeners #6881

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
335 changes: 321 additions & 14 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

23 changes: 13 additions & 10 deletions sdk/network/arm-network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Release History

## 32.3.0 (2023-09-27)

**Features**

## 32.2.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface BastionShareableLinkTokenListRequest
- Added Interface DeleteBastionShareableLinkByTokenOptionalParams
- Added Type Alias FirewallPolicyIntrusionDetectionProfileType
- Interface ApplicationGatewayListener has a new optional parameter hostNames
- Interface FirewallPolicyIntrusionDetection has a new optional parameter profile
- Added Enum KnownFirewallPolicyIntrusionDetectionProfileType
- Enum KnownBastionHostSkuName has a new value Developer


## 32.2.0 (2023-09-07)

**Features**
Expand Down
6 changes: 3 additions & 3 deletions sdk/network/arm-network/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "241397aafd74aaad6161cd0058449f9eb6d5163c",
"commit": "b1b27ce600b3bf1a935917f2a462a0a7d305babd",
"readme": "specification/network/resource-manager/readme.md",
"autorest_command": "autorest --version=3.9.7 --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.8 --generate-sample=true",
"autorest_command": "autorest --version=3.9.7 --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.2",
"use": "@autorest/typescript@6.0.8"
"use": "@autorest/typescript@^6.0.4"
}
22 changes: 7 additions & 15 deletions sdk/network/arm-network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for NetworkManagementClient.",
"version": "32.2.1",
"version": "32.3.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -38,12 +38,12 @@
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "~5.0.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^3.3.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"mocha": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -84,7 +84,7 @@
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"audit": "echo skipped",
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:browser": "echo skipped",
"build:test": "echo skipped",
Expand Down Expand Up @@ -112,13 +112,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"
}
29 changes: 28 additions & 1 deletion sdk/network/arm-network/review/arm-network.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ export interface ApplicationGatewayListener extends SubResource {
readonly etag?: string;
frontendIPConfiguration?: SubResource;
frontendPort?: SubResource;
hostNames?: string[];
name?: string;
protocol?: ApplicationGatewayProtocol;
readonly provisioningState?: ProvisioningState;
Expand Down Expand Up @@ -2128,6 +2129,11 @@ export interface BastionShareableLinkListResult {
value?: BastionShareableLink[];
}

// @public
export interface BastionShareableLinkTokenListRequest {
tokens?: string[];
}

// @public
export interface BGPCommunity {
communityName?: string;
Expand Down Expand Up @@ -3128,6 +3134,12 @@ export interface DelegationProperties {
serviceName?: string;
}

// @public
export interface DeleteBastionShareableLinkByTokenOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export interface DeleteBastionShareableLinkOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand Down Expand Up @@ -4815,7 +4827,7 @@ export interface FirewallPolicyHttpHeaderToInsert {
export type FirewallPolicyIdpsQuerySortOrder = string;

// @public
export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2;
export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4;

// @public
export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2;
Expand Down Expand Up @@ -4894,6 +4906,7 @@ export interface FirewallPolicyInsights {
export interface FirewallPolicyIntrusionDetection {
configuration?: FirewallPolicyIntrusionDetectionConfiguration;
mode?: FirewallPolicyIntrusionDetectionStateType;
profile?: FirewallPolicyIntrusionDetectionProfileType;
}

// @public
Expand All @@ -4915,6 +4928,9 @@ export interface FirewallPolicyIntrusionDetectionConfiguration {
signatureOverrides?: FirewallPolicyIntrusionDetectionSignatureSpecification[];
}

// @public
export type FirewallPolicyIntrusionDetectionProfileType = string;

// @public
export type FirewallPolicyIntrusionDetectionProtocol = string;

Expand Down Expand Up @@ -6273,6 +6289,7 @@ export enum KnownBastionConnectProtocol {
// @public
export enum KnownBastionHostSkuName {
Basic = "Basic",
Developer = "Developer",
Standard = "Standard"
}

Expand Down Expand Up @@ -6585,6 +6602,14 @@ export enum KnownFirewallPolicyIdpsQuerySortOrder {
Descending = "Descending"
}

// @public
export enum KnownFirewallPolicyIntrusionDetectionProfileType {
Advanced = "Advanced",
Basic = "Basic",
Extended = "Extended",
Standard = "Standard"
}

// @public
export enum KnownFirewallPolicyIntrusionDetectionProtocol {
ANY = "ANY",
Expand Down Expand Up @@ -9010,6 +9035,8 @@ export class NetworkManagementClient extends coreClient.ServiceClient {
bastionHosts: BastionHosts;
beginDeleteBastionShareableLink(resourceGroupName: string, bastionHostName: string, bslRequest: BastionShareableLinkListRequest, options?: DeleteBastionShareableLinkOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteBastionShareableLinkAndWait(resourceGroupName: string, bastionHostName: string, bslRequest: BastionShareableLinkListRequest, options?: DeleteBastionShareableLinkOptionalParams): Promise<void>;
beginDeleteBastionShareableLinkByToken(resourceGroupName: string, bastionHostName: string, bslTokenRequest: BastionShareableLinkTokenListRequest, options?: DeleteBastionShareableLinkByTokenOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
beginDeleteBastionShareableLinkByTokenAndWait(resourceGroupName: string, bastionHostName: string, bslTokenRequest: BastionShareableLinkTokenListRequest, options?: DeleteBastionShareableLinkByTokenOptionalParams): Promise<void>;
beginGeneratevirtualwanvpnserverconfigurationvpnprofile(resourceGroupName: string, virtualWANName: string, vpnClientParams: VirtualWanVpnProfileParameters, options?: GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams): Promise<SimplePollerLike<OperationState<GeneratevirtualwanvpnserverconfigurationvpnprofileResponse>, GeneratevirtualwanvpnserverconfigurationvpnprofileResponse>>;
beginGeneratevirtualwanvpnserverconfigurationvpnprofileAndWait(resourceGroupName: string, virtualWANName: string, vpnClientParams: VirtualWanVpnProfileParameters, options?: GeneratevirtualwanvpnserverconfigurationvpnprofileOptionalParams): Promise<GeneratevirtualwanvpnserverconfigurationvpnprofileResponse>;
beginListActiveSessionsAndWait(resourceGroupName: string, bastionHostName: string, options?: GetActiveSessionsOptionalParams): PagedAsyncIterableIterator<BastionActiveSession>;
Expand Down
60 changes: 53 additions & 7 deletions sdk/network/arm-network/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ export interface BastionHostListResult {
nextLink?: string;
}

/** Post request for all the Bastion Shareable Link endpoints. */
/** Post request for Create/Delete/Get Bastion Shareable Link endpoints. */
export interface BastionShareableLinkListRequest {
/** List of VM references. */
vms?: BastionShareableLink[];
Expand Down Expand Up @@ -1029,6 +1029,12 @@ export interface BastionShareableLinkListResult {
nextLink?: string;
}

/** Post request for Delete Bastion Shareable Link By Token endpoint. */
export interface BastionShareableLinkTokenListRequest {
/** List of Bastion Shareable Link Token. */
tokens?: string[];
}

/** Response for GetActiveSessions. */
export interface BastionActiveSessionListResult {
/** List of active sessions on the bastion. */
Expand Down Expand Up @@ -1717,8 +1723,10 @@ export interface ExplicitProxy {

/** Configuration for intrusion detection mode and rules. */
export interface FirewallPolicyIntrusionDetection {
/** Intrusion detection general state. */
/** Intrusion detection general state. When attached to a parent policy, the firewall's effective IDPS mode is the stricter mode of the two. */
mode?: FirewallPolicyIntrusionDetectionStateType;
/** IDPS profile name. When attached to a parent policy, the firewall's effective profile is the profile name of the parent policy. */
profile?: FirewallPolicyIntrusionDetectionProfileType;
/** Intrusion detection configuration properties. */
configuration?: FirewallPolicyIntrusionDetectionConfiguration;
}
Expand Down Expand Up @@ -1852,9 +1860,9 @@ export interface SingleQueryResult {
signatureId?: number;
/** The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny */
mode?: FirewallPolicyIdpsSignatureMode;
/** Describes the severity of signature: 1 - Low, 2 - Medium, 3 - High */
/** Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low */
severity?: FirewallPolicyIdpsSignatureSeverity;
/** Describes in which direction signature is being enforced: 0 - Inbound, 1 - OutBound, 2 - Bidirectional */
/** Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound */
direction?: FirewallPolicyIdpsSignatureDirection;
/** Describes the groups the signature belongs to */
group?: string;
Expand Down Expand Up @@ -6978,6 +6986,8 @@ export interface ApplicationGatewayListener extends SubResource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: ProvisioningState;
/** List of Server Name Indications(SNI) for TLS Multi-site Listener that allows special wildcard characters as well. */
hostNames?: string[];
}

/** SSL profile of an application gateway. */
Expand Down Expand Up @@ -12983,7 +12993,9 @@ export enum KnownBastionHostSkuName {
/** Basic */
Basic = "Basic",
/** Standard */
Standard = "Standard"
Standard = "Standard",
/** Developer */
Developer = "Developer"
}

/**
Expand All @@ -12992,7 +13004,8 @@ export enum KnownBastionHostSkuName {
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Basic** \
* **Standard**
* **Standard** \
* **Developer**
*/
export type BastionHostSkuName = string;

Expand Down Expand Up @@ -13506,6 +13519,30 @@ export enum KnownFirewallPolicyIntrusionDetectionStateType {
*/
export type FirewallPolicyIntrusionDetectionStateType = string;

/** Known values of {@link FirewallPolicyIntrusionDetectionProfileType} that the service accepts. */
export enum KnownFirewallPolicyIntrusionDetectionProfileType {
/** Basic */
Basic = "Basic",
/** Standard */
Standard = "Standard",
/** Advanced */
Advanced = "Advanced",
/** Extended */
Extended = "Extended"
}

/**
* Defines values for FirewallPolicyIntrusionDetectionProfileType. \
* {@link KnownFirewallPolicyIntrusionDetectionProfileType} can be used interchangeably with FirewallPolicyIntrusionDetectionProfileType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Basic** \
* **Standard** \
* **Advanced** \
* **Extended**
*/
export type FirewallPolicyIntrusionDetectionProfileType = string;

/** Known values of {@link FirewallPolicyIntrusionDetectionProtocol} that the service accepts. */
export enum KnownFirewallPolicyIntrusionDetectionProtocol {
/** TCP */
Expand Down Expand Up @@ -16530,7 +16567,7 @@ export type FirewallPolicyIdpsSignatureMode = 0 | 1 | 2;
/** Defines values for FirewallPolicyIdpsSignatureSeverity. */
export type FirewallPolicyIdpsSignatureSeverity = 1 | 2 | 3;
/** Defines values for FirewallPolicyIdpsSignatureDirection. */
export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2;
export type FirewallPolicyIdpsSignatureDirection = 0 | 1 | 2 | 3 | 4;
/** Defines values for PacketCaptureTargetType. */
export type PacketCaptureTargetType = "AzureVM" | "AzureVMSS";

Expand Down Expand Up @@ -17123,6 +17160,15 @@ export interface DeleteBastionShareableLinkOptionalParams
resumeFrom?: string;
}

/** Optional parameters. */
export interface DeleteBastionShareableLinkByTokenOptionalParams
extends coreClient.OperationOptions {
/** Delay to wait until next poll, in milliseconds. */
updateIntervalInMs?: number;
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
resumeFrom?: string;
}

/** Optional parameters. */
export interface GetBastionShareableLinkOptionalParams
extends coreClient.OperationOptions {}
Expand Down
39 changes: 38 additions & 1 deletion sdk/network/arm-network/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2931,6 +2931,26 @@ export const BastionShareableLinkListResult: coreClient.CompositeMapper = {
}
};

export const BastionShareableLinkTokenListRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "BastionShareableLinkTokenListRequest",
modelProperties: {
tokens: {
serializedName: "tokens",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
};

export const BastionActiveSessionListResult: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -4787,6 +4807,12 @@ export const FirewallPolicyIntrusionDetection: coreClient.CompositeMapper = {
name: "String"
}
},
profile: {
serializedName: "profile",
type: {
name: "String"
}
},
configuration: {
serializedName: "configuration",
type: {
Expand Down Expand Up @@ -5243,7 +5269,7 @@ export const SingleQueryResult: coreClient.CompositeMapper = {
serializedName: "direction",
type: {
name: "Enum",
allowedValues: [0, 1, 2]
allowedValues: [0, 1, 2, 3, 4]
}
},
group: {
Expand Down Expand Up @@ -19343,6 +19369,17 @@ export const ApplicationGatewayListener: coreClient.CompositeMapper = {
type: {
name: "String"
}
},
hostNames: {
serializedName: "properties.hostNames",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
}
}
}
Expand Down
Loading