Skip to content

Commit

Permalink
[mgmt] elasticsan release (#31473)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazrael2119 authored Oct 25, 2024
1 parent afd53e1 commit b4d6e5a
Show file tree
Hide file tree
Showing 98 changed files with 4,393 additions and 101 deletions.
13 changes: 13 additions & 0 deletions sdk/elasticsans/arm-elasticsan/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Release History

## 1.2.0-beta.1 (2024-10-18)
Compared with version 1.1.0

### Features Added

- Added Interface AutoScaleProperties
- Added Interface ScaleUpProperties
- Added Type Alias AutoScalePolicyEnforcement
- Interface ElasticSanProperties has a new optional parameter autoScaleProperties
- Interface ElasticSanUpdateProperties has a new optional parameter autoScaleProperties
- Added Enum KnownAutoScalePolicyEnforcement


## 1.1.0 (2024-08-12)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion sdk/elasticsans/arm-elasticsan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/elasticsans/arm-elasticsan) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-elasticsan) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-elasticsan) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-elasticsan?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/elasticsans/arm-elasticsan/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "572fbc80c94ad3ae14d15e20c44a4f3407a2fed2",
"commit": "abe3209e7c6924a58ab560ebab2349bc8fde6aa7",
"readme": "specification/elasticsan/resource-manager/readme.md",
"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\\elasticsan\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --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\\elasticsan\\resource-manager\\readme.md --use=@autorest/typescript@6.0.27 --generate-sample=true",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.11",
"use": "@autorest/typescript@6.0.23"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.15",
"use": "@autorest/typescript@6.0.27"
}
2 changes: 1 addition & 1 deletion sdk/elasticsans/arm-elasticsan/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/elasticsans/arm-elasticsan",
"Tag": "js/elasticsans/arm-elasticsan_92f92d19cb"
"Tag": "js/elasticsans/arm-elasticsan_6228846489"
}
57 changes: 28 additions & 29 deletions sdk/elasticsans/arm-elasticsan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for ElasticSanManagement.",
"version": "1.1.0",
"version": "1.2.0-beta.1",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@azure/abort-controller": "^1.0.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-client": "^1.7.0",
"@azure/core-lro": "^2.5.4",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
"@azure/core-rest-pipeline": "^1.14.0",
"tslib": "^2.2.0"
},
Expand All @@ -28,21 +28,21 @@
"module": "./dist-esm/src/index.js",
"types": "./types/arm-elasticsan.d.ts",
"devDependencies": {
"@azure-tools/test-credential": "^1.1.0",
"@azure-tools/test-recorder": "^3.0.0",
"typescript": "~5.6.2",
"uglify-js": "^3.4.9",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@types/chai": "^4.2.8",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"@types/node": "^18.0.0",
"tsx": "^4.7.1",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
"dotenv": "^16.0.0",
"mocha": "^10.0.0",
"ts-node": "^10.0.0",
"tsx": "^4.7.1",
"typescript": "~5.6.2",
"uglify-js": "^3.4.9"
"@types/node": "^18.0.0",
"ts-node": "^10.0.0"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -70,29 +70,28 @@
],
"scripts": {
"build": "npm run clean && tsc && dev-tool run bundle && npm run minify && dev-tool run vendored mkdirp ./review && npm run extract-api",
"build:browser": "echo skipped",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"lint": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
"build:samples": "echo skipped.",
"build:browser": "echo skipped",
"build:test": "echo skipped",
"build:samples": "echo skipped.",
"check-format": "echo skipped",
"clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"execute:samples": "echo skipped",
"extract-api": "dev-tool run extract-api",
"format": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:browser": "echo skipped",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"lint": "echo skipped",
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"pack": "npm pack 2>&1",
"prepack": "npm run build",
"test": "npm run integration-test",
"test:browser": "echo skipped",
"test:node": "echo skipped",
"test:browser": "echo skipped",
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
"unit-test:browser": "echo skipped",
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"update-snippets": "echo skipped"
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped"
},
"sideEffects": false,
"//metadata": {
Expand Down
25 changes: 25 additions & 0 deletions sdk/elasticsans/arm-elasticsan/review/arm-elasticsan.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ export type Action = string;
// @public
export type ActionType = string;

// @public
export type AutoScalePolicyEnforcement = string;

// @public
export interface AutoScaleProperties {
scaleUpProperties?: ScaleUpProperties;
}

// @public
export type CreatedByType = string;

Expand Down Expand Up @@ -66,6 +74,7 @@ export interface ElasticSanManagementOptionalParams extends coreClient.ServiceCl

// @public
export interface ElasticSanProperties {
autoScaleProperties?: AutoScaleProperties;
availabilityZones?: string[];
baseSizeTiB: number;
extendedCapacitySizeTiB: number;
Expand Down Expand Up @@ -174,6 +183,7 @@ export interface ElasticSanUpdate {

// @public
export interface ElasticSanUpdateProperties {
autoScaleProperties?: AutoScaleProperties;
baseSizeTiB?: number;
extendedCapacitySizeTiB?: number;
publicNetworkAccess?: PublicNetworkAccess;
Expand Down Expand Up @@ -258,6 +268,13 @@ export enum KnownActionType {
Internal = "Internal"
}

// @public
export enum KnownAutoScalePolicyEnforcement {
Disabled = "Disabled",
Enabled = "Enabled",
None = "None"
}

// @public
export enum KnownCreatedByType {
Application = "Application",
Expand Down Expand Up @@ -540,6 +557,14 @@ export interface Resource {
readonly type?: string;
}

// @public
export interface ScaleUpProperties {
autoScalePolicyEnforcement?: AutoScalePolicyEnforcement;
capacityUnitScaleUpLimitTiB?: number;
increaseCapacityUnitByTiB?: number;
unusedSizeTiB?: number;
}

// @public
export interface Sku {
name: SkuName;
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 ElasticSan.
*
* @summary Create ElasticSan.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Create_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Create_MaximumSet_Gen.json
*/
async function elasticSansCreateMaximumSetGen() {
const subscriptionId =
Expand All @@ -29,13 +29,21 @@ async function elasticSansCreateMaximumSetGen() {
const parameters: ElasticSan = {
location: "France Central",
properties: {
availabilityZones: ["1"],
baseSizeTiB: 5,
extendedCapacitySizeTiB: 25,
autoScaleProperties: {
scaleUpProperties: {
autoScalePolicyEnforcement: "None",
capacityUnitScaleUpLimitTiB: 17,
increaseCapacityUnitByTiB: 4,
unusedSizeTiB: 24,
},
},
availabilityZones: ["xoz"],
baseSizeTiB: 1,
extendedCapacitySizeTiB: 3,
publicNetworkAccess: "Enabled",
sku: { name: "Premium_LRS", tier: "Premium" },
},
tags: { key9316: "ihndtieqibtob" },
tags: { key9706: "haitqqakcntcpalkzqmjmcnifnhd" },
};
const credential = new DefaultAzureCredential();
const client = new ElasticSanManagement(credential, subscriptionId);
Expand All @@ -51,7 +59,7 @@ async function elasticSansCreateMaximumSetGen() {
* This sample demonstrates how to Create ElasticSan.
*
* @summary Create ElasticSan.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Create_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Create_MinimumSet_Gen.json
*/
async function elasticSansCreateMinimumSetGen() {
const subscriptionId =
Expand All @@ -62,8 +70,8 @@ async function elasticSansCreateMinimumSetGen() {
const parameters: ElasticSan = {
location: "France Central",
properties: {
baseSizeTiB: 15,
extendedCapacitySizeTiB: 27,
baseSizeTiB: 1,
extendedCapacitySizeTiB: 3,
sku: { name: "Premium_LRS" },
},
};
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 Delete a Elastic San.
*
* @summary Delete a Elastic San.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Delete_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Delete_MaximumSet_Gen.json
*/
async function elasticSansDeleteMaximumSetGen() {
const subscriptionId =
Expand All @@ -39,7 +39,7 @@ async function elasticSansDeleteMaximumSetGen() {
* This sample demonstrates how to Delete a Elastic San.
*
* @summary Delete a Elastic San.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Delete_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Delete_MinimumSet_Gen.json
*/
async function elasticSansDeleteMinimumSetGen() {
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 Get a ElasticSan.
*
* @summary Get a ElasticSan.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Get_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Get_MaximumSet_Gen.json
*/
async function elasticSansGetMaximumSetGen() {
const subscriptionId =
Expand All @@ -39,7 +39,7 @@ async function elasticSansGetMaximumSetGen() {
* This sample demonstrates how to Get a ElasticSan.
*
* @summary Get a ElasticSan.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Get_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Get_MinimumSet_Gen.json
*/
async function elasticSansGetMinimumSetGen() {
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 a list of ElasticSan in a resource group.
*
* @summary Gets a list of ElasticSan in a resource group.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_ListByResourceGroup_MaximumSet_Gen.json
*/
async function elasticSansListByResourceGroupMaximumSetGen() {
const subscriptionId =
Expand All @@ -40,7 +40,7 @@ async function elasticSansListByResourceGroupMaximumSetGen() {
* This sample demonstrates how to Gets a list of ElasticSan in a resource group.
*
* @summary Gets a list of ElasticSan in a resource group.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListByResourceGroup_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_ListByResourceGroup_MinimumSet_Gen.json
*/
async function elasticSansListByResourceGroupMinimumSetGen() {
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 a list of ElasticSans in a subscription
*
* @summary Gets a list of ElasticSans in a subscription
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_ListBySubscription_MaximumSet_Gen.json
*/
async function elasticSansListBySubscriptionMaximumSetGen() {
const subscriptionId =
Expand All @@ -36,7 +36,7 @@ async function elasticSansListBySubscriptionMaximumSetGen() {
* This sample demonstrates how to Gets a list of ElasticSans in a subscription
*
* @summary Gets a list of ElasticSans in a subscription
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_ListBySubscription_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_ListBySubscription_MinimumSet_Gen.json
*/
async function elasticSansListBySubscriptionMinimumSetGen() {
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 Update a Elastic San.
*
* @summary Update a Elastic San.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Update_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Update_MaximumSet_Gen.json
*/
async function elasticSansUpdateMaximumSetGen() {
const subscriptionId =
Expand All @@ -28,11 +28,19 @@ async function elasticSansUpdateMaximumSetGen() {
const elasticSanName = "elasticsanname";
const parameters: ElasticSanUpdate = {
properties: {
baseSizeTiB: 13,
extendedCapacitySizeTiB: 29,
autoScaleProperties: {
scaleUpProperties: {
autoScalePolicyEnforcement: "None",
capacityUnitScaleUpLimitTiB: 17,
increaseCapacityUnitByTiB: 4,
unusedSizeTiB: 24,
},
},
baseSizeTiB: 21,
extendedCapacitySizeTiB: 10,
publicNetworkAccess: "Enabled",
},
tags: { key1931: "yhjwkgmrrwrcoxblgwgzjqusch" },
tags: { key5945: "eufqmxresekerilkgvfzddolxzas" },
};
const credential = new DefaultAzureCredential();
const client = new ElasticSanManagement(credential, subscriptionId);
Expand All @@ -48,7 +56,7 @@ async function elasticSansUpdateMaximumSetGen() {
* This sample demonstrates how to Update a Elastic San.
*
* @summary Update a Elastic San.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/ElasticSans_Update_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/ElasticSans_Update_MinimumSet_Gen.json
*/
async function elasticSansUpdateMinimumSetGen() {
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 a list of ElasticSan operations.
*
* @summary Gets a list of ElasticSan operations.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Operations_List_MaximumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/Operations_List_MaximumSet_Gen.json
*/
async function operationsListMaximumSetGen() {
const subscriptionId =
Expand All @@ -37,7 +37,7 @@ async function operationsListMaximumSetGen() {
* This sample demonstrates how to Gets a list of ElasticSan operations.
*
* @summary Gets a list of ElasticSan operations.
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/stable/2024-05-01/examples/Operations_List_MinimumSet_Gen.json
* x-ms-original-file: specification/elasticsan/resource-manager/Microsoft.ElasticSan/preview/2024-06-01-preview/examples/Operations_List_MinimumSet_Gen.json
*/
async function operationsListMinimumSetGen() {
const subscriptionId =
Expand Down
Loading

0 comments on commit b4d6e5a

Please sign in to comment.