diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index ab30db3a98b1..3f0d52b7f081 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -12190,23 +12190,23 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-CU5Iv72qC9fcxFcTmzXSosMxmjwQmJjs8fxUNpHQ5IXKUwdPg7jI1MxFi0Lqk+bkIUBD4tzeNCXSe3AFDp6yCg==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-Yrf50CPo+vxU8LAczL2UmQ/gCBKaSq2IOKkQrpxzVIXykCoYZI0GRkoV3tmb/mFGstOBN5WCfu5c0eftpHeQ/w==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: '@azure-tools/test-recorder': 1.0.2 '@azure/identity': 2.0.4 '@microsoft/api-extractor': 7.19.4 - '@rollup/plugin-commonjs': 21.0.2_rollup@2.70.0 - '@rollup/plugin-json': 4.1.0_rollup@2.70.0 - '@rollup/plugin-multi-entry': 3.0.1_rollup@2.70.0 - '@rollup/plugin-node-resolve': 8.4.0_rollup@2.70.0 + '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1 + '@rollup/plugin-json': 4.1.0_rollup@1.32.1 + '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1 + '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 7.2.0 rimraf: 3.0.2 - rollup: 2.70.0 - rollup-plugin-sourcemaps: 0.4.2_rollup@2.70.0 + rollup: 1.32.1 + rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1 tslib: 2.3.1 typescript: 4.2.4 uglify-js: 3.15.2 diff --git a/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md b/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md index 8801f98340aa..11b84245b868 100644 --- a/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md +++ b/sdk/recoveryservices/arm-recoveryservices/CHANGELOG.md @@ -1,15 +1,14 @@ # Release History - -## 5.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + +## 5.1.0 (2022-03-14) + +**Features** + + - Added Type Alias BackupStorageVersion + - Interface VaultProperties has a new optional parameter backupStorageVersion + - Added Enum KnownBackupStorageVersion + + ## 5.0.0 (2021-12-10) The package of @azure/arm-recoveryservices is using our next generation design principles since version 5.0.0, which contains breaking changes. diff --git a/sdk/recoveryservices/arm-recoveryservices/LICENSE b/sdk/recoveryservices/arm-recoveryservices/LICENSE index ccb63b166732..5d1d36e0af80 100644 --- a/sdk/recoveryservices/arm-recoveryservices/LICENSE +++ b/sdk/recoveryservices/arm-recoveryservices/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2021 Microsoft +Copyright (c) 2022 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/recoveryservices/arm-recoveryservices/_meta.json b/sdk/recoveryservices/arm-recoveryservices/_meta.json index a50ca051dc9b..e623a039905c 100644 --- a/sdk/recoveryservices/arm-recoveryservices/_meta.json +++ b/sdk/recoveryservices/arm-recoveryservices/_meta.json @@ -1,7 +1,8 @@ { - "commit": "76f8e0c50629ef12aa338d55782278ceca46212a", + "commit": "cfa8eca1f0c15877e738dbaf3758555154f61e83", "readme": "specification/recoveryservices/resource-manager/readme.md", - "autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211130.1", + "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/recoveryservices/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220105.1", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "use": "@autorest/typescript@6.0.0-alpha.16.20211130.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.1.1", + "use": "@autorest/typescript@6.0.0-alpha.16.20220105.1" } \ No newline at end of file diff --git a/sdk/recoveryservices/arm-recoveryservices/api-extractor.json b/sdk/recoveryservices/arm-recoveryservices/api-extractor.json index d5102ac1ee0c..d2cb80b3b4db 100644 --- a/sdk/recoveryservices/arm-recoveryservices/api-extractor.json +++ b/sdk/recoveryservices/arm-recoveryservices/api-extractor.json @@ -1,18 +1,31 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", "mainEntryPointFilePath": "./dist-esm/src/index.d.ts", - "docModel": { "enabled": true }, - "apiReport": { "enabled": true, "reportFolder": "./review" }, + "docModel": { + "enabled": true + }, + "apiReport": { + "enabled": true, + "reportFolder": "./review" + }, "dtsRollup": { "enabled": true, "untrimmedFilePath": "", "publicTrimmedFilePath": "./types/arm-recoveryservices.d.ts" }, "messages": { - "tsdocMessageReporting": { "default": { "logLevel": "none" } }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } + }, "extractorMessageReporting": { - "ae-missing-release-tag": { "logLevel": "none" }, - "ae-unresolved-link": { "logLevel": "none" } + "ae-missing-release-tag": { + "logLevel": "none" + }, + "ae-unresolved-link": { + "logLevel": "none" + } } } -} +} \ No newline at end of file diff --git a/sdk/recoveryservices/arm-recoveryservices/package.json b/sdk/recoveryservices/arm-recoveryservices/package.json index c7c583b0e11e..76cebda756cd 100644 --- a/sdk/recoveryservices/arm-recoveryservices/package.json +++ b/sdk/recoveryservices/arm-recoveryservices/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for RecoveryServicesClient.", - "version": "5.0.1", + "version": "5.1.0", "engines": { "node": ">=12.0.0" }, @@ -29,12 +29,12 @@ "types": "./types/arm-recoveryservices.d.ts", "devDependencies": { "@microsoft/api-extractor": "^7.18.11", - "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-json": "^4.0.0", "@rollup/plugin-multi-entry": "^3.0.0", "@rollup/plugin-node-resolve": "^8.0.0", "mkdirp": "^1.0.4", - "rollup": "^2.0.0", + "rollup": "^1.16.3", "rollup-plugin-sourcemaps": "^0.4.2", "typescript": "~4.2.0", "uglify-js": "^3.4.9", @@ -99,4 +99,4 @@ }, "sideEffects": false, "autoPublish": true -} +} \ No newline at end of file diff --git a/sdk/recoveryservices/arm-recoveryservices/review/arm-recoveryservices.api.md b/sdk/recoveryservices/arm-recoveryservices/review/arm-recoveryservices.api.md index 348699776fa4..169f7573ccfe 100644 --- a/sdk/recoveryservices/arm-recoveryservices/review/arm-recoveryservices.api.md +++ b/sdk/recoveryservices/arm-recoveryservices/review/arm-recoveryservices.api.md @@ -13,6 +13,9 @@ import { PollOperationState } from '@azure/core-lro'; // @public export type AuthType = string; +// @public +export type BackupStorageVersion = string; + // @public export interface CertificateRequest { properties?: RawCertificateData; @@ -155,6 +158,16 @@ export enum KnownAuthType { Invalid = "Invalid" } +// @public +export enum KnownBackupStorageVersion { + // (undocumented) + Unassigned = "Unassigned", + // (undocumented) + V1 = "V1", + // (undocumented) + V2 = "V2" +} + // @public export enum KnownCreatedByType { // (undocumented) @@ -708,6 +721,7 @@ export type VaultPrivateEndpointState = string; // @public export interface VaultProperties { + readonly backupStorageVersion?: BackupStorageVersion; encryption?: VaultPropertiesEncryption; moveDetails?: VaultPropertiesMoveDetails; readonly moveState?: ResourceMoveState; diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts index c3cfcc899297..8ff447d392cb 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/index.ts @@ -296,6 +296,11 @@ export interface VaultProperties { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly moveState?: ResourceMoveState; + /** + * Backup storage version + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly backupStorageVersion?: BackupStorageVersion; } /** Details for upgrading vault. */ @@ -892,6 +897,24 @@ export enum KnownResourceMoveState { */ export type ResourceMoveState = string; +/** Known values of {@link BackupStorageVersion} that the service accepts. */ +export enum KnownBackupStorageVersion { + V1 = "V1", + V2 = "V2", + Unassigned = "Unassigned" +} + +/** + * Defines values for BackupStorageVersion. \ + * {@link KnownBackupStorageVersion} can be used interchangeably with BackupStorageVersion, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **V1** \ + * **V2** \ + * **Unassigned** + */ +export type BackupStorageVersion = string; + /** Known values of {@link SkuName} that the service accepts. */ export enum KnownSkuName { Standard = "Standard", diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts index 78daad1c3e4b..246ebbb6abdf 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/mappers.ts @@ -677,6 +677,13 @@ export const VaultProperties: coreClient.CompositeMapper = { type: { name: "String" } + }, + backupStorageVersion: { + serializedName: "backupStorageVersion", + readOnly: true, + type: { + name: "String" + } } } } diff --git a/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts b/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts index 6d7fe290fa10..20efbe5866c5 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/models/parameters.ts @@ -74,7 +74,7 @@ export const subscriptionId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2021-08-01", + defaultValue: "2022-01-01", isConstant: true, serializedName: "api-version", type: { diff --git a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts index e0b6133c39bc..cea949b27635 100644 --- a/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts +++ b/sdk/recoveryservices/arm-recoveryservices/src/recoveryServicesClient.ts @@ -72,7 +72,7 @@ export class RecoveryServicesClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-recoveryservices/5.0.0`; + const packageDetails = `azsdk-js-arm-recoveryservices/5.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -95,7 +95,7 @@ export class RecoveryServicesClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2021-08-01"; + this.apiVersion = options.apiVersion || "2022-01-01"; this.vaultCertificates = new VaultCertificatesImpl(this); this.registeredIdentities = new RegisteredIdentitiesImpl(this); this.replicationUsages = new ReplicationUsagesImpl(this); diff --git a/sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts b/sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts new file mode 100644 index 000000000000..7ed89b043e1b --- /dev/null +++ b/sdk/recoveryservices/arm-recoveryservices/test/sampleTest.ts @@ -0,0 +1,48 @@ +/* + * 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 { + env, + record, + RecorderEnvironmentSetup, + Recorder +} from "@azure-tools/test-recorder"; +import * as assert from "assert"; + +const recorderEnvSetup: RecorderEnvironmentSetup = { + replaceableVariables: { + 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" + }, + customizationsOnRecordings: [ + (recording: any): any => + recording.replace( + /"access_token":"[^"]*"/g, + `"access_token":"access_token"` + ) + ], + queryParametersToSkip: [] +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function() { + recorder = record(this, recorderEnvSetup); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/recoveryservices/arm-recoveryservices/tsconfig.json b/sdk/recoveryservices/arm-recoveryservices/tsconfig.json index 6e3251194117..3e6ae96443f3 100644 --- a/sdk/recoveryservices/arm-recoveryservices/tsconfig.json +++ b/sdk/recoveryservices/arm-recoveryservices/tsconfig.json @@ -9,11 +9,19 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6", "dom"], + "lib": [ + "es6", + "dom" + ], "declaration": true, "outDir": "./dist-esm", "importHelpers": true }, - "include": ["./src/**/*.ts", "./test/**/*.ts"], - "exclude": ["node_modules"] -} + "include": [ + "./src/**/*.ts", + "./test/**/*.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file diff --git a/sdk/recoveryservices/ci.mgmt.yml b/sdk/recoveryservices/ci.mgmt.yml index c51471366c41..e099bec29d8f 100644 --- a/sdk/recoveryservices/ci.mgmt.yml +++ b/sdk/recoveryservices/ci.mgmt.yml @@ -1,5 +1,5 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. - + trigger: branches: include: @@ -10,6 +10,7 @@ trigger: include: - sdk/recoveryservices/ci.mgmt.yml - sdk/recoveryservices/arm-recoveryservices/ + - sdk/recoveryservices/arm-recoveryservices pr: branches: include: @@ -23,11 +24,11 @@ pr: include: - sdk/recoveryservices/ci.mgmt.yml - sdk/recoveryservices/arm-recoveryservices/ - + - sdk/recoveryservices/arm-recoveryservices extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: ServiceDirectory: recoveryservices Artifacts: - name: azure-arm-recoveryservices - safeName: azurearmrecoveryservices \ No newline at end of file + safeName: azurearmrecoveryservices