Skip to content
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

[AutoPR @azure/arm-recoveryservicesbackup] Added ExtendedLocation to IaasVMRestoreRequest #3695

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
20 changes: 10 additions & 10 deletions sdk/recoveryservicesbackup/arm-recoveryservicesbackup/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Release History

## 10.1.0 (2023-02-06)

**Features**

## 10.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface ExtendedLocation
- Interface BmsrpQueryObject has a new optional parameter includeSoftDeletedRP
- Interface IaasVMRestoreRequest has a new optional parameter extendedLocation
- Interface RecoveryPointProperties has a new optional parameter isSoftDeleted


## 10.0.0 (2023-01-18)

**Features**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "0e20dd2e4e2a40e83840c30cce2efc4847fd9cb9",
"commit": "e431ba20b2fd06c58af873cd80ed2b692d6bfb56",
"readme": "specification/recoveryservicesbackup/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\\recoveryservicesbackup\\resource-manager\\readme.md --use=@autorest/[email protected].7 --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/recoveryservicesbackup/resource-manager/readme.md --use=@autorest/[email protected].5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.5.4",
"use": "@autorest/[email protected].7"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.2",
"use": "@autorest/[email protected].5"
}
17 changes: 4 additions & 13 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": "10.0.1",
"version": "10.1.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -39,7 +39,6 @@
"typescript": "~4.8.0",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
Expand All @@ -50,6 +49,7 @@
"@types/node": "^14.0.0",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/recoveryservicesbackup/arm-recoveryservicesbackup",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down Expand Up @@ -110,14 +110,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"
}
}
"autoPublish": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -1280,6 +1280,7 @@ export interface BMSRefreshContainersQueryObject {
export interface BmsrpQueryObject {
endDate?: Date;
extendedInfo?: boolean;
includeSoftDeletedRP?: boolean;
moveReadyRPOnly?: boolean;
restorePointQueryType?: RestorePointQueryType;
startDate?: Date;
Expand Down Expand Up @@ -1594,6 +1595,12 @@ export interface ExportJobsOperationResultsGetOptionalParams extends coreClient.
// @public
export type ExportJobsOperationResultsGetResponse = OperationResultInfoBaseResource;

// @public
export interface ExtendedLocation {
name?: string;
type?: string;
}

// @public
export interface ExtendedProperties {
diskExclusionProperties?: DiskExclusionProperties;
Expand Down Expand Up @@ -1770,6 +1777,7 @@ export interface IaasVMRestoreRequest extends RestoreRequest {
createNewCloudService?: boolean;
diskEncryptionSetId?: string;
encryptionDetails?: EncryptionDetails;
extendedLocation?: ExtendedLocation;
identityBasedRestoreDetails?: IdentityBasedRestoreDetails;
identityInfo?: IdentityInfo;
objectType: "IaasVMRestoreRequest" | "IaasVMRestoreWithRehydrationRequest";
Expand Down Expand Up @@ -3363,6 +3371,7 @@ export interface RecoveryPointMoveReadinessInfo {
// @public
export interface RecoveryPointProperties {
expiryTime?: string;
isSoftDeleted?: boolean;
ruleName?: string;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,6 +1103,8 @@ export interface RecoveryPointProperties {
expiryTime?: string;
/** Rule name tagged on Recovery Point that governs life cycle */
ruleName?: string;
/** Bool to indicate whether RP is in soft delete state or not */
isSoftDeleted?: boolean;
}

/** Restore file specs like file path, type and target folder path info. */
Expand Down Expand Up @@ -1466,6 +1468,8 @@ export interface BmsrpQueryObject {
extendedInfo?: boolean;
/** Whether the RP can be moved to another tier */
moveReadyRPOnly?: boolean;
/** Flag to indicate whether Soft Deleted RPs should be included/excluded from result. */
includeSoftDeletedRP?: boolean;
}

/** Disk information */
Expand Down Expand Up @@ -1673,6 +1677,14 @@ export interface RecoveryPointDiskConfiguration {
excludedDiskList?: DiskInformation[];
}

/** The extended location of Recovery point where VM was present. */
export interface ExtendedLocation {
/** Name of the extended location. */
name?: string;
/** Type of the extended location. Possible values include: 'EdgeZone' */
type?: string;
}

/** Filters to list the jobs. */
export interface JobQueryObject {
/** Status of the job. */
Expand Down Expand Up @@ -2744,6 +2756,11 @@ export interface IaasVMRestoreRequest extends RestoreRequest {
identityInfo?: IdentityInfo;
/** IaaS VM workload specific restore details for restores using managed identity. */
identityBasedRestoreDetails?: IdentityBasedRestoreDetails;
/**
* Target extended location where the VM should be restored,
* should be null if restore is to be done in public cloud
*/
extendedLocation?: ExtendedLocation;
}

/** Azure VM (Mercury) workload-specific backup policy. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2378,6 +2378,12 @@ export const RecoveryPointProperties: coreClient.CompositeMapper = {
type: {
name: "String"
}
},
isSoftDeleted: {
serializedName: "isSoftDeleted",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -3352,6 +3358,12 @@ export const BmsrpQueryObject: coreClient.CompositeMapper = {
type: {
name: "Boolean"
}
},
includeSoftDeletedRP: {
serializedName: "includeSoftDeletedRP",
type: {
name: "Boolean"
}
}
}
}
Expand Down Expand Up @@ -3945,6 +3957,27 @@ export const RecoveryPointDiskConfiguration: coreClient.CompositeMapper = {
}
};

export const ExtendedLocation: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ExtendedLocation",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
},
type: {
serializedName: "type",
type: {
name: "String"
}
}
}
}
};

export const JobQueryObject: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -6901,6 +6934,13 @@ export const IaasVMRestoreRequest: coreClient.CompositeMapper = {
name: "Composite",
className: "IdentityBasedRestoreDetails"
}
},
extendedLocation: {
serializedName: "extendedLocation",
type: {
name: "Composite",
className: "ExtendedLocation"
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-01-01",
defaultValue: "2023-02-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-recoveryservicesbackup/10.0.1`;
const packageDetails = `azsdk-js-arm-recoveryservicesbackup/10.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -217,7 +217,7 @@ export class RecoveryServicesBackupClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-01-01";
this.apiVersion = options.apiVersion || "2023-02-01";
this.backupResourceStorageConfigsNonCRR = new BackupResourceStorageConfigsNonCRRImpl(
this
);
Expand Down
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