@azure/arm-consumption 9.0.0-alpha.20211116.2 → 9.0.0
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 +7 -22
- 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 +8 -17
- 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/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/CHANGELOG.md
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
# Release History
|
|
2
|
+
|
|
3
|
+
## 9.0.0 (2021-12-16)
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
The package of @azure/arm-consumption is using our next generation design principles since version 9.0.0, which contains breaking changes.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
|
8
10
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
#### Other Changes
|
|
12
|
-
|
|
13
|
-
### 9.0.0-beta.1 (2021-11-16)
|
|
14
|
-
|
|
15
|
-
This is the first preview for the new version of the `@azure/arm-consumption` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
|
|
16
|
-
|
|
17
|
-
While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
|
|
18
|
-
|
|
19
|
-
Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
|
|
20
|
-
|
|
21
|
-
**Noteworthy changes and features**
|
|
22
|
-
- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
|
|
23
|
-
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
|
|
24
|
-
- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
|
|
25
|
-
- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
|
|
26
|
-
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
|
|
11
|
+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
|
package/README.md
CHANGED
|
@@ -53,6 +53,10 @@ const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
|
53
53
|
const client = new ConsumptionManagementClient(new DefaultAzureCredential(), subscriptionId);
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
+
|
|
57
|
+
### JavaScript Bundle
|
|
58
|
+
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
59
|
+
|
|
56
60
|
## Key concepts
|
|
57
61
|
|
|
58
62
|
### ConsumptionManagementClient
|
package/dist/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib = require('tslib');
|
|
6
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -307,41 +307,6 @@ const BudgetsListResult = {
|
|
|
307
307
|
}
|
|
308
308
|
}
|
|
309
309
|
};
|
|
310
|
-
const ProxyResource = {
|
|
311
|
-
type: {
|
|
312
|
-
name: "Composite",
|
|
313
|
-
className: "ProxyResource",
|
|
314
|
-
modelProperties: {
|
|
315
|
-
id: {
|
|
316
|
-
serializedName: "id",
|
|
317
|
-
readOnly: true,
|
|
318
|
-
type: {
|
|
319
|
-
name: "String"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
name: {
|
|
323
|
-
serializedName: "name",
|
|
324
|
-
readOnly: true,
|
|
325
|
-
type: {
|
|
326
|
-
name: "String"
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
type: {
|
|
330
|
-
serializedName: "type",
|
|
331
|
-
readOnly: true,
|
|
332
|
-
type: {
|
|
333
|
-
name: "String"
|
|
334
|
-
}
|
|
335
|
-
},
|
|
336
|
-
eTag: {
|
|
337
|
-
serializedName: "eTag",
|
|
338
|
-
type: {
|
|
339
|
-
name: "String"
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
};
|
|
345
310
|
const BudgetTimePeriod = {
|
|
346
311
|
type: {
|
|
347
312
|
name: "Composite",
|
|
@@ -586,6 +551,41 @@ const ForecastSpend = {
|
|
|
586
551
|
}
|
|
587
552
|
}
|
|
588
553
|
};
|
|
554
|
+
const ProxyResource = {
|
|
555
|
+
type: {
|
|
556
|
+
name: "Composite",
|
|
557
|
+
className: "ProxyResource",
|
|
558
|
+
modelProperties: {
|
|
559
|
+
id: {
|
|
560
|
+
serializedName: "id",
|
|
561
|
+
readOnly: true,
|
|
562
|
+
type: {
|
|
563
|
+
name: "String"
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
name: {
|
|
567
|
+
serializedName: "name",
|
|
568
|
+
readOnly: true,
|
|
569
|
+
type: {
|
|
570
|
+
name: "String"
|
|
571
|
+
}
|
|
572
|
+
},
|
|
573
|
+
type: {
|
|
574
|
+
serializedName: "type",
|
|
575
|
+
readOnly: true,
|
|
576
|
+
type: {
|
|
577
|
+
name: "String"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
eTag: {
|
|
581
|
+
serializedName: "eTag",
|
|
582
|
+
type: {
|
|
583
|
+
name: "String"
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
};
|
|
589
589
|
const Tag = {
|
|
590
590
|
type: {
|
|
591
591
|
name: "Composite",
|
|
@@ -1544,6 +1544,130 @@ const MeterDetailsResponse = {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
}
|
|
1546
1546
|
};
|
|
1547
|
+
const LegacyReservationRecommendationProperties = {
|
|
1548
|
+
type: {
|
|
1549
|
+
name: "Composite",
|
|
1550
|
+
className: "LegacyReservationRecommendationProperties",
|
|
1551
|
+
uberParent: "LegacyReservationRecommendationProperties",
|
|
1552
|
+
polymorphicDiscriminator: {
|
|
1553
|
+
serializedName: "scope",
|
|
1554
|
+
clientName: "scope"
|
|
1555
|
+
},
|
|
1556
|
+
modelProperties: {
|
|
1557
|
+
lookBackPeriod: {
|
|
1558
|
+
serializedName: "lookBackPeriod",
|
|
1559
|
+
readOnly: true,
|
|
1560
|
+
type: {
|
|
1561
|
+
name: "String"
|
|
1562
|
+
}
|
|
1563
|
+
},
|
|
1564
|
+
instanceFlexibilityRatio: {
|
|
1565
|
+
serializedName: "instanceFlexibilityRatio",
|
|
1566
|
+
readOnly: true,
|
|
1567
|
+
type: {
|
|
1568
|
+
name: "Number"
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
instanceFlexibilityGroup: {
|
|
1572
|
+
serializedName: "instanceFlexibilityGroup",
|
|
1573
|
+
readOnly: true,
|
|
1574
|
+
type: {
|
|
1575
|
+
name: "String"
|
|
1576
|
+
}
|
|
1577
|
+
},
|
|
1578
|
+
normalizedSize: {
|
|
1579
|
+
serializedName: "normalizedSize",
|
|
1580
|
+
readOnly: true,
|
|
1581
|
+
type: {
|
|
1582
|
+
name: "String"
|
|
1583
|
+
}
|
|
1584
|
+
},
|
|
1585
|
+
recommendedQuantityNormalized: {
|
|
1586
|
+
serializedName: "recommendedQuantityNormalized",
|
|
1587
|
+
readOnly: true,
|
|
1588
|
+
type: {
|
|
1589
|
+
name: "Number"
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
meterId: {
|
|
1593
|
+
serializedName: "meterId",
|
|
1594
|
+
readOnly: true,
|
|
1595
|
+
type: {
|
|
1596
|
+
name: "Uuid"
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
resourceType: {
|
|
1600
|
+
serializedName: "resourceType",
|
|
1601
|
+
readOnly: true,
|
|
1602
|
+
type: {
|
|
1603
|
+
name: "String"
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
term: {
|
|
1607
|
+
serializedName: "term",
|
|
1608
|
+
readOnly: true,
|
|
1609
|
+
type: {
|
|
1610
|
+
name: "String"
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
costWithNoReservedInstances: {
|
|
1614
|
+
serializedName: "costWithNoReservedInstances",
|
|
1615
|
+
readOnly: true,
|
|
1616
|
+
type: {
|
|
1617
|
+
name: "Number"
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
recommendedQuantity: {
|
|
1621
|
+
serializedName: "recommendedQuantity",
|
|
1622
|
+
readOnly: true,
|
|
1623
|
+
type: {
|
|
1624
|
+
name: "Number"
|
|
1625
|
+
}
|
|
1626
|
+
},
|
|
1627
|
+
totalCostWithReservedInstances: {
|
|
1628
|
+
serializedName: "totalCostWithReservedInstances",
|
|
1629
|
+
readOnly: true,
|
|
1630
|
+
type: {
|
|
1631
|
+
name: "Number"
|
|
1632
|
+
}
|
|
1633
|
+
},
|
|
1634
|
+
netSavings: {
|
|
1635
|
+
serializedName: "netSavings",
|
|
1636
|
+
readOnly: true,
|
|
1637
|
+
type: {
|
|
1638
|
+
name: "Number"
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
firstUsageDate: {
|
|
1642
|
+
serializedName: "firstUsageDate",
|
|
1643
|
+
readOnly: true,
|
|
1644
|
+
type: {
|
|
1645
|
+
name: "DateTime"
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
scope: {
|
|
1649
|
+
serializedName: "scope",
|
|
1650
|
+
required: true,
|
|
1651
|
+
type: {
|
|
1652
|
+
name: "String"
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
skuProperties: {
|
|
1656
|
+
serializedName: "skuProperties",
|
|
1657
|
+
readOnly: true,
|
|
1658
|
+
type: {
|
|
1659
|
+
name: "Sequence",
|
|
1660
|
+
element: {
|
|
1661
|
+
type: {
|
|
1662
|
+
name: "Composite",
|
|
1663
|
+
className: "SkuProperty"
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
};
|
|
1547
1671
|
const SkuProperty = {
|
|
1548
1672
|
type: {
|
|
1549
1673
|
name: "Composite",
|
|
@@ -2914,6 +3038,32 @@ const AmountWithExchangeRate = {
|
|
|
2914
3038
|
} })
|
|
2915
3039
|
}
|
|
2916
3040
|
};
|
|
3041
|
+
const LegacySingleScopeReservationRecommendationProperties = {
|
|
3042
|
+
serializedName: "Single",
|
|
3043
|
+
type: {
|
|
3044
|
+
name: "Composite",
|
|
3045
|
+
className: "LegacySingleScopeReservationRecommendationProperties",
|
|
3046
|
+
uberParent: "LegacyReservationRecommendationProperties",
|
|
3047
|
+
polymorphicDiscriminator: LegacyReservationRecommendationProperties.type.polymorphicDiscriminator,
|
|
3048
|
+
modelProperties: Object.assign(Object.assign({}, LegacyReservationRecommendationProperties.type.modelProperties), { subscriptionId: {
|
|
3049
|
+
serializedName: "subscriptionId",
|
|
3050
|
+
readOnly: true,
|
|
3051
|
+
type: {
|
|
3052
|
+
name: "Uuid"
|
|
3053
|
+
}
|
|
3054
|
+
} })
|
|
3055
|
+
}
|
|
3056
|
+
};
|
|
3057
|
+
const LegacySharedScopeReservationRecommendationProperties = {
|
|
3058
|
+
serializedName: "Shared",
|
|
3059
|
+
type: {
|
|
3060
|
+
name: "Composite",
|
|
3061
|
+
className: "LegacySharedScopeReservationRecommendationProperties",
|
|
3062
|
+
uberParent: "LegacyReservationRecommendationProperties",
|
|
3063
|
+
polymorphicDiscriminator: LegacyReservationRecommendationProperties.type.polymorphicDiscriminator,
|
|
3064
|
+
modelProperties: Object.assign({}, LegacyReservationRecommendationProperties.type.modelProperties)
|
|
3065
|
+
}
|
|
3066
|
+
};
|
|
2917
3067
|
const LegacyUsageDetail = {
|
|
2918
3068
|
serializedName: "legacy",
|
|
2919
3069
|
type: {
|
|
@@ -3717,7 +3867,7 @@ const LegacyReservationRecommendation = {
|
|
|
3717
3867
|
}
|
|
3718
3868
|
}, scope: {
|
|
3719
3869
|
serializedName: "properties.scope",
|
|
3720
|
-
|
|
3870
|
+
required: true,
|
|
3721
3871
|
type: {
|
|
3722
3872
|
name: "String"
|
|
3723
3873
|
}
|
|
@@ -3984,9 +4134,12 @@ const LegacyReservationTransaction = {
|
|
|
3984
4134
|
}
|
|
3985
4135
|
};
|
|
3986
4136
|
let discriminators = {
|
|
4137
|
+
LegacyReservationRecommendationProperties: LegacyReservationRecommendationProperties,
|
|
3987
4138
|
"Resource.UsageDetail": UsageDetail,
|
|
3988
4139
|
"Resource.ReservationRecommendation": ReservationRecommendation,
|
|
3989
4140
|
"ProxyResource.ChargeSummary": ChargeSummary,
|
|
4141
|
+
"LegacyReservationRecommendationProperties.Single": LegacySingleScopeReservationRecommendationProperties,
|
|
4142
|
+
"LegacyReservationRecommendationProperties.Shared": LegacySharedScopeReservationRecommendationProperties,
|
|
3990
4143
|
"Resource.legacy": LegacyReservationRecommendation,
|
|
3991
4144
|
"Resource.modern": ModernReservationRecommendation,
|
|
3992
4145
|
"ProxyResource.legacy": LegacyChargeSummary,
|
|
@@ -4001,7 +4154,6 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4001
4154
|
ErrorDetails: ErrorDetails,
|
|
4002
4155
|
MarketplacesListResult: MarketplacesListResult,
|
|
4003
4156
|
BudgetsListResult: BudgetsListResult,
|
|
4004
|
-
ProxyResource: ProxyResource,
|
|
4005
4157
|
BudgetTimePeriod: BudgetTimePeriod,
|
|
4006
4158
|
BudgetFilter: BudgetFilter,
|
|
4007
4159
|
BudgetFilterProperties: BudgetFilterProperties,
|
|
@@ -4009,6 +4161,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4009
4161
|
CurrentSpend: CurrentSpend,
|
|
4010
4162
|
Notification: Notification,
|
|
4011
4163
|
ForecastSpend: ForecastSpend,
|
|
4164
|
+
ProxyResource: ProxyResource,
|
|
4012
4165
|
Tag: Tag,
|
|
4013
4166
|
ChargesListResult: ChargesListResult,
|
|
4014
4167
|
BalancePropertiesNewPurchasesDetailsItem: BalancePropertiesNewPurchasesDetailsItem,
|
|
@@ -4037,6 +4190,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4037
4190
|
Lots: Lots,
|
|
4038
4191
|
CreditBalanceSummary: CreditBalanceSummary,
|
|
4039
4192
|
MeterDetailsResponse: MeterDetailsResponse,
|
|
4193
|
+
LegacyReservationRecommendationProperties: LegacyReservationRecommendationProperties,
|
|
4040
4194
|
SkuProperty: SkuProperty,
|
|
4041
4195
|
DownloadProperties: DownloadProperties,
|
|
4042
4196
|
UsageDetail: UsageDetail,
|
|
@@ -4057,6 +4211,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
4057
4211
|
ReservationTransaction: ReservationTransaction,
|
|
4058
4212
|
ModernReservationTransaction: ModernReservationTransaction,
|
|
4059
4213
|
AmountWithExchangeRate: AmountWithExchangeRate,
|
|
4214
|
+
LegacySingleScopeReservationRecommendationProperties: LegacySingleScopeReservationRecommendationProperties,
|
|
4215
|
+
LegacySharedScopeReservationRecommendationProperties: LegacySharedScopeReservationRecommendationProperties,
|
|
4060
4216
|
LegacyUsageDetail: LegacyUsageDetail,
|
|
4061
4217
|
ModernUsageDetail: ModernUsageDetail,
|
|
4062
4218
|
LegacyReservationRecommendation: LegacyReservationRecommendation,
|
|
@@ -5194,7 +5350,7 @@ const getByBillingAccountOperationSpec = {
|
|
|
5194
5350
|
serializer: serializer$5
|
|
5195
5351
|
};
|
|
5196
5352
|
const getForBillingPeriodByBillingAccountOperationSpec = {
|
|
5197
|
-
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/
|
|
5353
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingPeriods/{billingPeriodName}/providers/Microsoft.Consumption/balances",
|
|
5198
5354
|
httpMethod: "GET",
|
|
5199
5355
|
responses: {
|
|
5200
5356
|
200: {
|
|
@@ -7213,9 +7369,9 @@ const getOperationSpec$4 = {
|
|
|
7213
7369
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7214
7370
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7215
7371
|
*/
|
|
7216
|
-
class
|
|
7372
|
+
class ConsumptionManagementClient extends coreClient.ServiceClient {
|
|
7217
7373
|
/**
|
|
7218
|
-
* Initializes a new instance of the
|
|
7374
|
+
* Initializes a new instance of the ConsumptionManagementClient class.
|
|
7219
7375
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
7220
7376
|
* @param subscriptionId Azure Subscription ID.
|
|
7221
7377
|
* @param options The parameter options
|
|
@@ -7235,7 +7391,7 @@ class ConsumptionManagementClientContext extends coreClient.ServiceClient {
|
|
|
7235
7391
|
requestContentType: "application/json; charset=utf-8",
|
|
7236
7392
|
credential: credentials
|
|
7237
7393
|
};
|
|
7238
|
-
const packageDetails = `azsdk-js-arm-consumption/9.0.0
|
|
7394
|
+
const packageDetails = `azsdk-js-arm-consumption/9.0.0`;
|
|
7239
7395
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
7240
7396
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
7241
7397
|
: `${packageDetails}`;
|
|
@@ -7251,25 +7407,6 @@ class ConsumptionManagementClientContext extends coreClient.ServiceClient {
|
|
|
7251
7407
|
// Assigning values to Constant parameters
|
|
7252
7408
|
this.$host = options.$host || "https://management.azure.com";
|
|
7253
7409
|
this.apiVersion = options.apiVersion || "2021-10-01";
|
|
7254
|
-
}
|
|
7255
|
-
}
|
|
7256
|
-
|
|
7257
|
-
/*
|
|
7258
|
-
* Copyright (c) Microsoft Corporation.
|
|
7259
|
-
* Licensed under the MIT License.
|
|
7260
|
-
*
|
|
7261
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7262
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7263
|
-
*/
|
|
7264
|
-
class ConsumptionManagementClient extends ConsumptionManagementClientContext {
|
|
7265
|
-
/**
|
|
7266
|
-
* Initializes a new instance of the ConsumptionManagementClient class.
|
|
7267
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
7268
|
-
* @param subscriptionId Azure Subscription ID.
|
|
7269
|
-
* @param options The parameter options
|
|
7270
|
-
*/
|
|
7271
|
-
constructor(credentials, subscriptionId, options) {
|
|
7272
|
-
super(credentials, subscriptionId, options);
|
|
7273
7410
|
this.usageDetails = new UsageDetailsImpl(this);
|
|
7274
7411
|
this.marketplaces = new MarketplacesImpl(this);
|
|
7275
7412
|
this.budgets = new BudgetsImpl(this);
|
|
@@ -7291,5 +7428,4 @@ class ConsumptionManagementClient extends ConsumptionManagementClientContext {
|
|
|
7291
7428
|
}
|
|
7292
7429
|
|
|
7293
7430
|
exports.ConsumptionManagementClient = ConsumptionManagementClient;
|
|
7294
|
-
exports.ConsumptionManagementClientContext = ConsumptionManagementClientContext;
|
|
7295
7431
|
//# sourceMappingURL=index.js.map
|