@azure/arm-consumption 9.0.0-beta.1 → 9.0.1-alpha.20220106.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/CHANGELOG.md +17 -10
- package/README.md +4 -0
- package/dist/index.js +198 -62
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/consumptionManagementClient.d.ts +5 -2
- package/dist-esm/src/consumptionManagementClient.d.ts.map +1 -1
- package/dist-esm/src/consumptionManagementClient.js +32 -3
- package/dist-esm/src/consumptionManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +0 -1
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +0 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +113 -25
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +189 -36
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/aggregatedCost.d.ts +2 -2
- package/dist-esm/src/operations/aggregatedCost.d.ts.map +1 -1
- package/dist-esm/src/operations/aggregatedCost.js.map +1 -1
- package/dist-esm/src/operations/balances.d.ts +2 -2
- package/dist-esm/src/operations/balances.d.ts.map +1 -1
- package/dist-esm/src/operations/balances.js +1 -1
- package/dist-esm/src/operations/balances.js.map +1 -1
- package/dist-esm/src/operations/budgets.d.ts +2 -2
- package/dist-esm/src/operations/budgets.d.ts.map +1 -1
- package/dist-esm/src/operations/budgets.js.map +1 -1
- package/dist-esm/src/operations/charges.d.ts +2 -2
- package/dist-esm/src/operations/charges.d.ts.map +1 -1
- package/dist-esm/src/operations/charges.js.map +1 -1
- package/dist-esm/src/operations/credits.d.ts +2 -2
- package/dist-esm/src/operations/credits.d.ts.map +1 -1
- package/dist-esm/src/operations/credits.js.map +1 -1
- package/dist-esm/src/operations/eventsOperations.d.ts +2 -2
- package/dist-esm/src/operations/eventsOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/eventsOperations.js.map +1 -1
- package/dist-esm/src/operations/lotsOperations.d.ts +2 -2
- package/dist-esm/src/operations/lotsOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/lotsOperations.js.map +1 -1
- package/dist-esm/src/operations/marketplaces.d.ts +2 -2
- package/dist-esm/src/operations/marketplaces.d.ts.map +1 -1
- package/dist-esm/src/operations/marketplaces.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts +2 -2
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/priceSheet.d.ts +2 -2
- package/dist-esm/src/operations/priceSheet.d.ts.map +1 -1
- package/dist-esm/src/operations/priceSheet.js.map +1 -1
- package/dist-esm/src/operations/reservationRecommendationDetails.d.ts +2 -2
- package/dist-esm/src/operations/reservationRecommendationDetails.d.ts.map +1 -1
- package/dist-esm/src/operations/reservationRecommendationDetails.js.map +1 -1
- package/dist-esm/src/operations/reservationRecommendations.d.ts +2 -2
- package/dist-esm/src/operations/reservationRecommendations.d.ts.map +1 -1
- package/dist-esm/src/operations/reservationRecommendations.js.map +1 -1
- package/dist-esm/src/operations/reservationTransactions.d.ts +2 -2
- package/dist-esm/src/operations/reservationTransactions.d.ts.map +1 -1
- package/dist-esm/src/operations/reservationTransactions.js.map +1 -1
- package/dist-esm/src/operations/reservationsDetails.d.ts +2 -2
- package/dist-esm/src/operations/reservationsDetails.d.ts.map +1 -1
- package/dist-esm/src/operations/reservationsDetails.js.map +1 -1
- package/dist-esm/src/operations/reservationsSummaries.d.ts +2 -2
- package/dist-esm/src/operations/reservationsSummaries.d.ts.map +1 -1
- package/dist-esm/src/operations/reservationsSummaries.js.map +1 -1
- package/dist-esm/src/operations/tags.d.ts +2 -2
- package/dist-esm/src/operations/tags.d.ts.map +1 -1
- package/dist-esm/src/operations/tags.js.map +1 -1
- package/dist-esm/src/operations/usageDetails.d.ts +2 -2
- package/dist-esm/src/operations/usageDetails.d.ts.map +1 -1
- package/dist-esm/src/operations/usageDetails.js.map +1 -1
- package/dist-esm/test/{sampleTest.d.ts → consumption_examples.d.ts} +1 -1
- package/dist-esm/test/consumption_examples.d.ts.map +1 -0
- package/dist-esm/test/{sampleTest.js → consumption_examples.js} +4 -4
- package/dist-esm/test/consumption_examples.js.map +1 -0
- package/package.json +17 -6
- package/review/arm-consumption.api.md +41 -13
- package/src/consumptionManagementClient.ts +46 -3
- package/src/index.ts +0 -1
- package/src/models/index.ts +120 -26
- package/src/models/mappers.ts +200 -37
- package/src/operations/aggregatedCost.ts +3 -3
- package/src/operations/balances.ts +4 -4
- package/src/operations/budgets.ts +3 -3
- package/src/operations/charges.ts +3 -3
- package/src/operations/credits.ts +3 -3
- package/src/operations/eventsOperations.ts +3 -3
- package/src/operations/lotsOperations.ts +3 -3
- package/src/operations/marketplaces.ts +3 -3
- package/src/operations/operations.ts +3 -3
- package/src/operations/priceSheet.ts +3 -3
- package/src/operations/reservationRecommendationDetails.ts +3 -3
- package/src/operations/reservationRecommendations.ts +3 -3
- package/src/operations/reservationTransactions.ts +3 -3
- package/src/operations/reservationsDetails.ts +3 -3
- package/src/operations/reservationsSummaries.ts +3 -3
- package/src/operations/tags.ts +3 -3
- package/src/operations/usageDetails.ts +3 -3
- package/types/arm-consumption.d.ts +99 -17
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/src/consumptionManagementClientContext.d.ts +0 -16
- package/dist-esm/src/consumptionManagementClientContext.d.ts.map +0 -1
- package/dist-esm/src/consumptionManagementClientContext.js +0 -49
- package/dist-esm/src/consumptionManagementClientContext.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/src/consumptionManagementClientContext.ts +0 -70
package/src/models/mappers.ts
CHANGED
|
@@ -179,42 +179,6 @@ export const BudgetsListResult: coreClient.CompositeMapper = {
|
|
|
179
179
|
}
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
export const ProxyResource: coreClient.CompositeMapper = {
|
|
183
|
-
type: {
|
|
184
|
-
name: "Composite",
|
|
185
|
-
className: "ProxyResource",
|
|
186
|
-
modelProperties: {
|
|
187
|
-
id: {
|
|
188
|
-
serializedName: "id",
|
|
189
|
-
readOnly: true,
|
|
190
|
-
type: {
|
|
191
|
-
name: "String"
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
name: {
|
|
195
|
-
serializedName: "name",
|
|
196
|
-
readOnly: true,
|
|
197
|
-
type: {
|
|
198
|
-
name: "String"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
type: {
|
|
202
|
-
serializedName: "type",
|
|
203
|
-
readOnly: true,
|
|
204
|
-
type: {
|
|
205
|
-
name: "String"
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
eTag: {
|
|
209
|
-
serializedName: "eTag",
|
|
210
|
-
type: {
|
|
211
|
-
name: "String"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
|
|
218
182
|
export const BudgetTimePeriod: coreClient.CompositeMapper = {
|
|
219
183
|
type: {
|
|
220
184
|
name: "Composite",
|
|
@@ -466,6 +430,42 @@ export const ForecastSpend: coreClient.CompositeMapper = {
|
|
|
466
430
|
}
|
|
467
431
|
};
|
|
468
432
|
|
|
433
|
+
export const ProxyResource: coreClient.CompositeMapper = {
|
|
434
|
+
type: {
|
|
435
|
+
name: "Composite",
|
|
436
|
+
className: "ProxyResource",
|
|
437
|
+
modelProperties: {
|
|
438
|
+
id: {
|
|
439
|
+
serializedName: "id",
|
|
440
|
+
readOnly: true,
|
|
441
|
+
type: {
|
|
442
|
+
name: "String"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
name: {
|
|
446
|
+
serializedName: "name",
|
|
447
|
+
readOnly: true,
|
|
448
|
+
type: {
|
|
449
|
+
name: "String"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
type: {
|
|
453
|
+
serializedName: "type",
|
|
454
|
+
readOnly: true,
|
|
455
|
+
type: {
|
|
456
|
+
name: "String"
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
eTag: {
|
|
460
|
+
serializedName: "eTag",
|
|
461
|
+
type: {
|
|
462
|
+
name: "String"
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
};
|
|
468
|
+
|
|
469
469
|
export const Tag: coreClient.CompositeMapper = {
|
|
470
470
|
type: {
|
|
471
471
|
name: "Composite",
|
|
@@ -1453,6 +1453,131 @@ export const MeterDetailsResponse: coreClient.CompositeMapper = {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
};
|
|
1455
1455
|
|
|
1456
|
+
export const LegacyReservationRecommendationProperties: coreClient.CompositeMapper = {
|
|
1457
|
+
type: {
|
|
1458
|
+
name: "Composite",
|
|
1459
|
+
className: "LegacyReservationRecommendationProperties",
|
|
1460
|
+
uberParent: "LegacyReservationRecommendationProperties",
|
|
1461
|
+
polymorphicDiscriminator: {
|
|
1462
|
+
serializedName: "scope",
|
|
1463
|
+
clientName: "scope"
|
|
1464
|
+
},
|
|
1465
|
+
modelProperties: {
|
|
1466
|
+
lookBackPeriod: {
|
|
1467
|
+
serializedName: "lookBackPeriod",
|
|
1468
|
+
readOnly: true,
|
|
1469
|
+
type: {
|
|
1470
|
+
name: "String"
|
|
1471
|
+
}
|
|
1472
|
+
},
|
|
1473
|
+
instanceFlexibilityRatio: {
|
|
1474
|
+
serializedName: "instanceFlexibilityRatio",
|
|
1475
|
+
readOnly: true,
|
|
1476
|
+
type: {
|
|
1477
|
+
name: "Number"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
instanceFlexibilityGroup: {
|
|
1481
|
+
serializedName: "instanceFlexibilityGroup",
|
|
1482
|
+
readOnly: true,
|
|
1483
|
+
type: {
|
|
1484
|
+
name: "String"
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
normalizedSize: {
|
|
1488
|
+
serializedName: "normalizedSize",
|
|
1489
|
+
readOnly: true,
|
|
1490
|
+
type: {
|
|
1491
|
+
name: "String"
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
recommendedQuantityNormalized: {
|
|
1495
|
+
serializedName: "recommendedQuantityNormalized",
|
|
1496
|
+
readOnly: true,
|
|
1497
|
+
type: {
|
|
1498
|
+
name: "Number"
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
meterId: {
|
|
1502
|
+
serializedName: "meterId",
|
|
1503
|
+
readOnly: true,
|
|
1504
|
+
type: {
|
|
1505
|
+
name: "Uuid"
|
|
1506
|
+
}
|
|
1507
|
+
},
|
|
1508
|
+
resourceType: {
|
|
1509
|
+
serializedName: "resourceType",
|
|
1510
|
+
readOnly: true,
|
|
1511
|
+
type: {
|
|
1512
|
+
name: "String"
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
term: {
|
|
1516
|
+
serializedName: "term",
|
|
1517
|
+
readOnly: true,
|
|
1518
|
+
type: {
|
|
1519
|
+
name: "String"
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
costWithNoReservedInstances: {
|
|
1523
|
+
serializedName: "costWithNoReservedInstances",
|
|
1524
|
+
readOnly: true,
|
|
1525
|
+
type: {
|
|
1526
|
+
name: "Number"
|
|
1527
|
+
}
|
|
1528
|
+
},
|
|
1529
|
+
recommendedQuantity: {
|
|
1530
|
+
serializedName: "recommendedQuantity",
|
|
1531
|
+
readOnly: true,
|
|
1532
|
+
type: {
|
|
1533
|
+
name: "Number"
|
|
1534
|
+
}
|
|
1535
|
+
},
|
|
1536
|
+
totalCostWithReservedInstances: {
|
|
1537
|
+
serializedName: "totalCostWithReservedInstances",
|
|
1538
|
+
readOnly: true,
|
|
1539
|
+
type: {
|
|
1540
|
+
name: "Number"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
netSavings: {
|
|
1544
|
+
serializedName: "netSavings",
|
|
1545
|
+
readOnly: true,
|
|
1546
|
+
type: {
|
|
1547
|
+
name: "Number"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
firstUsageDate: {
|
|
1551
|
+
serializedName: "firstUsageDate",
|
|
1552
|
+
readOnly: true,
|
|
1553
|
+
type: {
|
|
1554
|
+
name: "DateTime"
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
scope: {
|
|
1558
|
+
serializedName: "scope",
|
|
1559
|
+
required: true,
|
|
1560
|
+
type: {
|
|
1561
|
+
name: "String"
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
skuProperties: {
|
|
1565
|
+
serializedName: "skuProperties",
|
|
1566
|
+
readOnly: true,
|
|
1567
|
+
type: {
|
|
1568
|
+
name: "Sequence",
|
|
1569
|
+
element: {
|
|
1570
|
+
type: {
|
|
1571
|
+
name: "Composite",
|
|
1572
|
+
className: "SkuProperty"
|
|
1573
|
+
}
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1456
1581
|
export const SkuProperty: coreClient.CompositeMapper = {
|
|
1457
1582
|
type: {
|
|
1458
1583
|
name: "Composite",
|
|
@@ -3072,6 +3197,41 @@ export const AmountWithExchangeRate: coreClient.CompositeMapper = {
|
|
|
3072
3197
|
}
|
|
3073
3198
|
};
|
|
3074
3199
|
|
|
3200
|
+
export const LegacySingleScopeReservationRecommendationProperties: coreClient.CompositeMapper = {
|
|
3201
|
+
serializedName: "Single",
|
|
3202
|
+
type: {
|
|
3203
|
+
name: "Composite",
|
|
3204
|
+
className: "LegacySingleScopeReservationRecommendationProperties",
|
|
3205
|
+
uberParent: "LegacyReservationRecommendationProperties",
|
|
3206
|
+
polymorphicDiscriminator:
|
|
3207
|
+
LegacyReservationRecommendationProperties.type.polymorphicDiscriminator,
|
|
3208
|
+
modelProperties: {
|
|
3209
|
+
...LegacyReservationRecommendationProperties.type.modelProperties,
|
|
3210
|
+
subscriptionId: {
|
|
3211
|
+
serializedName: "subscriptionId",
|
|
3212
|
+
readOnly: true,
|
|
3213
|
+
type: {
|
|
3214
|
+
name: "Uuid"
|
|
3215
|
+
}
|
|
3216
|
+
}
|
|
3217
|
+
}
|
|
3218
|
+
}
|
|
3219
|
+
};
|
|
3220
|
+
|
|
3221
|
+
export const LegacySharedScopeReservationRecommendationProperties: coreClient.CompositeMapper = {
|
|
3222
|
+
serializedName: "Shared",
|
|
3223
|
+
type: {
|
|
3224
|
+
name: "Composite",
|
|
3225
|
+
className: "LegacySharedScopeReservationRecommendationProperties",
|
|
3226
|
+
uberParent: "LegacyReservationRecommendationProperties",
|
|
3227
|
+
polymorphicDiscriminator:
|
|
3228
|
+
LegacyReservationRecommendationProperties.type.polymorphicDiscriminator,
|
|
3229
|
+
modelProperties: {
|
|
3230
|
+
...LegacyReservationRecommendationProperties.type.modelProperties
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
};
|
|
3234
|
+
|
|
3075
3235
|
export const LegacyUsageDetail: coreClient.CompositeMapper = {
|
|
3076
3236
|
serializedName: "legacy",
|
|
3077
3237
|
type: {
|
|
@@ -4012,7 +4172,7 @@ export const LegacyReservationRecommendation: coreClient.CompositeMapper = {
|
|
|
4012
4172
|
},
|
|
4013
4173
|
scope: {
|
|
4014
4174
|
serializedName: "properties.scope",
|
|
4015
|
-
|
|
4175
|
+
required: true,
|
|
4016
4176
|
type: {
|
|
4017
4177
|
name: "String"
|
|
4018
4178
|
}
|
|
@@ -4328,9 +4488,12 @@ export const LegacyReservationTransaction: coreClient.CompositeMapper = {
|
|
|
4328
4488
|
};
|
|
4329
4489
|
|
|
4330
4490
|
export let discriminators = {
|
|
4491
|
+
LegacyReservationRecommendationProperties: LegacyReservationRecommendationProperties,
|
|
4331
4492
|
"Resource.UsageDetail": UsageDetail,
|
|
4332
4493
|
"Resource.ReservationRecommendation": ReservationRecommendation,
|
|
4333
4494
|
"ProxyResource.ChargeSummary": ChargeSummary,
|
|
4495
|
+
"LegacyReservationRecommendationProperties.Single": LegacySingleScopeReservationRecommendationProperties,
|
|
4496
|
+
"LegacyReservationRecommendationProperties.Shared": LegacySharedScopeReservationRecommendationProperties,
|
|
4334
4497
|
"Resource.legacy": LegacyReservationRecommendation,
|
|
4335
4498
|
"Resource.modern": ModernReservationRecommendation,
|
|
4336
4499
|
"ProxyResource.legacy": LegacyChargeSummary,
|
|
@@ -10,7 +10,7 @@ import { AggregatedCost } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
AggregatedCostGetByManagementGroupOptionalParams,
|
|
16
16
|
AggregatedCostGetByManagementGroupResponse,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
|
|
21
21
|
/** Class containing AggregatedCost operations. */
|
|
22
22
|
export class AggregatedCostImpl implements AggregatedCost {
|
|
23
|
-
private readonly client:
|
|
23
|
+
private readonly client: ConsumptionManagementClient;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Initialize a new instance of the class AggregatedCost class.
|
|
27
27
|
* @param client Reference to the service client
|
|
28
28
|
*/
|
|
29
|
-
constructor(client:
|
|
29
|
+
constructor(client: ConsumptionManagementClient) {
|
|
30
30
|
this.client = client;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -10,7 +10,7 @@ import { Balances } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
BalancesGetByBillingAccountOptionalParams,
|
|
16
16
|
BalancesGetByBillingAccountResponse,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
|
|
21
21
|
/** Class containing Balances operations. */
|
|
22
22
|
export class BalancesImpl implements Balances {
|
|
23
|
-
private readonly client:
|
|
23
|
+
private readonly client: ConsumptionManagementClient;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Initialize a new instance of the class Balances class.
|
|
27
27
|
* @param client Reference to the service client
|
|
28
28
|
*/
|
|
29
|
-
constructor(client:
|
|
29
|
+
constructor(client: ConsumptionManagementClient) {
|
|
30
30
|
this.client = client;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -86,7 +86,7 @@ const getByBillingAccountOperationSpec: coreClient.OperationSpec = {
|
|
|
86
86
|
};
|
|
87
87
|
const getForBillingPeriodByBillingAccountOperationSpec: coreClient.OperationSpec = {
|
|
88
88
|
path:
|
|
89
|
-
"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/
|
|
89
|
+
"/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances",
|
|
90
90
|
httpMethod: "GET",
|
|
91
91
|
responses: {
|
|
92
92
|
200: {
|
|
@@ -11,7 +11,7 @@ import { Budgets } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
Budget,
|
|
17
17
|
BudgetsListNextOptionalParams,
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
/// <reference lib="esnext.asynciterable" />
|
|
29
29
|
/** Class containing Budgets operations. */
|
|
30
30
|
export class BudgetsImpl implements Budgets {
|
|
31
|
-
private readonly client:
|
|
31
|
+
private readonly client: ConsumptionManagementClient;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Initialize a new instance of the class Budgets class.
|
|
35
35
|
* @param client Reference to the service client
|
|
36
36
|
*/
|
|
37
|
-
constructor(client:
|
|
37
|
+
constructor(client: ConsumptionManagementClient) {
|
|
38
38
|
this.client = client;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -10,18 +10,18 @@ import { Charges } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
14
14
|
import { ChargesListOptionalParams, ChargesListResponse } from "../models";
|
|
15
15
|
|
|
16
16
|
/** Class containing Charges operations. */
|
|
17
17
|
export class ChargesImpl implements Charges {
|
|
18
|
-
private readonly client:
|
|
18
|
+
private readonly client: ConsumptionManagementClient;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Initialize a new instance of the class Charges class.
|
|
22
22
|
* @param client Reference to the service client
|
|
23
23
|
*/
|
|
24
|
-
constructor(client:
|
|
24
|
+
constructor(client: ConsumptionManagementClient) {
|
|
25
25
|
this.client = client;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -10,18 +10,18 @@ import { Credits } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
14
14
|
import { CreditsGetOptionalParams, CreditsGetResponse } from "../models";
|
|
15
15
|
|
|
16
16
|
/** Class containing Credits operations. */
|
|
17
17
|
export class CreditsImpl implements Credits {
|
|
18
|
-
private readonly client:
|
|
18
|
+
private readonly client: ConsumptionManagementClient;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Initialize a new instance of the class Credits class.
|
|
22
22
|
* @param client Reference to the service client
|
|
23
23
|
*/
|
|
24
|
-
constructor(client:
|
|
24
|
+
constructor(client: ConsumptionManagementClient) {
|
|
25
25
|
this.client = client;
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -11,7 +11,7 @@ import { EventsOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
EventSummary,
|
|
17
17
|
EventsListByBillingProfileNextOptionalParams,
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
/// <reference lib="esnext.asynciterable" />
|
|
28
28
|
/** Class containing EventsOperations operations. */
|
|
29
29
|
export class EventsOperationsImpl implements EventsOperations {
|
|
30
|
-
private readonly client:
|
|
30
|
+
private readonly client: ConsumptionManagementClient;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Initialize a new instance of the class EventsOperations class.
|
|
34
34
|
* @param client Reference to the service client
|
|
35
35
|
*/
|
|
36
|
-
constructor(client:
|
|
36
|
+
constructor(client: ConsumptionManagementClient) {
|
|
37
37
|
this.client = client;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -11,7 +11,7 @@ import { LotsOperations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
LotSummary,
|
|
17
17
|
LotsListByBillingProfileNextOptionalParams,
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
/// <reference lib="esnext.asynciterable" />
|
|
28
28
|
/** Class containing LotsOperations operations. */
|
|
29
29
|
export class LotsOperationsImpl implements LotsOperations {
|
|
30
|
-
private readonly client:
|
|
30
|
+
private readonly client: ConsumptionManagementClient;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
33
|
* Initialize a new instance of the class LotsOperations class.
|
|
34
34
|
* @param client Reference to the service client
|
|
35
35
|
*/
|
|
36
|
-
constructor(client:
|
|
36
|
+
constructor(client: ConsumptionManagementClient) {
|
|
37
37
|
this.client = client;
|
|
38
38
|
}
|
|
39
39
|
|
|
@@ -11,7 +11,7 @@ import { Marketplaces } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
Marketplace,
|
|
17
17
|
MarketplacesListNextOptionalParams,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
/// <reference lib="esnext.asynciterable" />
|
|
24
24
|
/** Class containing Marketplaces operations. */
|
|
25
25
|
export class MarketplacesImpl implements Marketplaces {
|
|
26
|
-
private readonly client:
|
|
26
|
+
private readonly client: ConsumptionManagementClient;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Initialize a new instance of the class Marketplaces class.
|
|
30
30
|
* @param client Reference to the service client
|
|
31
31
|
*/
|
|
32
|
-
constructor(client:
|
|
32
|
+
constructor(client: ConsumptionManagementClient) {
|
|
33
33
|
this.client = client;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -11,7 +11,7 @@ import { Operations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
Operation,
|
|
17
17
|
OperationsListNextOptionalParams,
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
/// <reference lib="esnext.asynciterable" />
|
|
24
24
|
/** Class containing Operations operations. */
|
|
25
25
|
export class OperationsImpl implements Operations {
|
|
26
|
-
private readonly client:
|
|
26
|
+
private readonly client: ConsumptionManagementClient;
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Initialize a new instance of the class Operations class.
|
|
30
30
|
* @param client Reference to the service client
|
|
31
31
|
*/
|
|
32
|
-
constructor(client:
|
|
32
|
+
constructor(client: ConsumptionManagementClient) {
|
|
33
33
|
this.client = client;
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -10,7 +10,7 @@ import { PriceSheet } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
PriceSheetGetOptionalParams,
|
|
16
16
|
PriceSheetGetResponse,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
|
|
21
21
|
/** Class containing PriceSheet operations. */
|
|
22
22
|
export class PriceSheetImpl implements PriceSheet {
|
|
23
|
-
private readonly client:
|
|
23
|
+
private readonly client: ConsumptionManagementClient;
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Initialize a new instance of the class PriceSheet class.
|
|
27
27
|
* @param client Reference to the service client
|
|
28
28
|
*/
|
|
29
|
-
constructor(client:
|
|
29
|
+
constructor(client: ConsumptionManagementClient) {
|
|
30
30
|
this.client = client;
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -10,7 +10,7 @@ import { ReservationRecommendationDetails } from "../operationsInterfaces";
|
|
|
10
10
|
import * as coreClient from "@azure/core-client";
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
|
-
import {
|
|
13
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
14
14
|
import {
|
|
15
15
|
Term,
|
|
16
16
|
LookBackPeriod,
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
/** Class containing ReservationRecommendationDetails operations. */
|
|
22
22
|
export class ReservationRecommendationDetailsImpl
|
|
23
23
|
implements ReservationRecommendationDetails {
|
|
24
|
-
private readonly client:
|
|
24
|
+
private readonly client: ConsumptionManagementClient;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Initialize a new instance of the class ReservationRecommendationDetails class.
|
|
28
28
|
* @param client Reference to the service client
|
|
29
29
|
*/
|
|
30
|
-
constructor(client:
|
|
30
|
+
constructor(client: ConsumptionManagementClient) {
|
|
31
31
|
this.client = client;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -11,7 +11,7 @@ import { ReservationRecommendations } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
ReservationRecommendationUnion,
|
|
17
17
|
ReservationRecommendationsListNextOptionalParams,
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
/** Class containing ReservationRecommendations operations. */
|
|
25
25
|
export class ReservationRecommendationsImpl
|
|
26
26
|
implements ReservationRecommendations {
|
|
27
|
-
private readonly client:
|
|
27
|
+
private readonly client: ConsumptionManagementClient;
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* Initialize a new instance of the class ReservationRecommendations class.
|
|
31
31
|
* @param client Reference to the service client
|
|
32
32
|
*/
|
|
33
|
-
constructor(client:
|
|
33
|
+
constructor(client: ConsumptionManagementClient) {
|
|
34
34
|
this.client = client;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -11,7 +11,7 @@ import { ReservationTransactions } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
ReservationTransaction,
|
|
17
17
|
ReservationTransactionsListNextOptionalParams,
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
/// <reference lib="esnext.asynciterable" />
|
|
29
29
|
/** Class containing ReservationTransactions operations. */
|
|
30
30
|
export class ReservationTransactionsImpl implements ReservationTransactions {
|
|
31
|
-
private readonly client:
|
|
31
|
+
private readonly client: ConsumptionManagementClient;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Initialize a new instance of the class ReservationTransactions class.
|
|
35
35
|
* @param client Reference to the service client
|
|
36
36
|
*/
|
|
37
|
-
constructor(client:
|
|
37
|
+
constructor(client: ConsumptionManagementClient) {
|
|
38
38
|
this.client = client;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -11,7 +11,7 @@ import { ReservationsDetails } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
ReservationDetail,
|
|
17
17
|
ReservationsDetailsListByReservationOrderNextOptionalParams,
|
|
@@ -31,13 +31,13 @@ import {
|
|
|
31
31
|
/// <reference lib="esnext.asynciterable" />
|
|
32
32
|
/** Class containing ReservationsDetails operations. */
|
|
33
33
|
export class ReservationsDetailsImpl implements ReservationsDetails {
|
|
34
|
-
private readonly client:
|
|
34
|
+
private readonly client: ConsumptionManagementClient;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Initialize a new instance of the class ReservationsDetails class.
|
|
38
38
|
* @param client Reference to the service client
|
|
39
39
|
*/
|
|
40
|
-
constructor(client:
|
|
40
|
+
constructor(client: ConsumptionManagementClient) {
|
|
41
41
|
this.client = client;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -11,7 +11,7 @@ import { ReservationsSummaries } from "../operationsInterfaces";
|
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
13
13
|
import * as Parameters from "../models/parameters";
|
|
14
|
-
import {
|
|
14
|
+
import { ConsumptionManagementClient } from "../consumptionManagementClient";
|
|
15
15
|
import {
|
|
16
16
|
ReservationSummary,
|
|
17
17
|
Datagrain,
|
|
@@ -32,13 +32,13 @@ import {
|
|
|
32
32
|
/// <reference lib="esnext.asynciterable" />
|
|
33
33
|
/** Class containing ReservationsSummaries operations. */
|
|
34
34
|
export class ReservationsSummariesImpl implements ReservationsSummaries {
|
|
35
|
-
private readonly client:
|
|
35
|
+
private readonly client: ConsumptionManagementClient;
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
38
|
* Initialize a new instance of the class ReservationsSummaries class.
|
|
39
39
|
* @param client Reference to the service client
|
|
40
40
|
*/
|
|
41
|
-
constructor(client:
|
|
41
|
+
constructor(client: ConsumptionManagementClient) {
|
|
42
42
|
this.client = client;
|
|
43
43
|
}
|
|
44
44
|
|