@azure/arm-costmanagement 1.0.0-alpha.20250718.1 → 1.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/costManagementClient.js +28 -5
- package/dist/browser/costManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +256 -117
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/alerts.js +1 -0
- package/dist/browser/operations/alerts.js.map +1 -1
- package/dist/browser/operations/benefitRecommendations.js +23 -40
- package/dist/browser/operations/benefitRecommendations.js.map +1 -1
- package/dist/browser/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/browser/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/browser/operations/dimensions.js +19 -53
- package/dist/browser/operations/dimensions.js.map +1 -1
- package/dist/browser/operations/exports.js +1 -0
- package/dist/browser/operations/exports.js.map +1 -1
- package/dist/browser/operations/forecast.js +1 -0
- package/dist/browser/operations/forecast.js.map +1 -1
- package/dist/browser/operations/generateCostDetailsReport.js +23 -12
- package/dist/browser/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReport.js +12 -6
- package/dist/browser/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/browser/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/browser/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/browser/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/browser/operations/generateReservationDetailsReport.js +23 -12
- package/dist/browser/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/priceSheet.js +23 -12
- package/dist/browser/operations/priceSheet.js.map +1 -1
- package/dist/browser/operations/query.js +1 -0
- package/dist/browser/operations/query.js.map +1 -1
- package/dist/browser/operations/scheduledActions.js +45 -79
- package/dist/browser/operations/scheduledActions.js.map +1 -1
- package/dist/browser/operations/views.js +45 -79
- package/dist/browser/operations/views.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/costManagementClient.js +28 -5
- package/dist/commonjs/costManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +256 -117
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/alerts.js +1 -0
- package/dist/commonjs/operations/alerts.js.map +1 -1
- package/dist/commonjs/operations/benefitRecommendations.js +23 -39
- package/dist/commonjs/operations/benefitRecommendations.js.map +1 -1
- package/dist/commonjs/operations/benefitUtilizationSummaries.js +89 -156
- package/dist/commonjs/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/commonjs/operations/dimensions.js +19 -52
- package/dist/commonjs/operations/dimensions.js.map +1 -1
- package/dist/commonjs/operations/exports.js +1 -0
- package/dist/commonjs/operations/exports.js.map +1 -1
- package/dist/commonjs/operations/forecast.js +1 -0
- package/dist/commonjs/operations/forecast.js.map +1 -1
- package/dist/commonjs/operations/generateCostDetailsReport.js +23 -12
- package/dist/commonjs/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReport.js +12 -6
- package/dist/commonjs/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/commonjs/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/commonjs/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/commonjs/operations/generateReservationDetailsReport.js +23 -12
- package/dist/commonjs/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/priceSheet.js +23 -12
- package/dist/commonjs/operations/priceSheet.js.map +1 -1
- package/dist/commonjs/operations/query.js +1 -0
- package/dist/commonjs/operations/query.js.map +1 -1
- package/dist/commonjs/operations/scheduledActions.js +45 -78
- package/dist/commonjs/operations/scheduledActions.js.map +1 -1
- package/dist/commonjs/operations/views.js +45 -78
- package/dist/commonjs/operations/views.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/costManagementClient.js +28 -5
- package/dist/esm/costManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +256 -117
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/alerts.js +1 -0
- package/dist/esm/operations/alerts.js.map +1 -1
- package/dist/esm/operations/benefitRecommendations.js +23 -40
- package/dist/esm/operations/benefitRecommendations.js.map +1 -1
- package/dist/esm/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/esm/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/esm/operations/dimensions.js +19 -53
- package/dist/esm/operations/dimensions.js.map +1 -1
- package/dist/esm/operations/exports.js +1 -0
- package/dist/esm/operations/exports.js.map +1 -1
- package/dist/esm/operations/forecast.js +1 -0
- package/dist/esm/operations/forecast.js.map +1 -1
- package/dist/esm/operations/generateCostDetailsReport.js +23 -12
- package/dist/esm/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReport.js +12 -6
- package/dist/esm/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/esm/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/esm/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/esm/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/esm/operations/generateReservationDetailsReport.js +23 -12
- package/dist/esm/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/priceSheet.js +23 -12
- package/dist/esm/operations/priceSheet.js.map +1 -1
- package/dist/esm/operations/query.js +1 -0
- package/dist/esm/operations/query.js.map +1 -1
- package/dist/esm/operations/scheduledActions.js +45 -79
- package/dist/esm/operations/scheduledActions.js.map +1 -1
- package/dist/esm/operations/views.js +45 -79
- package/dist/esm/operations/views.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/costManagementClient.js +28 -5
- package/dist/react-native/costManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +256 -117
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/alerts.js +1 -0
- package/dist/react-native/operations/alerts.js.map +1 -1
- package/dist/react-native/operations/benefitRecommendations.js +23 -40
- package/dist/react-native/operations/benefitRecommendations.js.map +1 -1
- package/dist/react-native/operations/benefitUtilizationSummaries.js +89 -157
- package/dist/react-native/operations/benefitUtilizationSummaries.js.map +1 -1
- package/dist/react-native/operations/dimensions.js +19 -53
- package/dist/react-native/operations/dimensions.js.map +1 -1
- package/dist/react-native/operations/exports.js +1 -0
- package/dist/react-native/operations/exports.js.map +1 -1
- package/dist/react-native/operations/forecast.js +1 -0
- package/dist/react-native/operations/forecast.js.map +1 -1
- package/dist/react-native/operations/generateCostDetailsReport.js +23 -12
- package/dist/react-native/operations/generateCostDetailsReport.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReport.js +12 -6
- package/dist/react-native/operations/generateDetailedCostReport.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReportOperationResults.js +12 -6
- package/dist/react-native/operations/generateDetailedCostReportOperationResults.js.map +1 -1
- package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js +1 -0
- package/dist/react-native/operations/generateDetailedCostReportOperationStatus.js.map +1 -1
- package/dist/react-native/operations/generateReservationDetailsReport.js +23 -12
- package/dist/react-native/operations/generateReservationDetailsReport.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/priceSheet.js +23 -12
- package/dist/react-native/operations/priceSheet.js.map +1 -1
- package/dist/react-native/operations/query.js +1 -0
- package/dist/react-native/operations/query.js.map +1 -1
- package/dist/react-native/operations/scheduledActions.js +45 -79
- package/dist/react-native/operations/scheduledActions.js.map +1 -1
- package/dist/react-native/operations/views.js +45 -79
- package/dist/react-native/operations/views.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-costmanagement-node.api.md +2064 -2064
|
@@ -12,6 +12,7 @@ import { createHttpPoller } from "@azure/core-lro";
|
|
|
12
12
|
import { createLroSpec } from "../lroImpl.js";
|
|
13
13
|
/** Class containing PriceSheet operations. */
|
|
14
14
|
export class PriceSheetImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class PriceSheet class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -32,14 +33,19 @@ export class PriceSheetImpl {
|
|
|
32
33
|
return this.client.sendOperationRequest(args, spec);
|
|
33
34
|
};
|
|
34
35
|
const sendOperationFn = async (args, spec) => {
|
|
35
|
-
var _a;
|
|
36
36
|
let currentRawResponse = undefined;
|
|
37
|
-
const providedCallback =
|
|
37
|
+
const providedCallback = args.options?.onResponse;
|
|
38
38
|
const callback = (rawResponse, flatResponse) => {
|
|
39
39
|
currentRawResponse = rawResponse;
|
|
40
|
-
providedCallback
|
|
40
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
41
|
+
};
|
|
42
|
+
const updatedArgs = {
|
|
43
|
+
...args,
|
|
44
|
+
options: {
|
|
45
|
+
...args.options,
|
|
46
|
+
onResponse: callback
|
|
47
|
+
}
|
|
41
48
|
};
|
|
42
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
43
49
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
44
50
|
return {
|
|
45
51
|
flatResponse,
|
|
@@ -56,8 +62,8 @@ export class PriceSheetImpl {
|
|
|
56
62
|
spec: downloadOperationSpec
|
|
57
63
|
});
|
|
58
64
|
const poller = await createHttpPoller(lro, {
|
|
59
|
-
restoreFrom: options
|
|
60
|
-
intervalInMs: options
|
|
65
|
+
restoreFrom: options?.resumeFrom,
|
|
66
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
61
67
|
resourceLocationConfig: "location"
|
|
62
68
|
});
|
|
63
69
|
await poller.poll();
|
|
@@ -90,14 +96,19 @@ export class PriceSheetImpl {
|
|
|
90
96
|
return this.client.sendOperationRequest(args, spec);
|
|
91
97
|
};
|
|
92
98
|
const sendOperationFn = async (args, spec) => {
|
|
93
|
-
var _a;
|
|
94
99
|
let currentRawResponse = undefined;
|
|
95
|
-
const providedCallback =
|
|
100
|
+
const providedCallback = args.options?.onResponse;
|
|
96
101
|
const callback = (rawResponse, flatResponse) => {
|
|
97
102
|
currentRawResponse = rawResponse;
|
|
98
|
-
providedCallback
|
|
103
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
104
|
+
};
|
|
105
|
+
const updatedArgs = {
|
|
106
|
+
...args,
|
|
107
|
+
options: {
|
|
108
|
+
...args.options,
|
|
109
|
+
onResponse: callback
|
|
110
|
+
}
|
|
99
111
|
};
|
|
100
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
101
112
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
102
113
|
return {
|
|
103
114
|
flatResponse,
|
|
@@ -114,8 +125,8 @@ export class PriceSheetImpl {
|
|
|
114
125
|
spec: downloadByBillingProfileOperationSpec
|
|
115
126
|
});
|
|
116
127
|
const poller = await createHttpPoller(lro, {
|
|
117
|
-
restoreFrom: options
|
|
118
|
-
intervalInMs: options
|
|
128
|
+
restoreFrom: options?.resumeFrom,
|
|
129
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
119
130
|
resourceLocationConfig: "location"
|
|
120
131
|
});
|
|
121
132
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"priceSheet.js","sourceRoot":"","sources":["../../../src/operations/priceSheet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ9C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,aAAa,CACjB,kBAA0B,EAC1B,kBAA0B,EAC1B,WAAmB,EACnB,OAA0C;QAO1C,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACO,EAAE;YACvC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;YACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;YAC1B,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC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AU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EACF,wKAAwK;IAC1K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PriceSheet } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PriceSheetDownloadOptionalParams,\n PriceSheetDownloadResponse,\n PriceSheetDownloadByBillingProfileOptionalParams,\n PriceSheetDownloadByBillingProfileResponse\n} from \"../models/index.js\";\n\n/** Class containing PriceSheet operations. */\nexport class PriceSheetImpl implements PriceSheet {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class PriceSheet class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a URL to download the pricesheet for an invoice. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownload(\n billingAccountName: string,\n billingProfileName: string,\n invoiceName: string,\n options?: PriceSheetDownloadOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PriceSheetDownloadResponse>,\n PriceSheetDownloadResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PriceSheetDownloadResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, invoiceName, options },\n spec: downloadOperationSpec\n });\n const poller = await createHttpPoller<\n PriceSheetDownloadResponse,\n OperationState<PriceSheetDownloadResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the pricesheet for an invoice. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadAndWait(\n billingAccountName: string,\n billingProfileName: string,\n invoiceName: string,\n options?: PriceSheetDownloadOptionalParams\n ): Promise<PriceSheetDownloadResponse> {\n const poller = await this.beginDownload(\n billingAccountName,\n billingProfileName,\n invoiceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download the current month's pricesheet for a billing profile. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview\n * version will be updated from a single csv file to a Zip file containing multiple csv files, each\n * with max 200k records.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n async beginDownloadByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: PriceSheetDownloadByBillingProfileOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PriceSheetDownloadByBillingProfileResponse>,\n PriceSheetDownloadByBillingProfileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PriceSheetDownloadByBillingProfileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, options },\n spec: downloadByBillingProfileOperationSpec\n });\n const poller = await createHttpPoller<\n PriceSheetDownloadByBillingProfileResponse,\n OperationState<PriceSheetDownloadByBillingProfileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the current month's pricesheet for a billing profile. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview\n * version will be updated from a single csv file to a Zip file containing multiple csv files, each\n * with max 200k records.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n async beginDownloadByBillingProfileAndWait(\n billingAccountName: string,\n billingProfileName: string,\n options?: PriceSheetDownloadByBillingProfileOptionalParams\n ): Promise<PriceSheetDownloadByBillingProfileResponse> {\n const poller = await this.beginDownloadByBillingProfile(\n billingAccountName,\n billingProfileName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst downloadOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DownloadURL\n },\n 201: {\n bodyMapper: Mappers.DownloadURL\n },\n 202: {\n bodyMapper: Mappers.DownloadURL\n },\n 204: {\n bodyMapper: Mappers.DownloadURL\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst downloadByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DownloadURL\n },\n 201: {\n bodyMapper: Mappers.DownloadURL\n },\n 202: {\n bodyMapper: Mappers.DownloadURL\n },\n 204: {\n bodyMapper: Mappers.DownloadURL\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"priceSheet.js","sourceRoot":"","sources":["../../../src/operations/priceSheet.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQ9C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACv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,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EACF,wKAAwK;IAC1K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PriceSheet } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n PriceSheetDownloadOptionalParams,\n PriceSheetDownloadResponse,\n PriceSheetDownloadByBillingProfileOptionalParams,\n PriceSheetDownloadByBillingProfileResponse\n} from \"../models/index.js\";\n\n/** Class containing PriceSheet operations. */\nexport class PriceSheetImpl implements PriceSheet {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class PriceSheet class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a URL to download the pricesheet for an invoice. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownload(\n billingAccountName: string,\n billingProfileName: string,\n invoiceName: string,\n options?: PriceSheetDownloadOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PriceSheetDownloadResponse>,\n PriceSheetDownloadResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PriceSheetDownloadResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, invoiceName, options },\n spec: downloadOperationSpec\n });\n const poller = await createHttpPoller<\n PriceSheetDownloadResponse,\n OperationState<PriceSheetDownloadResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the pricesheet for an invoice. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadAndWait(\n billingAccountName: string,\n billingProfileName: string,\n invoiceName: string,\n options?: PriceSheetDownloadOptionalParams\n ): Promise<PriceSheetDownloadResponse> {\n const poller = await this.beginDownload(\n billingAccountName,\n billingProfileName,\n invoiceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download the current month's pricesheet for a billing profile. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview\n * version will be updated from a single csv file to a Zip file containing multiple csv files, each\n * with max 200k records.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n async beginDownloadByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: PriceSheetDownloadByBillingProfileOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<PriceSheetDownloadByBillingProfileResponse>,\n PriceSheetDownloadByBillingProfileResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PriceSheetDownloadByBillingProfileResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, billingProfileName, options },\n spec: downloadByBillingProfileOperationSpec\n });\n const poller = await createHttpPoller<\n PriceSheetDownloadByBillingProfileResponse,\n OperationState<PriceSheetDownloadByBillingProfileResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the current month's pricesheet for a billing profile. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.Due to Azure product growth, the Azure price sheet download experience in this preview\n * version will be updated from a single csv file to a Zip file containing multiple csv files, each\n * with max 200k records.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n async beginDownloadByBillingProfileAndWait(\n billingAccountName: string,\n billingProfileName: string,\n options?: PriceSheetDownloadByBillingProfileOptionalParams\n ): Promise<PriceSheetDownloadByBillingProfileResponse> {\n const poller = await this.beginDownloadByBillingProfile(\n billingAccountName,\n billingProfileName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst downloadOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices/{invoiceName}/providers/Microsoft.CostManagement/pricesheets/default/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DownloadURL\n },\n 201: {\n bodyMapper: Mappers.DownloadURL\n },\n 202: {\n bodyMapper: Mappers.DownloadURL\n },\n 204: {\n bodyMapper: Mappers.DownloadURL\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst downloadByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/providers/Microsoft.CostManagement/pricesheets/default/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DownloadURL\n },\n 201: {\n bodyMapper: Mappers.DownloadURL\n },\n 202: {\n bodyMapper: Mappers.DownloadURL\n },\n 204: {\n bodyMapper: Mappers.DownloadURL\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing Query operations. */
|
|
12
12
|
export class QueryImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class Query class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/operations/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,yCAAyC;AACzC,MAAM,OAAO,SAAS;
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/operations/query.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,yCAAyC;AACzC,MAAM,OAAO,SAAS;IACH,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,KAAK,CACH,KAAa,EACb,UAA2B,EAC3B,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,EAC9B,kBAAkB,CACnB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,gCAAgC,CAC9B,yBAAoD,EACpD,uBAA+B,EAC/B,UAA2B,EAC3B,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,yBAAyB;YACzB,uBAAuB;YACvB,UAAU;YACV,OAAO;SACR,EACD,6CAA6C,CAC9C,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EAAE,mDAAmD;IACzD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC;IACpD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6CAA6C,GAA6B;IAC9E,IAAI,EACF,iGAAiG;IACnG,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,yBAAyB;QACpC,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Query } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n QueryDefinition,\n QueryUsageOptionalParams,\n QueryUsageResponse,\n ExternalCloudProviderType,\n QueryUsageByExternalCloudProviderTypeOptionalParams,\n QueryUsageByExternalCloudProviderTypeResponse\n} from \"../models/index.js\";\n\n/** Class containing Query operations. */\nexport class QueryImpl implements Query {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class Query class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * Query the usage data for scope defined.\n * @param scope The scope associated with query and export operations. This includes\n * '/subscriptions/{subscriptionId}/' for subscription scope,\n * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId}\n * for Management Group scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for billingProfile scope,\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}'\n * for invoiceSection scope, and\n * '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific\n * for partners.\n * @param parameters Parameters supplied to the CreateOrUpdate Query Config operation.\n * @param options The options parameters.\n */\n usage(\n scope: string,\n parameters: QueryDefinition,\n options?: QueryUsageOptionalParams\n ): Promise<QueryUsageResponse> {\n return this.client.sendOperationRequest(\n { scope, parameters, options },\n usageOperationSpec\n );\n }\n\n /**\n * Query the usage data for external cloud provider type defined.\n * @param externalCloudProviderType The external cloud provider type associated with dimension/query\n * operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts'\n * for consolidated account.\n * @param externalCloudProviderId This can be '{externalSubscriptionId}' for linked account or\n * '{externalBillingAccountId}' for consolidated account used with dimension/query operations.\n * @param parameters Parameters supplied to the CreateOrUpdate Query Config operation.\n * @param options The options parameters.\n */\n usageByExternalCloudProviderType(\n externalCloudProviderType: ExternalCloudProviderType,\n externalCloudProviderId: string,\n parameters: QueryDefinition,\n options?: QueryUsageByExternalCloudProviderTypeOptionalParams\n ): Promise<QueryUsageByExternalCloudProviderTypeResponse> {\n return this.client.sendOperationRequest(\n {\n externalCloudProviderType,\n externalCloudProviderId,\n parameters,\n options\n },\n usageByExternalCloudProviderTypeOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst usageOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/query\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryResult\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope1],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst usageByExternalCloudProviderTypeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.CostManagement/{externalCloudProviderType}/{externalCloudProviderId}/query\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.externalCloudProviderType,\n Parameters.externalCloudProviderId\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ScheduledActions operations. */
|
|
15
14
|
export class ScheduledActionsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ScheduledActions class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class ScheduledActionsImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listPagingPage(options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listPagingPage(options, settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
});
|
|
44
|
+
async *listPagingPage(options, settings) {
|
|
45
|
+
let result;
|
|
46
|
+
let continuationToken = settings?.continuationToken;
|
|
47
|
+
if (!continuationToken) {
|
|
48
|
+
result = await this._list(options);
|
|
49
|
+
let page = result.value || [];
|
|
50
|
+
continuationToken = result.nextLink;
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
53
|
+
}
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = await this._listNext(continuationToken, options);
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield page;
|
|
60
|
+
}
|
|
63
61
|
}
|
|
64
|
-
listPagingAll(options) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
69
|
-
_c = _f.value;
|
|
70
|
-
_d = false;
|
|
71
|
-
const page = _c;
|
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
76
|
-
finally {
|
|
77
|
-
try {
|
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
79
|
-
}
|
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
|
81
|
-
}
|
|
82
|
-
});
|
|
62
|
+
async *listPagingAll(options) {
|
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
|
64
|
+
yield* page;
|
|
65
|
+
}
|
|
83
66
|
}
|
|
84
67
|
/**
|
|
85
68
|
* List all shared scheduled actions within the given scope.
|
|
@@ -111,52 +94,35 @@ export class ScheduledActionsImpl {
|
|
|
111
94
|
return this;
|
|
112
95
|
},
|
|
113
96
|
byPage: (settings) => {
|
|
114
|
-
if (settings
|
|
97
|
+
if (settings?.maxPageSize) {
|
|
115
98
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
116
99
|
}
|
|
117
100
|
return this.listByScopePagingPage(scope, options, settings);
|
|
118
101
|
}
|
|
119
102
|
};
|
|
120
103
|
}
|
|
121
|
-
listByScopePagingPage(scope, options, settings) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
});
|
|
104
|
+
async *listByScopePagingPage(scope, options, settings) {
|
|
105
|
+
let result;
|
|
106
|
+
let continuationToken = settings?.continuationToken;
|
|
107
|
+
if (!continuationToken) {
|
|
108
|
+
result = await this._listByScope(scope, options);
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
continuationToken = result.nextLink;
|
|
111
|
+
setContinuationToken(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
114
|
+
while (continuationToken) {
|
|
115
|
+
result = await this._listByScopeNext(scope, continuationToken, options);
|
|
116
|
+
continuationToken = result.nextLink;
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
setContinuationToken(page, continuationToken);
|
|
119
|
+
yield page;
|
|
120
|
+
}
|
|
140
121
|
}
|
|
141
|
-
listByScopePagingAll(scope, options) {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
for (var _d = true, _e = __asyncValues(this.listByScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
146
|
-
_c = _f.value;
|
|
147
|
-
_d = false;
|
|
148
|
-
const page = _c;
|
|
149
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
153
|
-
finally {
|
|
154
|
-
try {
|
|
155
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
156
|
-
}
|
|
157
|
-
finally { if (e_2) throw e_2.error; }
|
|
158
|
-
}
|
|
159
|
-
});
|
|
122
|
+
async *listByScopePagingAll(scope, options) {
|
|
123
|
+
for await (const page of this.listByScopePagingPage(scope, options)) {
|
|
124
|
+
yield* page;
|
|
125
|
+
}
|
|
160
126
|
}
|
|
161
127
|
/**
|
|
162
128
|
* List all private scheduled actions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduledActions.js","sourceRoot":"","sources":["../../../src/operations/scheduledActions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AA+BtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAA4C,EAC5C,Q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AC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ScheduledActions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n ScheduledAction,\n ScheduledActionsListNextOptionalParams,\n ScheduledActionsListOptionalParams,\n ScheduledActionsListResponse,\n ScheduledActionsListByScopeNextOptionalParams,\n ScheduledActionsListByScopeOptionalParams,\n ScheduledActionsListByScopeResponse,\n ScheduledActionsCreateOrUpdateOptionalParams,\n ScheduledActionsCreateOrUpdateResponse,\n ScheduledActionsGetOptionalParams,\n ScheduledActionsGetResponse,\n ScheduledActionsDeleteOptionalParams,\n ScheduledActionsCreateOrUpdateByScopeOptionalParams,\n ScheduledActionsCreateOrUpdateByScopeResponse,\n ScheduledActionsGetByScopeOptionalParams,\n ScheduledActionsGetByScopeResponse,\n ScheduledActionsDeleteByScopeOptionalParams,\n ScheduledActionsRunOptionalParams,\n ScheduledActionsRunByScopeOptionalParams,\n CheckNameAvailabilityRequest,\n ScheduledActionsCheckNameAvailabilityOptionalParams,\n ScheduledActionsCheckNameAvailabilityResponse,\n ScheduledActionsCheckNameAvailabilityByScopeOptionalParams,\n ScheduledActionsCheckNameAvailabilityByScopeResponse,\n ScheduledActionsListNextResponse,\n ScheduledActionsListByScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ScheduledActions operations. */\nexport class ScheduledActionsImpl implements ScheduledActions {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class ScheduledActions class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * List all private scheduled actions.\n * @param options The options parameters.\n */\n public list(\n options?: ScheduledActionsListOptionalParams\n ): PagedAsyncIterableIterator<ScheduledAction> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ScheduledActionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ScheduledAction[]> {\n let result: ScheduledActionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ScheduledActionsListOptionalParams\n ): AsyncIterableIterator<ScheduledAction> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all shared scheduled actions within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param options The options parameters.\n */\n public listByScope(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams\n ): PagedAsyncIterableIterator<ScheduledAction> {\n const iter = this.listByScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listByScopePagingPage(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ScheduledAction[]> {\n let result: ScheduledActionsListByScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByScopePagingAll(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams\n ): AsyncIterableIterator<ScheduledAction> {\n for await (const page of this.listByScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * List all private scheduled actions.\n * @param options The options parameters.\n */\n private _list(\n options?: ScheduledActionsListOptionalParams\n ): Promise<ScheduledActionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * List all shared scheduled actions within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param options The options parameters.\n */\n private _listByScope(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams\n ): Promise<ScheduledActionsListByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listByScopeOperationSpec\n );\n }\n\n /**\n * Create or update a private scheduled action.\n * @param name Scheduled action name.\n * @param scheduledAction Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n createOrUpdate(\n name: string,\n scheduledAction: ScheduledAction,\n options?: ScheduledActionsCreateOrUpdateOptionalParams\n ): Promise<ScheduledActionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { name, scheduledAction, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get the private scheduled action by name.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n get(\n name: string,\n options?: ScheduledActionsGetOptionalParams\n ): Promise<ScheduledActionsGetResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a private scheduled action.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n delete(\n name: string,\n options?: ScheduledActionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update a shared scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param scheduledAction Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n createOrUpdateByScope(\n scope: string,\n name: string,\n scheduledAction: ScheduledAction,\n options?: ScheduledActionsCreateOrUpdateByScopeOptionalParams\n ): Promise<ScheduledActionsCreateOrUpdateByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, name, scheduledAction, options },\n createOrUpdateByScopeOperationSpec\n );\n }\n\n /**\n * Get the shared scheduled action from the given scope by name.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n name: string,\n options?: ScheduledActionsGetByScopeOptionalParams\n ): Promise<ScheduledActionsGetByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, name, options },\n getByScopeOperationSpec\n );\n }\n\n /**\n * Delete a scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n deleteByScope(\n scope: string,\n name: string,\n options?: ScheduledActionsDeleteByScopeOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, name, options },\n deleteByScopeOperationSpec\n );\n }\n\n /**\n * Processes a private scheduled action.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n run(\n name: string,\n options?: ScheduledActionsRunOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, options },\n runOperationSpec\n );\n }\n\n /**\n * Runs a shared scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n runByScope(\n scope: string,\n name: string,\n options?: ScheduledActionsRunByScopeOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, name, options },\n runByScopeOperationSpec\n );\n }\n\n /**\n * Checks availability and correctness of the name for a scheduled action.\n * @param checkNameAvailabilityRequest Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: ScheduledActionsCheckNameAvailabilityOptionalParams\n ): Promise<ScheduledActionsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { checkNameAvailabilityRequest, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Checks availability and correctness of the name for a scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param checkNameAvailabilityRequest Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n checkNameAvailabilityByScope(\n scope: string,\n checkNameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: ScheduledActionsCheckNameAvailabilityByScopeOptionalParams\n ): Promise<ScheduledActionsCheckNameAvailabilityByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, checkNameAvailabilityRequest, options },\n checkNameAvailabilityByScopeOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ScheduledActionsListNextOptionalParams\n ): Promise<ScheduledActionsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByScopeNext\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param nextLink The nextLink from the previous successful call to the ListByScope method.\n * @param options The options parameters.\n */\n private _listByScopeNext(\n scope: string,\n nextLink: string,\n options?: ScheduledActionsListByScopeNextOptionalParams\n ): Promise<ScheduledActionsListByScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listByScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n 201: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.scheduledAction,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n 201: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.scheduledAction,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst getByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst runOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}/execute\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst runByScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.checkNameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst checkNameAvailabilityByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.checkNameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"scheduledActions.js","sourceRoot":"","sources":["../../../src/operations/scheduledActions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB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*\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ScheduledActions } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { CostManagementClient } from \"../costManagementClient.js\";\nimport {\n ScheduledAction,\n ScheduledActionsListNextOptionalParams,\n ScheduledActionsListOptionalParams,\n ScheduledActionsListResponse,\n ScheduledActionsListByScopeNextOptionalParams,\n ScheduledActionsListByScopeOptionalParams,\n ScheduledActionsListByScopeResponse,\n ScheduledActionsCreateOrUpdateOptionalParams,\n ScheduledActionsCreateOrUpdateResponse,\n ScheduledActionsGetOptionalParams,\n ScheduledActionsGetResponse,\n ScheduledActionsDeleteOptionalParams,\n ScheduledActionsCreateOrUpdateByScopeOptionalParams,\n ScheduledActionsCreateOrUpdateByScopeResponse,\n ScheduledActionsGetByScopeOptionalParams,\n ScheduledActionsGetByScopeResponse,\n ScheduledActionsDeleteByScopeOptionalParams,\n ScheduledActionsRunOptionalParams,\n ScheduledActionsRunByScopeOptionalParams,\n CheckNameAvailabilityRequest,\n ScheduledActionsCheckNameAvailabilityOptionalParams,\n ScheduledActionsCheckNameAvailabilityResponse,\n ScheduledActionsCheckNameAvailabilityByScopeOptionalParams,\n ScheduledActionsCheckNameAvailabilityByScopeResponse,\n ScheduledActionsListNextResponse,\n ScheduledActionsListByScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ScheduledActions operations. */\nexport class ScheduledActionsImpl implements ScheduledActions {\n private readonly client: CostManagementClient;\n\n /**\n * Initialize a new instance of the class ScheduledActions class.\n * @param client Reference to the service client\n */\n constructor(client: CostManagementClient) {\n this.client = client;\n }\n\n /**\n * List all private scheduled actions.\n * @param options The options parameters.\n */\n public list(\n options?: ScheduledActionsListOptionalParams\n ): PagedAsyncIterableIterator<ScheduledAction> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: ScheduledActionsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ScheduledAction[]> {\n let result: ScheduledActionsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: ScheduledActionsListOptionalParams\n ): AsyncIterableIterator<ScheduledAction> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List all shared scheduled actions within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param options The options parameters.\n */\n public listByScope(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams\n ): PagedAsyncIterableIterator<ScheduledAction> {\n const iter = this.listByScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listByScopePagingPage(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ScheduledAction[]> {\n let result: ScheduledActionsListByScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByScopePagingAll(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams\n ): AsyncIterableIterator<ScheduledAction> {\n for await (const page of this.listByScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * List all private scheduled actions.\n * @param options The options parameters.\n */\n private _list(\n options?: ScheduledActionsListOptionalParams\n ): Promise<ScheduledActionsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * List all shared scheduled actions within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param options The options parameters.\n */\n private _listByScope(\n scope: string,\n options?: ScheduledActionsListByScopeOptionalParams\n ): Promise<ScheduledActionsListByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listByScopeOperationSpec\n );\n }\n\n /**\n * Create or update a private scheduled action.\n * @param name Scheduled action name.\n * @param scheduledAction Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n createOrUpdate(\n name: string,\n scheduledAction: ScheduledAction,\n options?: ScheduledActionsCreateOrUpdateOptionalParams\n ): Promise<ScheduledActionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { name, scheduledAction, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get the private scheduled action by name.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n get(\n name: string,\n options?: ScheduledActionsGetOptionalParams\n ): Promise<ScheduledActionsGetResponse> {\n return this.client.sendOperationRequest(\n { name, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a private scheduled action.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n delete(\n name: string,\n options?: ScheduledActionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Create or update a shared scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param scheduledAction Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n createOrUpdateByScope(\n scope: string,\n name: string,\n scheduledAction: ScheduledAction,\n options?: ScheduledActionsCreateOrUpdateByScopeOptionalParams\n ): Promise<ScheduledActionsCreateOrUpdateByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, name, scheduledAction, options },\n createOrUpdateByScopeOperationSpec\n );\n }\n\n /**\n * Get the shared scheduled action from the given scope by name.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n name: string,\n options?: ScheduledActionsGetByScopeOptionalParams\n ): Promise<ScheduledActionsGetByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, name, options },\n getByScopeOperationSpec\n );\n }\n\n /**\n * Delete a scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n deleteByScope(\n scope: string,\n name: string,\n options?: ScheduledActionsDeleteByScopeOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, name, options },\n deleteByScopeOperationSpec\n );\n }\n\n /**\n * Processes a private scheduled action.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n run(\n name: string,\n options?: ScheduledActionsRunOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { name, options },\n runOperationSpec\n );\n }\n\n /**\n * Runs a shared scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param name Scheduled action name.\n * @param options The options parameters.\n */\n runByScope(\n scope: string,\n name: string,\n options?: ScheduledActionsRunByScopeOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, name, options },\n runByScopeOperationSpec\n );\n }\n\n /**\n * Checks availability and correctness of the name for a scheduled action.\n * @param checkNameAvailabilityRequest Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n checkNameAvailability(\n checkNameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: ScheduledActionsCheckNameAvailabilityOptionalParams\n ): Promise<ScheduledActionsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { checkNameAvailabilityRequest, options },\n checkNameAvailabilityOperationSpec\n );\n }\n\n /**\n * Checks availability and correctness of the name for a scheduled action within the given scope.\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param checkNameAvailabilityRequest Scheduled action to be created or updated.\n * @param options The options parameters.\n */\n checkNameAvailabilityByScope(\n scope: string,\n checkNameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: ScheduledActionsCheckNameAvailabilityByScopeOptionalParams\n ): Promise<ScheduledActionsCheckNameAvailabilityByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, checkNameAvailabilityRequest, options },\n checkNameAvailabilityByScopeOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: ScheduledActionsListNextOptionalParams\n ): Promise<ScheduledActionsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n\n /**\n * ListByScopeNext\n * @param scope The scope associated with scheduled action operations. This includes\n * 'subscriptions/{subscriptionId}' for subscription scope,\n * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for\n * Department scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}'\n * for EnrollmentAccount scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}'\n * for BillingProfile scope,\n * 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}'\n * for InvoiceSection scope,\n * 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for\n * External Billing Account scope and\n * 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External\n * Subscription scope. Note: Insight Alerts are only available on subscription scope.\n * @param nextLink The nextLink from the previous successful call to the ListByScope method.\n * @param options The options parameters.\n */\n private _listByScopeNext(\n scope: string,\n nextLink: string,\n options?: ScheduledActionsListByScopeNextOptionalParams\n ): Promise<ScheduledActionsListByScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listByScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n 201: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.scheduledAction,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n 201: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.scheduledAction,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch\n ],\n mediaType: \"json\",\n serializer\n};\nconst getByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledAction\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst runOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/scheduledActions/{name}/execute\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst runByScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.CostManagement/scheduledActions/{name}/execute\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope, Parameters.name],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.CostManagement/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.checkNameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst checkNameAvailabilityByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.CostManagement/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n requestBody: Parameters.checkNameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledActionListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponseWithNestedDetails\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|