Skip to content

Commit

Permalink
CodeGen from PR 30043 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 6954dcb9654b7fbdb902c9b30239a208bff565e5 into 4b7fbd8b842b509a0330f20260821dd844328dff
  • Loading branch information
SDKAuto committed Aug 5, 2024
1 parent 5513635 commit ef63222
Show file tree
Hide file tree
Showing 13 changed files with 767 additions and 447 deletions.
797 changes: 400 additions & 397 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

41 changes: 21 additions & 20 deletions sdk/nginx/arm-nginx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,9 @@
# Release History

## 4.0.0-beta.2 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 4.0.0-beta.1 (2024-03-18)

**Features**
## 4.0.0-beta.2 (2024-08-05)
Compared with version 3.0.0

### Features Added

- Added operation Configurations.analysis
- Added Interface AnalysisCreate
Expand All @@ -25,25 +16,35 @@
- Added Interface ErrorAdditionalInfo
- Added Interface ErrorDetail
- Added Interface NginxCertificateErrorResponseBody
- Added Interface NginxDeploymentPropertiesNginxAppProtect
- Added Interface NginxDeploymentUpdatePropertiesNginxAppProtect
- Added Interface ScaleProfile
- Added Interface ScaleProfileCapacity
- Added Interface WebApplicationFirewallComponentVersions
- Added Interface WebApplicationFirewallPackage
- Added Interface WebApplicationFirewallSettings
- Added Interface WebApplicationFirewallStatus
- Added Type Alias ActivationState
- Added Type Alias ConfigurationsAnalysisResponse
- Interface NginxCertificateProperties has a new optional parameter certificateError
- Interface NginxCertificateProperties has a new optional parameter keyVaultSecretCreated
- Interface NginxCertificateProperties has a new optional parameter keyVaultSecretVersion
- Interface NginxCertificateProperties has a new optional parameter sha1Thumbprint
- Interface NginxDeploymentProperties has a new optional parameter autoUpgradeProfile
- Interface NginxDeploymentProperties has a new optional parameter nginxAppProtect
- Interface NginxDeploymentScalingProperties has a new optional parameter profiles
- Interface NginxDeploymentUpdateProperties has a new optional parameter autoUpgradeProfile
- Interface NginxDeploymentUpdateProperties has a new optional parameter nginxAppProtect
- Added Enum KnownActivationState

**Breaking Changes**
### Breaking Changes

- Type of parameter error of interface ResourceProviderDefaultErrorResponse is changed from ErrorResponseBody to ErrorDetail


## 3.0.0 (2023-11-09)

**Features**
### Features Added

- Added Interface NginxDeploymentScalingProperties
- Added Interface NginxDeploymentUserProfile
Expand All @@ -53,24 +54,24 @@
- Interface NginxDeploymentUpdateProperties has a new optional parameter scalingProperties
- Interface NginxDeploymentUpdateProperties has a new optional parameter userProfile

**Breaking Changes**
### Breaking Changes

- Interface NginxCertificate no longer has parameter tags
- Interface NginxConfiguration no longer has parameter tags

## 2.0.1 (2023-01-30)

**Features**
### Features Added

- Exposes `getContinuationToken` helper function to extract continuation token

**Bugs Fixed**
### Bugs Fixed

- A series of small bug fixs relevant to authentication and apiVersion policy

## 2.0.0 (2022-10-21)

**Features**
### Features Added

- Added operation Certificates.beginCreateOrUpdate
- Added operation Certificates.beginCreateOrUpdateAndWait
Expand All @@ -82,7 +83,7 @@
- Added Type Alias DeploymentsCreateOrUpdateResponse
- Interface NginxConfigurationProperties has a new optional parameter protectedFiles

**Breaking Changes**
### Breaking Changes

