@azure/arm-consumption 9.0.1 → 9.1.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.
@@ -7,6 +7,12 @@
7
7
  */
8
8
 
9
9
  import * as coreClient from "@azure/core-client";
10
+ import * as coreRestPipeline from "@azure/core-rest-pipeline";
11
+ import {
12
+ PipelineRequest,
13
+ PipelineResponse,
14
+ SendRequest
15
+ } from "@azure/core-rest-pipeline";
10
16
  import * as coreAuth from "@azure/core-auth";
11
17
  import {
12
18
  UsageDetailsImpl,
@@ -80,7 +86,7 @@ export class ConsumptionManagementClient extends coreClient.ServiceClient {
80
86
  credential: credentials
81
87
  };
82
88
 
83
- const packageDetails = `azsdk-js-arm-consumption/9.0.1`;
89
+ const packageDetails = `azsdk-js-arm-consumption/9.1.0`;
84
90
  const userAgentPrefix =
85
91
  options.userAgentOptions && options.userAgentOptions.userAgentPrefix
86
92
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
@@ -99,6 +105,36 @@ export class ConsumptionManagementClient extends coreClient.ServiceClient {
99
105
  options.endpoint ?? options.baseUri ?? "https://management.azure.com"
100
106
  };
101
107
  super(optionsWithDefaults);
108
+
109
+ let bearerTokenAuthenticationPolicyFound: boolean = false;
110
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
111
+ const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
112
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
113
+ (pipelinePolicy) =>
114
+ pipelinePolicy.name ===
115
+ coreRestPipeline.bearerTokenAuthenticationPolicyName
116
+ );
117
+ }
118
+ if (
119
+ !options ||
120
+ !options.pipeline ||
121
+ options.pipeline.getOrderedPolicies().length == 0 ||
122
+ !bearerTokenAuthenticationPolicyFound
123
+ ) {
124
+ this.pipeline.removePolicy({
125
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName
126
+ });
127
+ this.pipeline.addPolicy(
128
+ coreRestPipeline.bearerTokenAuthenticationPolicy({
129
+ credential: credentials,
130
+ scopes: `${optionsWithDefaults.credentialScopes}`,
131
+ challengeCallbacks: {
132
+ authorizeRequestOnChallenge:
133
+ coreClient.authorizeRequestOnClaimChallenge
134
+ }
135
+ })
136
+ );
137
+ }
102
138
  // Parameter assignments
103
139
  this.subscriptionId = subscriptionId;
104
140
 
@@ -124,6 +160,35 @@ export class ConsumptionManagementClient extends coreClient.ServiceClient {
124
160
  this.eventsOperations = new EventsOperationsImpl(this);
125
161
  this.lotsOperations = new LotsOperationsImpl(this);
126
162
  this.credits = new CreditsImpl(this);
163
+ this.addCustomApiVersionPolicy(options.apiVersion);
164
+ }
165
+
166
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
167
+ private addCustomApiVersionPolicy(apiVersion?: string) {
168
+ if (!apiVersion) {
169
+ return;
170
+ }
171
+ const apiVersionPolicy = {
172
+ name: "CustomApiVersionPolicy",
173
+ async sendRequest(
174
+ request: PipelineRequest,
175
+ next: SendRequest
176
+ ): Promise<PipelineResponse> {
177
+ const param = request.url.split("?");
178
+ if (param.length > 1) {
179
+ const newParams = param[1].split("&").map((item) => {
180
+ if (item.indexOf("api-version") > -1) {
181
+ return "api-version=" + apiVersion;
182
+ } else {
183
+ return item;
184
+ }
185
+ });
186
+ request.url = param[0] + "?" + newParams.join("&");
187
+ }
188
+ return next(request);
189
+ }
190
+ };
191
+ this.pipeline.addPolicy(apiVersionPolicy);
127
192
  }
128
193
 
129
194
  usageDetails: UsageDetails;
@@ -906,13 +906,13 @@ export interface DownloadProperties {
906
906
  }
907
907
 
908
908
  /** An usage detail resource. */
909
- export type UsageDetail = Resource & {
909
+ export interface UsageDetail extends Resource {
910
910
  /** Specifies the kind of usage details. */
911
911
  kind: UsageDetailsKind;
912
- };
912
+ }
913
913
 
