Skip to content

Commit

Permalink
CodeGen from PR 31905 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d218dd903da0c9df08954559e1cca1e154a79525 into 400c11792452dcb27582223863171cd596680a58
  • Loading branch information
SDKAuto committed Dec 17, 2024
1 parent f6904d7 commit 16f955d
Show file tree
Hide file tree
Showing 13 changed files with 328 additions and 1,310 deletions.
1,216 changes: 36 additions & 1,180 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

28 changes: 19 additions & 9 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Release History

## 13.1.1 (Unreleased)

## 13.2.0 (2024-12-17)
### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface AzureFileShareRecoveryPoint has a new optional parameter recoveryPointTierDetails
- Interface AzureStorageContainer has a new optional parameter operationType
- Interface BackupEngineBaseResourceList has a new optional parameter nextLink
- Interface JobResourceList has a new optional parameter nextLink
- Interface ProtectableContainerResourceList has a new optional parameter nextLink
- Interface ProtectedItemResourceList has a new optional parameter nextLink
- Interface ProtectionContainerResourceList has a new optional parameter nextLink
- Interface ProtectionIntentResourceList has a new optional parameter nextLink
- Interface ProtectionPolicyResourceList has a new optional parameter nextLink
- Interface RecoveryPointResourceList has a new optional parameter nextLink
- Interface ResourceGuardProxyBaseResourceList has a new optional parameter nextLink
- Interface WorkloadItemResourceList has a new optional parameter nextLink
- Interface WorkloadProtectableItemResourceList has a new optional parameter nextLink
- Enum KnownOperationType has a new value Rehydrate


## 13.1.0 (2024-05-08)

