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
37 changes: 34 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

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-09-26)
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": "985bb9bddbf6297b8d81d5e4a284d395ec8b2b08",
"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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/elasticsan/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
"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.14",
"use": "@autorest/typescript@^6.0.12"
}
20 changes: 6 additions & 14 deletions sdk/elasticsans/arm-elasticsan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"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/core-lro": "^2.5.4",
"@azure/abort-controller": "^1.0.0",
"@azure/abort-controller": "^2.1.2",
"@azure/core-paging": "^1.2.0",
"@azure/core-client": "^1.7.0",
"@azure/core-auth": "^1.6.0",
Expand All @@ -30,12 +30,12 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^3.0.1",
"typescript": "~5.6.2",
"typescript": "~5.5.3",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
"@azure/dev-tool": "^1.0.0",
"@azure/identity": "^4.0.1",
"@azure/identity": "^4.2.1",
"@azure-tools/test-recorder": "^3.0.0",
"@azure-tools/test-credential": "^1.1.0",
"mocha": "^10.0.0",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/elasticsans/arm-elasticsan",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-elasticsan?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/elasticsans/arm-elasticsan"
}
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
4 changes: 2 additions & 2 deletions sdk/elasticsans/arm-elasticsan/src/elasticSanManagement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-elasticsan/1.1.0`;
const packageDetails = `azsdk-js-arm-elasticsan/1.2.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -122,7 +122,7 @@ export class ElasticSanManagement extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2024-05-01";
this.apiVersion = options.apiVersion || "2024-06-01-preview";
this.operations = new OperationsImpl(this);
this.skus = new SkusImpl(this);
this.elasticSans = new ElasticSansImpl(this);
Expand Down
43 changes: 43 additions & 0 deletions sdk/elasticsans/arm-elasticsan/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,8 @@ export interface ElasticSanProperties {
readonly privateEndpointConnections?: PrivateEndpointConnection[];
/** Allow or disallow public network access to ElasticSan. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
publicNetworkAccess?: PublicNetworkAccess;
/** Auto Scale Properties for Elastic San Appliance. */
autoScaleProperties?: AutoScaleProperties;
}

/** The SKU name. Required for account creation; optional for update. */
Expand Down Expand Up @@ -333,6 +335,24 @@ export interface SystemData {
lastModifiedAt?: Date;
}

/** The auto scale settings on Elastic San Appliance. */
export interface AutoScaleProperties {
/** Scale up settings on Elastic San Appliance. */
scaleUpProperties?: ScaleUpProperties;
}

/** Scale up properties on Elastic San Appliance. */
export interface ScaleUpProperties {
/** Unused size on Elastic San appliance in TiB. */
unusedSizeTiB?: number;
/** Unit to increase Capacity Unit on Elastic San appliance in TiB. */
increaseCapacityUnitByTiB?: number;
/** Maximum scale up size on Elastic San appliance in TiB. */
capacityUnitScaleUpLimitTiB?: number;
/** Enable or Disable scale up setting on Elastic San Appliance. */
autoScalePolicyEnforcement?: AutoScalePolicyEnforcement;
}

/** Response for ElasticSan update request. */
export interface ElasticSanUpdate {
/** Properties of ElasticSan. */
Expand All @@ -349,6 +369,8 @@ export interface ElasticSanUpdateProperties {
extendedCapacitySizeTiB?: number;
/** Allow or disallow public network access to ElasticSan Account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. */
publicNetworkAccess?: PublicNetworkAccess;
/** Auto Scale Properties for Elastic San Appliance. */
autoScaleProperties?: AutoScaleProperties;
}

/** List of Volume Groups */
Expand Down Expand Up @@ -919,6 +941,27 @@ export enum KnownPublicNetworkAccess {
*/
export type PublicNetworkAccess = string;

/** Known values of {@link AutoScalePolicyEnforcement} that the service accepts. */
export enum KnownAutoScalePolicyEnforcement {
/** None */
None = "None",
/** Enabled */
Enabled = "Enabled",
/** Disabled */
Disabled = "Disabled",
}

/**
* Defines values for AutoScalePolicyEnforcement. \
* {@link KnownAutoScalePolicyEnforcement} can be used interchangeably with AutoScalePolicyEnforcement,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **None** \
* **Enabled** \
* **Disabled**
*/
export type AutoScalePolicyEnforcement = string;

/** Known values of {@link IdentityType} that the service accepts. */
export enum KnownIdentityType {
/** None */
Expand Down
63 changes: 63 additions & 0 deletions sdk/elasticsans/arm-elasticsan/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,13 @@ export const ElasticSanProperties: coreClient.CompositeMapper = {
name: "String",
},
},
autoScaleProperties: {
serializedName: "autoScaleProperties",
type: {
name: "Composite",
className: "AutoScaleProperties",
},
},
},
},
};
Expand Down Expand Up @@ -679,6 +686,55 @@ export const SystemData: coreClient.CompositeMapper = {
},
};

export const AutoScaleProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AutoScaleProperties",
modelProperties: {
scaleUpProperties: {
serializedName: "scaleUpProperties",
type: {
name: "Composite",
className: "ScaleUpProperties",
},
},
},
},
};

export const ScaleUpProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ScaleUpProperties",
modelProperties: {
unusedSizeTiB: {
serializedName: "unusedSizeTiB",
type: {
name: "Number",
},
},
increaseCapacityUnitByTiB: {
serializedName: "increaseCapacityUnitByTiB",
type: {
name: "Number",
},
},
capacityUnitScaleUpLimitTiB: {
serializedName: "capacityUnitScaleUpLimitTiB",
type: {
name: "Number",
},
},
autoScalePolicyEnforcement: {
serializedName: "autoScalePolicyEnforcement",
type: {
name: "String",
},
},
},
},
};

export const ElasticSanUpdate: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -725,6 +781,13 @@ export const ElasticSanUpdateProperties: coreClient.CompositeMapper = {
name: "String",
},
},
autoScaleProperties: {
serializedName: "autoScaleProperties",
type: {
name: "Composite",
className: "AutoScaleProperties",
},
},
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion sdk/elasticsans/arm-elasticsan/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2024-05-01",
defaultValue: "2024-06-01-preview",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
Loading