Skip to content
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
21 changes: 13 additions & 8 deletions sdk/storagecache/arm-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
# Release History

## 8.0.0 (2023-06-21)

**Features**

## 7.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface UserAssignedIdentitiesValueAutoGenerated

### Other Changes
**Breaking Changes**

- Type of parameter userAssignedIdentities of interface CacheIdentity is changed from {
[propertyName: string]: UserAssignedIdentitiesValue;
} to {
[propertyName: string]: UserAssignedIdentitiesValueAutoGenerated;
}


## 7.0.0 (2023-06-09)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/storagecache/arm-storagecache/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "a04dcf17baa7d980c29248fa00c14a7c5b69e67f",
"commit": "c2f2afb78c92fa9dadc29801f7fcf5bac260f8bb",
"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"
}
14 changes: 3 additions & 11 deletions sdk/storagecache/arm-storagecache/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 StorageCacheManagementClient.",
"version": "7.0.1",
"version": "8.0.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export interface CacheIdentity {
readonly tenantId?: string;
type?: CacheIdentityType;
userAssignedIdentities?: {
[propertyName: string]: UserAssignedIdentitiesValue;
[propertyName: string]: UserAssignedIdentitiesValueAutoGenerated;
};
}

Expand Down Expand Up @@ -1448,6 +1448,12 @@ export interface UserAssignedIdentitiesValue {
readonly principalId?: string;
}

// @public (undocumented)
export interface UserAssignedIdentitiesValueAutoGenerated {
readonly clientId?: string;
readonly principalId?: string;
}

// @public
export type UsernameDownloadedType = string;

Expand Down
61 changes: 37 additions & 24 deletions sdk/storagecache/arm-storagecache/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,10 +672,23 @@ export interface CacheIdentity {
type?: CacheIdentityType;
/** A dictionary where each key is a user assigned identity resource ID, and each key's value is an empty dictionary. */
userAssignedIdentities?: {
[propertyName: string]: UserAssignedIdentitiesValue;
[propertyName: string]: UserAssignedIdentitiesValueAutoGenerated;
};
}

export interface UserAssignedIdentitiesValueAutoGenerated {
/**
* The principal ID of the user-assigned identity.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly principalId?: string;
/**
* The client ID of the user-assigned identity.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly clientId?: string;
}

/** An indication of cache health. Gives more information about health than just that related to provisioning. */
export interface CacheHealth {
/** List of cache health states. Down is when the cluster is not responding. Degraded is when its functioning but has some alerts. Transitioning when it is creating or deleting. Unknown will be returned in old api versions when a new value is added in future versions. WaitingForKey is when the create is waiting for the system assigned identity to be given access to the encryption key in the encryption settings. */
Expand Down Expand Up @@ -1744,14 +1757,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;
Expand All @@ -1767,7 +1780,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;
Expand Down Expand Up @@ -1805,18 +1818,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;
Expand All @@ -1840,75 +1853,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;
Expand All @@ -1923,7 +1936,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;
Expand Down Expand Up @@ -2068,14 +2081,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;
Expand All @@ -2091,7 +2104,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;
Expand All @@ -2109,7 +2122,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;
Expand Down Expand Up @@ -2137,7 +2150,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;
Expand Down
25 changes: 24 additions & 1 deletion sdk/storagecache/arm-storagecache/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,7 @@ export const CacheIdentity: coreClient.CompositeMapper = {
value: {
type: {
name: "Composite",
className: "UserAssignedIdentitiesValue"
className: "UserAssignedIdentitiesValueAutoGenerated"
}
}
}
Expand All @@ -1685,6 +1685,29 @@ export const CacheIdentity: coreClient.CompositeMapper = {
}
};

export const UserAssignedIdentitiesValueAutoGenerated: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "UserAssignedIdentitiesValueAutoGenerated",
modelProperties: {
principalId: {
serializedName: "principalId",
readOnly: true,
type: {
name: "String"
}
},
clientId: {
serializedName: "clientId",
readOnly: true,
type: {
name: "String"
}
}
}
}
};

export const CacheHealth: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class StorageCacheManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-storagecache/7.0.1`;
const packageDetails = `azsdk-js-arm-storagecache/8.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
43 changes: 43 additions & 0 deletions sdk/storagecache/arm-storagecache/test/sampleTest.ts
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!");
});
});
Loading