Skip to content

Commit c996235

Browse files
author
SDKAuto
committed
CodeGen from PR 29773 in Azure/azure-rest-api-specs
Merge 2d98f96c30b7bfa8e98b49634d5d265645e56baf into 90fcec87cf1892a1aae071e7c50317398f45e92c
1 parent 7534cca commit c996235

File tree

13 files changed

+388
-39
lines changed

13 files changed

+388
-39
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/nginx/arm-nginx/CHANGELOG.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,47 @@
11
# Release History
2+
3+
## 4.0.0-beta.2 (2024-07-31)
4+
Compared with version 3.0.0
5+
6+
**Features**
27

3-
## 4.0.0-beta.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
8+
- Added operation Configurations.analysis
9+
- Added Interface AnalysisCreate
10+
- Added Interface AnalysisCreateConfig
11+
- Added Interface AnalysisDiagnostic
12+
- Added Interface AnalysisResult
13+
- Added Interface AnalysisResultData
14+
- Added Interface AutoUpgradeProfile
15+
- Added Interface ConfigurationsAnalysisOptionalParams
16+
- Added Interface ErrorAdditionalInfo
17+
- Added Interface ErrorDetail
18+
- Added Interface NginxCertificateErrorResponseBody
19+
- Added Interface NginxDeploymentPropertiesNginxAppProtect
20+
- Added Interface NginxDeploymentUpdatePropertiesNginxAppProtect
21+
- Added Interface ScaleProfile
22+
- Added Interface ScaleProfileCapacity
23+
- Added Interface WebApplicationFirewallComponentVersions
24+
- Added Interface WebApplicationFirewallPackage
25+
- Added Interface WebApplicationFirewallSettings
26+
- Added Interface WebApplicationFirewallStatus
27+
- Added Type Alias ActivationState
28+
- Added Type Alias ConfigurationsAnalysisResponse
29+
- Interface NginxCertificateProperties has a new optional parameter certificateError
30+
- Interface NginxCertificateProperties has a new optional parameter keyVaultSecretCreated
31+
- Interface NginxCertificateProperties has a new optional parameter keyVaultSecretVersion
32+
- Interface NginxCertificateProperties has a new optional parameter sha1Thumbprint
33+
- Interface NginxDeploymentProperties has a new optional parameter autoUpgradeProfile
34+
- Interface NginxDeploymentProperties has a new optional parameter nginxAppProtect
35+
- Interface NginxDeploymentScalingProperties has a new optional parameter profiles
36+
- Interface NginxDeploymentUpdateProperties has a new optional parameter autoUpgradeProfile
37+
- Interface NginxDeploymentUpdateProperties has a new optional parameter nginxAppProtect
38+
- Added Enum KnownActivationState
1039

11-
### Other Changes
40+
**Breaking Changes**
1241

42+
- Type of parameter error of interface ResourceProviderDefaultErrorResponse is changed from ErrorResponseBody to ErrorDetail
43+
44+
1345
## 4.0.0-beta.1 (2024-03-18)
1446

1547
**Features**

sdk/nginx/arm-nginx/_meta.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "9fb75a3c4ca9b753271bd6db2e42e5f98366cbae",
2+
"commit": "7d7195c0fd37c4e011addca6ad3e789fbe8e7454",
33
"readme": "specification/nginx/resource-manager/readme.md",
4-
"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\\nginx\\resource-manager\\readme.md --use=@autorest/[email protected].17 --generate-sample=true",
4+
"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/nginx/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].4",
7-
"use": "@autorest/[email protected].17"
6+
"release_tool": "@azure-tools/[email protected].10",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/nginx/arm-nginx/package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@azure/core-lro": "^2.5.4",
12-
"@azure/abort-controller": "^1.0.0",
12+
"@azure/abort-controller": "^2.1.2",
1313
"@azure/core-paging": "^1.2.0",
1414
"@azure/core-client": "^1.7.0",
1515
"@azure/core-auth": "^1.6.0",
@@ -35,11 +35,12 @@
3535
"rimraf": "^5.0.0",
3636
"dotenv": "^16.0.0",
3737
"@azure/dev-tool": "^1.0.0",
38-
"@azure/identity": "^4.0.1",
38+
"@azure/identity": "^4.2.1",
3939
"@azure-tools/test-recorder": "^3.0.0",
40-
"@azure-tools/test-credential": "^1.0.0",
40+
"@azure-tools/test-credential": "^1.1.0",
4141
"mocha": "^10.0.0",
4242
"@types/mocha": "^10.0.0",
43+
"tsx": "^4.7.1",
4344
"@types/chai": "^4.2.8",
4445
"chai": "^4.2.0",
4546
"cross-env": "^7.0.2",
@@ -105,13 +106,5 @@
105106
]
106107
},
107108
"autoPublish": true,
108-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx",
109-
"//sampleConfiguration": {
110-
"productName": "",
111-
"productSlugs": [
112-
"azure"
113-
],
114-
"disableDocsMs": true,
115-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview"
116-
}
117-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx"
110+
}

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import { OperationState } from '@azure/core-lro';
1010
import { PagedAsyncIterableIterator } from '@azure/core-paging';
1111
import { SimplePollerLike } from '@azure/core-lro';
1212