914
914
  /** A marketplace resource. */
915
- export type Marketplace = Resource & {
915
+ export interface Marketplace extends Resource {
916
916
  /**
917
917
  * The id of the billing period resource that the usage belongs to.
918
918
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1043,10 +1043,10 @@ export type Marketplace = Resource & {
1043
1043
  * NOTE: This property will not be serialized. It can only be populated by the server.
1044
1044
  */
1045
1045
  readonly isRecurringCharge?: boolean;
1046
- };
1046
+ }
1047
1047
 
1048
1048
  /** A balance resource. */
1049
- export type Balance = Resource & {
1049
+ export interface Balance extends Resource {
1050
1050
  /**
1051
1051
  * The ISO currency in which the meter is charged, for example, USD.
1052
1052
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1119,10 +1119,10 @@ export type Balance = Resource & {
1119
1119
  * NOTE: This property will not be serialized. It can only be populated by the server.
1120
1120
  */
1121
1121
  readonly adjustmentDetails?: BalancePropertiesAdjustmentDetailsItem[];
1122
- };
1122
+ }
1123
1123
 
1124
1124
  /** reservation summary resource. */
1125
- export type ReservationSummary = Resource & {
1125
+ export interface ReservationSummary extends Resource {
1126
1126
  /**
1127
1127
  * The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.
1128
1128
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1198,10 +1198,10 @@ export type ReservationSummary = Resource & {
1198
1198
  * NOTE: This property will not be serialized. It can only be populated by the server.
1199
1199
  */
1200
1200
  readonly utilizedPercentage?: number;
1201
- };
1201
+ }
1202
1202
 
1203
1203
  /** reservation detail resource. */
1204
- export type ReservationDetail = Resource & {
1204
+ export interface ReservationDetail extends Resource {
1205
1205
  /**
1206
1206
  * The reservation order ID is the identifier for a reservation purchase. Each reservation order ID represents a single purchase transaction. A reservation order contains reservations. The reservation order specifies the VM size and region for the reservations.
1207
1207
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1257,17 +1257,18 @@ export type ReservationDetail = Resource & {
1257
1257
  * NOTE: This property will not be serialized. It can only be populated by the server.
1258
1258
  */
1259
1259
  readonly kind?: string;
1260
- };
1260
+ }
1261
1261
 
1262
1262
  /** A reservation recommendation resource. */
1263
- export type ReservationRecommendation = Resource &
1264
- ResourceAttributes & {
1265
- /** Specifies the kind of reservation recommendation. */
1266
- kind: ReservationRecommendationKind;
1267
- };
1263
+ export interface ReservationRecommendation
1264
+ extends Resource,
1265
+ ResourceAttributes {
1266
+ /** Specifies the kind of reservation recommendation. */
1267
+ kind: ReservationRecommendationKind;
1268
+ }
1268
1269
 
1269
1270
  /** Reservation recommendation details. */