### Features Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ npm install @azure/identity
```

You will also need to **register a new AAD application and grant access to Azure Recovery Services Backup** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.

For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "dd1b1d0a58a10c4a34f55231c7035c80dd09b746",
"commit": "cc8e2ac7c4bcdece2420810534d3f63d20efebf9",
"readme": "specification/recoveryservicesbackup/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\\recoveryservicesbackup\\resource-manager\\readme.md --use=@autorest/[email protected].21 --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/recoveryservicesbackup/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/[email protected].7",
"use": "@autorest/[email protected].21"
"release_tool": "@azure-tools/[email protected].16",
"use": "@autorest/typescript@^6.0.12"
}
66 changes: 29 additions & 37 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for RecoveryServicesBackupClient.",
"version": "13.1.1",
"version": "13.2.0",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/abort-controller": "^1.0.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-client": "^1.7.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
Expand All @@ -28,19 +28,19 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-recoveryservicesbackup.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^1.1.0",
"@azure-tools/test-recorder": "^3.0.0",
"@azure/arm-recoveryservices": "^5.2.0",
"typescript": "~5.6.2",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@types/chai": "^4.2.8",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"dotenv": "^16.0.0",
"mocha": "^11.0.2",
"ts-node": "^10.0.0",
"typescript": "~5.6.2"
"@types/node": "^18.0.0",
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -68,28 +68,28 @@
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
"build:browser": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
"build:browser": "echo skipped",
"build:test": "echo skipped",
"build:samples": "echo skipped.",
"check-format": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
"extract-api": "dev-tool run extract-api",
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"lint": "echo skipped",
"minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"prepack": "npm run build",
"test": "npm run integration-test",
"test:browser": "echo skipped",
"test:node": "echo skipped",
"test:browser": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
"unit-test:node": "dev-tool run vendored cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"update-snippets": "echo skipped"
},
"sideEffects": false,
Expand All @@ -102,13 +102,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-recoveryservicesbackup?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup"
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export interface AzureFileShareRecoveryPoint extends RecoveryPoint {
objectType: "AzureFileShareRecoveryPoint";
recoveryPointProperties?: RecoveryPointProperties;
recoveryPointSizeInGB?: number;
recoveryPointTierDetails?: RecoveryPointTierInformation[];
recoveryPointTime?: Date;
recoveryPointType?: string;
}
Expand Down Expand Up @@ -296,6 +297,7 @@ export interface AzureSqlProtectionPolicy extends ProtectionPolicy {
export interface AzureStorageContainer extends ProtectionContainer {
acquireStorageAccountLock?: AcquireStorageAccountLock;
containerType: "StorageContainer";
operationType?: OperationType;
protectedItemCount?: number;
resourceGroup?: string;
sourceResourceId?: string;
Expand Down Expand Up @@ -775,6 +777,7 @@ export interface BackupEngineBaseResource extends Resource {

// @public
export interface BackupEngineBaseResourceList extends ResourceList {
nextLink?: string;
value?: BackupEngineBaseResource[];
}

Expand Down Expand Up @@ -2039,6 +2042,7 @@ export interface JobResource extends Resource {

// @public
export interface JobResourceList extends ResourceList {
nextLink?: string;
value?: JobResource[];
}

Expand Down Expand Up @@ -2357,6 +2361,7 @@ export enum KnownOperationStatusValues {
export enum KnownOperationType {
Invalid = "Invalid",
Register = "Register",
Rehydrate = "Rehydrate",
Reregister = "Reregister"
}

Expand Down Expand Up @@ -3088,6 +3093,7 @@ export interface ProtectableContainerResource extends Resource {

// @public
export interface ProtectableContainerResourceList extends ResourceList {
nextLink?: string;
value?: ProtectableContainerResource[];
}

Expand Down Expand Up @@ -3187,6 +3193,7 @@ export interface ProtectedItemResource extends Resource {

// @public
export interface ProtectedItemResourceList extends ResourceList {
nextLink?: string;
value?: ProtectedItemResource[];
}

Expand Down Expand Up @@ -3262,6 +3269,7 @@ export interface ProtectionContainerResource extends Resource {

// @public
export interface ProtectionContainerResourceList extends ResourceList {
nextLink?: string;
value?: ProtectionContainerResource[];
}

Expand Down Expand Up @@ -3362,6 +3370,7 @@ export interface ProtectionIntentResource extends Resource {

// @public
export interface ProtectionIntentResourceList extends ResourceList {
nextLink?: string;
value?: ProtectionIntentResource[];
}

Expand Down Expand Up @@ -3450,6 +3459,7 @@ export interface ProtectionPolicyResource extends Resource {

// @public
export interface ProtectionPolicyResourceList extends ResourceList {
nextLink?: string;
value?: ProtectionPolicyResource[];
}

Expand Down Expand Up @@ -3509,6 +3519,7 @@ export interface RecoveryPointResource extends Resource {

// @public
export interface RecoveryPointResourceList extends ResourceList {
nextLink?: string;
value?: RecoveryPointResource[];
}

Expand Down Expand Up @@ -3782,6 +3793,7 @@ export interface ResourceGuardProxyBaseResource extends Resource {

// @public
export interface ResourceGuardProxyBaseResourceList extends ResourceList {
nextLink?: string;
value?: ResourceGuardProxyBaseResource[];
}

Expand Down Expand Up @@ -4298,6 +4310,7 @@ export interface WorkloadItemResource extends Resource {

// @public
export interface WorkloadItemResourceList extends ResourceList {
nextLink?: string;
value?: WorkloadItemResource[];
}

Expand All @@ -4323,6 +4336,7 @@ export interface WorkloadProtectableItemResource extends Resource {

// @public
export interface WorkloadProtectableItemResourceList extends ResourceList {
nextLink?: string;
value?: WorkloadProtectableItemResource[];
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# App registration secret for AAD authentication
AZURE_CLIENT_SECRET=
AZURE_CLIENT_ID=
AZURE_TENANT_ID=
# Feel free to add your own environment variables.
Loading

0 comments on commit 16f955d

Please sign in to comment.