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"}
+6
View File
@@ -0,0 +1,6 @@
/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { SubscriptionClient } from "./subscriptionClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,wBAAwB,CAAC"}
+13
View File
@@ -0,0 +1,13 @@
/*
* 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.
*/
/// <reference lib="esnext.asynciterable" />
export { getContinuationToken } from "./pagingHelper";
export * from "./models";
export { SubscriptionClient } from "./subscriptionClient";
export * from "./operationsInterfaces";
//# sourceMappingURL=index.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,cAAc,wBAAwB,CAAC"}
+16
View File
@@ -0,0 +1,16 @@
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
export declare class LroImpl<T> implements LongRunningOperation<T> {
private sendOperationFn;
private args;
private spec;
requestPath: string;
requestMethod: string;
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
readonly requestBody?: unknown;
readonly path?: string;
readonly httpMethod: string;
} & Record<string, any>, requestPath?: string, requestMethod?: string);
sendInitialRequest(): Promise<LroResponse<T>>;
sendPollRequest(path: string): Promise<LroResponse<T>>;
}
//# sourceMappingURL=lroImpl.d.ts.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
+29
View File
@@ -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, __rest } from "tslib";
export class LroImpl {
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
this.sendOperationFn = sendOperationFn;
this.args = args;
this.spec = spec;
this.requestPath = requestPath;
this.requestMethod = requestMethod;
}
sendInitialRequest() {
return __awaiter(this, void 0, void 0, function* () {
return this.sendOperationFn(this.args, this.spec);
});
}
sendPollRequest(path) {
return __awaiter(this, void 0, void 0, function* () {
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
});
}
}
//# sourceMappingURL=lroImpl.js.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
+738
View File
@@ -0,0 +1,738 @@
import * as coreClient from "@azure/core-client";
/** Location list operation response. */
export interface LocationListResult {
/** An array of locations. */
value?: Location[];
}
/** Location information. */
export interface Location {
/**
* The fully qualified ID of the location. For example, /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The subscription ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/**
* The location name.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* The display name of the location.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly displayName?: string;
/**
* The latitude of the location.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly latitude?: string;
/**
* The longitude of the location.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly longitude?: string;
}
/** Subscription information. */
export interface Subscription {
/**
* The fully qualified ID for the subscription. For example, /subscriptions/00000000-0000-0000-0000-000000000000.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The subscription ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/**
* The subscription display name.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly displayName?: string;
/**
* The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly state?: SubscriptionState;
/**
* The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tenantId?: string;
/** Tags for the subscription */
tags?: {
[propertyName: string]: string;
};
/** The subscription policies. */
subscriptionPolicies?: SubscriptionPolicies;
/** The authorization source of the request. Valid values are one or more combinations of Legacy, RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'. */
authorizationSource?: string;
}
/** Subscription policies. */
export interface SubscriptionPolicies {
/**
* The subscription location placement ID. The ID indicates which regions are visible for a subscription. For example, a subscription with a location placement Id of Public_2014-09-01 has access to Azure public regions.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly locationPlacementId?: string;
/**
* The subscription quota ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly quotaId?: string;
/**
* The subscription spending limit.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly spendingLimit?: SpendingLimit;
}
/** Subscription list operation response. */
export interface SubscriptionListResult {
/** An array of subscriptions. */
value?: Subscription[];
/** The URL to get the next set of results. */
nextLink?: string;
}
/** Tenant Ids information. */
export interface TenantListResult {
/** An array of tenants. */
value?: TenantIdDescription[];
/** The URL to use for getting the next set of results. */
nextLink: string;
}
/** Tenant Id information. */
export interface TenantIdDescription {
/**
* The fully qualified ID of the tenant. For example, /tenants/00000000-0000-0000-0000-000000000000.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tenantId?: string;
/**
* The category of the tenant. Possible values are TenantCategoryHome,TenantCategoryProjectedBy,TenantCategoryManagedBy
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tenantCategory?: string;
/**
* The country/region name of the address for the tenant.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly country?: string;
/**
* The Country/region abbreviation for the tenant.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly countryCode?: string;
/**
* The display name of the tenant.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly displayName?: string;
/**
* The list of domains for the tenant.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly domains?: string;
/**
* The default domain for the tenant.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly defaultDomain?: string;
/**
* The tenant type. Only available for Home tenant category.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly tenantType?: string;
}
/** The ID of the canceled subscription */
export interface CanceledSubscriptionId {
/**
* The ID of the canceled subscription
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
}
/** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */
export interface ErrorResponseBody {
/** The details of the error. */
error?: ErrorResponse;
/** Error code */
code?: string;
/** Error message indicating why the operation failed. */
message?: string;
}
/** Describes the format of Error response. */
export interface ErrorResponse {
/** Error code */
code?: string;
/** Error message indicating why the operation failed. */
message?: string;
}
/** The new name of the subscription. */
export interface SubscriptionName {
/** New subscription name */
subscriptionName?: string;
}
/** The ID of the subscriptions that is being renamed */
export interface RenamedSubscriptionId {
/**
* The ID of the subscriptions that is being renamed
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
}
/** The ID of the subscriptions that is being enabled */
export interface EnabledSubscriptionId {
/**
* The ID of the subscriptions that is being enabled
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
}
/** Result of the request to list operations. It contains a list of operations and a URL link to get the next set of results. */
export interface OperationListResult {
/** List of operations. */
value?: Operation[];
/** URL to get the next set of operation list results if there are any. */
nextLink?: string;
}
/** REST API operation */
export interface Operation {
/** Operation name: {provider}/{resource}/{operation} */
name?: string;
/** Indicates whether the operation is a data action */
isDataAction?: boolean;
/** The object that represents the operation. */
display?: OperationDisplay;
}
/** The object that represents the operation. */
export interface OperationDisplay {
/** Service provider: Microsoft.Subscription */
provider?: string;
/** Resource on which the operation is performed: Profile, endpoint, etc. */
resource?: string;
/** Operation type: Read, write, delete, etc. */
operation?: string;
/** Localized friendly description for the operation */
description?: string;
}
/** The parameters required to create a new subscription. */
export interface PutAliasRequest {
/** Put alias request properties. */
properties?: PutAliasRequestProperties;
}
/** Put subscription properties. */
export interface PutAliasRequestProperties {
/** The friendly name of the subscription. */
displayName?: string;
/** The workload type of the subscription. It can be either Production or DevTest. */
workload?: Workload;
/**
* Billing scope of the subscription.
* For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
* For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
* For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
*/
billingScope?: string;
/** This parameter can be used to create alias for existing subscription Id */
subscriptionId?: string;
/** Reseller Id */
resellerId?: string;
/** Put alias request additional properties. */
additionalProperties?: PutAliasRequestAdditionalProperties;
}
/** Put subscription additional properties. */
export interface PutAliasRequestAdditionalProperties {
/** Management group Id for the subscription. */
managementGroupId?: string;
/** Tenant Id of the subscription */
subscriptionTenantId?: string;
/** Owner Id of the subscription */
subscriptionOwnerId?: string;
/** Tags for the subscription */
tags?: {
[propertyName: string]: string;
};
}
/** Subscription Information with the alias. */
export interface SubscriptionAliasResponse {
/**
* Fully qualified ID for the alias resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Alias ID.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Resource type, Microsoft.Subscription/aliases.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/** Subscription Alias response properties. */
properties?: SubscriptionAliasResponseProperties;
/**
* Metadata pertaining to creation and last modification of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: SystemData;
}
/** Put subscription creation result properties. */
export interface SubscriptionAliasResponseProperties {
/**
* Newly created subscription Id.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/** The display name of the subscription. */
displayName?: string;
/** The provisioning state of the resource. */
provisioningState?: ProvisioningState;
/**
* Url to accept ownership of the subscription.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly acceptOwnershipUrl?: string;
/**
* The accept ownership state of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly acceptOwnershipState?: AcceptOwnership;
/**
* Billing scope of the subscription.
* For CustomerLed and FieldLed - /billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}
* For PartnerLed - /billingAccounts/{billingAccountName}/customers/{customerName}
* For Legacy EA - /billingAccounts/{billingAccountName}/enrollmentAccounts/{enrollmentAccountName}
*/
billingScope?: string;
/** The workload type of the subscription. It can be either Production or DevTest. */
workload?: Workload;
/** Reseller Id */
resellerId?: string;
/** Owner Id of the subscription */
subscriptionOwnerId?: string;
/** The Management Group Id. */
managementGroupId?: string;
/** Created Time */
createdTime?: string;
/** Tags for the subscription */
tags?: {
[propertyName: string]: string;
};
}
/** Metadata pertaining to creation and last modification of the resource. */
export interface SystemData {
/** The identity that created the resource. */
createdBy?: string;
/** The type of identity that created the resource. */
createdByType?: CreatedByType;
/** The timestamp of resource creation (UTC). */
createdAt?: Date;
/** The identity that last modified the resource. */
lastModifiedBy?: string;
/** The type of identity that last modified the resource. */
lastModifiedByType?: CreatedByType;
/** The timestamp of resource last modification (UTC) */
lastModifiedAt?: Date;
}
/** The list of aliases. */
export interface SubscriptionAliasListResult {
/**
* The list of alias.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: SubscriptionAliasResponse[];
/**
* The link (url) to the next page of results.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}
/** The parameters required to accept subscription ownership. */
export interface AcceptOwnershipRequest {
/** Accept subscription ownership request properties. */
properties?: AcceptOwnershipRequestProperties;
}
/** Accept subscription ownership request properties. */
export interface AcceptOwnershipRequestProperties {
/** The friendly name of the subscription. */
displayName: string;
/** Management group Id for the subscription. */
managementGroupId?: string;
/** Tags for the subscription */
tags?: {
[propertyName: string]: string;
};
}
/** Subscription Accept Ownership Response */
export interface AcceptOwnershipStatusResponse {
/**
* Newly created subscription Id.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly subscriptionId?: string;
/**
* The accept ownership state of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly acceptOwnershipState?: AcceptOwnership;
/**
* The provisioning state of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly provisioningState?: Provisioning;
/**
* UPN of the billing owner
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly billingOwner?: string;
/** Tenant Id of the subscription */
subscriptionTenantId?: string;
/** The display name of the subscription. */
displayName?: string;
/** Tags for the subscription */
tags?: {
[propertyName: string]: string;
};
}
/** Put tenant policy request properties. */
export interface PutTenantPolicyRequestProperties {
/** Blocks the leaving of subscriptions from user's tenant. */
blockSubscriptionsLeavingTenant?: boolean;
/** Blocks the entering of subscriptions into user's tenant. */
blockSubscriptionsIntoTenant?: boolean;
/** List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. */
exemptedPrincipals?: string[];
}
/** Tenant policy Information. */
export interface GetTenantPolicyResponse {
/**
* Policy Id.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Policy name.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Resource type.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/** Tenant policy properties. */
properties?: TenantPolicy;
/**
* Metadata pertaining to creation and last modification of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: SystemData;
}
/** Tenant policy. */
export interface TenantPolicy {
/**
* Policy Id.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly policyId?: string;
/** Blocks the leaving of subscriptions from user's tenant. */
blockSubscriptionsLeavingTenant?: boolean;
/** Blocks the entering of subscriptions into user's tenant. */
blockSubscriptionsIntoTenant?: boolean;
/** List of user objectIds that are exempted from the set subscription tenant policies for the user's tenant. */
exemptedPrincipals?: string[];
}
/** Tenant policy information list. */
export interface GetTenantPolicyListResponse {
/**
* The list of tenant policies.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly value?: GetTenantPolicyResponse[];
/**
* The link (url) to the next page of results.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly nextLink?: string;
}
/** Billing account policies information. */
export interface BillingAccountPoliciesResponse {
/**
* Fully qualified ID for the policy.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Policy name.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Resource type.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
/** Billing account policies response properties. */
properties?: BillingAccountPoliciesResponseProperties;
/**
* Metadata pertaining to creation and last modification of the resource.
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly systemData?: SystemData;
}
/** Put billing account policies response properties. */
export interface BillingAccountPoliciesResponseProperties {
/** Service tenant for the billing account. */
serviceTenants?: ServiceTenantResponse[];
/** Determine if the transfers are allowed for the billing account */
allowTransfers?: boolean;
}
/** Billing account service tenant. */
export interface ServiceTenantResponse {
/** Service tenant id. */
tenantId?: string;
/** Service tenant name. */
tenantName?: string;
}
/** Defines headers for Subscription_acceptOwnership operation. */
export interface SubscriptionAcceptOwnershipHeaders {
/** GET this URL to retrieve the status of the asynchronous operation. */
location?: string;
/** The amount of delay to use while the status of the operation is checked. The value is expressed in seconds. */
retryAfter?: number;
}
/** Known values of {@link Workload} that the service accepts. */
export declare enum KnownWorkload {
/** Production */
Production = "Production",
/** DevTest */
DevTest = "DevTest"
}
/**
* Defines values for Workload. \
* {@link KnownWorkload} can be used interchangeably with Workload,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Production** \
* **DevTest**
*/
export declare type Workload = string;
/** Known values of {@link ProvisioningState} that the service accepts. */
export declare enum KnownProvisioningState {
/** Accepted */
Accepted = "Accepted",
/** Succeeded */
Succeeded = "Succeeded",
/** Failed */
Failed = "Failed"
}
/**
* Defines values for ProvisioningState. \
* {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Accepted** \
* **Succeeded** \
* **Failed**
*/
export declare type ProvisioningState = string;
/** Known values of {@link AcceptOwnership} that the service accepts. */
export declare enum KnownAcceptOwnership {
/** Pending */
Pending = "Pending",
/** Completed */
Completed = "Completed",
/** Expired */
Expired = "Expired"
}
/**
* Defines values for AcceptOwnership. \
* {@link KnownAcceptOwnership} can be used interchangeably with AcceptOwnership,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Pending** \
* **Completed** \
* **Expired**
*/
export declare type AcceptOwnership = string;
/** Known values of {@link CreatedByType} that the service accepts. */
export declare enum KnownCreatedByType {
/** User */
User = "User",
/** Application */
Application = "Application",
/** ManagedIdentity */
ManagedIdentity = "ManagedIdentity",
/** Key */
Key = "Key"
}
/**
* Defines values for CreatedByType. \
* {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **User** \
* **Application** \
* **ManagedIdentity** \
* **Key**
*/
export declare type CreatedByType = string;
/** Known values of {@link Provisioning} that the service accepts. */
export declare enum KnownProvisioning {
/** Pending */
Pending = "Pending",
/** Accepted */
Accepted = "Accepted",
/** Succeeded */
Succeeded = "Succeeded"
}
/**
* Defines values for Provisioning. \
* {@link KnownProvisioning} can be used interchangeably with Provisioning,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Pending** \
* **Accepted** \
* **Succeeded**
*/
export declare type Provisioning = string;
/** Defines values for SubscriptionState. */
export declare type SubscriptionState = "Enabled" | "Warned" | "PastDue" | "Disabled" | "Deleted";
/** Defines values for SpendingLimit. */
export declare type SpendingLimit = "On" | "Off" | "CurrentPeriodOff";
/** Optional parameters. */
export interface SubscriptionsListLocationsOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the listLocations operation. */
export declare type SubscriptionsListLocationsResponse = LocationListResult;
/** Optional parameters. */
export interface SubscriptionsGetOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the get operation. */
export declare type SubscriptionsGetResponse = Subscription;
/** Optional parameters. */
export interface SubscriptionsListOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the list operation. */
export declare type SubscriptionsListResponse = SubscriptionListResult;
/** Optional parameters. */
export interface SubscriptionsListNextOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the listNext operation. */
export declare type SubscriptionsListNextResponse = SubscriptionListResult;
/** Optional parameters. */
export interface TenantsListOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the list operation. */
export declare type TenantsListResponse = TenantListResult;
/** Optional parameters. */
export interface TenantsListNextOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the listNext operation. */
export declare type TenantsListNextResponse = TenantListResult;
/** Optional parameters. */
export interface SubscriptionCancelOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the cancel operation. */
export declare type SubscriptionCancelResponse = CanceledSubscriptionId;
/** Optional parameters. */
export interface SubscriptionRenameOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the rename operation. */
export declare type SubscriptionRenameResponse = RenamedSubscriptionId;
/** Optional parameters. */
export interface SubscriptionEnableOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the enable operation. */
export declare type SubscriptionEnableResponse = EnabledSubscriptionId;
/** Optional parameters. */
export interface SubscriptionAcceptOwnershipOptionalParams extends coreClient.OperationOptions {
/** Delay to wait until next poll, in milliseconds. */
updateIntervalInMs?: number;
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
resumeFrom?: string;
}
/** Contains response data for the acceptOwnership operation. */
export declare type SubscriptionAcceptOwnershipResponse = SubscriptionAcceptOwnershipHeaders;
/** Optional parameters. */
export interface SubscriptionAcceptOwnershipStatusOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the acceptOwnershipStatus operation. */
export declare type SubscriptionAcceptOwnershipStatusResponse = AcceptOwnershipStatusResponse;
/** Optional parameters. */
export interface OperationsListOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the list operation. */
export declare type OperationsListResponse = OperationListResult;
/** Optional parameters. */
export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the listNext operation. */
export declare type OperationsListNextResponse = OperationListResult;
/** Optional parameters. */
export interface AliasCreateOptionalParams extends coreClient.OperationOptions {
/** Delay to wait until next poll, in milliseconds. */
updateIntervalInMs?: number;
/** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
resumeFrom?: string;
}
/** Contains response data for the create operation. */
export declare type AliasCreateResponse = SubscriptionAliasResponse;
/** Optional parameters. */
export interface AliasGetOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the get operation. */
export declare type AliasGetResponse = SubscriptionAliasResponse;
/** Optional parameters. */
export interface AliasDeleteOptionalParams extends coreClient.OperationOptions {
}
/** Optional parameters. */
export interface AliasListOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the list operation. */
export declare type AliasListResponse = SubscriptionAliasListResult;
/** Optional parameters. */
export interface SubscriptionPolicyAddUpdatePolicyForTenantOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the addUpdatePolicyForTenant operation. */
export declare type SubscriptionPolicyAddUpdatePolicyForTenantResponse = GetTenantPolicyResponse;
/** Optional parameters. */
export interface SubscriptionPolicyGetPolicyForTenantOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the getPolicyForTenant operation. */
export declare type SubscriptionPolicyGetPolicyForTenantResponse = GetTenantPolicyResponse;
/** Optional parameters. */
export interface SubscriptionPolicyListPolicyForTenantOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the listPolicyForTenant operation. */
export declare type SubscriptionPolicyListPolicyForTenantResponse = GetTenantPolicyListResponse;
/** Optional parameters. */
export interface SubscriptionPolicyListPolicyForTenantNextOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the listPolicyForTenantNext operation. */
export declare type SubscriptionPolicyListPolicyForTenantNextResponse = GetTenantPolicyListResponse;
/** Optional parameters. */
export interface BillingAccountGetPolicyOptionalParams extends coreClient.OperationOptions {
}
/** Contains response data for the getPolicy operation. */
export declare type BillingAccountGetPolicyResponse = BillingAccountPoliciesResponse;
/** Optional parameters. */
export interface SubscriptionClientOptionalParams extends coreClient.ServiceClientOptions {
/** server parameter */
$host?: string;
/** Overrides client endpoint. */
endpoint?: string;
}
//# sourceMappingURL=index.d.ts.map
File diff suppressed because one or more lines are too long
+58
View File
@@ -0,0 +1,58 @@
/*
* 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.
*/
/** Known values of {@link Workload} that the service accepts. */
export var KnownWorkload;
(function (KnownWorkload) {
/** Production */
KnownWorkload["Production"] = "Production";
/** DevTest */
KnownWorkload["DevTest"] = "DevTest";
})(KnownWorkload || (KnownWorkload = {}));
/** Known values of {@link ProvisioningState} that the service accepts. */
export var KnownProvisioningState;
(function (KnownProvisioningState) {
/** Accepted */
KnownProvisioningState["Accepted"] = "Accepted";
/** Succeeded */
KnownProvisioningState["Succeeded"] = "Succeeded";
/** Failed */
KnownProvisioningState["Failed"] = "Failed";
})(KnownProvisioningState || (KnownProvisioningState = {}));
/** Known values of {@link AcceptOwnership} that the service accepts. */
export var KnownAcceptOwnership;
(function (KnownAcceptOwnership) {
/** Pending */
KnownAcceptOwnership["Pending"] = "Pending";
/** Completed */
KnownAcceptOwnership["Completed"] = "Completed";
/** Expired */
KnownAcceptOwnership["Expired"] = "Expired";
})(KnownAcceptOwnership || (KnownAcceptOwnership = {}));
/** Known values of {@link CreatedByType} that the service accepts. */
export var KnownCreatedByType;
(function (KnownCreatedByType) {
/** User */
KnownCreatedByType["User"] = "User";
/** Application */
KnownCreatedByType["Application"] = "Application";
/** ManagedIdentity */
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
/** Key */
KnownCreatedByType["Key"] = "Key";
})(KnownCreatedByType || (KnownCreatedByType = {}));
/** Known values of {@link Provisioning} that the service accepts. */
export var KnownProvisioning;
(function (KnownProvisioning) {
/** Pending */
KnownProvisioning["Pending"] = "Pending";
/** Accepted */
KnownProvisioning["Accepted"] = "Accepted";
/** Succeeded */
KnownProvisioning["Succeeded"] = "Succeeded";
})(KnownProvisioning || (KnownProvisioning = {}));
//# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA8hBH,iEAAiE;AACjE,MAAM,CAAN,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,iBAAiB;IACjB,0CAAyB,CAAA;IACzB,cAAc;IACd,oCAAmB,CAAA;AACrB,CAAC,EALW,aAAa,KAAb,aAAa,QAKxB;AAYD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBAOX;AAPD,WAAY,sBAAsB;IAChC,eAAe;IACf,+CAAqB,CAAA;IACrB,gBAAgB;IAChB,iDAAuB,CAAA;IACvB,aAAa;IACb,2CAAiB,CAAA;AACnB,CAAC,EAPW,sBAAsB,KAAtB,sBAAsB,QAOjC;AAaD,wEAAwE;AACxE,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,cAAc;IACd,2CAAmB,CAAA;IACnB,gBAAgB;IAChB,+CAAuB,CAAA;IACvB,cAAc;IACd,2CAAmB,CAAA;AACrB,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B;AAaD,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AAcD,qEAAqE;AACrE,MAAM,CAAN,IAAY,iBAOX;AAPD,WAAY,iBAAiB;IAC3B,cAAc;IACd,wCAAmB,CAAA;IACnB,eAAe;IACf,0CAAqB,CAAA;IACrB,gBAAgB;IAChB,4CAAuB,CAAA;AACzB,CAAC,EAPW,iBAAiB,KAAjB,iBAAiB,QAO5B"}
+36
View File
@@ -0,0 +1,36 @@
import * as coreClient from "@azure/core-client";
export declare const LocationListResult: coreClient.CompositeMapper;
export declare const Location: coreClient.CompositeMapper;
export declare const Subscription: coreClient.CompositeMapper;
export declare const SubscriptionPolicies: coreClient.CompositeMapper;
export declare const SubscriptionListResult: coreClient.CompositeMapper;
export declare const TenantListResult: coreClient.CompositeMapper;
export declare const TenantIdDescription: coreClient.CompositeMapper;
export declare const CanceledSubscriptionId: coreClient.CompositeMapper;
export declare const ErrorResponseBody: coreClient.CompositeMapper;
export declare const ErrorResponse: coreClient.CompositeMapper;
export declare const SubscriptionName: coreClient.CompositeMapper;
export declare const RenamedSubscriptionId: coreClient.CompositeMapper;
export declare const EnabledSubscriptionId: coreClient.CompositeMapper;
export declare const OperationListResult: coreClient.CompositeMapper;
export declare const Operation: coreClient.CompositeMapper;
export declare const OperationDisplay: coreClient.CompositeMapper;
export declare const PutAliasRequest: coreClient.CompositeMapper;
export declare const PutAliasRequestProperties: coreClient.CompositeMapper;
export declare const PutAliasRequestAdditionalProperties: coreClient.CompositeMapper;
export declare const SubscriptionAliasResponse: coreClient.CompositeMapper;
export declare const SubscriptionAliasResponseProperties: coreClient.CompositeMapper;
export declare const SystemData: coreClient.CompositeMapper;
export declare const SubscriptionAliasListResult: coreClient.CompositeMapper;
export declare const AcceptOwnershipRequest: coreClient.CompositeMapper;
export declare const AcceptOwnershipRequestProperties: coreClient.CompositeMapper;
export declare const AcceptOwnershipStatusResponse: coreClient.CompositeMapper;
export declare const PutTenantPolicyRequestProperties: coreClient.CompositeMapper;
export declare const GetTenantPolicyResponse: coreClient.CompositeMapper;
export declare const TenantPolicy: coreClient.CompositeMapper;
export declare const GetTenantPolicyListResponse: coreClient.CompositeMapper;
export declare const BillingAccountPoliciesResponse: coreClient.CompositeMapper;
export declare const BillingAccountPoliciesResponseProperties: coreClient.CompositeMapper;
export declare const ServiceTenantResponse: coreClient.CompositeMapper;
export declare const SubscriptionAcceptOwnershipHeaders: coreClient.CompositeMapper;
//# sourceMappingURL=mappers.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,eAmB3C,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,eAiDjC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eA+DrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,eA6B7C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAyB/C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eA0BzC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAsE5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAc/C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,eA0B1C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,eAmBtC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eAazC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAc9C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAc9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,UAAU,CAAC,eAyB5C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,eA0BlC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,CAAC,eA+BzC,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,UAAU,CAAC,eAcxC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eA4ClD,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,UAAU,CAAC,eAgC5D,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,eA0ClD,CAAC;AAEF,eAAO,MAAM,mCAAmC,EAAE,UAAU,CAAC,eAmF5D,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,eA2CnC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAAC,eA2BpD,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAAU,CAAC,eAc/C,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eA2BzD,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,UAAU,CAAC,eAsDtD,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,UAAU,CAAC,eA8BzD,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,CAAC,eA0ChD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,eAqCrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,UAAU,CAAC,eA2BpD,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,UAAU,CAAC,eA0CvD,CAAC;AAEF,eAAO,MAAM,wCAAwC,EAAE,UAAU,CAAC,eAyBjE,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAAU,CAAC,eAmB9C,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,UAAU,CAAC,eAmB3D,CAAC"}
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,15 @@
import { OperationParameter, OperationURLParameter, OperationQueryParameter } from "@azure/core-client";
export declare const accept: OperationParameter;
export declare const $host: OperationURLParameter;
export declare const subscriptionId: OperationURLParameter;
export declare const apiVersion: OperationQueryParameter;
export declare const nextLink: OperationURLParameter;
export declare const apiVersion1: OperationQueryParameter;
export declare const contentType: OperationParameter;
export declare const body: OperationParameter;
export declare const body1: OperationParameter;
export declare const body2: OperationParameter;
export declare const aliasName: OperationURLParameter;
export declare const body3: OperationParameter;
export declare const billingAccountId: OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,oBAAoB,CAAC;AAQ5B,eAAO,MAAM,MAAM,EAAE,kBAUpB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,qBAUnB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,qBAS5B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,uBAUxB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,qBAUtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,uBAUzB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,kBAUzB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,kBAGlB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,qBASvB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,kBAGnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,qBAS9B,CAAC"}
+121
View File
@@ -0,0 +1,121 @@
/*
* 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 { SubscriptionName as SubscriptionNameMapper, AcceptOwnershipRequest as AcceptOwnershipRequestMapper, PutAliasRequest as PutAliasRequestMapper, PutTenantPolicyRequestProperties as PutTenantPolicyRequestPropertiesMapper } from "../models/mappers";
export const accept = {
parameterPath: "accept",
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Accept",
type: {
name: "String"
}
}
};
export const $host = {
parameterPath: "$host",
mapper: {
serializedName: "$host",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const subscriptionId = {
parameterPath: "subscriptionId",
mapper: {
serializedName: "subscriptionId",
required: true,
type: {
name: "String"
}
}
};
export const apiVersion = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2016-06-01",
isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
export const nextLink = {
parameterPath: "nextLink",
mapper: {
serializedName: "nextLink",
required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
export const apiVersion1 = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "2021-10-01",
isConstant: true,
serializedName: "api-version",
type: {
name: "String"
}
}
};
export const contentType = {
parameterPath: ["options", "contentType"],
mapper: {
defaultValue: "application/json",
isConstant: true,
serializedName: "Content-Type",
type: {
name: "String"
}
}
};
export const body = {
parameterPath: "body",
mapper: SubscriptionNameMapper
};
export const body1 = {
parameterPath: "body",
mapper: AcceptOwnershipRequestMapper
};
export const body2 = {
parameterPath: "body",
mapper: PutAliasRequestMapper
};
export const aliasName = {
parameterPath: "aliasName",
mapper: {
serializedName: "aliasName",
required: true,
type: {
name: "String"
}
}
};
export const body3 = {
parameterPath: "body",
mapper: PutTenantPolicyRequestPropertiesMapper
};
export const billingAccountId = {
parameterPath: "billingAccountId",
mapper: {
serializedName: "billingAccountId",
required: true,
type: {
name: "String"
}
}
};
//# sourceMappingURL=parameters.js.map
@@ -0,0 +1 @@
{"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/models/parameters.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,53 @@
import { Alias } from "../operationsInterfaces";
import { SubscriptionClient } from "../subscriptionClient";
import { PollerLike, PollOperationState } from "@azure/core-lro";
import { PutAliasRequest, AliasCreateOptionalParams, AliasCreateResponse, AliasGetOptionalParams, AliasGetResponse, AliasDeleteOptionalParams, AliasListOptionalParams, AliasListResponse } from "../models";
/** Class containing Alias operations. */
export declare class AliasImpl implements Alias {
private readonly client;
/**
* Initialize a new instance of the class Alias class.
* @param client Reference to the service client
*/
constructor(client: SubscriptionClient);
/**
* Create Alias Subscription.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param body The parameters required to create a new subscription.
* @param options The options parameters.
*/
beginCreate(aliasName: string, body: PutAliasRequest, options?: AliasCreateOptionalParams): Promise<PollerLike<PollOperationState<AliasCreateResponse>, AliasCreateResponse>>;
/**
* Create Alias Subscription.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param body The parameters required to create a new subscription.
* @param options The options parameters.
*/
beginCreateAndWait(aliasName: string, body: PutAliasRequest, options?: AliasCreateOptionalParams): Promise<AliasCreateResponse>;
/**
* Get Alias Subscription.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param options The options parameters.
*/
get(aliasName: string, options?: AliasGetOptionalParams): Promise<AliasGetResponse>;
/**
* Delete Alias.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param options The options parameters.
*/
delete(aliasName: string, options?: AliasDeleteOptionalParams): Promise<void>;
/**
* List Alias Subscription.
* @param options The options parameters.
*/
list(options?: AliasListOptionalParams): Promise<AliasListResponse>;
}
//# sourceMappingURL=alias.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../../src/operations/alias.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAa,MAAM,iBAAiB,CAAC;AAE5E,OAAO,EACL,eAAe,EACf,yBAAyB,EACzB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAEnB,yCAAyC;AACzC,qBAAa,SAAU,YAAW,KAAK;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;;;;OAOG;IACG,WAAW,CACf,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CACR,UAAU,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC,CACzE;IAqDD;;;;;;;OAOG;IACG,kBAAkB,CACtB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,EACrB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,mBAAmB,CAAC;IAK/B;;;;;;OAMG;IACH,GAAG,CACD,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,sBAAsB,GAC/B,OAAO,CAAC,gBAAgB,CAAC;IAO5B;;;;;;OAMG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,yBAAyB,GAClC,OAAO,CAAC,IAAI,CAAC;IAOhB;;;OAGG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAGpE"}
+182
View File
@@ -0,0 +1,182 @@
/*
* 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";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
/** Class containing Alias operations. */
export class AliasImpl {
/**
* Initialize a new instance of the class Alias class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Create Alias Subscription.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param body The parameters required to create a new subscription.
* @param options The options parameters.
*/
beginCreate(aliasName, body, options) {
return __awaiter(this, void 0, void 0, function* () {
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
return this.client.sendOperationRequest(args, spec);
});
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
var _a;
let currentRawResponse = undefined;
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
const callback = (rawResponse, flatResponse) => {
currentRawResponse = rawResponse;
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
};
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
const flatResponse = yield directSendOperation(updatedArgs, spec);
return {
flatResponse,
rawResponse: {
statusCode: currentRawResponse.status,
body: currentRawResponse.parsedBody,
headers: currentRawResponse.headers.toJSON()
}
};
});
const lro = new LroImpl(sendOperation, { aliasName, body, options }, createOperationSpec);
const poller = new LroEngine(lro, {
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
});
yield poller.poll();
return poller;
});
}
/**
* Create Alias Subscription.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param body The parameters required to create a new subscription.
* @param options The options parameters.
*/
beginCreateAndWait(aliasName, body, options) {
return __awaiter(this, void 0, void 0, function* () {
const poller = yield this.beginCreate(aliasName, body, options);
return poller.pollUntilDone();
});
}
/**
* Get Alias Subscription.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param options The options parameters.
*/
get(aliasName, options) {
return this.client.sendOperationRequest({ aliasName, options }, getOperationSpec);
}
/**
* Delete Alias.
* @param aliasName AliasName is the name for the subscription creation request. Note that this is not
* the same as subscription name and this doesnt have any other lifecycle need beyond the request for
* subscription creation.
* @param options The options parameters.
*/
delete(aliasName, options) {
return this.client.sendOperationRequest({ aliasName, options }, deleteOperationSpec);
}
/**
* List Alias Subscription.
* @param options The options parameters.
*/
list(options) {
return this.client.sendOperationRequest({ options }, listOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const createOperationSpec = {
path: "/providers/Microsoft.Subscription/aliases/{aliasName}",
httpMethod: "PUT",
responses: {
200: {
bodyMapper: Mappers.SubscriptionAliasResponse
},
201: {
bodyMapper: Mappers.SubscriptionAliasResponse
},
202: {
bodyMapper: Mappers.SubscriptionAliasResponse
},
204: {
bodyMapper: Mappers.SubscriptionAliasResponse
},
default: {
bodyMapper: Mappers.ErrorResponseBody
}
},
requestBody: Parameters.body2,
queryParameters: [Parameters.apiVersion1],
urlParameters: [Parameters.$host, Parameters.aliasName],
headerParameters: [Parameters.accept, Parameters.contentType],
mediaType: "json",
serializer
};
const getOperationSpec = {
path: "/providers/Microsoft.Subscription/aliases/{aliasName}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.SubscriptionAliasResponse
},
default: {
bodyMapper: Mappers.ErrorResponseBody
}
},
queryParameters: [Parameters.apiVersion1],
urlParameters: [Parameters.$host, Parameters.aliasName],
headerParameters: [Parameters.accept],
serializer
};
const deleteOperationSpec = {
path: "/providers/Microsoft.Subscription/aliases/{aliasName}",
httpMethod: "DELETE",
responses: {
200: {},
204: {},
default: {
bodyMapper: Mappers.ErrorResponseBody
}
},
queryParameters: [Parameters.apiVersion1],
urlParameters: [Parameters.$host, Parameters.aliasName],
headerParameters: [Parameters.accept],
serializer
};
const listOperationSpec = {
path: "/providers/Microsoft.Subscription/aliases",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.SubscriptionAliasListResult
},
default: {
bodyMapper: Mappers.ErrorResponseBody
}
},
queryParameters: [Parameters.apiVersion1],
urlParameters: [Parameters.$host],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=alias.js.map
@@ -0,0 +1 @@
{"version":3,"file":"alias.js","sourceRoot":"","sources":["../../../src/operations/alias.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,19 @@
import { BillingAccount } from "../operationsInterfaces";
import { SubscriptionClient } from "../subscriptionClient";
import { BillingAccountGetPolicyOptionalParams, BillingAccountGetPolicyResponse } from "../models";
/** Class containing BillingAccount operations. */
export declare class BillingAccountImpl implements BillingAccount {
private readonly client;
/**
* Initialize a new instance of the class BillingAccount class.
* @param client Reference to the service client
*/
constructor(client: SubscriptionClient);
/**
* Get Billing Account Policy.
* @param billingAccountId Billing Account Id.
* @param options The options parameters.
*/
getPolicy(billingAccountId: string, options?: BillingAccountGetPolicyOptionalParams): Promise<BillingAccountGetPolicyResponse>;
}
//# sourceMappingURL=billingAccount.d.ts.map
@@ -0,0 +1 @@
{"version":3,"file":"billingAccount.d.ts","sourceRoot":"","sources":["../../../src/operations/billingAccount.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAIzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,qCAAqC,EACrC,+BAA+B,EAChC,MAAM,WAAW,CAAC;AAEnB,kDAAkD;AAClD,qBAAa,kBAAmB,YAAW,cAAc;IACvD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;OAIG;IACH,SAAS,CACP,gBAAgB,EAAE,MAAM,EACxB,OAAO,CAAC,EAAE,qCAAqC,GAC9C,OAAO,CAAC,+BAA+B,CAAC;CAM5C"}
@@ -0,0 +1,47 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
/** Class containing BillingAccount operations. */
export class BillingAccountImpl {
/**
* Initialize a new instance of the class BillingAccount class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Get Billing Account Policy.
* @param billingAccountId Billing Account Id.
* @param options The options parameters.
*/
getPolicy(billingAccountId, options) {
return this.client.sendOperationRequest({ billingAccountId, options }, getPolicyOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getPolicyOperationSpec = {
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/providers/Microsoft.Subscription/policies/default",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.BillingAccountPoliciesResponse
},
default: {
bodyMapper: Mappers.ErrorResponseBody
}
},
queryParameters: [Parameters.apiVersion1],
urlParameters: [Parameters.$host, Parameters.billingAccountId],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=billingAccount.js.map
@@ -0,0 +1 @@
{"version":3,"file":"billingAccount.js","sourceRoot":"","sources":["../../../src/operations/billingAccount.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAOnD,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,SAAS,CACP,gBAAwB,EACxB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAC7B,sBAAsB,CACvB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,mHAAmH;IACrH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,gBAAgB,CAAC;IAC9D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}

Some files were not shown because too many files have changed in this diff Show More