1270
- export type ReservationRecommendationDetailsModel = Resource & {
1271
+ export interface ReservationRecommendationDetailsModel extends Resource {
1271
1272
  /** Resource Location. */
1272
1273
  location?: string;
1273
1274
  /** Resource sku */
@@ -1302,10 +1303,10 @@ export type ReservationRecommendationDetailsModel = Resource & {
1302
1303
  * NOTE: This property will not be serialized. It can only be populated by the server.
1303
1304
  */
1304
1305
  readonly usage?: ReservationRecommendationDetailsUsageProperties;
1305
- };
1306
+ }
1306
1307
 
1307
1308
  /** An pricesheet resource. */
1308
- export type PriceSheetResult = Resource & {
1309
+ export interface PriceSheetResult extends Resource {
1309
1310
  /**
1310
1311
  * Price sheet
1311
1312
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1321,10 +1322,10 @@ export type PriceSheetResult = Resource & {
1321
1322
  * NOTE: This property will not be serialized. It can only be populated by the server.
1322
1323
  */
1323
1324
  readonly download?: MeterDetails;
1324
- };
1325
+ }
1325
1326
 
1326
1327
  /** A management group aggregated cost resource. */
1327
- export type ManagementGroupAggregatedCostResult = Resource & {
1328
+ export interface ManagementGroupAggregatedCostResult extends Resource {
1328
1329
  /**
1329
1330
  * The id of the billing period resource that the aggregated cost belongs to.
1330
1331
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1366,10 +1367,10 @@ export type ManagementGroupAggregatedCostResult = Resource & {
1366
1367
  includedSubscriptions?: string[];
1367
1368
  /** List of subscription Guids excluded from the calculation of aggregated cost */
1368
1369
  excludedSubscriptions?: string[];
1369
- };
1370
+ }
1370
1371
 
1371
1372
  /** A credit summary resource. */
1372
- export type CreditSummary = Resource & {
1373
+ export interface CreditSummary extends Resource {
1373
1374
  /**
1374
1375
  * Summary of balances associated with this credit summary.
1375
1376
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1410,10 +1411,10 @@ export type CreditSummary = Resource & {
1410
1411
  * NOTE: This property will not be serialized. It can only be populated by the server.
1411
1412
  */
1412
1413
  readonly eTag?: string;
1413
- };
1414
+ }
1414
1415
 
1415
1416
  /** A budget resource. */
1416
- export type Budget = ProxyResource & {
1417
+ export interface Budget extends ProxyResource {
1417
1418
  /** The category of the budget, whether the budget tracks cost or usage. */
1418
1419
  category?: CategoryType;
1419
1420
  /** The total amount of cost to track with the budget */
@@ -1436,10 +1437,10 @@ export type Budget = ProxyResource & {
1436
1437
  * NOTE: This property will not be serialized. It can only be populated by the server.
1437
1438
  */
1438
1439
  readonly forecastSpend?: ForecastSpend;
1439
- };
1440
+ }
1440
1441
 
1441
1442
  /** A resource listing all tags. */
1442
- export type TagsResult = ProxyResource & {
1443
+ export interface TagsResult extends ProxyResource {
1443
1444
  /** A list of Tag. */
1444
1445
  tags?: Tag[];
1445
1446
  /**
@@ -1452,16 +1453,16 @@ export type TagsResult = ProxyResource & {
1452
1453
  * NOTE: This property will not be serialized. It can only be populated by the server.
1453
1454
  */
1454
1455
  readonly previousLink?: string;
1455
- };
1456
+ }
1456
1457
 
1457
1458
  /** A charge summary resource. */
1458
- export type ChargeSummary = ProxyResource & {
1459
+ export interface ChargeSummary extends ProxyResource {
1459
1460
  /** Specifies the kind of charge summary. */
1460
1461
  kind: ChargeSummaryKind;
1461
- };
1462
+ }
1462
1463
 
1463
1464
  /** An event summary resource. */
1464
- export type EventSummary = ProxyResource & {
1465
+ export interface EventSummary extends ProxyResource {
1465
1466
  /**
1466
1467
  * The date of the event.
1467
1468
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1574,10 +1575,10 @@ export type EventSummary = ProxyResource & {
1574
1575
  * NOTE: This property will not be serialized. It can only be populated by the server.
1575
1576
  */
1576
1577
  readonly eTagPropertiesETag?: string;
1577
- };
1578
+ }
1578
1579
 
1579
1580
  /** A lot summary resource. */
1580
- export type LotSummary = ProxyResource & {
1581
+ export interface LotSummary extends ProxyResource {
1581
1582
  /**
1582
1583
  * The original amount of a lot.
1583
1584
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1648,10 +1649,10 @@ export type LotSummary = ProxyResource & {
1648
1649
  * NOTE: This property will not be serialized. It can only be populated by the server.
1649
1650
  */
1650
1651
  readonly eTagPropertiesETag?: string;
1651
- };
1652
+ }
1652
1653
 
1653
1654
  /** Reservation transaction resource. */
1654
- export type ReservationTransaction = ReservationTransactionResource & {
1655
+ export interface ReservationTransaction extends ReservationTransactionResource {
1655
1656
  /**
1656
1657
  * The date of the transaction
1657
1658
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1767,10 +1768,11 @@ export type ReservationTransaction = ReservationTransactionResource & {
1767
1768
  * NOTE: This property will not be serialized. It can only be populated by the server.
1768
1769
  */
1769
1770
  readonly overage?: number;
1770
- };
1771
+ }
1771
1772
 
1772
1773
  /** Modern Reservation transaction resource. */
1773
- export type ModernReservationTransaction = ReservationTransactionResource & {
1774
+ export interface ModernReservationTransaction
1775
+ extends ReservationTransactionResource {
1774
1776
  /**
1775
1777
  * The charge of the transaction.
1776
1778
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1871,10 +1873,10 @@ export type ModernReservationTransaction = ReservationTransactionResource & {
1871
1873
  * NOTE: This property will not be serialized. It can only be populated by the server.
1872
1874
  */
1873
1875
  readonly term?: string;
1874
- };
1876
+ }
1875
1877
 
1876
1878
  /** The amount with exchange rate. */
1877
- export type AmountWithExchangeRate = Amount & {
1879
+ export interface AmountWithExchangeRate extends Amount {
1878
1880
  /**
1879
1881
  * The exchange rate.
1880
1882
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1885,10 +1887,11 @@ export type AmountWithExchangeRate = Amount & {
1885
1887
  * NOTE: This property will not be serialized. It can only be populated by the server.
1886
1888
  */
1887
1889
  readonly exchangeRateMonth?: number;
1888
- };
1890
+ }
1889
1891
 
1890
1892
  /** The properties of the legacy reservation recommendation for single scope. */
1891
- export type LegacySingleScopeReservationRecommendationProperties = LegacyReservationRecommendationProperties & {
1893
+ export interface LegacySingleScopeReservationRecommendationProperties
1894
+ extends LegacyReservationRecommendationProperties {
1892
1895
  /** Polymorphic discriminator, which specifies the different types this object can be */
1893
1896
  scope: "Single";
1894
1897
  /**
@@ -1896,16 +1899,19 @@ export type LegacySingleScopeReservationRecommendationProperties = LegacyReserva
1896
1899
  * NOTE: This property will not be serialized. It can only be populated by the server.
1897
1900
  */
1898
1901
  readonly subscriptionId?: string;
1899
- };
1902
+ }
1900
1903
 
1901
1904
  /** The properties of the legacy reservation recommendation for shared scope. */
1902
- export type LegacySharedScopeReservationRecommendationProperties = LegacyReservationRecommendationProperties & {
1905
+ export interface LegacySharedScopeReservationRecommendationProperties
1906
+ extends LegacyReservationRecommendationProperties {
1903
1907
  /** Polymorphic discriminator, which specifies the different types this object can be */
1904
1908
  scope: "Shared";
1905
- };
1909
+ }
1906
1910
 
1907
1911
  /** Legacy usage detail. */
1908
- export type LegacyUsageDetail = UsageDetail & {
1912
+ export interface LegacyUsageDetail extends UsageDetail {
1913
+ /** Polymorphic discriminator, which specifies the different types this object can be */
1914
+ kind: "legacy";
1909
1915
  /**
1910
1916
  * Billing Account identifier.
1911
1917
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2126,10 +2132,12 @@ export type LegacyUsageDetail = UsageDetail & {
2126
2132
  * NOTE: This property will not be serialized. It can only be populated by the server.
2127
2133
  */
2128
2134
  readonly pricingModel?: PricingModelType;
2129
- };
2135
+ }
2130
2136
 
2131
2137
  /** Modern usage detail. */
2132
- export type ModernUsageDetail = UsageDetail & {
2138
+ export interface ModernUsageDetail extends UsageDetail {
2139
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2140
+ kind: "modern";
2133
2141
  /**
2134
2142
  * Billing Account identifier.
2135
2143
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2490,10 +2498,13 @@ export type ModernUsageDetail = UsageDetail & {
2490
2498
  * NOTE: This property will not be serialized. It can only be populated by the server.
2491
2499
  */
2492
2500
  readonly costAllocationRuleName?: string;
2493
- };
2501
+ }
2494
2502
 
2495
2503
  /** Legacy reservation recommendation. */
2496
- export type LegacyReservationRecommendation = ReservationRecommendation & {
2504
+ export interface LegacyReservationRecommendation
2505
+ extends ReservationRecommendation {
2506
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2507
+ kind: "legacy";
2497
2508
  /**
2498
2509
  * The number of days of usage to look back for recommendation.
2499
2510
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2566,10 +2577,13 @@ export type LegacyReservationRecommendation = ReservationRecommendation & {
2566
2577
  * NOTE: This property will not be serialized. It can only be populated by the server.
2567
2578
  */
2568
2579
  readonly skuProperties?: SkuProperty[];
2569
- };
2580
+ }
2570
2581
 
2571
2582
  /** Modern reservation recommendation. */
2572
- export type ModernReservationRecommendation = ReservationRecommendation & {
2583
+ export interface ModernReservationRecommendation
2584
+ extends ReservationRecommendation {
2585
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2586
+ kind: "modern";
2573
2587
  /**
2574
2588
  * Resource Location.
2575
2589
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2650,10 +2664,12 @@ export type ModernReservationRecommendation = ReservationRecommendation & {
2650
2664
  * NOTE: This property will not be serialized. It can only be populated by the server.
2651
2665
  */
2652
2666
  readonly skuName?: string;
2653
- };
2667
+ }
2654
2668
 
2655
2669
  /** Legacy charge summary. */
2656
- export type LegacyChargeSummary = ChargeSummary & {
2670
+ export interface LegacyChargeSummary extends ChargeSummary {
2671
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2672
+ kind: "legacy";
2657
2673
  /**
2658
2674
  * The id of the billing period resource that the charge belongs to.
2659
2675
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2689,10 +2705,12 @@ export type LegacyChargeSummary = ChargeSummary & {
2689
2705
  * NOTE: This property will not be serialized. It can only be populated by the server.
2690
2706
  */
2691
2707
  readonly currency?: string;
2692
- };
2708
+ }
2693
2709
 
2694
2710
  /** Modern charge summary. */
2695
- export type ModernChargeSummary = ChargeSummary & {
2711
+ export interface ModernChargeSummary extends ChargeSummary {
2712
+ /** Polymorphic discriminator, which specifies the different types this object can be */
2713
+ kind: "modern";
2696
2714
  /**
2697
2715
  * The id of the billing period resource that the charge belongs to.
2698
2716
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -2748,10 +2766,10 @@ export type ModernChargeSummary = ChargeSummary & {
2748
2766
  * NOTE: This property will not be serialized. It can only be populated by the server.
2749
2767
  */
2750
2768
  readonly isInvoiced?: boolean;
2751
- };
2769
+ }
2752
2770
 
2753
2771
  /** Legacy Reservation transaction resource. */
2754
- export type LegacyReservationTransaction = ReservationTransaction & {};
2772
+ export interface LegacyReservationTransaction extends ReservationTransaction {}
2755
2773
 
2756
2774
  /** Known values of {@link Metrictype} that the service accepts. */
2757
2775
  export enum KnownMetrictype {
@@ -2776,7 +2794,9 @@ export type Metrictype = string;
2776
2794
 
2777
2795
  /** Known values of {@link UsageDetailsKind} that the service accepts. */
2778
2796
  export enum KnownUsageDetailsKind {
2797
+ /** Legacy */
2779
2798
  Legacy = "legacy",
2799
+ /** Modern */
2780
2800
  Modern = "modern"
2781
2801
  }
2782
2802
 
@@ -2792,6 +2812,7 @@ export type UsageDetailsKind = string;
2792
2812
 
2793
2813
  /** Known values of {@link CategoryType} that the service accepts. */
2794
2814
  export enum KnownCategoryType {
2815
+ /** Cost */
2795
2816
  Cost = "Cost"
2796
2817
  }
2797
2818
 
@@ -2806,11 +2827,17 @@ export type CategoryType = string;
2806
2827
 
2807
2828
  /** Known values of {@link TimeGrainType} that the service accepts. */
2808
2829
  export enum KnownTimeGrainType {
2830
+ /** Monthly */
2809
2831
  Monthly = "Monthly",
2832
+ /** Quarterly */
2810
2833
  Quarterly = "Quarterly",
2834
+ /** Annually */
2811
2835
  Annually = "Annually",
2836
+ /** BillingMonth */
2812
2837
  BillingMonth = "BillingMonth",
2838
+ /** BillingQuarter */
2813
2839
  BillingQuarter = "BillingQuarter",
2840
+ /** BillingAnnual */
2814
2841
  BillingAnnual = "BillingAnnual"
2815
2842
  }
2816
2843
 
@@ -2830,6 +2857,7 @@ export type TimeGrainType = string;
2830
2857
 
2831
2858
  /** Known values of {@link BudgetOperatorType} that the service accepts. */
2832
2859
  export enum KnownBudgetOperatorType {
2860
+ /** In */
2833
2861
  In = "In"
2834
2862
  }
2835
2863
 
@@ -2844,8 +2872,11 @@ export type BudgetOperatorType = string;
2844
2872
 
2845
2873
  /** Known values of {@link OperatorType} that the service accepts. */
2846
2874
  export enum KnownOperatorType {
2875
+ /** EqualTo */
2847
2876
  EqualTo = "EqualTo",
2877
+ /** GreaterThan */
2848
2878
  GreaterThan = "GreaterThan",
2879
+ /** GreaterThanOrEqualTo */
2849
2880
  GreaterThanOrEqualTo = "GreaterThanOrEqualTo"
2850
2881
  }
2851
2882
 
@@ -2862,7 +2893,9 @@ export type OperatorType = string;
2862
2893
 
2863
2894
  /** Known values of {@link ThresholdType} that the service accepts. */
2864
2895
  export enum KnownThresholdType {
2896
+ /** Actual */
2865
2897
  Actual = "Actual",
2898
+ /** Forecasted */
2866
2899
  Forecasted = "Forecasted"
2867
2900
  }
2868
2901
 
@@ -2878,26 +2911,47 @@ export type ThresholdType = string;
2878
2911
 
2879
2912
  /** Known values of {@link CultureCode} that the service accepts. */
2880
2913
  export enum KnownCultureCode {
2914
+ /** EnUs */
2881
2915
  EnUs = "en-us",
2916
+ /** JaJp */
2882
2917
  JaJp = "ja-jp",
2918
+ /** ZhCn */
2883
2919
  ZhCn = "zh-cn",
2920
+ /** DeDe */
2884
2921
  DeDe = "de-de",
2922
+ /** EsEs */
2885
2923
  EsEs = "es-es",
2924
+ /** FrFr */
2886
2925
  FrFr = "fr-fr",
2926
+ /** ItIt */
2887
2927
  ItIt = "it-it",
2928
+ /** KoKr */
2888
2929
  KoKr = "ko-kr",
2930
+ /** PtBr */
2889
2931
  PtBr = "pt-br",
2932
+ /** RuRu */
2890
2933
  RuRu = "ru-ru",
2934
+ /** ZhTw */
2891
2935
  ZhTw = "zh-tw",
2936
+ /** CsCz */
2892
2937
  CsCz = "cs-cz",
2938
+ /** PlPl */
2893
2939
  PlPl = "pl-pl",
2940
+ /** TrTr */
2894
2941
  TrTr = "tr-tr",
2942
+ /** DaDk */
2895
2943
  DaDk = "da-dk",
2944
+ /** EnGb */
2896
2945
  EnGb = "en-gb",
2946
+ /** HuHu */
2897
2947
  HuHu = "hu-hu",
2948
+ /** NbNo */
2898
2949
  NbNo = "nb-no",
2950
+ /** NlNl */
2899
2951
  NlNl = "nl-nl",
2952
+ /** PtPt */
2900
2953
  PtPt = "pt-pt",
2954
+ /** SvSe */
2901
2955
  SvSe = "sv-se"
2902
2956
  }
2903
2957
 
@@ -2932,7 +2986,9 @@ export type CultureCode = string;
2932
2986
 
2933
2987
  /** Known values of {@link ChargeSummaryKind} that the service accepts. */
2934
2988
  export enum KnownChargeSummaryKind {
2989
+ /** Legacy */
2935
2990
  Legacy = "legacy",
2991
+ /** Modern */
2936
2992
  Modern = "modern"
2937
2993
  }
2938
2994
 
@@ -2948,8 +3004,11 @@ export type ChargeSummaryKind = string;
2948
3004
 
2949
3005
  /** Known values of {@link BillingFrequency} that the service accepts. */
2950
3006
  export enum KnownBillingFrequency {
3007
+ /** Month */
2951
3008
  Month = "Month",
3009
+ /** Quarter */
2952
3010
  Quarter = "Quarter",
3011
+ /** Year */
2953
3012
  Year = "Year"
2954
3013
  }
2955
3014
 
@@ -2984,7 +3043,9 @@ export type Datagrain = string;
2984
3043
 
2985
3044
  /** Known values of {@link ReservationRecommendationKind} that the service accepts. */
2986
3045
  export enum KnownReservationRecommendationKind {
3046
+ /** Legacy */
2987
3047
  Legacy = "legacy",
3048
+ /** Modern */
2988
3049
  Modern = "modern"
2989
3050
  }
2990
3051
 
@@ -3039,12 +3100,19 @@ export type LookBackPeriod = string;
3039
3100
 
3040
3101
  /** Known values of {@link EventType} that the service accepts. */
3041
3102
  export enum KnownEventType {
3103
+ /** SettledCharges */
3042
3104
  SettledCharges = "SettledCharges",
3105
+ /** PendingCharges */
3043
3106
  PendingCharges = "PendingCharges",
3107
+ /** PendingAdjustments */
3044
3108
  PendingAdjustments = "PendingAdjustments",
3109
+ /** PendingNewCredit */
3045
3110
  PendingNewCredit = "PendingNewCredit",
3111
+ /** PendingExpiredCredit */
3046
3112
  PendingExpiredCredit = "PendingExpiredCredit",
3113
+ /** UnKnown */
3047
3114
  UnKnown = "UnKnown",
3115
+ /** NewCredit */
3048
3116
  NewCredit = "NewCredit"
3049
3117
  }
3050
3118
 
@@ -3065,8 +3133,11 @@ export type EventType = string;
3065
3133
 
3066
3134
  /** Known values of {@link LotSource} that the service accepts. */
3067
3135
  export enum KnownLotSource {
3136
+ /** PurchasedCredit */
3068
3137
  PurchasedCredit = "PurchasedCredit",
3138
+ /** PromotionalCredit */
3069
3139
  PromotionalCredit = "PromotionalCredit",
3140
+ /** ConsumptionCommitment */
3070
3141
  ConsumptionCommitment = "ConsumptionCommitment"
3071
3142
  }
3072
3143
 
@@ -3083,11 +3154,17 @@ export type LotSource = string;
3083
3154
 
3084
3155
  /** Known values of {@link Status} that the service accepts. */
3085
3156
  export enum KnownStatus {
3157
+ /** None */
3086
3158
  None = "None",
3159
+ /** Active */
3087
3160
  Active = "Active",
3161
+ /** Inactive */
3088
3162
  Inactive = "Inactive",
3163
+ /** Expired */
3089
3164
  Expired = "Expired",
3165
+ /** Complete */
3090
3166
  Complete = "Complete",
3167
+ /** Canceled */
3091
3168
  Canceled = "Canceled"
3092
3169
  }
3093
3170
 
@@ -3107,8 +3184,11 @@ export type Status = string;
3107
3184
 
3108
3185
  /** Known values of {@link PricingModelType} that the service accepts. */
3109
3186
  export enum KnownPricingModelType {
3187
+ /** OnDemand */
3110
3188
  OnDemand = "On Demand",
3189
+ /** Reservation */
3111
3190
  Reservation = "Reservation",
3191
+ /** Spot */
3112
3192
  Spot = "Spot"
3113
3193
  }
3114
3194
 
@@ -3125,7 +3205,9 @@ export type PricingModelType = string;
3125
3205
 
3126
3206
  /** Known values of {@link Scope} that the service accepts. */
3127
3207
  export enum KnownScope {
3208
+ /** Single */
3128
3209
  Single = "Single",
3210
+ /** Shared */
3129
3211
  Shared = "Shared"
3130
3212
  }
3131
3213