Skip to content

[AutoPR @azure/arm-recoveryservices] Swagger correctness fix #5251

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

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
30 changes: 21 additions & 9 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 16 additions & 10 deletions sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
# Release History

## 5.4.0 (2023-06-25)

**Features**

## 5.3.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface SoftDeleteSettings
- Added Type Alias MultiUserAuthorization
- Added Type Alias SecureScoreLevel
- Added Type Alias SoftDeleteState
- Interface SecuritySettings has a new optional parameter multiUserAuthorization
- Interface SecuritySettings has a new optional parameter softDeleteSettings
- Interface VaultProperties has a new optional parameter secureScore
- Added Enum KnownMultiUserAuthorization
- Added Enum KnownSecureScoreLevel
- Added Enum KnownSoftDeleteState


## 5.3.0 (2023-05-31)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/recoveryservices/arm-recoveryservices/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "73d8ea03558929411b9f2e6be533e63409a2252c",
"commit": "a47b186bb893483daebf98f21f65e29bfd449034",
"readme": "specification/recoveryservices/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=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\recoveryservices\\resource-manager\\readme.md --use=@autorest/[email protected].2 --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/recoveryservices/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].2"
"release_tool": "@azure-tools/[email protected].1",
"use": "@autorest/typescript@^6.0.4"
}
14 changes: 3 additions & 11 deletions sdk/recoveryservices/arm-recoveryservices/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 RecoveryServicesClient.",
"version": "5.3.1",
"version": "5.4.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -111,13 +111,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservices/arm-recoveryservices",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservices?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservices/arm-recoveryservices"
}
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,13 @@ export enum KnownInfrastructureEncryptionState {
Enabled = "Enabled"
}

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

// @public
export enum KnownPrivateEndpointConnectionStatus {
Approved = "Approved",
Expand Down Expand Up @@ -310,12 +317,28 @@ export enum KnownResourceMoveState {
Unknown = "Unknown"
}

// @public
export enum KnownSecureScoreLevel {
Adequate = "Adequate",
Maximum = "Maximum",
Minimum = "Minimum",
None = "None"
}

// @public
export enum KnownSkuName {
RS0 = "RS0",
Standard = "Standard"
}

// @public
export enum KnownSoftDeleteState {
AlwaysON = "AlwaysON",
Disabled = "Disabled",
Enabled = "Enabled",
Invalid = "Invalid"
}

// @public
export enum KnownStandardTierStorageRedundancy {
GeoRedundant = "GeoRedundant",
Expand Down Expand Up @@ -376,6 +399,9 @@ export interface MonitoringSummary {
unsupportedProviderCount?: number;
}

// @public
export type MultiUserAuthorization = string;

// @public
export interface NameInfo {
localizedValue?: string;
Expand Down Expand Up @@ -672,9 +698,14 @@ export interface RestoreSettings {
crossSubscriptionRestoreSettings?: CrossSubscriptionRestoreSettings;
}

// @public
export type SecureScoreLevel = string;

// @public
export interface SecuritySettings {
immutabilitySettings?: ImmutabilitySettings;
readonly multiUserAuthorization?: MultiUserAuthorization;
softDeleteSettings?: SoftDeleteSettings;
}

// @public
Expand All @@ -689,6 +720,16 @@ export interface Sku {
// @public
export type SkuName = string;

// @public
export interface SoftDeleteSettings {
softDeleteRetentionPeriodInDays?: number;
// (undocumented)
softDeleteState?: SoftDeleteState;
}

// @public
export type SoftDeleteState = string;

// @public
export type StandardTierStorageRedundancy = string;

Expand Down Expand Up @@ -835,6 +876,7 @@ export interface VaultProperties {
publicNetworkAccess?: PublicNetworkAccess;
redundancySettings?: VaultPropertiesRedundancySettings;
restoreSettings?: RestoreSettings;
readonly secureScore?: SecureScoreLevel;
securitySettings?: SecuritySettings;
upgradeDetails?: UpgradeDetails;
}
Expand Down
88 changes: 88 additions & 0 deletions sdk/recoveryservices/arm-recoveryservices/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@ export interface VaultProperties {
redundancySettings?: VaultPropertiesRedundancySettings;
/** Security Settings of the vault */
securitySettings?: SecuritySettings;
/**
* Secure Score of Recovery Services Vault
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly secureScore?: SecureScoreLevel;
}

/** Details for upgrading vault. */
Expand Down Expand Up @@ -562,13 +567,27 @@ export interface VaultPropertiesRedundancySettings {
export interface SecuritySettings {
/** Immutability Settings of a vault */
immutabilitySettings?: ImmutabilitySettings;
/** Soft delete Settings of a vault */
softDeleteSettings?: SoftDeleteSettings;
/**
* MUA Settings of a vault
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly multiUserAuthorization?: MultiUserAuthorization;
}

/** Immutability Settings of vault */
export interface ImmutabilitySettings {
state?: ImmutabilityState;
}

/** Soft delete Settings of vault */
export interface SoftDeleteSettings {
softDeleteState?: SoftDeleteState;
/** Soft delete retention period in days */
softDeleteRetentionPeriodInDays?: number;
}

/** Identifies the unique system identifier for each Azure resource. */
export interface Sku {
/** Name of SKU is RS0 (Recovery Services 0th version) and the tier is standard tier. They do not have affect on backend storage redundancy or any other vault settings. To manage storage redundancy, use the backupstorageconfig */
Expand Down Expand Up @@ -1203,6 +1222,75 @@ export enum KnownImmutabilityState {
*/
export type ImmutabilityState = string;

/** Known values of {@link SoftDeleteState} that the service accepts. */
export enum KnownSoftDeleteState {
/** Invalid */
Invalid = "Invalid",
/** Enabled */
Enabled = "Enabled",
/** Disabled */
Disabled = "Disabled",
/** AlwaysON */
AlwaysON = "AlwaysON"
}

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

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

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

/** Known values of {@link SecureScoreLevel} that the service accepts. */
export enum KnownSecureScoreLevel {
/** None */
None = "None",
/** Minimum */
Minimum = "Minimum",
/** Adequate */
Adequate = "Adequate",
/** Maximum */
Maximum = "Maximum"
}

/**
* Defines values for SecureScoreLevel. \
* {@link KnownSecureScoreLevel} can be used interchangeably with SecureScoreLevel,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **None** \
* **Minimum** \
* **Adequate** \
* **Maximum**
*/
export type SecureScoreLevel = string;

/** Known values of {@link SkuName} that the service accepts. */
export enum KnownSkuName {
/** Standard */
Expand Down
Loading