@azure/arm-commerce 3.0.0 → 4.0.0-beta.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.
Files changed (116) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +70 -88
  5. package/dist/index.js +822 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/samples-dev/getRateCard.d.ts +2 -0
  10. package/dist-esm/samples-dev/getRateCard.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/getRateCard.js +30 -0
  12. package/dist-esm/samples-dev/getRateCard.js.map +1 -0
  13. package/dist-esm/src/index.d.ts +5 -0
  14. package/dist-esm/src/index.d.ts.map +1 -0
  15. package/dist-esm/src/index.js +12 -0
  16. package/dist-esm/src/index.js.map +1 -0
  17. package/dist-esm/src/models/index.d.ts +178 -0
  18. package/dist-esm/src/models/index.d.ts.map +1 -0
  19. package/{esm → dist-esm/src}/models/index.js +1 -0
  20. package/dist-esm/src/models/index.js.map +1 -0
  21. package/dist-esm/src/models/mappers.d.ts +19 -0
  22. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  23. package/{esm → dist-esm/src}/models/mappers.js +129 -144
  24. package/dist-esm/src/models/mappers.js.map +1 -0
  25. package/dist-esm/src/models/parameters.d.ts +13 -0
  26. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  27. package/{esm → dist-esm/src}/models/parameters.js +60 -60
  28. package/dist-esm/src/models/parameters.js.map +1 -0
  29. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  30. package/dist-esm/src/operations/index.d.ts.map +1 -0
  31. package/{esm → dist-esm/src}/operations/index.js +1 -2
  32. package/dist-esm/src/operations/index.js.map +1 -0
  33. package/dist-esm/src/operations/rateCard.d.ts +27 -0
  34. package/dist-esm/src/operations/rateCard.d.ts.map +1 -0
  35. package/dist-esm/src/operations/rateCard.js +55 -0
  36. package/dist-esm/src/operations/rateCard.js.map +1 -0
  37. package/dist-esm/src/operations/usageAggregates.d.ts +38 -0
  38. package/dist-esm/src/operations/usageAggregates.d.ts.map +1 -0
  39. package/dist-esm/src/operations/usageAggregates.js +144 -0
  40. package/dist-esm/src/operations/usageAggregates.js.map +1 -0
  41. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  42. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  43. package/{esm/models/usageAggregatesMappers.js → dist-esm/src/operationsInterfaces/index.js} +3 -2
  44. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  45. package/dist-esm/src/operationsInterfaces/rateCard.d.ts +19 -0
  46. package/dist-esm/src/operationsInterfaces/rateCard.d.ts.map +1 -0
  47. package/dist-esm/src/operationsInterfaces/rateCard.js +9 -0
  48. package/dist-esm/src/operationsInterfaces/rateCard.js.map +1 -0
  49. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts +13 -0
  50. package/dist-esm/src/operationsInterfaces/usageAggregates.d.ts.map +1 -0
  51. package/dist-esm/src/operationsInterfaces/usageAggregates.js +9 -0
  52. package/dist-esm/src/operationsInterfaces/usageAggregates.js.map +1 -0
  53. package/dist-esm/src/usageManagementClient.d.ts +20 -0
  54. package/dist-esm/src/usageManagementClient.d.ts.map +1 -0
  55. package/dist-esm/src/usageManagementClient.js +53 -0
  56. package/dist-esm/src/usageManagementClient.js.map +1 -0
  57. package/dist-esm/test/commerce_examples.d.ts +4 -0
  58. package/dist-esm/test/commerce_examples.d.ts.map +1 -0
  59. package/dist-esm/test/commerce_examples.js +58 -0
  60. package/dist-esm/test/commerce_examples.js.map +1 -0
  61. package/package.json +75 -33
  62. package/review/arm-commerce.api.md +178 -0
  63. package/rollup.config.js +181 -30
  64. package/src/{models/rateCardMappers.ts → index.ts} +4 -10
  65. package/src/models/index.ts +140 -353
  66. package/src/models/mappers.ts +135 -148
  67. package/src/models/parameters.ts +75 -61
  68. package/src/operations/index.ts +1 -2
  69. package/src/operations/rateCard.ts +36 -60
  70. package/src/operations/usageAggregates.ts +122 -88
  71. package/src/{models/usageAggregatesMappers.ts → operationsInterfaces/index.ts} +2 -7
  72. package/src/operationsInterfaces/rateCard.ts +30 -0
  73. package/src/operationsInterfaces/usageAggregates.ts +26 -0
  74. package/src/usageManagementClient.ts +64 -36
  75. package/tsconfig.json +5 -4
  76. package/types/arm-commerce.d.ts +247 -0
  77. package/types/tsdoc-metadata.json +11 -0
  78. package/dist/arm-commerce.js +0 -930
  79. package/dist/arm-commerce.js.map +0 -1
  80. package/dist/arm-commerce.min.js +0 -1
  81. package/dist/arm-commerce.min.js.map +0 -1
  82. package/esm/models/index.d.ts +0 -397
  83. package/esm/models/index.d.ts.map +0 -1
  84. package/esm/models/index.js.map +0 -1
  85. package/esm/models/mappers.d.ts +0 -21
  86. package/esm/models/mappers.d.ts.map +0 -1
  87. package/esm/models/mappers.js.map +0 -1
  88. package/esm/models/parameters.d.ts +0 -12
  89. package/esm/models/parameters.d.ts.map +0 -1
  90. package/esm/models/parameters.js.map +0 -1
  91. package/esm/models/rateCardMappers.d.ts +0 -2
  92. package/esm/models/rateCardMappers.d.ts.map +0 -1
  93. package/esm/models/rateCardMappers.js +0 -9
  94. package/esm/models/rateCardMappers.js.map +0 -1
  95. package/esm/models/usageAggregatesMappers.d.ts +0 -2
  96. package/esm/models/usageAggregatesMappers.d.ts.map +0 -1
  97. package/esm/models/usageAggregatesMappers.js.map +0 -1
  98. package/esm/operations/index.d.ts.map +0 -1
  99. package/esm/operations/index.js.map +0 -1
  100. package/esm/operations/rateCard.d.ts +0 -43
  101. package/esm/operations/rateCard.d.ts.map +0 -1
  102. package/esm/operations/rateCard.js +0 -55
  103. package/esm/operations/rateCard.js.map +0 -1
  104. package/esm/operations/usageAggregates.d.ts +0 -58
  105. package/esm/operations/usageAggregates.d.ts.map +0 -1
  106. package/esm/operations/usageAggregates.js +0 -96
  107. package/esm/operations/usageAggregates.js.map +0 -1
  108. package/esm/usageManagementClient.d.ts +0 -26
  109. package/esm/usageManagementClient.d.ts.map +0 -1
  110. package/esm/usageManagementClient.js +0 -39
  111. package/esm/usageManagementClient.js.map +0 -1
  112. package/esm/usageManagementClientContext.d.ts +0 -23
  113. package/esm/usageManagementClientContext.d.ts.map +0 -1
  114. package/esm/usageManagementClientContext.js +0 -61
  115. package/esm/usageManagementClientContext.js.map +0 -1
  116. package/src/usageManagementClientContext.ts +0 -68