- Removed operation Certificates.beginCreate
- Removed operation Certificates.beginCreateAndWait
Expand Down
8 changes: 4 additions & 4 deletions sdk/nginx/arm-nginx/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "9fb75a3c4ca9b753271bd6db2e42e5f98366cbae",
"commit": "5d8ac5c22efc048beac668fe44d7c1a3ecdb4ee1",
"readme": "specification/nginx/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\\nginx\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --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/nginx/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"use": "@autorest/typescript@6.0.17"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.11",
"use": "@autorest/typescript@^6.0.12"
}
19 changes: 6 additions & 13 deletions sdk/nginx/arm-nginx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -35,11 +35,12 @@
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -105,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx"
}
47 changes: 47 additions & 0 deletions sdk/nginx/arm-nginx/review/arm-nginx.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { OperationState } from '@azure/core-lro';
import { PagedAsyncIterableIterator } from '@azure/core-paging';
import { SimplePollerLike } from '@azure/core-lro';

// @public
export type ActivationState = string;

// @public
export interface AnalysisCreate {
// (undocumented)
Expand Down Expand Up @@ -275,6 +278,12 @@ export interface IdentityProperties {
// @public
export type IdentityType = string;

// @public
export enum KnownActivationState {
Disabled = "Disabled",
Enabled = "Enabled"
}

// @public
export enum KnownCreatedByType {
Application = "Application",
Expand Down Expand Up @@ -439,13 +448,20 @@ export interface NginxDeploymentProperties {
managedResourceGroup?: string;
// (undocumented)
networkProfile?: NginxNetworkProfile;
nginxAppProtect?: NginxDeploymentPropertiesNginxAppProtect;
readonly nginxVersion?: string;
readonly provisioningState?: ProvisioningState;
scalingProperties?: NginxDeploymentScalingProperties;
// (undocumented)
userProfile?: NginxDeploymentUserProfile;
}

// @public
export interface NginxDeploymentPropertiesNginxAppProtect {
webApplicationFirewallSettings: WebApplicationFirewallSettings;
readonly webApplicationFirewallStatus?: WebApplicationFirewallStatus;
}

// @public
export interface NginxDeploymentScalingProperties {
// (undocumented)
Expand Down Expand Up @@ -476,11 +492,17 @@ export interface NginxDeploymentUpdateProperties {
enableDiagnosticsSupport?: boolean;
// (undocumented)
logging?: NginxLogging;
nginxAppProtect?: NginxDeploymentUpdatePropertiesNginxAppProtect;
scalingProperties?: NginxDeploymentScalingProperties;
// (undocumented)
userProfile?: NginxDeploymentUserProfile;
}

// @public
export interface NginxDeploymentUpdatePropertiesNginxAppProtect {
webApplicationFirewallSettings?: WebApplicationFirewallSettings;
}

// @public (undocumented)
export interface NginxDeploymentUserProfile {
preferredEmail?: string;
Expand Down Expand Up @@ -649,6 +671,31 @@ export interface UserIdentityProperties {
readonly principalId?: string;
}

// @public
export interface WebApplicationFirewallComponentVersions {
wafEngineVersion: string;
wafNginxVersion: string;
}

// @public
export interface WebApplicationFirewallPackage {
revisionDatetime: Date;
version: string;
}

// @public
export interface WebApplicationFirewallSettings {
activationState?: ActivationState;
}

// @public
export interface WebApplicationFirewallStatus {
readonly attackSignaturesPackage?: WebApplicationFirewallPackage;
readonly botSignaturesPackage?: WebApplicationFirewallPackage;
readonly componentVersions?: WebApplicationFirewallComponentVersions;
readonly threatCampaignsPackage?: WebApplicationFirewallPackage;
}

// (No @packageDocumentation comment for this package)

```
85 changes: 85 additions & 0 deletions sdk/nginx/arm-nginx/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ export interface NginxDeploymentProperties {
/** Autoupgrade settings of a deployment. */
autoUpgradeProfile?: AutoUpgradeProfile;
userProfile?: NginxDeploymentUserProfile;
/** Settings for NGINX App Protect (NAP) */
nginxAppProtect?: NginxDeploymentPropertiesNginxAppProtect;
}

export interface NginxNetworkProfile {
Expand Down Expand Up @@ -317,6 +319,63 @@ export interface NginxDeploymentUserProfile {
preferredEmail?: string;
}

/** Settings for NGINX App Protect (NAP) */
export interface NginxDeploymentPropertiesNginxAppProtect {
/** Settings for the NGINX App Protect Web Application Firewall (WAF) */
webApplicationFirewallSettings: WebApplicationFirewallSettings;
/**
* The status of the NGINX App Protect Web Application Firewall
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly webApplicationFirewallStatus?: WebApplicationFirewallStatus;
}

/** Settings for the NGINX App Protect Web Application Firewall (WAF) */
export interface WebApplicationFirewallSettings {
/** The activation state of the WAF. Use 'Enabled' to enable the WAF and 'Disabled' to disable it. */
activationState?: ActivationState;
}

/** The status of the NGINX App Protect Web Application Firewall */
export interface WebApplicationFirewallStatus {
/**
* Package containing attack signatures for the NGINX App Protect Web Application Firewall (WAF).
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly attackSignaturesPackage?: WebApplicationFirewallPackage;
/**
* Package containing bot signatures for the NGINX App Protect Web Application Firewall (WAF).
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly botSignaturesPackage?: WebApplicationFirewallPackage;
/**
* Package containing threat campaigns for the NGINX App Protect Web Application Firewall (WAF).
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly threatCampaignsPackage?: WebApplicationFirewallPackage;
/**
* Versions of the NGINX App Protect Web Application Firewall (WAF) components.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly componentVersions?: WebApplicationFirewallComponentVersions;
}

/** NGINX App Protect Web Application Firewall (WAF) Package. Contains the version and revision date of the package. */
export interface WebApplicationFirewallPackage {
/** The version of the NGINX App Protect Web Application Firewall (WAF) package. */
version: string;
/** The date and time of the package revision. */
revisionDatetime: Date;
}

/** Versions of the NGINX App Protect Web Application Firewall (WAF) components. */
export interface WebApplicationFirewallComponentVersions {
/** The version of the NGINX App Protect Web Application Firewall (WAF) engine. */
wafEngineVersion: string;
/** The version of the NGINX App Protect Web Application Firewall (WAF) module for NGINX. */
wafNginxVersion: string;
}

export interface ResourceSku {
/** Name of the SKU. */
name: string;
Expand All @@ -339,6 +398,14 @@ export interface NginxDeploymentUpdateProperties {
userProfile?: NginxDeploymentUserProfile;
/** Autoupgrade settings of a deployment. */
autoUpgradeProfile?: AutoUpgradeProfile;
/** Update settings for NGINX App Protect (NAP) */
nginxAppProtect?: NginxDeploymentUpdatePropertiesNginxAppProtect;
}

/** Update settings for NGINX App Protect (NAP) */
export interface NginxDeploymentUpdatePropertiesNginxAppProtect {
/** Settings for the NGINX App Protect Web Application Firewall (WAF) */
webApplicationFirewallSettings?: WebApplicationFirewallSettings;
}

export interface NginxDeploymentListResponse {
Expand Down Expand Up @@ -481,6 +548,24 @@ export enum KnownNginxPrivateIPAllocationMethod {
*/
export type NginxPrivateIPAllocationMethod = string;

/** Known values of {@link ActivationState} that the service accepts. */
export enum KnownActivationState {
/** Enabled */
Enabled = "Enabled",
/** Disabled */
Disabled = "Disabled",
}

/**
* Defines values for ActivationState. \
* {@link KnownActivationState} can be used interchangeably with ActivationState,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Enabled** \
* **Disabled**
*/
export type ActivationState = string;

/** Optional parameters. */
export interface CertificatesGetOptionalParams
extends coreClient.OperationOptions {}
Expand Down
Loading

0 comments on commit ef63222

Please sign in to comment.