mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
Configurations: 'specification/connectedcache/ConnectedCache.Management/tspconfig.yaml', SDK Release Type: stable, and CommitSHA: 'f983b23373c32668d1327409b3737a4f8beb634e' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6606124 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://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=35418](https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=35418) **Submitted by**: --------- Co-authored-by: azure-sdk <[email protected]>
30 lines
965 B
TypeScript
30 lines
965 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { ConnectedCacheClient } from "@azure/arm-connectedcache";
|
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
|
|
/**
|
|
* This sample demonstrates how to list the operations for the provider
|
|
*
|
|
* @summary list the operations for the provider
|
|
* x-ms-original-file: 2026-06-01/Operations_List_MaximumSet_Gen.json
|
|
*/
|
|
async function listTheOperationsForTheProviderGeneratedByMaximumSetRule(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const client = new ConnectedCacheClient(credential, subscriptionId);
|
|
const resArray = new Array();
|
|
for await (const item of client.operations.list()) {
|
|
resArray.push(item);
|
|
}
|
|
|
|
console.log(resArray);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await listTheOperationsForTheProviderGeneratedByMaximumSetRule();
|
|
}
|
|
|
|
main().catch(console.error);
|