@@ -6,418 +6,205 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
11
-
12
- export { BaseResource, CloudError };
13
-
14
- /**
15
- * Key-value pairs of instance details in the legacy format.
16
- */
17
- export interface InfoField {
18
- /**
19
- * Identifies the name of the instance provisioned by the user.
20
- */
21
- project?: string;
9
+ import * as coreClient from "@azure/core-client";
10
+
11
+ export type OfferTermInfoAutoGeneratedUnion =
12
+ | OfferTermInfoAutoGenerated
13
+ | MonetaryCredit
14
+ | MonetaryCommitment
15
+ | RecurringCharge;
16
+
17
+ /** The Get UsageAggregates operation response. */
18
+ export interface UsageAggregationListResult {
19
+ /** Gets or sets details for the requested aggregation. */
20
+ value?: UsageAggregation[];
21
+ /** Gets or sets the link to the next set of results. */
22
+ nextLink?: string;
22
23
  }
23
24
 
24
- /**
25
- * Describes the usageAggregation.
26
- */
25
+ /** Describes the usageAggregation. */
27
26
  export interface UsageAggregation {
28
- /**
29
- * Unique Id for the usage aggregate.
30
- */
27
+ /** Unique Id for the usage aggregate. */
31
28
  id?: string;
32
- /**
33
- * Name of the usage aggregate.
34
- */
29
+ /** Name of the usage aggregate. */
35
30
  name?: string;
36
- /**
37
- * Type of the resource being returned.
38
- */
31
+ /** Type of the resource being returned. */
39
32
  type?: string;
40
- /**
41
- * The subscription identifier for the Azure user.
42
- */
33
+ /** The subscription identifier for the Azure user. */
43
34
  subscriptionId?: string;
44
- /**
45
- * Unique ID for the resource that was consumed (aka ResourceID).
46
- */
35
+ /** Unique ID for the resource that was consumed (aka ResourceID). */
47
36
  meterId?: string;
48
- /**
49
- * UTC start time for the usage bucket to which this usage aggregate belongs.
50
- */
37
+ /** UTC start time for the usage bucket to which this usage aggregate belongs. */
51
38
  usageStartTime?: Date;
52
- /**
53
- * UTC end time for the usage bucket to which this usage aggregate belongs.
54
- */
39
+ /** UTC end time for the usage bucket to which this usage aggregate belongs. */
55
40
  usageEndTime?: Date;
56
- /**
57
- * The amount of the resource consumption that occurred in this time frame.
58
- */
41
+ /** The amount of the resource consumption that occurred in this time frame. */
59
42
  quantity?: number;
60
- /**
61
- * The unit in which the usage for this resource is being counted, e.g. Hours, GB.
62
- */
43
+ /** The unit in which the usage for this resource is being counted, e.g. Hours, GB. */
63
44
  unit?: string;
64
- /**
65
- * Friendly name of the resource being consumed.
66
- */
45
+ /** Friendly name of the resource being consumed. */
67
46
  meterName?: string;
68
- /**
69
- * Category of the consumed resource.
70
- */
47
+ /** Category of the consumed resource. */
71
48
  meterCategory?: string;
72
- /**
73
- * Sub-category of the consumed resource.
74
- */
49
+ /** Sub-category of the consumed resource. */
75
50
  meterSubCategory?: string;
76
- /**
77
- * Region of the meterId used for billing purposes
78
- */
51
+ /** Region of the meterId used for billing purposes */
79
52
  meterRegion?: string;
80
- /**
81
- * Key-value pairs of instance details (legacy format).
82
- */
53
+ /** Key-value pairs of instance details (legacy format). */
83
54
  infoFields?: InfoField;
84
- /**
85
- * Key-value pairs of instance details represented as a string.
86
- */
55
+ /** Key-value pairs of instance details represented as a string. */
87
56
  instanceData?: string;
88
57
  }
89
58
 
90
- /**
91
- * Parameters that are used in the odata $filter query parameter for providing RateCard
92
- * information.
93
- */
94
- export interface RateCardQueryParameters {
95
- /**
96
- * The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g.,
97
- * MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more
98
- * information on the list of available Offer IDs, country/region availability, and billing
99
- * currency.
100
- */
101
- offerDurableId: string;
102
- /**
103
- * The currency in which the rates need to be provided.
104
- */
105
- currency: string;
106
- /**
107
- * The culture in which the resource metadata needs to be localized.
108
- */
109
- locale: string;
110
- /**
111
- * 2 letter ISO code where the offer was purchased.
112
- */
113
- regionInfo: string;
59
+ /** Key-value pairs of instance details in the legacy format. */
60
+ export interface InfoField {
61
+ /** Identifies the name of the instance provisioned by the user. */
62
+ project?: string;
114
63
  }
115
64
 
116
- /**
117
- * Contains the possible cases for OfferTermInfo.
118
- */
119
- export type OfferTermInfoUnion = OfferTermInfo | MonetaryCredit | MonetaryCommitment | RecurringCharge;
65
+ /** Describes the format of Error response. */
66
+ export interface ErrorResponse {
67
+ /** Error code */
68
+ code?: string;
69
+ /** Error message indicating why the operation failed. */
70
+ message?: string;
71
+ }
120
72
 
121
- /**
122
- * Describes the offer term.
123
- */
124
- export interface OfferTermInfo {
125
- /**
126
- * Polymorphic Discriminator
127
- */
128
- name: "OfferTermInfo";
129
- /**
130
- * Indicates the date from which the offer term is effective.
131
- */
73
+ /** Price and Metadata information for resources */
74
+ export interface ResourceRateCardInfo {
75
+ /** The currency in which the rates are provided. */
76
+ currency?: string;
77
+ /** The culture in which the resource information is localized. */
78
+ locale?: string;
79
+ /** All rates are pretax, so this will always be returned as 'false'. */
80
+ isTaxIncluded?: boolean;
81
+ /** A list of offer terms. */
82
+ offerTerms?: OfferTermInfoAutoGeneratedUnion[];
83
+ /** A list of meters. */
84
+ meters?: MeterInfo[];
85
+ }
86
+
87
+ /** Describes the offer term. */
88
+ export interface OfferTermInfoAutoGenerated {
89
+ /** Polymorphic discriminator, which specifies the different types this object can be */
90
+ name: "Monetary Credit" | "Monetary Commitment" | "Recurring Charge";
91
+ /** Indicates the date from which the offer term is effective. */
132
92
  effectiveDate?: Date;
133
93
  }
134
94
 
135
- /**
136
- * Detailed information about the meter.
137
- */
95
+ /** Detailed information about the meter. */
138
96
  export interface MeterInfo {
139
- /**
140
- * The unique identifier of the resource.
141
- */
97
+ /** The unique identifier of the resource. */
142
98
  meterId?: string;
143
- /**
144
- * The name of the meter, within the given meter category
145
- */
99
+ /** The name of the meter, within the given meter category */
146
100
  meterName?: string;
147
- /**
148
- * The category of the meter, e.g., 'Cloud services', 'Networking', etc..
149
- */
101
+ /** The category of the meter, e.g., 'Cloud services', 'Networking', etc.. */
150
102
  meterCategory?: string;
151
- /**
152
- * The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..
153
- */
103
+ /** The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc.. */
154
104
  meterSubCategory?: string;
155
- /**
156
- * The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.
157
- */
105
+ /** The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc. */
158
106
  unit?: string;
159
- /**
160
- * Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks
161
- * indicate First Party.
162
- */
107
+ /** Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks indicate First Party. */
163
108
  meterTags?: string[];
164
- /**
165
- * The region in which the Azure service is available.
166
- */
109
+ /** The region in which the Azure service is available. */
167
110
  meterRegion?: string;
168
- /**
169
- * The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the
170
- * meter quantity, and value = the corresponding price
171
- */
111
+ /** The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the meter quantity, and value = the corresponding price */
172
112
  meterRates?: { [propertyName: string]: number };
173
- /**
174
- * Indicates the date from which the meter rate is effective.
175
- */
113
+ /** Indicates the date from which the meter rate is effective. */
176
114
  effectiveDate?: Date;
177
- /**
178
- * The resource quantity that is included in the offer at no cost. Consumption beyond this
179
- * quantity will be charged.
180
- */
115
+ /** The resource quantity that is included in the offer at no cost. Consumption beyond this quantity will be charged. */
181
116
  includedQuantity?: number;
182
117
  }
183
118
 
184
- /**
185
- * Price and Metadata information for resources
186
- */
187
- export interface ResourceRateCardInfo {
188
- /**
189
- * The currency in which the rates are provided.
190
- */
191
- currency?: string;
192
- /**
193
- * The culture in which the resource information is localized.
194
- */
195
- locale?: string;
196
- /**
197
- * All rates are pretax, so this will always be returned as 'false'.
198
- */
199
- isTaxIncluded?: boolean;
200
- /**
201
- * A list of offer terms.
202
- */
203
- offerTerms?: OfferTermInfoUnion[];
204
- /**
205
- * A list of meters.
206
- */
207
- meters?: MeterInfo[];
119
+ /** Parameters that are used in the odata $filter query parameter for providing RateCard information. */
120
+ export interface RateCardQueryParameters {
121
+ /** The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g., MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more information on the list of available Offer IDs, country/region availability, and billing currency. */
122
+ offerDurableId: string;
123
+ /** The currency in which the rates need to be provided. */
124
+ currency: string;
125
+ /** The culture in which the resource metadata needs to be localized. */
126
+ locale: string;
127
+ /** 2 letter ISO code where the offer was purchased. */
128
+ regionInfo: string;
208
129
  }
209
130
 
210
- /**
211
- * Indicates that this is a monetary credit offer.
212
- */
213
- export interface MonetaryCredit {
214
- /**
215
- * Polymorphic Discriminator
216
- */
131
+ /** Indicates that this is a monetary credit offer. */
132
+ export type MonetaryCredit = OfferTermInfoAutoGenerated & {
133
+ /** Polymorphic discriminator, which specifies the different types this object can be */
217
134
  name: "Monetary Credit";
218
- /**
219
- * Indicates the date from which the offer term is effective.
220
- */
221
- effectiveDate?: Date;
222
- /**
223
- * The amount of credit provided under the terms of the given offer level.
224
- */
135
+ /** The amount of credit provided under the terms of the given offer level. */
225
136
  credit?: number;
226
- /**
227
- * An array of meter ids that are excluded from the given offer terms.
228
- */
137
+ /** An array of meter ids that are excluded from the given offer terms. */
229
138
  excludedMeterIds?: string[];
230
- }
139
+ };
231
140
 
232
- /**
233
- * Indicates that a monetary commitment is required for this offer
234
- */
235
- export interface MonetaryCommitment {
236
- /**
237
- * Polymorphic Discriminator
238
- */
141
+ /** Indicates that a monetary commitment is required for this offer */
142
+ export type MonetaryCommitment = OfferTermInfoAutoGenerated & {
143
+ /** Polymorphic discriminator, which specifies the different types this object can be */
239
144
  name: "Monetary Commitment";
240
- /**
241
- * Indicates the date from which the offer term is effective.
242
- */
243
- effectiveDate?: Date;
244
- /**
245
- * The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key
246
- * = price, and value = the corresponding discount percentage. This field is used only by offer
247
- * terms of type 'Monetary Commitment'.
248
- */
145
+ /** The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key = price, and value = the corresponding discount percentage. This field is used only by offer terms of type 'Monetary Commitment'. */
249
146
  tieredDiscount?: { [propertyName: string]: number };
250
- /**
251
- * An array of meter ids that are excluded from the given offer terms.
252
- */
147
+ /** An array of meter ids that are excluded from the given offer terms. */
253
148
  excludedMeterIds?: string[];
254
- }
149
+ };
255
150
 
256
- /**
257
- * Indicates a recurring charge is present for this offer.
258
- */
259
- export interface RecurringCharge {
260
- /**
261
- * Polymorphic Discriminator
262
- */
151
+ /** Indicates a recurring charge is present for this offer. */
152
+ export type RecurringCharge = OfferTermInfoAutoGenerated & {
153
+ /** Polymorphic discriminator, which specifies the different types this object can be */
263
154
  name: "Recurring Charge";
264
- /**
265
- * Indicates the date from which the offer term is effective.
266
- */
267
- effectiveDate?: Date;
268
- /**
269
- * The amount of recurring charge as per the offer term.
270
- */
155
+ /** The amount of recurring charge as per the offer term. */
271
156
  recurringCharge?: number;
272
- }
273
-
274
- /**
275
- * Describes the format of Error response.
276
- */
277
- export interface ErrorResponse {
278
- /**
279
- * Error code
280
- */
281
- code?: string;
282
- /**
283
- * Error message indicating why the operation failed.
284
- */
285
- message?: string;
286
- }
287
-
288
- /**
289
- * Optional Parameters.
290
- */
291
- export interface UsageAggregatesListOptionalParams extends msRest.RequestOptionsBase {
292
- /**
293
- * `True` returns usage data in instance-level detail, `false` causes server-side aggregation
294
- * with fewer details. For example, if you have 3 website instances, by default you will get 3
295
- * line items for website consumption. If you specify showDetails = false, the data will be
296
- * aggregated as a single line item for website consumption within the time period (for the given
297
- * subscriptionId, meterId, usageStartTime and usageEndTime).
298
- */
157
+ };
158
+ /** Defines values for AggregationGranularity. */
159
+ export type AggregationGranularity = "Daily" | "Hourly";
160
+ /** Defines values for OfferTermInfo. */
161
+ export type OfferTermInfo =
162
+ | "Recurring Charge"
163
+ | "Monetary Commitment"
164
+ | "Monetary Credit";
165
+
166
+ /** Optional parameters. */
167
+ export interface UsageAggregatesListOptionalParams
168
+ extends coreClient.OperationOptions {
169
+ /** `True` returns usage data in instance-level detail, `false` causes server-side aggregation with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and usageEndTime). */
299
170
  showDetails?: boolean;
300
- /**
301
- * `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly
302
- * granularity. Possible values include: 'Daily', 'Hourly'. Default value: 'Daily'.
303
- */
171
+ /** `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity. */
304
172
  aggregationGranularity?: AggregationGranularity;
305
- /**
306
- * Used when a continuation token string is provided in the response body of the previous call,
307
- * enabling paging through a large result set. If not present, the data is retrieved from the
308
- * beginning of the day/hour (based on the granularity) passed in.
309
- */
173
+ /** Used when a continuation token string is provided in the response body of the previous call, enabling paging through a large result set. If not present, the data is retrieved from the beginning of the day/hour (based on the granularity) passed in. */
310
174
  continuationToken?: string;
311
175
  }
312
176
 
313
- /**
314
- * Optional Parameters.
315
- */
316
- export interface UsageAggregatesListNextOptionalParams extends msRest.RequestOptionsBase {
317
- /**
318
- * `True` returns usage data in instance-level detail, `false` causes server-side aggregation
319
- * with fewer details. For example, if you have 3 website instances, by default you will get 3
320
- * line items for website consumption. If you specify showDetails = false, the data will be
321
- * aggregated as a single line item for website consumption within the time period (for the given
322
- * subscriptionId, meterId, usageStartTime and usageEndTime).
323
- */
177
+ /** Contains response data for the list operation. */
178
+ export type UsageAggregatesListResponse = UsageAggregationListResult;
179
+
180
+ /** Optional parameters. */
181
+ export interface UsageAggregatesListNextOptionalParams
182
+ extends coreClient.OperationOptions {
183
+ /** `True` returns usage data in instance-level detail, `false` causes server-side aggregation with fewer details. For example, if you have 3 website instances, by default you will get 3 line items for website consumption. If you specify showDetails = false, the data will be aggregated as a single line item for website consumption within the time period (for the given subscriptionId, meterId, usageStartTime and usageEndTime). */
324
184
  showDetails?: boolean;
325
- /**
326
- * `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly
327
- * granularity. Possible values include: 'Daily', 'Hourly'. Default value: 'Daily'.
328
- */
185
+ /** `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly granularity. */
329
186
  aggregationGranularity?: AggregationGranularity;
330
- /**
331
- * Used when a continuation token string is provided in the response body of the previous call,
332
- * enabling paging through a large result set. If not present, the data is retrieved from the
333
- * beginning of the day/hour (based on the granularity) passed in.
334
- */
187
+ /** Used when a continuation token string is provided in the response body of the previous call, enabling paging through a large result set. If not present, the data is retrieved from the beginning of the day/hour (based on the granularity) passed in. */
335
188
  continuationToken?: string;
336
189
  }
337
190
 
338
- /**
339
- * An interface representing UsageManagementClientOptions.
340
- */
341
- export interface UsageManagementClientOptions extends AzureServiceClientOptions {
342
- baseUri?: string;
343
- }
344
-
345
- /**
346
- * @interface
347
- * The Get UsageAggregates operation response.
348
- * @extends Array<UsageAggregation>
349
- */
350
- export interface UsageAggregationListResult extends Array<UsageAggregation> {
351
- /**
352
- * Gets or sets the link to the next set of results.
353
- */
354
- nextLink?: string;
191
+ /** Contains response data for the listNext operation. */
192
+ export type UsageAggregatesListNextResponse = UsageAggregationListResult;
193
+
194
+ /** Optional parameters. */
195
+ export interface RateCardGetOptionalParams
196
+ extends coreClient.OperationOptions {}
197
+
198
+ /** Contains response data for the get operation. */
199
+ export type RateCardGetResponse = ResourceRateCardInfo;
200
+
201
+ /** Optional parameters. */
202
+ export interface UsageManagementClientOptionalParams
203
+ extends coreClient.ServiceClientOptions {
204
+ /** server parameter */
205
+ $host?: string;
206
+ /** Api Version */
207
+ apiVersion?: string;
208
+ /** Overrides client endpoint. */
209
+ endpoint?: string;
355
210
  }
356
-
357
- /**
358
- * Defines values for AggregationGranularity.
359
- * Possible values include: 'Daily', 'Hourly'
360
- * @readonly
361
- * @enum {string}
362
- */
363
- export type AggregationGranularity = 'Daily' | 'Hourly';
364
-
365
- /**
366
- * Contains response data for the list operation.
367
- */
368
- export type UsageAggregatesListResponse = UsageAggregationListResult & {
369
- /**
370
- * The underlying HTTP response.
371
- */
372
- _response: msRest.HttpResponse & {
373
- /**
374
- * The response body as text (string format)
375
- */
376
- bodyAsText: string;
377
-
378
- /**
379
- * The response body as parsed JSON or XML
380
- */
381
- parsedBody: UsageAggregationListResult;
382
- };
383
- };
384
-
385
- /**
386
- * Contains response data for the listNext operation.
387
- */
388
- export type UsageAggregatesListNextResponse = UsageAggregationListResult & {
389
- /**
390
- * The underlying HTTP response.
391
- */
392
- _response: msRest.HttpResponse & {
393
- /**
394
- * The response body as text (string format)
395
- */
396
- bodyAsText: string;
397
-
398
- /**
399
- * The response body as parsed JSON or XML
400
- */
401
- parsedBody: UsageAggregationListResult;
402
- };
403
- };
404
-
405
- /**
406
- * Contains response data for the get operation.
407
- */
408
- export type RateCardGetResponse = ResourceRateCardInfo & {
409
- /**
410
- * The underlying HTTP response.
411
- */
412
- _response: msRest.HttpResponse & {
413
- /**
414
- * The response body as text (string format)
415
- */
416
- bodyAsText: string;
417
-
418
- /**
419
- * The response body as parsed JSON or XML
420
- */
421
- parsedBody: ResourceRateCardInfo;
422
- };
423
- };