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]>
61 lines
2.2 KiB
TypeScript
61 lines
2.2 KiB
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 this api creates an ispCustomer with the specified create parameters
|
|
*
|
|
* @summary this api creates an ispCustomer with the specified create parameters
|
|
* x-ms-original-file: 2026-06-01/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json
|
|
*/
|
|
async function ispCustomerCreateOrUpdateGeneratedByMaximumSetRule(): Promise<void> {
|
|
const credential = new DefaultAzureCredential();
|
|
const subscriptionId = "12345678-1234-1234-1234-123456789098";
|
|
const client = new ConnectedCacheClient(credential, subscriptionId);
|
|
const result = await client.ispCustomers.createOrUpdate("rgConnectedCache", "MccRPTest2", {
|
|
location: "westus",
|
|
properties: {
|
|
customer: {
|
|
fullyQualifiedResourceId: "uqsbtgae",
|
|
customerName: "mkpzynfqihnjfdbaqbqwyhd",
|
|
contactEmail: "xquos",
|
|
contactPhone: "vue",
|
|
contactName: "wxyqjoyoscmvimgwhpitxky",
|
|
isEntitled: true,
|
|
releaseVersion: 20,
|
|
clientTenantId: "fproidkpgvpdnac",
|
|
isEnterpriseManaged: true,
|
|
shouldMigrate: true,
|
|
resendSignupCode: true,
|
|
verifySignupCode: true,
|
|
verifySignupPhrase: "tprjvttkgmrqlsyicnidhm",
|
|
},
|
|
additionalCustomerProperties: {
|
|
customerEmail: "zdjgibsidydyzm",
|
|
customerTransitAsn: "habgklnxqzmozqpazoyejwiphezpi",
|
|
customerTransitState: "voblixkxfejbmhxilb",
|
|
customerAsn: "hgrelgnrtdkleisnepfolu",
|
|
customerEntitlementSkuId: "b",
|
|
customerEntitlementSkuGuid: "rvzmdpxyflgqetvpwupnfaxsweiiz",
|
|
customerEntitlementSkuName: "waaqfijr",
|
|
customerEntitlementExpiration: new Date("2024-01-30T00:54:04.773Z"),
|
|
optionalProperty1: "qhmwxza",
|
|
optionalProperty2: "l",
|
|
optionalProperty3: "mblwwvbie",
|
|
optionalProperty4: "vzuek",
|
|
optionalProperty5: "fzjodscdfcdr",
|
|
},
|
|
},
|
|
tags: { key1878: "warz" },
|
|
});
|
|
console.log(result);
|
|
}
|
|
|
|
async function main(): Promise<void> {
|
|
await ispCustomerCreateOrUpdateGeneratedByMaximumSetRule();
|
|
}
|
|
|
|
main().catch(console.error);
|