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

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions sdk/netapp/arm-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Release History

## 21.1.0 (2024-07-19)

**Features**

- Interface Replication has a new optional parameter replicationId
- Interface VolumePatch has a new optional parameter protocolTypes


## 21.0.0 (2024-05-14)

**Features**
Expand Down
8 changes: 4 additions & 4 deletions sdk/netapp/arm-netapp/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "ec07fc78c6c25b68107f8ff419d137ffecced005",
"commit": "582770b56fcf849e1cfbd162472261c29ad7e704",
"readme": "specification/netapp/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\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.22 --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/netapp/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.9",
"use": "@autorest/typescript@6.0.22"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.10",
"use": "@autorest/typescript@^6.0.12"
}
16 changes: 4 additions & 12 deletions sdk/netapp/arm-netapp/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 NetAppManagementClient.",
"version": "21.0.0",
"version": "21.1.0",
"engines": {
"node": ">=18.0.0"
},
Expand All @@ -30,7 +30,7 @@
"devDependencies": {
"@microsoft/api-extractor": "^7.31.1",
"mkdirp": "^3.0.1",
"typescript": "~5.5.3",
"typescript": "~5.4.5",
"uglify-js": "^3.4.9",
"rimraf": "^5.0.0",
"dotenv": "^16.0.0",
Expand Down Expand Up @@ -106,13 +106,5 @@
]
},
"autoPublish": true,
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp",
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview"
}
}
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/netapp/arm-netapp"
}
4 changes: 3 additions & 1 deletion sdk/netapp/arm-netapp/review/arm-netapp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ export type KeySource = string;
export interface KeyVaultProperties {
keyName: string;
readonly keyVaultId?: string;
keyVaultResourceId: string;
keyVaultResourceId?: string;
keyVaultUri: string;
readonly status?: KeyVaultStatus;
}
Expand Down Expand Up @@ -1418,6 +1418,7 @@ export interface Replication {
endpointType?: EndpointType;
remoteVolumeRegion?: string;
remoteVolumeResourceId: string;
readonly replicationId?: string;
replicationSchedule?: ReplicationSchedule;
}

