diff --git a/sdk/storagecache/arm-storagecache/_meta.json b/sdk/storagecache/arm-storagecache/_meta.json index fecd50a757fd..14ca031596d3 100644 --- a/sdk/storagecache/arm-storagecache/_meta.json +++ b/sdk/storagecache/arm-storagecache/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a04dcf17baa7d980c29248fa00c14a7c5b69e67f", + "commit": "67af11c3a81e373c05d07a365b41f63fd3ed8498", "readme": "specification/storagecache/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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storagecache\\resource-manager\\readme.md --use=@autorest/typescript@6.0.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/storagecache/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/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.2" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.1", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/storagecache/arm-storagecache/package.json b/sdk/storagecache/arm-storagecache/package.json index 0c3fe21e2d39..fd870eda56fe 100644 --- a/sdk/storagecache/arm-storagecache/package.json +++ b/sdk/storagecache/arm-storagecache/package.json @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache" +} \ No newline at end of file diff --git a/sdk/storagecache/arm-storagecache/src/models/index.ts b/sdk/storagecache/arm-storagecache/src/models/index.ts index 091cc5580788..5fbf0dc4a7e9 100644 --- a/sdk/storagecache/arm-storagecache/src/models/index.ts +++ b/sdk/storagecache/arm-storagecache/src/models/index.ts @@ -1744,14 +1744,14 @@ export type CacheIdentityType = /** Optional parameters. */ export interface AmlFilesystemsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AmlFilesystemsListResponse = AmlFilesystemsListResult; /** Optional parameters. */ export interface AmlFilesystemsListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type AmlFilesystemsListByResourceGroupResponse = AmlFilesystemsListResult; @@ -1767,7 +1767,7 @@ export interface AmlFilesystemsDeleteOptionalParams /** Optional parameters. */ export interface AmlFilesystemsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AmlFilesystemsGetResponse = AmlFilesystem; @@ -1805,18 +1805,18 @@ export interface AmlFilesystemsArchiveOptionalParams /** Optional parameters. */ export interface AmlFilesystemsCancelArchiveOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface AmlFilesystemsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AmlFilesystemsListNextResponse = AmlFilesystemsListResult; /** Optional parameters. */ export interface AmlFilesystemsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type AmlFilesystemsListByResourceGroupNextResponse = AmlFilesystemsListResult; @@ -1840,75 +1840,75 @@ export type GetRequiredAmlFSSubnetsSizeResponse = RequiredAmlFilesystemSubnetsSi /** Optional parameters. */ export interface OperationsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type OperationsListResponse = ApiOperationListResult; /** Optional parameters. */ export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type OperationsListNextResponse = ApiOperationListResult; /** Optional parameters. */ -export interface SkusListOptionalParams extends coreClient.OperationOptions { } +export interface SkusListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SkusListResponse = ResourceSkusResult; /** Optional parameters. */ export interface SkusListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SkusListNextResponse = ResourceSkusResult; /** Optional parameters. */ export interface UsageModelsListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type UsageModelsListResponse = UsageModelsResult; /** Optional parameters. */ export interface UsageModelsListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type UsageModelsListNextResponse = UsageModelsResult; /** Optional parameters. */ export interface AscOperationsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AscOperationsGetResponse = AscOperation; /** Optional parameters. */ export interface AscUsagesListOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AscUsagesListResponse = ResourceUsagesListResult; /** Optional parameters. */ export interface AscUsagesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type AscUsagesListNextResponse = ResourceUsagesListResult; /** Optional parameters. */ -export interface CachesListOptionalParams extends coreClient.OperationOptions { } +export interface CachesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CachesListResponse = CachesListResult; /** Optional parameters. */ export interface CachesListByResourceGroupOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ export type CachesListByResourceGroupResponse = CachesListResult; @@ -1923,7 +1923,7 @@ export interface CachesDeleteOptionalParams } /** Optional parameters. */ -export interface CachesGetOptionalParams extends coreClient.OperationOptions { } +export interface CachesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CachesGetResponse = Cache; @@ -2068,14 +2068,14 @@ export type CachesSpaceAllocationResponse = CachesSpaceAllocationHeaders; /** Optional parameters. */ export interface CachesListNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CachesListNextResponse = CachesListResult; /** Optional parameters. */ export interface CachesListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type CachesListByResourceGroupNextResponse = CachesListResult; @@ -2091,7 +2091,7 @@ export interface StorageTargetsDnsRefreshOptionalParams /** Optional parameters. */ export interface StorageTargetsListByCacheOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByCache operation. */ export type StorageTargetsListByCacheResponse = StorageTargetsResult; @@ -2109,7 +2109,7 @@ export interface StorageTargetsDeleteOptionalParams /** Optional parameters. */ export interface StorageTargetsGetOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type StorageTargetsGetResponse = StorageTarget; @@ -2137,7 +2137,7 @@ export interface StorageTargetsRestoreDefaultsOptionalParams /** Optional parameters. */ export interface StorageTargetsListByCacheNextOptionalParams - extends coreClient.OperationOptions { } + extends coreClient.OperationOptions {} /** Contains response data for the listByCacheNext operation. */ export type StorageTargetsListByCacheNextResponse = StorageTargetsResult; diff --git a/sdk/storagecache/arm-storagecache/test/sampleTest.ts b/sdk/storagecache/arm-storagecache/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/storagecache/arm-storagecache/test/sampleTest.ts @@ -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 = { + 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!"); + }); +}); diff --git a/sdk/storagecache/arm-storagecache/tsconfig.json b/sdk/storagecache/arm-storagecache/tsconfig.json index 1054055624f9..3e6ae96443f3 100644 --- a/sdk/storagecache/arm-storagecache/tsconfig.json +++ b/sdk/storagecache/arm-storagecache/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-storagecache": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"