Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=aliasCreateSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasCreateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/aliasCreateSample.ts"],"names":[],"mappings":""}
@@ -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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Create Alias Subscription.
*
* @summary Create Alias Subscription.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/createAlias.json
*/
function createAlias() {
return __awaiter(this, void 0, void 0, function* () {
const aliasName = "aliasForNewSub";
const body = {
properties: {
additionalProperties: {
managementGroupId: undefined,
subscriptionOwnerId: "f09b39eb-c496-482c-9ab9-afd799572f4c",
subscriptionTenantId: "66f6e4d6-07dc-4aea-94ea-e12d3026a3c8",
tags: { tag1: "Messi", tag2: "Ronaldo", tag3: "Lebron" }
},
billingScope: "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
displayName: "Test Subscription",
subscriptionId: undefined,
workload: "Production"
}
};
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.alias.beginCreateAndWait(aliasName, body);
console.log(result);
});
}
createAlias().catch(console.error);
//# sourceMappingURL=aliasCreateSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasCreateSample.js","sourceRoot":"","sources":["../../samples-dev/aliasCreateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAmB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,SAAS,GAAG,gBAAgB,CAAC;QACnC,MAAM,IAAI,GAAoB;YAC5B,UAAU,EAAE;gBACV,oBAAoB,EAAE;oBACpB,iBAAiB,EAAE,SAAS;oBAC5B,mBAAmB,EAAE,sCAAsC;oBAC3D,oBAAoB,EAAE,sCAAsC;oBAC5D,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;iBACzD;gBACD,YAAY,EACV,qLAAqL;gBACvL,WAAW,EAAE,mBAAmB;gBAChC,cAAc,EAAE,SAAS;gBACzB,QAAQ,EAAE,YAAY;aACvB;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,kBAAkB,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QACtE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=aliasDeleteSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/aliasDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Delete Alias.
*
* @summary Delete Alias.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/deleteAlias.json
*/
function deleteAlias() {
return __awaiter(this, void 0, void 0, function* () {
const aliasName = "aliasForNewSub";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.alias.delete(aliasName);
console.log(result);
});
}
deleteAlias().catch(console.error);
//# sourceMappingURL=aliasDeleteSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/aliasDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,SAAS,GAAG,gBAAgB,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACpD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=aliasGetSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/aliasGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Get Alias Subscription.
*
* @summary Get Alias Subscription.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getAlias.json
*/
function getAlias() {
return __awaiter(this, void 0, void 0, function* () {
const aliasName = "aliasForNewSub";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.alias.get(aliasName);
console.log(result);
});
}
getAlias().catch(console.error);
//# sourceMappingURL=aliasGetSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasGetSample.js","sourceRoot":"","sources":["../../samples-dev/aliasGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,QAAQ;;QACrB,MAAM,SAAS,GAAG,gBAAgB,CAAC;QACnC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACjD,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=aliasListSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/aliasListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to List Alias Subscription.
*
* @summary List Alias Subscription.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/listAlias.json
*/
function listAlias() {
return __awaiter(this, void 0, void 0, function* () {
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.alias.list();
console.log(result);
});
}
listAlias().catch(console.error);
//# sourceMappingURL=aliasListSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"aliasListSample.js","sourceRoot":"","sources":["../../samples-dev/aliasListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,SAAS;;QACtB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAS,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=billingAccountGetPolicySample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"billingAccountGetPolicySample.d.ts","sourceRoot":"","sources":["../../samples-dev/billingAccountGetPolicySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Get Billing Account Policy.
*
* @summary Get Billing Account Policy.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getBillingAccountPolicy.json
*/
function getBillingAccountPolicy() {
return __awaiter(this, void 0, void 0, function* () {
const billingAccountId = "testBillingAccountId";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.billingAccount.getPolicy(billingAccountId);
console.log(result);
});
}
getBillingAccountPolicy().catch(console.error);
//# sourceMappingURL=billingAccountGetPolicySample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"billingAccountGetPolicySample.js","sourceRoot":"","sources":["../../samples-dev/billingAccountGetPolicySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uBAAuB;;QACpC,MAAM,gBAAgB,GAAG,sBAAsB,CAAC;QAChD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;QACvE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uBAAuB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=operationsListSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
/*
* 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 { __asyncValues, __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Lists all of the available Microsoft.Subscription API operations.
*
* @summary Lists all of the available Microsoft.Subscription API operations.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getOperations.json
*/
function getOperations() {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
try {
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
let item = _c.value;
resArray.push(item);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
console.log(resArray);
});
}
getOperations().catch(console.error);
//# sourceMappingURL=operationsListSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionAcceptOwnershipSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionAcceptOwnershipSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionAcceptOwnershipSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Accept subscription ownership.
*
* @summary Accept subscription ownership.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/acceptSubscriptionOwnership.json
*/
function acceptOwnership() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "291bba3f-e0a5-47bc-a099-3bdcb2a50a05";
const body = {
properties: {
displayName: "Test Subscription",
managementGroupId: undefined,
tags: { tag1: "Messi", tag2: "Ronaldo", tag3: "Lebron" }
}
};
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionOperations.beginAcceptOwnershipAndWait(subscriptionId, body);
console.log(result);
});
}
acceptOwnership().catch(console.error);
//# sourceMappingURL=subscriptionAcceptOwnershipSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionAcceptOwnershipSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionAcceptOwnershipSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,IAAI,GAA2B;YACnC,UAAU,EAAE;gBACV,WAAW,EAAE,mBAAmB;gBAChC,iBAAiB,EAAE,SAAS;gBAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;aACzD;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,2BAA2B,CAC5E,cAAc,EACd,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionAcceptOwnershipStatusSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionAcceptOwnershipStatusSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionAcceptOwnershipStatusSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Accept subscription ownership status.
*
* @summary Accept subscription ownership status.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/acceptOwnershipStatus.json
*/
function acceptOwnershipStatus() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "291bba3f-e0a5-47bc-a099-3bdcb2a50a05";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionOperations.acceptOwnershipStatus(subscriptionId);
console.log(result);
});
}
acceptOwnershipStatus().catch(console.error);
//# sourceMappingURL=subscriptionAcceptOwnershipStatusSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionAcceptOwnershipStatusSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionAcceptOwnershipStatusSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,qBAAqB;;QAClC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,qBAAqB,CACtE,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,qBAAqB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionCancelSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionCancelSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionCancelSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to The operation to cancel a subscription
*
* @summary The operation to cancel a subscription
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/cancelSubscription.json
*/
function cancelSubscription() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "83aa47df-e3e9-49ff-877b-94304bf3d3ad";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionOperations.cancel(subscriptionId);
console.log(result);
});
}
cancelSubscription().catch(console.error);
//# sourceMappingURL=subscriptionCancelSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionCancelSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionCancelSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionEnableSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionEnableSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionEnableSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to The operation to enable a subscription
*
* @summary The operation to enable a subscription
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/enableSubscription.json
*/
function enableSubscription() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "7948bcee-488c-47ce-941c-38e20ede803d";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionOperations.enable(subscriptionId);
console.log(result);
});
}
enableSubscription().catch(console.error);
//# sourceMappingURL=subscriptionEnableSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionEnableSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionEnableSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAC1E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionPolicyAddUpdatePolicyForTenantSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionPolicyAddUpdatePolicyForTenantSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionPolicyAddUpdatePolicyForTenantSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Create or Update Subscription tenant policy for user's tenant.
*
* @summary Create or Update Subscription tenant policy for user's tenant.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/changeTenantPolicy.json
*/
function tenantPolicy() {
return __awaiter(this, void 0, void 0, function* () {
const body = {
blockSubscriptionsIntoTenant: true,
blockSubscriptionsLeavingTenant: true,
exemptedPrincipals: [
"e879cf0f-2b4d-5431-109a-f72fc9868693",
"9792da87-c97b-410d-a97d-27021ba09ce6"
]
};
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionPolicy.addUpdatePolicyForTenant(body);
console.log(result);
});
}
tenantPolicy().catch(console.error);
//# sourceMappingURL=subscriptionPolicyAddUpdatePolicyForTenantSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionPolicyAddUpdatePolicyForTenantSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionPolicyAddUpdatePolicyForTenantSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,kBAAkB,EACnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,YAAY;;QACzB,MAAM,IAAI,GAAqC;YAC7C,4BAA4B,EAAE,IAAI;YAClC,+BAA+B,EAAE,IAAI;YACrC,kBAAkB,EAAE;gBAClB,sCAAsC;gBACtC,sCAAsC;aACvC;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC9E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,YAAY,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionPolicyGetPolicyForTenantSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionPolicyGetPolicyForTenantSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionPolicyGetPolicyForTenantSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Get the subscription tenant policy for the user's tenant.
*
* @summary Get the subscription tenant policy for the user's tenant.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getTenantPolicy.json
*/
function getTenantPolicy() {
return __awaiter(this, void 0, void 0, function* () {
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionPolicy.getPolicyForTenant();
console.log(result);
});
}
getTenantPolicy().catch(console.error);
//# sourceMappingURL=subscriptionPolicyGetPolicyForTenantSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionPolicyGetPolicyForTenantSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionPolicyGetPolicyForTenantSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAAC,kBAAkB,EAAE,CAAC;QACpE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionPolicyListPolicyForTenantSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionPolicyListPolicyForTenantSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionPolicyListPolicyForTenantSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
/*
* 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 { __asyncValues, __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Get the subscription tenant policy for the user's tenant.
*
* @summary Get the subscription tenant policy for the user's tenant.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/getTenantPolicyList.json
*/
function getTenantPolicyList() {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
try {
for (var _b = __asyncValues(client.subscriptionPolicy.listPolicyForTenant()), _c; _c = yield _b.next(), !_c.done;) {
let item = _c.value;
resArray.push(item);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
console.log(resArray);
});
}
getTenantPolicyList().catch(console.error);
//# sourceMappingURL=subscriptionPolicyListPolicyForTenantSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionPolicyListPolicyForTenantSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionPolicyListPolicyForTenantSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mBAAmB;;;QAChC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,mBAAmB,EAAE,CAAA,IAAA;gBAA3D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,mBAAmB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionRenameSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionRenameSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionRenameSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to The operation to rename a subscription
*
* @summary The operation to rename a subscription
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2021-10-01/examples/renameSubscription.json
*/
function renameSubscription() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "83aa47df-e3e9-49ff-877b-94304bf3d3ad";
const body = { subscriptionName: "Test Sub" };
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptionOperations.rename(subscriptionId, body);
console.log(result);
});
}
renameSubscription().catch(console.error);
//# sourceMappingURL=subscriptionRenameSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionRenameSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionRenameSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAoB,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAChF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,IAAI,GAAqB,EAAE,gBAAgB,EAAE,UAAU,EAAE,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,MAAM,CACvD,cAAc,EACd,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionsGetSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
/*
* 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 { __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets details about a specified subscription.
*
* @summary Gets details about a specified subscription.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/getSubscription.json
*/
function getSubscription() {
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "83aa47df-e3e9-49ff-877b-94304bf3d3ad";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const result = yield client.subscriptions.get(subscriptionId);
console.log(result);
});
}
getSubscription().catch(console.error);
//# sourceMappingURL=subscriptionsGetSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionsGetSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QAC9D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionsListLocationsSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionsListLocationsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionsListLocationsSample.ts"],"names":[],"mappings":""}
@@ -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 { __asyncValues, __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
*
* @summary This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listLocations.json
*/
function listLocations() {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const subscriptionId = "83aa47df-e3e9-49ff-877b-94304bf3d3ad";
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
try {
for (var _b = __asyncValues(client.subscriptions.listLocations(subscriptionId)), _c; _c = yield _b.next(), !_c.done;) {
let item = _c.value;
resArray.push(item);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
console.log(resArray);
});
}
listLocations().catch(console.error);
//# sourceMappingURL=subscriptionsListLocationsSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionsListLocationsSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionsListLocationsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,aAAa,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA,IAAA;gBAA9D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=subscriptionsListSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/subscriptionsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
/*
* 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 { __asyncValues, __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets all subscriptions for a tenant.
*
* @summary Gets all subscriptions for a tenant.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listSubscriptions.json
*/
function listSubscriptions() {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
try {
for (var _b = __asyncValues(client.subscriptions.list()), _c; _c = yield _b.next(), !_c.done;) {
let item = _c.value;
resArray.push(item);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
console.log(resArray);
});
}
listSubscriptions().catch(console.error);
//# sourceMappingURL=subscriptionsListSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"subscriptionsListSample.js","sourceRoot":"","sources":["../../samples-dev/subscriptionsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,iBAAiB;;;QAC9B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAvC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,iBAAiB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=tenantsListSample.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"tenantsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/tenantsListSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,42 @@
/*
* 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 { __asyncValues, __awaiter } from "tslib";
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
import { SubscriptionClient } from "@azure/arm-subscriptions";
import { DefaultAzureCredential } from "@azure/identity";
/**
* This sample demonstrates how to Gets the tenants for your account.
*
* @summary Gets the tenants for your account.
* x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2016-06-01/examples/listTenants.json
*/
function listTenants() {
var e_1, _a;
return __awaiter(this, void 0, void 0, function* () {
const credential = new DefaultAzureCredential();
const client = new SubscriptionClient(credential);
const resArray = new Array();
try {
for (var _b = __asyncValues(client.tenants.list()), _c; _c = yield _b.next(), !_c.done;) {
let item = _c.value;
resArray.push(item);
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
console.log(resArray);
});
}
listTenants().catch(console.error);
//# sourceMappingURL=tenantsListSample.js.map
@@ -0,0 +1 @@
{"version":3,"file":"tenantsListSample.js","sourceRoot":"","sources":["../../samples-dev/tenantsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;;QACxB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAClD,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAA,IAAA;gBAAjC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}