Expand Down Expand Up @@ -2063,6 +2064,7 @@ export interface VolumePatch {
isDefaultQuotaEnabled?: boolean;
location?: string;
readonly name?: string;
protocolTypes?: string[];
serviceLevel?: ServiceLevel;
smbAccessBasedEnumeration?: SmbAccessBasedEnumeration;
smbNonBrowsable?: SmbNonBrowsable;
Expand Down
19 changes: 13 additions & 6 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ export interface KeyVaultProperties {
/** The name of KeyVault key. */
keyName: string;
/** The resource ID of KeyVault. */
keyVaultResourceId: string;
keyVaultResourceId?: string;
/**
* Status of the KeyVault connection.
* NOTE: This property will not be serialized. It can only be populated by the server.
Expand Down Expand Up @@ -521,7 +521,7 @@ export interface CapacityPoolPatch {
readonly type?: string;
/** Resource tags */
tags?: { [propertyName: string]: string };
/** Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of 1099511627776). */
/** Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). */
size?: number;
/** The qos type of the pool */
qosType?: QosType;
Expand Down Expand Up @@ -682,10 +682,12 @@ export interface VolumePatch {
tags?: { [propertyName: string]: string };
/** The service level of the file system */
serviceLevel?: ServiceLevel;
/** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. */
/** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */
usageThreshold?: number;
/** Set of export policy rules */
exportPolicy?: VolumePatchPropertiesExportPolicy;
/** Set of protocol types, default NFSv3, CIFS for SMB protocol */
protocolTypes?: string[];
/** Maximum throughput in MiB/s that can be achieved by this volume and this will be accepted as input only for manual qosType volume */
throughputMibps?: number;
/** DataProtection type volumes include an object containing details of the replication */
Expand Down Expand Up @@ -791,6 +793,11 @@ export interface ListReplications {

/** Replication properties */
export interface Replication {
/**
* UUID v4 used to identify the replication.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly replicationId?: string;
/** Indicates whether the local volume is the source or destination for the Volume Replication */
endpointType?: EndpointType;
/** Schedule */
Expand Down Expand Up @@ -1133,7 +1140,7 @@ export interface VolumeGroupVolumeProperties {
creationToken: string;
/** The service level of the file system */
serviceLevel?: ServiceLevel;
/** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. */
/** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */
usageThreshold: number;
/** Set of export policy rules */
exportPolicy?: VolumePropertiesExportPolicy;
Expand Down Expand Up @@ -1727,7 +1734,7 @@ export interface CapacityPool extends TrackedResource {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly poolId?: string;
/** Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiply of 1099511627776). */
/** Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of 1099511627776). */
size: number;
/** The service level of the file system */
serviceLevel: ServiceLevel;
Expand Down Expand Up @@ -1772,7 +1779,7 @@ export interface Volume extends TrackedResource {
creationToken: string;
/** The service level of the file system */
serviceLevel?: ServiceLevel;
/** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. Minimum size is 100 GiB. Upper limit is 100TiB, 500Tib for LargeVolume or 2400Tib for LargeVolume on exceptional basis. Specified in bytes. */
/** Maximum storage quota allowed for a file system in bytes. This is a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB. */
usageThreshold: number;
/** Set of export policy rules */
exportPolicy?: VolumePropertiesExportPolicy;
Expand Down
36 changes: 30 additions & 6 deletions sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1174,7 +1174,6 @@ export const KeyVaultProperties: coreClient.CompositeMapper = {
},
keyVaultResourceId: {
serializedName: "keyVaultResourceId",
required: true,
type: {
name: "String",
},
Expand Down Expand Up @@ -1867,7 +1866,7 @@ export const VolumePatch: coreClient.CompositeMapper = {
defaultValue: 107374182400,
constraints: {
InclusiveMaximum: 2638827906662400,
InclusiveMinimum: 107374182400,
InclusiveMinimum: 53687091200,
},
serializedName: "properties.usageThreshold",
type: {
Expand All @@ -1881,6 +1880,17 @@ export const VolumePatch: coreClient.CompositeMapper = {
className: "VolumePatchPropertiesExportPolicy",
},
},
protocolTypes: {
serializedName: "properties.protocolTypes",
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
throughputMibps: {
serializedName: "properties.throughputMibps",
type: {
Expand Down Expand Up @@ -2192,6 +2202,20 @@ export const Replication: coreClient.CompositeMapper = {
name: "Composite",
className: "Replication",
modelProperties: {
replicationId: {
constraints: {
Pattern: new RegExp(
"^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$",
),
MaxLength: 36,
MinLength: 36,
},
serializedName: "replicationId",
readOnly: true,
type: {
name: "String",
},
},
endpointType: {
serializedName: "endpointType",
type: {
Expand Down Expand Up @@ -3076,7 +3100,7 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = {
defaultValue: 107374182400,
constraints: {
InclusiveMaximum: 2638827906662400,
InclusiveMinimum: 107374182400,
InclusiveMinimum: 53687091200,
},
serializedName: "properties.usageThreshold",
required: true,
Expand Down Expand Up @@ -3295,7 +3319,7 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = {
coolnessPeriod: {
constraints: {
InclusiveMaximum: 183,
InclusiveMinimum: 7,
InclusiveMinimum: 2,
},
serializedName: "properties.coolnessPeriod",
type: {
Expand Down Expand Up @@ -4582,7 +4606,7 @@ export const Volume: coreClient.CompositeMapper = {
defaultValue: 107374182400,
constraints: {
InclusiveMaximum: 2638827906662400,
InclusiveMinimum: 107374182400,
InclusiveMinimum: 53687091200,
},
serializedName: "properties.usageThreshold",
required: true,
Expand Down Expand Up @@ -4801,7 +4825,7 @@ export const Volume: coreClient.CompositeMapper = {
coolnessPeriod: {
constraints: {
InclusiveMaximum: 183,
InclusiveMinimum: 7,
InclusiveMinimum: 2,
},
serializedName: "properties.coolnessPeriod",
type: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/src/models/parameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const $host: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2023-11-01",
defaultValue: "2024-03-01",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
4 changes: 2 additions & 2 deletions sdk/netapp/arm-netapp/src/netAppManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-netapp/21.0.0`;
const packageDetails = `azsdk-js-arm-netapp/21.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -142,7 +142,7 @@ export class NetAppManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2023-11-01";
this.apiVersion = options.apiVersion || "2024-03-01";
this.operations = new OperationsImpl(this);
this.netAppResource = new NetAppResourceImpl(this);
this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsImpl(this);
Expand Down
43 changes: 43 additions & 0 deletions sdk/netapp/arm-netapp/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!");
});
});
10 changes: 2 additions & 8 deletions sdk/netapp/arm-netapp/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@
],
"declaration": true,
"outDir": "./dist-esm",
"importHelpers": true,
"paths": {
"@azure/arm-netapp": [
"./src/index"
]
}
"importHelpers": true
},
"include": [
"./src/**/*.ts",
"./test/**/*.ts",
"samples-dev/**/*.ts"
"./test/**/*.ts"
],
"exclude": [
"node_modules"
Expand Down