@azure/arm-costmanagement 1.0.0-alpha.20250106.1 → 1.0.0-alpha.20250107.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/index.js +93 -93
- package/dist/index.js.map +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -47,14 +47,14 @@ function getContinuationToken(page) {
|
|
47
47
|
if (typeof page !== "object" || page === null) {
|
48
48
|
return undefined;
|
49
49
|
}
|
50
|
-
return (_a = pageMap.get(page)) === null || _a ===
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === undefined ? undefined : _a.continuationToken;
|
51
51
|
}
|
52
52
|
function setContinuationToken(page, continuationToken) {
|
53
53
|
var _a;
|
54
54
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
55
55
|
return;
|
56
56
|
}
|
57
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !==
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== undefined ? _a : {};
|
58
58
|
pageInfo.continuationToken = continuationToken;
|
59
59
|
pageMap.set(page, pageInfo);
|
60
60
|
}
|
@@ -4888,7 +4888,7 @@ class OperationsImpl {
|
|
4888
4888
|
return this;
|
4889
4889
|
},
|
4890
4890
|
byPage: (settings) => {
|
4891
|
-
if (settings === null || settings ===
|
4891
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
4892
4892
|
throw new Error("maxPageSize is not supported by this operation.");
|
4893
4893
|
}
|
4894
4894
|
return this.listPagingPage(options, settings);
|
@@ -4898,7 +4898,7 @@ class OperationsImpl {
|
|
4898
4898
|
listPagingPage(options, settings) {
|
4899
4899
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
4900
4900
|
let result;
|
4901
|
-
let continuationToken = settings === null || settings ===
|
4901
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
4902
4902
|
if (!continuationToken) {
|
4903
4903
|
result = yield tslib.__await(this._list(options));
|
4904
4904
|
let page = result.value || [];
|
@@ -5016,7 +5016,7 @@ class ViewsImpl {
|
|
5016
5016
|
return this;
|
5017
5017
|
},
|
5018
5018
|
byPage: (settings) => {
|
5019
|
-
if (settings === null || settings ===
|
5019
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5020
5020
|
throw new Error("maxPageSize is not supported by this operation.");
|
5021
5021
|
}
|
5022
5022
|
return this.listPagingPage(options, settings);
|
@@ -5026,7 +5026,7 @@ class ViewsImpl {
|
|
5026
5026
|
listPagingPage(options, settings) {
|
5027
5027
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
5028
5028
|
let result;
|
5029
|
-
let continuationToken = settings === null || settings ===
|
5029
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5030
5030
|
if (!continuationToken) {
|
5031
5031
|
result = yield tslib.__await(this._list(options));
|
5032
5032
|
let page = result.value || [];
|
@@ -5094,7 +5094,7 @@ class ViewsImpl {
|
|
5094
5094
|
return this;
|
5095
5095
|
},
|
5096
5096
|
byPage: (settings) => {
|
5097
|
-
if (settings === null || settings ===
|
5097
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5098
5098
|
throw new Error("maxPageSize is not supported by this operation.");
|
5099
5099
|
}
|
5100
5100
|
return this.listByScopePagingPage(scope, options, settings);
|
@@ -5104,7 +5104,7 @@ class ViewsImpl {
|
|
5104
5104
|
listByScopePagingPage(scope, options, settings) {
|
5105
5105
|
return tslib.__asyncGenerator(this, arguments, function* listByScopePagingPage_1() {
|
5106
5106
|
let result;
|
5107
|
-
let continuationToken = settings === null || settings ===
|
5107
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
5108
5108
|
if (!continuationToken) {
|
5109
5109
|
result = yield tslib.__await(this._listByScope(scope, options));
|
5110
5110
|
let page = result.value || [];
|
@@ -5799,7 +5799,7 @@ class DimensionsImpl {
|
|
5799
5799
|
return this;
|
5800
5800
|
},
|
5801
5801
|
byPage: (settings) => {
|
5802
|
-
if (settings === null || settings ===
|
5802
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5803
5803
|
throw new Error("maxPageSize is not supported by this operation.");
|
5804
5804
|
}
|
5805
5805
|
return this.listPagingPage(scope, options, settings);
|
@@ -5852,7 +5852,7 @@ class DimensionsImpl {
|
|
5852
5852
|
return this;
|
5853
5853
|
},
|
5854
5854
|
byPage: (settings) => {
|
5855
|
-
if (settings === null || settings ===
|
5855
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
5856
5856
|
throw new Error("maxPageSize is not supported by this operation.");
|
5857
5857
|
}
|
5858
5858
|
return this.byExternalCloudProviderTypePagingPage(externalCloudProviderType, externalCloudProviderId, options, settings);
|
@@ -6090,7 +6090,7 @@ function createLroSpec(inputs) {
|
|
6090
6090
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
6091
6091
|
sendPollRequest: (path, options) => {
|
6092
6092
|
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
6093
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options ===
|
6093
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === undefined ? undefined : options.abortSignal }));
|
6094
6094
|
}
|
6095
6095
|
};
|
6096
6096
|
}
|
@@ -6122,17 +6122,17 @@ class GenerateReservationDetailsReportImpl {
|
|
6122
6122
|
* @param options The options parameters.
|
6123
6123
|
*/
|
6124
6124
|
beginByBillingAccountId(billingAccountId, startDate, endDate, options) {
|
6125
|
-
return tslib.__awaiter(this,
|
6126
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6125
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6126
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6127
6127
|
return this.client.sendOperationRequest(args, spec);
|
6128
6128
|
});
|
6129
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6129
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6130
6130
|
var _a;
|
6131
6131
|
let currentRawResponse = undefined;
|
6132
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6132
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6133
6133
|
const callback = (rawResponse, flatResponse) => {
|
6134
6134
|
currentRawResponse = rawResponse;
|
6135
|
-
providedCallback === null || providedCallback ===
|
6135
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6136
6136
|
};
|
6137
6137
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6138
6138
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6151,8 +6151,8 @@ class GenerateReservationDetailsReportImpl {
|
|
6151
6151
|
spec: byBillingAccountIdOperationSpec
|
6152
6152
|
});
|
6153
6153
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6154
|
-
restoreFrom: options === null || options ===
|
6155
|
-
intervalInMs: options === null || options ===
|
6154
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6155
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6156
6156
|
resourceLocationConfig: "location"
|
6157
6157
|
});
|
6158
6158
|
yield poller.poll();
|
@@ -6170,7 +6170,7 @@ class GenerateReservationDetailsReportImpl {
|
|
6170
6170
|
* @param options The options parameters.
|
6171
6171
|
*/
|
6172
6172
|
beginByBillingAccountIdAndWait(billingAccountId, startDate, endDate, options) {
|
6173
|
-
return tslib.__awaiter(this,
|
6173
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6174
6174
|
const poller = yield this.beginByBillingAccountId(billingAccountId, startDate, endDate, options);
|
6175
6175
|
return poller.pollUntilDone();
|
6176
6176
|
});
|
@@ -6187,17 +6187,17 @@ class GenerateReservationDetailsReportImpl {
|
|
6187
6187
|
* @param options The options parameters.
|
6188
6188
|
*/
|
6189
6189
|
beginByBillingProfileId(billingAccountId, billingProfileId, startDate, endDate, options) {
|
6190
|
-
return tslib.__awaiter(this,
|
6191
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6190
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6191
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6192
6192
|
return this.client.sendOperationRequest(args, spec);
|
6193
6193
|
});
|
6194
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6194
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6195
6195
|
var _a;
|
6196
6196
|
let currentRawResponse = undefined;
|
6197
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6197
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6198
6198
|
const callback = (rawResponse, flatResponse) => {
|
6199
6199
|
currentRawResponse = rawResponse;
|
6200
|
-
providedCallback === null || providedCallback ===
|
6200
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6201
6201
|
};
|
6202
6202
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6203
6203
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6216,8 +6216,8 @@ class GenerateReservationDetailsReportImpl {
|
|
6216
6216
|
spec: byBillingProfileIdOperationSpec
|
6217
6217
|
});
|
6218
6218
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6219
|
-
restoreFrom: options === null || options ===
|
6220
|
-
intervalInMs: options === null || options ===
|
6219
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6220
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6221
6221
|
resourceLocationConfig: "location"
|
6222
6222
|
});
|
6223
6223
|
yield poller.poll();
|
@@ -6236,7 +6236,7 @@ class GenerateReservationDetailsReportImpl {
|
|
6236
6236
|
* @param options The options parameters.
|
6237
6237
|
*/
|
6238
6238
|
beginByBillingProfileIdAndWait(billingAccountId, billingProfileId, startDate, endDate, options) {
|
6239
|
-
return tslib.__awaiter(this,
|
6239
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6240
6240
|
const poller = yield this.beginByBillingProfileId(billingAccountId, billingProfileId, startDate, endDate, options);
|
6241
6241
|
return poller.pollUntilDone();
|
6242
6242
|
});
|
@@ -6599,17 +6599,17 @@ class GenerateCostDetailsReportImpl {
|
|
6599
6599
|
* @param options The options parameters.
|
6600
6600
|
*/
|
6601
6601
|
beginCreateOperation(scope, parameters, options) {
|
6602
|
-
return tslib.__awaiter(this,
|
6603
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6602
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6603
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6604
6604
|
return this.client.sendOperationRequest(args, spec);
|
6605
6605
|
});
|
6606
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6606
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6607
6607
|
var _a;
|
6608
6608
|
let currentRawResponse = undefined;
|
6609
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6609
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6610
6610
|
const callback = (rawResponse, flatResponse) => {
|
6611
6611
|
currentRawResponse = rawResponse;
|
6612
|
-
providedCallback === null || providedCallback ===
|
6612
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6613
6613
|
};
|
6614
6614
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6615
6615
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6628,8 +6628,8 @@ class GenerateCostDetailsReportImpl {
|
|
6628
6628
|
spec: createOperationOperationSpec$1
|
6629
6629
|
});
|
6630
6630
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6631
|
-
restoreFrom: options === null || options ===
|
6632
|
-
intervalInMs: options === null || options ===
|
6631
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6632
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6633
6633
|
resourceLocationConfig: "location"
|
6634
6634
|
});
|
6635
6635
|
yield poller.poll();
|
@@ -6655,7 +6655,7 @@ class GenerateCostDetailsReportImpl {
|
|
6655
6655
|
* @param options The options parameters.
|
6656
6656
|
*/
|
6657
6657
|
beginCreateOperationAndWait(scope, parameters, options) {
|
6658
|
-
return tslib.__awaiter(this,
|
6658
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6659
6659
|
const poller = yield this.beginCreateOperation(scope, parameters, options);
|
6660
6660
|
return poller.pollUntilDone();
|
6661
6661
|
});
|
@@ -6669,17 +6669,17 @@ class GenerateCostDetailsReportImpl {
|
|
6669
6669
|
* @param options The options parameters.
|
6670
6670
|
*/
|
6671
6671
|
beginGetOperationResults(scope, operationId, options) {
|
6672
|
-
return tslib.__awaiter(this,
|
6673
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6672
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6673
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6674
6674
|
return this.client.sendOperationRequest(args, spec);
|
6675
6675
|
});
|
6676
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6676
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6677
6677
|
var _a;
|
6678
6678
|
let currentRawResponse = undefined;
|
6679
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6679
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6680
6680
|
const callback = (rawResponse, flatResponse) => {
|
6681
6681
|
currentRawResponse = rawResponse;
|
6682
|
-
providedCallback === null || providedCallback ===
|
6682
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6683
6683
|
};
|
6684
6684
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6685
6685
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6698,8 +6698,8 @@ class GenerateCostDetailsReportImpl {
|
|
6698
6698
|
spec: getOperationResultsOperationSpec
|
6699
6699
|
});
|
6700
6700
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6701
|
-
restoreFrom: options === null || options ===
|
6702
|
-
intervalInMs: options === null || options ===
|
6701
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6702
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6703
6703
|
resourceLocationConfig: "location"
|
6704
6704
|
});
|
6705
6705
|
yield poller.poll();
|
@@ -6715,7 +6715,7 @@ class GenerateCostDetailsReportImpl {
|
|
6715
6715
|
* @param options The options parameters.
|
6716
6716
|
*/
|
6717
6717
|
beginGetOperationResultsAndWait(scope, operationId, options) {
|
6718
|
-
return tslib.__awaiter(this,
|
6718
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6719
6719
|
const poller = yield this.beginGetOperationResults(scope, operationId, options);
|
6720
6720
|
return poller.pollUntilDone();
|
6721
6721
|
});
|
@@ -6804,17 +6804,17 @@ class GenerateDetailedCostReportImpl {
|
|
6804
6804
|
* @param options The options parameters.
|
6805
6805
|
*/
|
6806
6806
|
beginCreateOperation(scope, parameters, options) {
|
6807
|
-
return tslib.__awaiter(this,
|
6808
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6807
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6808
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6809
6809
|
return this.client.sendOperationRequest(args, spec);
|
6810
6810
|
});
|
6811
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6811
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6812
6812
|
var _a;
|
6813
6813
|
let currentRawResponse = undefined;
|
6814
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6814
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6815
6815
|
const callback = (rawResponse, flatResponse) => {
|
6816
6816
|
currentRawResponse = rawResponse;
|
6817
|
-
providedCallback === null || providedCallback ===
|
6817
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6818
6818
|
};
|
6819
6819
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6820
6820
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6833,8 +6833,8 @@ class GenerateDetailedCostReportImpl {
|
|
6833
6833
|
spec: createOperationOperationSpec
|
6834
6834
|
});
|
6835
6835
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6836
|
-
restoreFrom: options === null || options ===
|
6837
|
-
intervalInMs: options === null || options ===
|
6836
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6837
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
6838
6838
|
resourceLocationConfig: "location"
|
6839
6839
|
});
|
6840
6840
|
yield poller.poll();
|
@@ -6853,7 +6853,7 @@ class GenerateDetailedCostReportImpl {
|
|
6853
6853
|
* @param options The options parameters.
|
6854
6854
|
*/
|
6855
6855
|
beginCreateOperationAndWait(scope, parameters, options) {
|
6856
|
-
return tslib.__awaiter(this,
|
6856
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6857
6857
|
const poller = yield this.beginCreateOperation(scope, parameters, options);
|
6858
6858
|
return poller.pollUntilDone();
|
6859
6859
|
});
|
@@ -6914,17 +6914,17 @@ class GenerateDetailedCostReportOperationResultsImpl {
|
|
6914
6914
|
* @param options The options parameters.
|
6915
6915
|
*/
|
6916
6916
|
beginGet(operationId, scope, options) {
|
6917
|
-
return tslib.__awaiter(this,
|
6918
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
6917
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6918
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6919
6919
|
return this.client.sendOperationRequest(args, spec);
|
6920
6920
|
});
|
6921
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
6921
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
6922
6922
|
var _a;
|
6923
6923
|
let currentRawResponse = undefined;
|
6924
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
6924
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
6925
6925
|
const callback = (rawResponse, flatResponse) => {
|
6926
6926
|
currentRawResponse = rawResponse;
|
6927
|
-
providedCallback === null || providedCallback ===
|
6927
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
6928
6928
|
};
|
6929
6929
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
6930
6930
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -6943,8 +6943,8 @@ class GenerateDetailedCostReportOperationResultsImpl {
|
|
6943
6943
|
spec: getOperationSpec$2
|
6944
6944
|
});
|
6945
6945
|
const poller = yield coreLro.createHttpPoller(lro, {
|
6946
|
-
restoreFrom: options === null || options ===
|
6947
|
-
intervalInMs: options === null || options ===
|
6946
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
6947
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs
|
6948
6948
|
});
|
6949
6949
|
yield poller.poll();
|
6950
6950
|
return poller;
|
@@ -6959,7 +6959,7 @@ class GenerateDetailedCostReportOperationResultsImpl {
|
|
6959
6959
|
* @param options The options parameters.
|
6960
6960
|
*/
|
6961
6961
|
beginGetAndWait(operationId, scope, options) {
|
6962
|
-
return tslib.__awaiter(this,
|
6962
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
6963
6963
|
const poller = yield this.beginGet(operationId, scope, options);
|
6964
6964
|
return poller.pollUntilDone();
|
6965
6965
|
});
|
@@ -7065,17 +7065,17 @@ class PriceSheetImpl {
|
|
7065
7065
|
* @param options The options parameters.
|
7066
7066
|
*/
|
7067
7067
|
beginDownload(billingAccountName, billingProfileName, invoiceName, options) {
|
7068
|
-
return tslib.__awaiter(this,
|
7069
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
7068
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7069
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7070
7070
|
return this.client.sendOperationRequest(args, spec);
|
7071
7071
|
});
|
7072
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
7072
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7073
7073
|
var _a;
|
7074
7074
|
let currentRawResponse = undefined;
|
7075
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
7075
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
7076
7076
|
const callback = (rawResponse, flatResponse) => {
|
7077
7077
|
currentRawResponse = rawResponse;
|
7078
|
-
providedCallback === null || providedCallback ===
|
7078
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
7079
7079
|
};
|
7080
7080
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
7081
7081
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -7094,8 +7094,8 @@ class PriceSheetImpl {
|
|
7094
7094
|
spec: downloadOperationSpec
|
7095
7095
|
});
|
7096
7096
|
const poller = yield coreLro.createHttpPoller(lro, {
|
7097
|
-
restoreFrom: options === null || options ===
|
7098
|
-
intervalInMs: options === null || options ===
|
7097
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
7098
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
7099
7099
|
resourceLocationConfig: "location"
|
7100
7100
|
});
|
7101
7101
|
yield poller.poll();
|
@@ -7111,7 +7111,7 @@ class PriceSheetImpl {
|
|
7111
7111
|
* @param options The options parameters.
|
7112
7112
|
*/
|
7113
7113
|
beginDownloadAndWait(billingAccountName, billingProfileName, invoiceName, options) {
|
7114
|
-
return tslib.__awaiter(this,
|
7114
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7115
7115
|
const poller = yield this.beginDownload(billingAccountName, billingProfileName, invoiceName, options);
|
7116
7116
|
return poller.pollUntilDone();
|
7117
7117
|
});
|
@@ -7127,17 +7127,17 @@ class PriceSheetImpl {
|
|
7127
7127
|
* @param options The options parameters.
|
7128
7128
|
*/
|
7129
7129
|
beginDownloadByBillingProfile(billingAccountName, billingProfileName, options) {
|
7130
|
-
return tslib.__awaiter(this,
|
7131
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this,
|
7130
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7131
|
+
const directSendOperation = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7132
7132
|
return this.client.sendOperationRequest(args, spec);
|
7133
7133
|
});
|
7134
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this,
|
7134
|
+
const sendOperationFn = (args, spec) => tslib.__awaiter(this, undefined, undefined, function* () {
|
7135
7135
|
var _a;
|
7136
7136
|
let currentRawResponse = undefined;
|
7137
|
-
const providedCallback = (_a = args.options) === null || _a ===
|
7137
|
+
const providedCallback = (_a = args.options) === null || _a === undefined ? undefined : _a.onResponse;
|
7138
7138
|
const callback = (rawResponse, flatResponse) => {
|
7139
7139
|
currentRawResponse = rawResponse;
|
7140
|
-
providedCallback === null || providedCallback ===
|
7140
|
+
providedCallback === null || providedCallback === undefined ? undefined : providedCallback(rawResponse, flatResponse);
|
7141
7141
|
};
|
7142
7142
|
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
7143
7143
|
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
@@ -7156,8 +7156,8 @@ class PriceSheetImpl {
|
|
7156
7156
|
spec: downloadByBillingProfileOperationSpec
|
7157
7157
|
});
|
7158
7158
|
const poller = yield coreLro.createHttpPoller(lro, {
|
7159
|
-
restoreFrom: options === null || options ===
|
7160
|
-
intervalInMs: options === null || options ===
|
7159
|
+
restoreFrom: options === null || options === undefined ? undefined : options.resumeFrom,
|
7160
|
+
intervalInMs: options === null || options === undefined ? undefined : options.updateIntervalInMs,
|
7161
7161
|
resourceLocationConfig: "location"
|
7162
7162
|
});
|
7163
7163
|
yield poller.poll();
|
@@ -7175,7 +7175,7 @@ class PriceSheetImpl {
|
|
7175
7175
|
* @param options The options parameters.
|
7176
7176
|
*/
|
7177
7177
|
beginDownloadByBillingProfileAndWait(billingAccountName, billingProfileName, options) {
|
7178
|
-
return tslib.__awaiter(this,
|
7178
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
7179
7179
|
const poller = yield this.beginDownloadByBillingProfile(billingAccountName, billingProfileName, options);
|
7180
7180
|
return poller.pollUntilDone();
|
7181
7181
|
});
|
@@ -7274,7 +7274,7 @@ class ScheduledActionsImpl {
|
|
7274
7274
|
return this;
|
7275
7275
|
},
|
7276
7276
|
byPage: (settings) => {
|
7277
|
-
if (settings === null || settings ===
|
7277
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
7278
7278
|
throw new Error("maxPageSize is not supported by this operation.");
|
7279
7279
|
}
|
7280
7280
|
return this.listPagingPage(options, settings);
|
@@ -7284,7 +7284,7 @@ class ScheduledActionsImpl {
|
|
7284
7284
|
listPagingPage(options, settings) {
|
7285
7285
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
7286
7286
|
let result;
|
7287
|
-
let continuationToken = settings === null || settings ===
|
7287
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
7288
7288
|
if (!continuationToken) {
|
7289
7289
|
result = yield tslib.__await(this._list(options));
|
7290
7290
|
let page = result.value || [];
|
@@ -7351,7 +7351,7 @@ class ScheduledActionsImpl {
|
|
7351
7351
|
return this;
|
7352
7352
|
},
|
7353
7353
|
byPage: (settings) => {
|
7354
|
-
if (settings === null || settings ===
|
7354
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
7355
7355
|
throw new Error("maxPageSize is not supported by this operation.");
|
7356
7356
|
}
|
7357
7357
|
return this.listByScopePagingPage(scope, options, settings);
|
@@ -7361,7 +7361,7 @@ class ScheduledActionsImpl {
|
|
7361
7361
|
listByScopePagingPage(scope, options, settings) {
|
7362
7362
|
return tslib.__asyncGenerator(this, arguments, function* listByScopePagingPage_1() {
|
7363
7363
|
let result;
|
7364
|
-
let continuationToken = settings === null || settings ===
|
7364
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
7365
7365
|
if (!continuationToken) {
|
7366
7366
|
result = yield tslib.__await(this._listByScope(scope, options));
|
7367
7367
|
let page = result.value || [];
|
@@ -7901,7 +7901,7 @@ class BenefitRecommendationsImpl {
|
|
7901
7901
|
return this;
|
7902
7902
|
},
|
7903
7903
|
byPage: (settings) => {
|
7904
|
-
if (settings === null || settings ===
|
7904
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
7905
7905
|
throw new Error("maxPageSize is not supported by this operation.");
|
7906
7906
|
}
|
7907
7907
|
return this.listPagingPage(billingScope, options, settings);
|
@@ -7911,7 +7911,7 @@ class BenefitRecommendationsImpl {
|
|
7911
7911
|
listPagingPage(billingScope, options, settings) {
|
7912
7912
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
7913
7913
|
let result;
|
7914
|
-
let continuationToken = settings === null || settings ===
|
7914
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
7915
7915
|
if (!continuationToken) {
|
7916
7916
|
result = yield tslib.__await(this._list(billingScope, options));
|
7917
7917
|
let page = result.value || [];
|
@@ -8052,7 +8052,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8052
8052
|
return this;
|
8053
8053
|
},
|
8054
8054
|
byPage: (settings) => {
|
8055
|
-
if (settings === null || settings ===
|
8055
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8056
8056
|
throw new Error("maxPageSize is not supported by this operation.");
|
8057
8057
|
}
|
8058
8058
|
return this.listByBillingAccountIdPagingPage(billingAccountId, options, settings);
|
@@ -8062,7 +8062,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8062
8062
|
listByBillingAccountIdPagingPage(billingAccountId, options, settings) {
|
8063
8063
|
return tslib.__asyncGenerator(this, arguments, function* listByBillingAccountIdPagingPage_1() {
|
8064
8064
|
let result;
|
8065
|
-
let continuationToken = settings === null || settings ===
|
8065
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8066
8066
|
if (!continuationToken) {
|
8067
8067
|
result = yield tslib.__await(this._listByBillingAccountId(billingAccountId, options));
|
8068
8068
|
let page = result.value || [];
|
@@ -8116,7 +8116,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8116
8116
|
return this;
|
8117
8117
|
},
|
8118
8118
|
byPage: (settings) => {
|
8119
|
-
if (settings === null || settings ===
|
8119
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8120
8120
|
throw new Error("maxPageSize is not supported by this operation.");
|
8121
8121
|
}
|
8122
8122
|
return this.listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings);
|
@@ -8126,7 +8126,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8126
8126
|
listByBillingProfileIdPagingPage(billingAccountId, billingProfileId, options, settings) {
|
8127
8127
|
return tslib.__asyncGenerator(this, arguments, function* listByBillingProfileIdPagingPage_1() {
|
8128
8128
|
let result;
|
8129
|
-
let continuationToken = settings === null || settings ===
|
8129
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8130
8130
|
if (!continuationToken) {
|
8131
8131
|
result = yield tslib.__await(this._listByBillingProfileId(billingAccountId, billingProfileId, options));
|
8132
8132
|
let page = result.value || [];
|
@@ -8178,7 +8178,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8178
8178
|
return this;
|
8179
8179
|
},
|
8180
8180
|
byPage: (settings) => {
|
8181
|
-
if (settings === null || settings ===
|
8181
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8182
8182
|
throw new Error("maxPageSize is not supported by this operation.");
|
8183
8183
|
}
|
8184
8184
|
return this.listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings);
|
@@ -8188,7 +8188,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8188
8188
|
listBySavingsPlanOrderPagingPage(savingsPlanOrderId, options, settings) {
|
8189
8189
|
return tslib.__asyncGenerator(this, arguments, function* listBySavingsPlanOrderPagingPage_1() {
|
8190
8190
|
let result;
|
8191
|
-
let continuationToken = settings === null || settings ===
|
8191
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8192
8192
|
if (!continuationToken) {
|
8193
8193
|
result = yield tslib.__await(this._listBySavingsPlanOrder(savingsPlanOrderId, options));
|
8194
8194
|
let page = result.value || [];
|
@@ -8241,7 +8241,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8241
8241
|
return this;
|
8242
8242
|
},
|
8243
8243
|
byPage: (settings) => {
|
8244
|
-
if (settings === null || settings ===
|
8244
|
+
if (settings === null || settings === undefined ? undefined : settings.maxPageSize) {
|
8245
8245
|
throw new Error("maxPageSize is not supported by this operation.");
|
8246
8246
|
}
|
8247
8247
|
return this.listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings);
|
@@ -8251,7 +8251,7 @@ class BenefitUtilizationSummariesImpl {
|
|
8251
8251
|
listBySavingsPlanIdPagingPage(savingsPlanOrderId, savingsPlanId, options, settings) {
|
8252
8252
|
return tslib.__asyncGenerator(this, arguments, function* listBySavingsPlanIdPagingPage_1() {
|
8253
8253
|
let result;
|
8254
|
-
let continuationToken = settings === null || settings ===
|
8254
|
+
let continuationToken = settings === null || settings === undefined ? undefined : settings.continuationToken;
|
8255
8255
|
if (!continuationToken) {
|
8256
8256
|
result = yield tslib.__await(this._listBySavingsPlanId(savingsPlanOrderId, savingsPlanId, options));
|
8257
8257
|
let page = result.value || [];
|
@@ -8564,10 +8564,10 @@ class CostManagementClient extends coreClient__namespace.ServiceClient {
|
|
8564
8564
|
: `${packageDetails}`;
|
8565
8565
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
8566
8566
|
userAgentPrefix
|
8567
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !==
|
8567
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== undefined ? _a : options.baseUri) !== null && _b !== undefined ? _b : "https://management.azure.com" });
|
8568
8568
|
super(optionsWithDefaults);
|
8569
8569
|
let bearerTokenAuthenticationPolicyFound = false;
|
8570
|
-
if ((options === null || options ===
|
8570
|
+
if ((options === null || options === undefined ? undefined : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
8571
8571
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
8572
8572
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
8573
8573
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
@@ -8581,7 +8581,7 @@ class CostManagementClient extends coreClient__namespace.ServiceClient {
|
|
8581
8581
|
});
|
8582
8582
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
8583
8583
|
credential: credentials,
|
8584
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !==
|
8584
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== undefined ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
8585
8585
|
challengeCallbacks: {
|
8586
8586
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
8587
8587
|
}
|
@@ -8616,7 +8616,7 @@ class CostManagementClient extends coreClient__namespace.ServiceClient {
|
|
8616
8616
|
const apiVersionPolicy = {
|
8617
8617
|
name: "CustomApiVersionPolicy",
|
8618
8618
|
sendRequest(request, next) {
|
8619
|
-
return tslib.__awaiter(this,
|
8619
|
+
return tslib.__awaiter(this, undefined, undefined, function* () {
|
8620
8620
|
const param = request.url.split("?");
|
8621
8621
|
if (param.length > 1) {
|
8622
8622
|
const newParams = param[1].split("&").map((item) => {
|