Skip to content

Commit e437c66

Browse files
authored
[AutoPR @azure-arm-netapp]-generated-from-SDK Generation - JS-5627712 (#36780)
Configurations: 'specification/netapp/resource-manager/Microsoft.NetApp/NetApp/tspconfig.yaml', API Version: 2025-09-01-preview, SDK Release Type: beta, and CommitSHA: 'fa4de8af2faa4a809027619c6ec8ed45b1e0a761' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5627712 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. **Release plan link:** [https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=cc799dd5-62cf-f011-bbd3-6045bd08111b](https://web.powerapps.com/apps/821ab569-ae60-420d-8264-d7b5d5ef734c?release-plan-id=cc799dd5-62cf-f011-bbd3-6045bd08111b) **Submitted by**: [email protected] ## Release Plan Details - Release Plan: https://aka.ms/sdk-release-planner?release-plan-id=cc799dd5-62cf-f011-bbd3-6045bd08111b Spec pull request: Azure/azure-rest-api-specs#39013 Spec API version: 2025-09-01-preview
1 parent 2073689 commit e437c66

File tree

14 files changed

+60
-25
lines changed

14 files changed

+60
-25
lines changed

sdk/netapp/arm-netapp/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 22.1.0-beta.1 (2025-11-27)
3+
## 22.1.0-beta.1 (2025-12-02)
44
Compared with version 22.0.0
55

66
### Features Added
@@ -44,6 +44,7 @@ Compared with version 22.0.0
4444
- Added Interface Cache
4545
- Added Interface CacheMountTargetProperties
4646
- Added Interface CacheProperties
47+
- Added Interface CachePropertiesExportPolicy
4748
- Added Interface CachesCreateOrUpdateOptionalParams
4849
- Added Interface CachesDeleteOptionalParams
4950
- Added Interface CachesGetOptionalParams

sdk/netapp/arm-netapp/metadata.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
"@azure/arm-netapp!BucketGenerateCredentials:interface": "Microsoft.NetApp.BucketGenerateCredentials",
123123
"@azure/arm-netapp!Cache:interface": "Microsoft.NetApp.Cache",
124124
"@azure/arm-netapp!CacheProperties:interface": "Microsoft.NetApp.CacheProperties",
125+
"@azure/arm-netapp!CachePropertiesExportPolicy:interface": "Microsoft.NetApp.CachePropertiesExportPolicy",
125126
"@azure/arm-netapp!CacheMountTargetProperties:interface": "Microsoft.NetApp.CacheMountTargetProperties",
126127
"@azure/arm-netapp!SmbSettings:interface": "Microsoft.NetApp.SmbSettings",
127128
"@azure/arm-netapp!OriginClusterInformation:interface": "Microsoft.NetApp.OriginClusterInformation",

sdk/netapp/arm-netapp/review/arm-netapp-api-caches-node.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export function listPeeringPassphrases(context: NetAppManagementContext, resourc
6060
export function poolChange(context: NetAppManagementContext, resourceGroupName: string, accountName: string, poolName: string, cacheName: string, body: PoolChangeRequest, options?: CachesPoolChangeOptionalParams): PollerLike<OperationState<void>, void>;
6161

6262
// @public
63-
export function update(context: NetAppManagementContext, resourceGroupName: string, accountName: string, poolName: string, cacheName: string, body: CacheUpdate, options?: CachesUpdateOptionalParams): PollerLike<OperationState<void>, void>;
63+
export function update(context: NetAppManagementContext, resourceGroupName: string, accountName: string, poolName: string, cacheName: string, body: CacheUpdate, options?: CachesUpdateOptionalParams): PollerLike<OperationState<Cache>, Cache>;
6464

6565
// (No @packageDocumentation comment for this package)
6666

sdk/netapp/arm-netapp/review/arm-netapp-models-node.api.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export interface CacheProperties {
318318
cifsChangeNotifications?: CifsChangeNotifyState;
319319
readonly encryption?: EncryptionState;
320320
encryptionKeySource: EncryptionKeySource;
321-
exportPolicy?: ExportPolicyRule[];
321+
exportPolicy?: CachePropertiesExportPolicy;
322322
filepath: string;
323323
globalFileLocking?: GlobalFileLockingState;
324324
kerberos?: KerberosState;
@@ -338,6 +338,11 @@ export interface CacheProperties {
338338
writeBack?: EnableWriteBackState;
339339
}
340340

341+
// @public
342+
export interface CachePropertiesExportPolicy {
343+
rules?: ExportPolicyRule[];
344+
}
345+
341346
// @public
342347
export type CacheProvisioningState = string;
343348

@@ -350,7 +355,7 @@ export interface CacheUpdate {
350355
// @public
351356
export interface CacheUpdateProperties {
352357
cifsChangeNotifications?: CifsChangeNotifyState;
353-
exportPolicy?: ExportPolicyRule[];
358+
exportPolicy?: CachePropertiesExportPolicy;
354359
keyVaultPrivateEndpointResourceId?: string;
355360
protocolTypes?: ProtocolTypes[];
356361
size?: number;

sdk/netapp/arm-netapp/review/arm-netapp-node.api.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ export interface CacheProperties {
612612
cifsChangeNotifications?: CifsChangeNotifyState;
613613
readonly encryption?: EncryptionState;
614614
encryptionKeySource: EncryptionKeySource;
615-
exportPolicy?: ExportPolicyRule[];
615+
exportPolicy?: CachePropertiesExportPolicy;
616616
filepath: string;
617617
globalFileLocking?: GlobalFileLockingState;
618618
kerberos?: KerberosState;
@@ -632,6 +632,11 @@ export interface CacheProperties {
632632
writeBack?: EnableWriteBackState;
633633
}
634634

635+
// @public
636+
export interface CachePropertiesExportPolicy {
637+
rules?: ExportPolicyRule[];
638+
}
639+
635640
// @public
636641
export type CacheProvisioningState = string;
637642

@@ -665,7 +670,7 @@ export interface CachesOperations {
665670
listByCapacityPools: (resourceGroupName: string, accountName: string, poolName: string, options?: CachesListByCapacityPoolsOptionalParams) => PagedAsyncIterableIterator<Cache>;
666671
listPeeringPassphrases: (resourceGroupName: string, accountName: string, poolName: string, cacheName: string, options?: CachesListPeeringPassphrasesOptionalParams) => Promise<PeeringPassphrases>;
667672
poolChange: (resourceGroupName: string, accountName: string, poolName: string, cacheName: string, body: PoolChangeRequest, options?: CachesPoolChangeOptionalParams) => PollerLike<OperationState<void>, void>;
668-
update: (resourceGroupName: string, accountName: string, poolName: string, cacheName: string, body: CacheUpdate, options?: CachesUpdateOptionalParams) => PollerLike<OperationState<void>, void>;
673+
update: (resourceGroupName: string, accountName: string, poolName: string, cacheName: string, body: CacheUpdate, options?: CachesUpdateOptionalParams) => PollerLike<OperationState<Cache>, Cache>;
669674
}
670675

671676
// @public
@@ -687,7 +692,7 @@ export interface CacheUpdate {
687692
// @public
688693
export interface CacheUpdateProperties {
689694
cifsChangeNotifications?: CifsChangeNotifyState;
690-
exportPolicy?: ExportPolicyRule[];
695+
exportPolicy?: CachePropertiesExportPolicy;
691696
keyVaultPrivateEndpointResourceId?: string;
692697
protocolTypes?: ProtocolTypes[];
693698
size?: number;

sdk/netapp/arm-netapp/samples-dev/cachesUpdateSample.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ async function cachesUpdate(): Promise<void> {
1414
const credential = new DefaultAzureCredential();
1515
const subscriptionId = "00000000-0000-0000-0000-000000000000";
1616
const client = new NetAppManagementClient(credential, subscriptionId);
17-
await client.caches.update("myRG", "account1", "pool1", "cache1", {
17+
const result = await client.caches.update("myRG", "account1", "pool1", "cache1", {
1818
properties: { size: 214748364800 },
1919
});
20+
console.log(result);
2021
}
2122

2223
async function main(): Promise<void> {

sdk/netapp/arm-netapp/samples/v22-beta/javascript/cachesUpdateSample.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ async function cachesUpdate() {
1414
const credential = new DefaultAzureCredential();
1515
const subscriptionId = "00000000-0000-0000-0000-000000000000";
1616
const client = new NetAppManagementClient(credential, subscriptionId);
17-
await client.caches.update("myRG", "account1", "pool1", "cache1", {
17+
const result = await client.caches.update("myRG", "account1", "pool1", "cache1", {
1818
properties: { size: 214748364800 },
1919
});
20+
console.log(result);
2021
}
2122

2223
async function main() {

sdk/netapp/arm-netapp/samples/v22-beta/typescript/src/cachesUpdateSample.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ async function cachesUpdate(): Promise<void> {
1414
const credential = new DefaultAzureCredential();
1515
const subscriptionId = "00000000-0000-0000-0000-000000000000";
1616
const client = new NetAppManagementClient(credential, subscriptionId);
17-
await client.caches.update("myRG", "account1", "pool1", "cache1", {
17+
const result = await client.caches.update("myRG", "account1", "pool1", "cache1", {
1818
properties: { size: 214748364800 },
1919
});
20+
console.log(result);
2021
}
2122

2223
async function main(): Promise<void> {

sdk/netapp/arm-netapp/src/api/caches/operations.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,15 +315,15 @@ export function _updateSend(
315315
});
316316
}
317317

318-
export async function _updateDeserialize(result: PathUncheckedResponse): Promise<void> {
318+
export async function _updateDeserialize(result: PathUncheckedResponse): Promise<Cache> {
319319
const expectedStatuses = ["200", "202", "201"];
320320
if (!expectedStatuses.includes(result.status)) {
321321
const error = createRestError(result);
322322
error.details = errorResponseDeserializer(result.body);
323323
throw error;
324324
}
325325

326-
return;
326+
return cacheDeserializer(result.body);
327327
}
328328

329329
/** Patch the specified Cache */
@@ -335,14 +335,14 @@ export function update(
335335
cacheName: string,
336336
body: CacheUpdate,
337337
options: CachesUpdateOptionalParams = { requestOptions: {} },
338-
): PollerLike<OperationState<void>, void> {
338+
): PollerLike<OperationState<Cache>, Cache> {
339339
return getLongRunningPoller(context, _updateDeserialize, ["200", "202", "201"], {
340340
updateIntervalInMs: options?.updateIntervalInMs,
341341
abortSignal: options?.abortSignal,
342342
getInitialResponse: () =>
343343
_updateSend(context, resourceGroupName, accountName, poolName, cacheName, body, options),
344344
resourceLocationConfig: "location",
345-
}) as PollerLike<OperationState<void>, void>;
345+
}) as PollerLike<OperationState<Cache>, Cache>;
346346
}
347347

348348
export function _createOrUpdateSend(

sdk/netapp/arm-netapp/src/classic/caches/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export interface CachesOperations {
7676
cacheName: string,
7777
body: CacheUpdate,
7878
options?: CachesUpdateOptionalParams,
79-
) => PollerLike<OperationState<void>, void>;
79+
) => PollerLike<OperationState<Cache>, Cache>;
8080
/** Create or update the specified Cache within the Capacity Pool */
8181
createOrUpdate: (
8282
resourceGroupName: string,

0 commit comments

Comments
 (0)