13+
// @public
14+
export type ActivationState = string;
15+
1316
// @public
1417
export interface AnalysisCreate {
1518
// (undocumented)
@@ -275,6 +278,12 @@ export interface IdentityProperties {
275278
// @public
276279
export type IdentityType = string;
277280

281+
// @public
282+
export enum KnownActivationState {
283+
Disabled = "Disabled",
284+
Enabled = "Enabled"
285+
}
286+
278287
// @public
279288
export enum KnownCreatedByType {
280289
Application = "Application",
@@ -439,13 +448,20 @@ export interface NginxDeploymentProperties {
439448
managedResourceGroup?: string;
440449
// (undocumented)
441450
networkProfile?: NginxNetworkProfile;
451+
nginxAppProtect?: NginxDeploymentPropertiesNginxAppProtect;
442452
readonly nginxVersion?: string;
443453
readonly provisioningState?: ProvisioningState;
444454
scalingProperties?: NginxDeploymentScalingProperties;
445455
// (undocumented)
446456
userProfile?: NginxDeploymentUserProfile;
447457
}
448458

459+
// @public
460+
export interface NginxDeploymentPropertiesNginxAppProtect {
461+
webApplicationFirewallSettings: WebApplicationFirewallSettings;
462+
readonly webApplicationFirewallStatus?: WebApplicationFirewallStatus;
463+
}
464+
449465
// @public
450466
export interface NginxDeploymentScalingProperties {
451467
// (undocumented)
@@ -476,11 +492,17 @@ export interface NginxDeploymentUpdateProperties {
476492
enableDiagnosticsSupport?: boolean;
477493
// (undocumented)
478494
logging?: NginxLogging;
495+
nginxAppProtect?: NginxDeploymentUpdatePropertiesNginxAppProtect;
479496
scalingProperties?: NginxDeploymentScalingProperties;
480497
// (undocumented)
481498
userProfile?: NginxDeploymentUserProfile;
482499
}
483500

501+
// @public
502+
export interface NginxDeploymentUpdatePropertiesNginxAppProtect {
503+
webApplicationFirewallSettings?: WebApplicationFirewallSettings;
504+
}
505+
484506
// @public (undocumented)
485507
export interface NginxDeploymentUserProfile {
486508
preferredEmail?: string;
@@ -649,6 +671,31 @@ export interface UserIdentityProperties {
649671
readonly principalId?: string;
650672
}
651673

674+
// @public
675+
export interface WebApplicationFirewallComponentVersions {
676+
wafEngineVersion: string;
677+
wafNginxVersion: string;
678+
}
679+
680+
// @public
681+
export interface WebApplicationFirewallPackage {
682+
revisionDatetime: Date;
683+
version: string;
684+
}
685+
686+
// @public
687+
export interface WebApplicationFirewallSettings {
688+
activationState?: ActivationState;
689+
}
690+
691+
// @public
692+
export interface WebApplicationFirewallStatus {
693+
readonly attackSignaturesPackage?: WebApplicationFirewallPackage;
694+
readonly botSignaturesPackage?: WebApplicationFirewallPackage;
695+
readonly componentVersions?: WebApplicationFirewallComponentVersions;
696+
readonly threatCampaignsPackage?: WebApplicationFirewallPackage;
697+
}
698+
652699
// (No @packageDocumentation comment for this package)
653700

654701
```

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

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,8 @@ export interface NginxDeploymentProperties {
250250
/** Autoupgrade settings of a deployment. */
251251
autoUpgradeProfile?: AutoUpgradeProfile;
252252
userProfile?: NginxDeploymentUserProfile;
253+
/** Settings for NGINX App Protect (NAP) */
254+
nginxAppProtect?: NginxDeploymentPropertiesNginxAppProtect;
253255
}
254256

255257
export interface NginxNetworkProfile {
@@ -317,6 +319,63 @@ export interface NginxDeploymentUserProfile {
317319
preferredEmail?: string;
318320
}
319321

322+
/** Settings for NGINX App Protect (NAP) */
323+
export interface NginxDeploymentPropertiesNginxAppProtect {
324+
/** Settings for the NGINX App Protect Web Application Firewall (WAF) */
325+
webApplicationFirewallSettings: WebApplicationFirewallSettings;
326+
/**
327+
* The status of the NGINX App Protect Web Application Firewall
328+
* NOTE: This property will not be serialized. It can only be populated by the server.
329+
*/
330+
readonly webApplicationFirewallStatus?: WebApplicationFirewallStatus;
331+
}
332+
333+
/** Settings for the NGINX App Protect Web Application Firewall (WAF) */
334+
export interface WebApplicationFirewallSettings {
335+
/** The activation state of the WAF. Use 'Enabled' to enable the WAF and 'Disabled' to disable it. */
336+
activationState?: ActivationState;
337+
}
338+
339+
/** The status of the NGINX App Protect Web Application Firewall */
340+
export interface WebApplicationFirewallStatus {
341+
/**
342+
* Package containing attack signatures for the NGINX App Protect Web Application Firewall (WAF).
343+
* NOTE: This property will not be serialized. It can only be populated by the server.
344+
*/
345+
readonly attackSignaturesPackage?: WebApplicationFirewallPackage;
346+
/**
347+
* Package containing bot signatures for the NGINX App Protect Web Application Firewall (WAF).
348+
* NOTE: This property will not be serialized. It can only be populated by the server.
349+
*/
350+
readonly botSignaturesPackage?: WebApplicationFirewallPackage;
351+
/**
352+
* Package containing threat campaigns for the NGINX App Protect Web Application Firewall (WAF).
353+
* NOTE: This property will not be serialized. It can only be populated by the server.
354+
*/
355+
readonly threatCampaignsPackage?: WebApplicationFirewallPackage;
356+
/**
357+
* Versions of the NGINX App Protect Web Application Firewall (WAF) components.
358+
* NOTE: This property will not be serialized. It can only be populated by the server.
359+
*/
360+
readonly componentVersions?: WebApplicationFirewallComponentVersions;
361+
}
362+
363+
/** NGINX App Protect Web Application Firewall (WAF) Package. Contains the version and revision date of the package. */
364+
export interface WebApplicationFirewallPackage {
365+
/** The version of the NGINX App Protect Web Application Firewall (WAF) package. */
366+
version: string;
367+
/** The date and time of the package revision. */
368+
revisionDatetime: Date;
369+
}
370+
371+
/** Versions of the NGINX App Protect Web Application Firewall (WAF) components. */
372+
export interface WebApplicationFirewallComponentVersions {
373+
/** The version of the NGINX App Protect Web Application Firewall (WAF) engine. */
374+
wafEngineVersion: string;
375+
/** The version of the NGINX App Protect Web Application Firewall (WAF) module for NGINX. */
376+
wafNginxVersion: string;
377+
}
378+
320379
export interface ResourceSku {
321380
/** Name of the SKU. */
322381
name: string;
@@ -339,6 +398,14 @@ export interface NginxDeploymentUpdateProperties {
339398
userProfile?: NginxDeploymentUserProfile;
340399
/** Autoupgrade settings of a deployment. */
341400
autoUpgradeProfile?: AutoUpgradeProfile;
401+
/** Update settings for NGINX App Protect (NAP) */
402+
nginxAppProtect?: NginxDeploymentUpdatePropertiesNginxAppProtect;
403+
}
404+
405+
/** Update settings for NGINX App Protect (NAP) */
406+
export interface NginxDeploymentUpdatePropertiesNginxAppProtect {
407+
/** Settings for the NGINX App Protect Web Application Firewall (WAF) */
408+
webApplicationFirewallSettings?: WebApplicationFirewallSettings;
342409
}
343410

344411
export interface NginxDeploymentListResponse {
@@ -481,6 +548,24 @@ export enum KnownNginxPrivateIPAllocationMethod {
481548
*/
482549
export type NginxPrivateIPAllocationMethod = string;
483550

551+
/** Known values of {@link ActivationState} that the service accepts. */
552+
export enum KnownActivationState {
553+
/** Enabled */
554+
Enabled = "Enabled",
555+
/** Disabled */
556+
Disabled = "Disabled",
557+
}
558+
559+
/**
560+
* Defines values for ActivationState. \
561+
* {@link KnownActivationState} can be used interchangeably with ActivationState,
562+
* this enum contains the known values that the service supports.
563+
* ### Known values supported by the service
564+
* **Enabled** \
565+
* **Disabled**
566+
*/
567+
export type ActivationState = string;
568+
484569
/** Optional parameters. */
485570
export interface CertificatesGetOptionalParams
486571
extends coreClient.OperationOptions {}

0 commit comments

Comments
 (0)