Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mgmt] netapp release #30436

Merged
merged 4 commits into from
Jul 26, 2024
Merged
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
8 changes: 4 additions & 4 deletions common/config/rush/pnpm-lock.yaml

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

47 changes: 27 additions & 20 deletions sdk/netapp/arm-netapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
# Release History

## 21.1.0 (2024-07-17)

### Features Added

- Interface VolumePatch has a new optional parameter protocolTypes


## 21.0.0 (2024-05-14)

**Features**
### Features Added

- Added operation group BackupsUnderAccount
- Added operation group BackupsUnderBackupVault
Expand Down Expand Up @@ -84,21 +91,21 @@
- Interface VolumePropertiesDataProtection has a new optional parameter backup
- Added Enum KnownBackupType

**Breaking Changes**
### Breaking Changes

- Removed operation Backups.getVolumeRestoreStatus


## 20.0.0 (2024-03-05)

**Features**
### Features Added

- Added Interface VolumesResetCifsPasswordHeaders
- Added Type Alias VolumesResetCifsPasswordResponse
- Enum KnownRelationshipStatus has a new value Failed
- Enum KnownRelationshipStatus has a new value Unknown

**Breaking Changes**
### Breaking Changes

- Interface VolumeGroupMetaData no longer has parameter deploymentSpecId
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from {
Expand All @@ -110,7 +117,7 @@

## 20.0.0-beta.1 (2023-12-14)

**Features**
### Features Added

- Added operation group AccountBackups
- Added operation group BackupsUnderAccount
Expand Down Expand Up @@ -217,7 +224,7 @@
- Interface VolumePropertiesDataProtection has a new optional parameter backup
- Added Enum KnownBackupType

**Breaking Changes**
### Breaking Changes

- Interface VolumeGroupMetaData no longer has parameter deploymentSpecId
- Type of parameter userAssignedIdentities of interface ManagedServiceIdentity is changed from {
Expand All @@ -229,7 +236,7 @@

## 19.0.0 (2023-09-25)

**Features**
### Features Added

- Added operation NetAppResource.beginUpdateNetworkSiblingSet
- Added operation NetAppResource.beginUpdateNetworkSiblingSetAndWait
Expand Down Expand Up @@ -262,7 +269,7 @@
- Enum KnownNetworkFeatures has a new value BasicStandard
- Enum KnownNetworkFeatures has a new value StandardBasic

**Breaking Changes**
### Breaking Changes

- Removed operation group AccountBackups
- Removed operation Backups.beginCreate
Expand All @@ -284,7 +291,7 @@

## 18.1.0 (2023-07-03)

**Features**
### Features Added

- Added operation Volumes.beginListGetGroupIdListForLdapUser
- Added operation Volumes.beginListGetGroupIdListForLdapUserAndWait
Expand All @@ -311,7 +318,7 @@

## 18.0.0 (2023-03-08)

**Features**
### Features Added

- Added operation Backups.beginRestoreFiles
- Added operation Backups.beginRestoreFilesAndWait
Expand Down Expand Up @@ -341,7 +348,7 @@
- Added Enum KnownFileAccessLogs
- Added Enum KnownManagedServiceIdentityType

**Breaking Changes**
### Breaking Changes

- Removed operation group Vaults
- Operation NetAppResource.checkNameAvailability has a new signature
Expand All @@ -365,17 +372,17 @@

## 17.0.1 (2023-02-01)

**Features**
### Features Added

- Exposes `getContinuationToken` helper function to extract continuation token

**Bugs Fixed**
### Bugs Fixed

- A series of small bug fixs relevant to authentication and apiVersion policy

## 17.0.0 (2022-09-21)

**Features**
### Features Added

- Added operation Accounts.beginRenewCredentials
- Added operation Accounts.beginRenewCredentialsAndWait
Expand Down Expand Up @@ -415,14 +422,14 @@
- Added Enum KnownSmbAccessBasedEnumeration
- Added Enum KnownSmbNonBrowsable

**Breaking Changes**
### Breaking Changes

- Interface Vault no longer has parameter location


## 16.1.0 (2022-07-21)

**Features**
### Features Added

- Added operation Volumes.beginReestablishReplication
- Added operation Volumes.beginReestablishReplicationAndWait
Expand All @@ -447,7 +454,7 @@

## 16.0.0 (2022-06-13)

**Features**
### Features Added

- Added operation group VolumeQuotaRules
- Added operation Volumes.beginFinalizeRelocation
Expand Down Expand Up @@ -495,7 +502,7 @@
- Added Enum KnownEncryptionKeySource
- Added Enum KnownType

**Breaking Changes**
### Breaking Changes

- Interface VolumeGroup no longer has parameter tags
- Interface VolumeGroupDetails no longer has parameter tags
Expand All @@ -504,13 +511,13 @@

## 15.1.1 (2022-04-27)

**Features**
### Features Added

- Bug fix

## 15.1.0 (2022-03-02)

**Features**
### Features Added

- Added operation group Subvolumes
- Added operation Snapshots.beginRestoreFiles
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": "f0d6fb9228518f963d2407e49cad2dd403db6f18",
"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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\netapp\\resource-manager\\readme.md --use=@autorest/typescript@6.0.23 --generate-sample=true",
"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.11",
"use": "@autorest/typescript@6.0.23"
}
2 changes: 1 addition & 1 deletion sdk/netapp/arm-netapp/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/netapp/arm-netapp",
"Tag": "js/netapp/arm-netapp_8318e6d582"
"Tag": "js/netapp/arm-netapp_6dd8864ef8"
}
6 changes: 3 additions & 3 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 @@ -115,4 +115,4 @@
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-netapp?view=azure-node-preview"
}
}
}
1 change: 1 addition & 0 deletions sdk/netapp/arm-netapp/review/arm-netapp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,7 @@ export interface VolumePatch {
isDefaultQuotaEnabled?: boolean;
location?: string;
readonly name?: string;
protocolTypes?: string[];
serviceLevel?: ServiceLevel;
smbAccessBasedEnumeration?: SmbAccessBasedEnumeration;
smbNonBrowsable?: SmbNonBrowsable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"dependencies": {
"@azure/arm-netapp": "latest",
"dotenv": "latest",
"@azure/identity": "^4.2.1"
"@azure/identity": "^4.0.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@azure/arm-netapp": "latest",
"dotenv": "latest",
"@azure/identity": "^4.2.1"
"@azure/identity": "^4.0.1"
},
"devDependencies": {
"@types/node": "^18.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"rootDir": "src"
},
"include": [
"src/**.ts"
"src/**/*.ts"
]
}
2 changes: 2 additions & 0 deletions sdk/netapp/arm-netapp/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,8 @@ export interface VolumePatch {
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
15 changes: 13 additions & 2 deletions sdk/netapp/arm-netapp/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,17 @@ export const VolumePatch: coreClient.CompositeMapper = {
className: "VolumePatchPropertiesExportPolicy",
},
},
protocolTypes: {
MaryGao marked this conversation as resolved.
Show resolved Hide resolved
serializedName: "properties.protocolTypes",
type: {
name: "Sequence",
element: {
type: {
name: "String",
},
},
},
},
throughputMibps: {
serializedName: "properties.throughputMibps",
type: {
Expand Down Expand Up @@ -3295,7 +3306,7 @@ export const VolumeGroupVolumeProperties: coreClient.CompositeMapper = {
coolnessPeriod: {
constraints: {
InclusiveMaximum: 183,
InclusiveMinimum: 7,
InclusiveMinimum: 2,
},
serializedName: "properties.coolnessPeriod",
type: {
Expand Down Expand Up @@ -4801,7 +4812,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/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
8 changes: 8 additions & 0 deletions sdk/netapp/arm-netapp/test/netapp_examples.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ describe("netapp test", () => {
await recorder.stop();
});

it("operations list test", async function () {
const resArray = new Array();
for await (const item of client.operations.list()) {
resArray.push(item);
}
assert.notEqual(resArray.length, 0);
});

it("accounts create test", async function () {
const res = await client.accounts.beginCreateOrUpdateAndWait(
resourceGroup,
Expand Down