Skip to content

Commit

Permalink
[mgmt] storagecache release (#28439)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored Feb 23, 2024
1 parent ca1f40f commit 3b50df6
Show file tree
Hide file tree
Showing 143 changed files with 4,951 additions and 103 deletions.
13 changes: 7 additions & 6 deletions common/config/rush/pnpm-lock.yaml

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

23 changes: 12 additions & 11 deletions sdk/storagecache/arm-storagecache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
# Release History

## 7.1.0-beta.1 (2024-02-01)

**Features**

## 7.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Added Interface AmlFilesystemRootSquashSettings
- Added Type Alias AmlFilesystemSquashMode
- Interface AmlFilesystem has a new optional parameter rootSquashSettings
- Interface AmlFilesystemUpdate has a new optional parameter rootSquashSettings
- Added Enum KnownAmlFilesystemSquashMode


## 7.0.0 (2023-06-09)

**Features**
Expand Down Expand Up @@ -202,4 +203,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.

To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).

To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
2 changes: 1 addition & 1 deletion sdk/storagecache/arm-storagecache/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Microsoft
Copyright (c) 2024 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
Expand Down
2 changes: 1 addition & 1 deletion sdk/storagecache/arm-storagecache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Azure Managed Lustre provides a fully managed Lustre® file system, integrated w

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/storagecache/arm-storagecache) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-storagecache) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagecache) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-storagecache?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
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": "68030f1c17e0cd5912e1bda17a5f28473e84b5f9",
"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/[email protected].2 --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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\storagecache\\resource-manager\\readme.md --use=@autorest/[email protected].13 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].0",
"use": "@autorest/[email protected].2"
"release_tool": "@azure-tools/[email protected].4",
"use": "@autorest/[email protected].13"
}
2 changes: 1 addition & 1 deletion sdk/storagecache/arm-storagecache/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "js",
"TagPrefix": "js/storagecache/arm-storagecache",
"Tag": "js/storagecache/arm-storagecache_4a87b481e5"
"Tag": "js/storagecache/arm-storagecache_27037083e5"
}
15 changes: 8 additions & 7 deletions sdk/storagecache/arm-storagecache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for StorageCacheManagementClient.",
"version": "7.0.1",
"version": "7.1.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/core-lro": "^2.5.3",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.3.0",
"@azure/core-rest-pipeline": "^1.8.0",
"@azure/core-rest-pipeline": "^1.12.0",
"tslib": "^2.2.0"
},
"keywords": [
Expand All @@ -32,19 +32,20 @@
"mkdirp": "^2.1.2",
"typescript": "~5.3.3",
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/identity": "^4.0.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"@types/node": "^18.0.0",
"@azure/dev-tool": "^1.0.0",
"ts-node": "^10.0.0",
"@types/mocha": "^10.0.0"
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -78,7 +79,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
21 changes: 21 additions & 0 deletions sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface AmlFilesystem extends TrackedResource {
identity?: AmlFilesystemIdentity;
maintenanceWindow?: AmlFilesystemPropertiesMaintenanceWindow;
readonly provisioningState?: AmlFilesystemProvisioningStateType;
rootSquashSettings?: AmlFilesystemRootSquashSettings;
sku?: SkuName;
storageCapacityTiB?: number;
readonly throughputProvisionedMBps?: number;
Expand Down Expand Up @@ -123,6 +124,15 @@ export interface AmlFilesystemPropertiesMaintenanceWindow {
// @public
export type AmlFilesystemProvisioningStateType = string;

// @public
export interface AmlFilesystemRootSquashSettings {
mode?: AmlFilesystemSquashMode;
noSquashNidLists?: string;
squashGID?: number;
squashUID?: number;
readonly status?: string;
}

// @public
export interface AmlFilesystems {
archive(resourceGroupName: string, amlFilesystemName: string, options?: AmlFilesystemsArchiveOptionalParams): Promise<void>;
Expand Down Expand Up @@ -214,6 +224,9 @@ export interface AmlFilesystemsListResult {
value?: AmlFilesystem[];
}

// @public
export type AmlFilesystemSquashMode = string;

// @public
export interface AmlFilesystemSubnetInfo {
filesystemSubnet?: string;
Expand Down Expand Up @@ -241,6 +254,7 @@ export type AmlFilesystemsUpdateResponse = AmlFilesystem;
export interface AmlFilesystemUpdate {
encryptionSettings?: AmlFilesystemEncryptionSettings;
maintenanceWindow?: AmlFilesystemUpdatePropertiesMaintenanceWindow;
rootSquashSettings?: AmlFilesystemRootSquashSettings;
tags?: {
[propertyName: string]: string;
};
Expand Down Expand Up @@ -812,6 +826,13 @@ export enum KnownAmlFilesystemProvisioningStateType {
Updating = "Updating"
}

// @public
export enum KnownAmlFilesystemSquashMode {
All = "All",
None = "None",
RootOnly = "RootOnly"
}

// @public
export enum KnownArchiveStatusType {
Canceled = "Canceled",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dotenv.config();
* This sample demonstrates how to Archive data from the AML file system.
*
* @summary Archive data from the AML file system.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Archive.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Archive.json
*/
async function amlFilesystemsArchive() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Cancel archiving data from the AML file system.
*
* @summary Cancel archiving data from the AML file system.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_CancelArchive.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_CancelArchive.json
*/
async function amlFilesystemsCancelArchive() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Create or update an AML file system.
*
* @summary Create or update an AML file system.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_CreateOrUpdate.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_CreateOrUpdate.json
*/
async function amlFilesystemsCreateOrUpdate() {
const subscriptionId =
Expand Down Expand Up @@ -60,6 +60,12 @@ async function amlFilesystemsCreateOrUpdate() {
},
location: "eastus",
maintenanceWindow: { dayOfWeek: "Friday", timeOfDayUTC: "22:00" },
rootSquashSettings: {
mode: "All",
noSquashNidLists: "10.0.0.[5-6]@tcp;10.0.1.2@tcp",
squashGID: 99,
squashUID: 99
},
sku: { name: "AMLFS-Durable-Premium-250" },
storageCapacityTiB: 16,
tags: { dept: "ContosoAds" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Schedules an AML file system for deletion.
*
* @summary Schedules an AML file system for deletion.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Delete.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Delete.json
*/
async function amlFilesystemsDelete() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns an AML file system.
*
* @summary Returns an AML file system.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Get.json
*/
async function amlFilesystemsGet() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns all AML file systems the user has access to under a resource group.
*
* @summary Returns all AML file systems the user has access to under a resource group.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_ListByResourceGroup.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_ListByResourceGroup.json
*/
async function amlFilesystemsListByResourceGroup() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns all AML file systems the user has access to under a subscription.
*
* @summary Returns all AML file systems the user has access to under a subscription.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_List.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_List.json
*/
async function amlFilesystemsList() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dotenv.config();
* This sample demonstrates how to Update an AML file system instance.
*
* @summary Update an AML file system instance.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/amlFilesystems_Update.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/amlFilesystems_Update.json
*/
async function amlFilesystemsUpdate() {
const subscriptionId =
Expand All @@ -42,6 +42,12 @@ async function amlFilesystemsUpdate() {
}
},
maintenanceWindow: { dayOfWeek: "Friday", timeOfDayUTC: "22:00" },
rootSquashSettings: {
mode: "All",
noSquashNidLists: "10.0.0.[5-6]@tcp;10.0.1.2@tcp",
squashGID: 99,
squashUID: 99
},
tags: { dept: "ContosoAds" }
};
const credential = new DefaultAzureCredential();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the status of an asynchronous operation for the Azure HPC Cache
*
* @summary Gets the status of an asynchronous operation for the Azure HPC Cache
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/AscOperations_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/AscOperations_Get.json
*/
async function ascOperationsGet() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Gets the quantity used and quota limit for resources
*
* @summary Gets the quantity used and quota limit for resources
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/AscResourceUsages_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/AscResourceUsages_Get.json
*/
async function ascUsagesList() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Create or update a cache.
*
* @summary Create or update a cache.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_CreateOrUpdate.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_CreateOrUpdate.json
*/
async function cachesCreateOrUpdate() {
const subscriptionId =
Expand Down Expand Up @@ -104,7 +104,7 @@ async function cachesCreateOrUpdate() {
* This sample demonstrates how to Create or update a cache.
*
* @summary Create or update a cache.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_CreateOrUpdate_ldap_only.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_CreateOrUpdate_ldap_only.json
*/
async function cachesCreateOrUpdateLdapOnly() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Tells a cache to write generate debug info for support to process.
*
* @summary Tells a cache to write generate debug info for support to process.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_DebugInfo.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_DebugInfo.json
*/
async function cachesDebugInfo() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Schedules a cache for deletion.
*
* @summary Schedules a cache for deletion.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Delete.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Delete.json
*/
async function cachesDelete() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.
*
* @summary Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see errors returned until the flush is complete.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Flush.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Flush.json
*/
async function cachesFlush() {
const subscriptionId =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dotenv.config();
* This sample demonstrates how to Returns a cache.
*
* @summary Returns a cache.
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/stable/2023-05-01/examples/Caches_Get.json
* x-ms-original-file: specification/storagecache/resource-manager/Microsoft.StorageCache/preview/2023-11-01-preview/examples/Caches_Get.json
*/
async function cachesGet() {
const subscriptionId =
Expand Down
Loading

0 comments on commit 3b50df6

Please sign in to comment.