Skip to content

[AutoPR @azure/arm-recoveryservicesbackup] [BugFix] Add "ExtendedLocation" property in IaasVMRestorePoint #6620

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
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
5 changes: 3 additions & 2 deletions common/config/rush/pnpm-lock.yaml

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

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

## 11.1.0 (2023-09-22)

**Features**

## 11.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface BackupStatusResponse has a new optional parameter acquireStorageAccountLock
- Interface BackupStatusResponse has a new optional parameter protectedItemsCount
- Interface IaasVMRecoveryPoint has a new optional parameter extendedLocation


## 11.0.0 (2023-09-01)

**Features**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "95c0363e4cae8756c6a33b58add67776db427bbc",
"commit": "3b22d6316a5c24cc42c08ce9346ef0e16a1c59eb",
"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].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/recoveryservicesbackup/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]",
"use": "@autorest/[email protected].8"
"use": "@autorest/typescript@^6.0.4"
}
25 changes: 8 additions & 17 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/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 RecoveryServicesBackupClient.",
"version": "11.0.1",
"version": "11.1.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -38,19 +38,18 @@
"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": "^7.1.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/arm-recoveryservices": "^5.2.0",
"ts-node": "^10.0.0"
"ts-node": "^10.0.0",
"@azure/dev-tool": "^1.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -85,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 @@ -113,13 +112,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 @@ -1155,12 +1155,14 @@ export interface BackupStatusRequest {

// @public
export interface BackupStatusResponse {
acquireStorageAccountLock?: AcquireStorageAccountLock;
containerName?: string;
errorCode?: string;
errorMessage?: string;
fabricName?: FabricName;
policyName?: string;
protectedItemName?: string;
protectedItemsCount?: number;
protectionStatus?: ProtectionStatus;
registrationStatus?: string;
vaultId?: string;
Expand Down Expand Up @@ -1755,6 +1757,7 @@ export type IaaSVMProtectableItemUnion = IaaSVMProtectableItem | AzureIaaSClassi

// @public
export interface IaasVMRecoveryPoint extends RecoveryPoint {
extendedLocation?: ExtendedLocation;
isInstantIlrSessionActive?: boolean;
isManagedVirtualMachine?: boolean;
isPrivateAccessEnabledOnAnyDisk?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ export interface BackupStatusResponse {
policyName?: string;
/** Container registration status */
registrationStatus?: string;
/** Number of protected items */
protectedItemsCount?: number;
/** Specifies whether the storage account lock has been acquired or not */
acquireStorageAccountLock?: AcquireStorageAccountLock;
}

/** Base class for feature request */
Expand Down Expand Up @@ -2673,6 +2677,11 @@ export interface IaasVMRecoveryPoint extends RecoveryPoint {
recoveryPointProperties?: RecoveryPointProperties;
/** This flag denotes if any of the disks in the VM are using Private access network setting */
isPrivateAccessEnabledOnAnyDisk?: boolean;
/**
* Extended location of the VM recovery point,
* should be null if VM is in public cloud
*/
extendedLocation?: ExtendedLocation;
}

/** AzureFileShare Restore Request */
Expand Down Expand Up @@ -3977,6 +3986,24 @@ export enum KnownFabricName {
*/
export type FabricName = string;

/** Known values of {@link AcquireStorageAccountLock} that the service accepts. */
export enum KnownAcquireStorageAccountLock {
/** Acquire */
Acquire = "Acquire",
/** NotAcquire */
NotAcquire = "NotAcquire"
}

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

/** Known values of {@link SupportStatus} that the service accepts. */
export enum KnownSupportStatus {
/** Invalid */
Expand Down Expand Up @@ -5180,24 +5207,6 @@ export enum KnownOperationType {
*/
export type OperationType = string;

/** Known values of {@link AcquireStorageAccountLock} that the service accepts. */
export enum KnownAcquireStorageAccountLock {
/** Acquire */
Acquire = "Acquire",
/** NotAcquire */
NotAcquire = "NotAcquire"
}

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

/** Known values of {@link InquiryStatus} that the service accepts. */
export enum KnownInquiryStatus {
/** Invalid */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ export const BackupStatusResponse: coreClient.CompositeMapper = {
type: {
name: "String"
}
},
protectedItemsCount: {
serializedName: "protectedItemsCount",
type: {
name: "Number"
}
},
acquireStorageAccountLock: {
serializedName: "acquireStorageAccountLock",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -6771,6 +6783,13 @@ export const IaasVMRecoveryPoint: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
extendedLocation: {
serializedName: "extendedLocation",
type: {
name: "Composite",
className: "ExtendedLocation"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-recoveryservicesbackup/11.0.1`;
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/11.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import {
Recorder,
RecorderStartOptions,
env
} from "@azure-tools/test-recorder";
import { assert } from "chai";
import { Context } from "mocha";

const replaceableVariables: Record<string, string> = {
AZURE_CLIENT_ID: "azure_client_id",
AZURE_CLIENT_SECRET: "azure_client_secret",
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
SUBSCRIPTION_ID: "azure_subscription_id"
};

const recorderOptions: RecorderStartOptions = {
envSetupForPlayback: replaceableVariables
};

describe("My test", () => {
let recorder: Recorder;

beforeEach(async function(this: Context) {
recorder = new Recorder(this.currentTest);
await recorder.start(recorderOptions);
});

afterEach(async function() {
await recorder.stop();
});

it("sample test", async function() {
console.log("Hi, I'm a test!");
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-recoveryservicesbackup": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down