@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
@@ -1 +0,0 @@
1
- {"version":3,"file":"arm-commerce.js","sources":["../node_modules/tslib/tslib.es6.js","../src/models/index.ts","../src/models/mappers.ts","../src/models/usageAggregatesMappers.ts","../src/models/parameters.ts","../src/operations/usageAggregates.ts","../src/models/rateCardMappers.ts","../src/operations/rateCard.ts","../src/usageManagementClientContext.ts","../src/usageManagementClient.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport function __createBinding(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n}\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { BaseResource, CloudError, AzureServiceClientOptions } from \"@azure/ms-rest-azure-js\";\nimport * as msRest from \"@azure/ms-rest-js\";\n\nexport { BaseResource, CloudError };\n\n/**\n * Key-value pairs of instance details in the legacy format.\n */\nexport interface InfoField {\n /**\n * Identifies the name of the instance provisioned by the user.\n */\n project?: string;\n}\n\n/**\n * Describes the usageAggregation.\n */\nexport interface UsageAggregation {\n /**\n * Unique Id for the usage aggregate.\n */\n id?: string;\n /**\n * Name of the usage aggregate.\n */\n name?: string;\n /**\n * Type of the resource being returned.\n */\n type?: string;\n /**\n * The subscription identifier for the Azure user.\n */\n subscriptionId?: string;\n /**\n * Unique ID for the resource that was consumed (aka ResourceID).\n */\n meterId?: string;\n /**\n * UTC start time for the usage bucket to which this usage aggregate belongs.\n */\n usageStartTime?: Date;\n /**\n * UTC end time for the usage bucket to which this usage aggregate belongs.\n */\n usageEndTime?: Date;\n /**\n * The amount of the resource consumption that occurred in this time frame.\n */\n quantity?: number;\n /**\n * The unit in which the usage for this resource is being counted, e.g. Hours, GB.\n */\n unit?: string;\n /**\n * Friendly name of the resource being consumed.\n */\n meterName?: string;\n /**\n * Category of the consumed resource.\n */\n meterCategory?: string;\n /**\n * Sub-category of the consumed resource.\n */\n meterSubCategory?: string;\n /**\n * Region of the meterId used for billing purposes\n */\n meterRegion?: string;\n /**\n * Key-value pairs of instance details (legacy format).\n */\n infoFields?: InfoField;\n /**\n * Key-value pairs of instance details represented as a string.\n */\n instanceData?: string;\n}\n\n/**\n * Parameters that are used in the odata $filter query parameter for providing RateCard\n * information.\n */\nexport interface RateCardQueryParameters {\n /**\n * The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g.,\n * MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more\n * information on the list of available Offer IDs, country/region availability, and billing\n * currency.\n */\n offerDurableId: string;\n /**\n * The currency in which the rates need to be provided.\n */\n currency: string;\n /**\n * The culture in which the resource metadata needs to be localized.\n */\n locale: string;\n /**\n * 2 letter ISO code where the offer was purchased.\n */\n regionInfo: string;\n}\n\n/**\n * Contains the possible cases for OfferTermInfo.\n */\nexport type OfferTermInfoUnion = OfferTermInfo | MonetaryCredit | MonetaryCommitment | RecurringCharge;\n\n/**\n * Describes the offer term.\n */\nexport interface OfferTermInfo {\n /**\n * Polymorphic Discriminator\n */\n name: \"OfferTermInfo\";\n /**\n * Indicates the date from which the offer term is effective.\n */\n effectiveDate?: Date;\n}\n\n/**\n * Detailed information about the meter.\n */\nexport interface MeterInfo {\n /**\n * The unique identifier of the resource.\n */\n meterId?: string;\n /**\n * The name of the meter, within the given meter category\n */\n meterName?: string;\n /**\n * The category of the meter, e.g., 'Cloud services', 'Networking', etc..\n */\n meterCategory?: string;\n /**\n * The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..\n */\n meterSubCategory?: string;\n /**\n * The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.\n */\n unit?: string;\n /**\n * Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks\n * indicate First Party.\n */\n meterTags?: string[];\n /**\n * The region in which the Azure service is available.\n */\n meterRegion?: string;\n /**\n * The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the\n * meter quantity, and value = the corresponding price\n */\n meterRates?: { [propertyName: string]: number };\n /**\n * Indicates the date from which the meter rate is effective.\n */\n effectiveDate?: Date;\n /**\n * The resource quantity that is included in the offer at no cost. Consumption beyond this\n * quantity will be charged.\n */\n includedQuantity?: number;\n}\n\n/**\n * Price and Metadata information for resources\n */\nexport interface ResourceRateCardInfo {\n /**\n * The currency in which the rates are provided.\n */\n currency?: string;\n /**\n * The culture in which the resource information is localized.\n */\n locale?: string;\n /**\n * All rates are pretax, so this will always be returned as 'false'.\n */\n isTaxIncluded?: boolean;\n /**\n * A list of offer terms.\n */\n offerTerms?: OfferTermInfoUnion[];\n /**\n * A list of meters.\n */\n meters?: MeterInfo[];\n}\n\n/**\n * Indicates that this is a monetary credit offer.\n */\nexport interface MonetaryCredit {\n /**\n * Polymorphic Discriminator\n */\n name: \"Monetary Credit\";\n /**\n * Indicates the date from which the offer term is effective.\n */\n effectiveDate?: Date;\n /**\n * The amount of credit provided under the terms of the given offer level.\n */\n credit?: number;\n /**\n * An array of meter ids that are excluded from the given offer terms.\n */\n excludedMeterIds?: string[];\n}\n\n/**\n * Indicates that a monetary commitment is required for this offer\n */\nexport interface MonetaryCommitment {\n /**\n * Polymorphic Discriminator\n */\n name: \"Monetary Commitment\";\n /**\n * Indicates the date from which the offer term is effective.\n */\n effectiveDate?: Date;\n /**\n * The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key\n * = price, and value = the corresponding discount percentage. This field is used only by offer\n * terms of type 'Monetary Commitment'.\n */\n tieredDiscount?: { [propertyName: string]: number };\n /**\n * An array of meter ids that are excluded from the given offer terms.\n */\n excludedMeterIds?: string[];\n}\n\n/**\n * Indicates a recurring charge is present for this offer.\n */\nexport interface RecurringCharge {\n /**\n * Polymorphic Discriminator\n */\n name: \"Recurring Charge\";\n /**\n * Indicates the date from which the offer term is effective.\n */\n effectiveDate?: Date;\n /**\n * The amount of recurring charge as per the offer term.\n */\n recurringCharge?: number;\n}\n\n/**\n * Describes the format of Error response.\n */\nexport interface ErrorResponse {\n /**\n * Error code\n */\n code?: string;\n /**\n * Error message indicating why the operation failed.\n */\n message?: string;\n}\n\n/**\n * Optional Parameters.\n */\nexport interface UsageAggregatesListOptionalParams extends msRest.RequestOptionsBase {\n /**\n * `True` returns usage data in instance-level detail, `false` causes server-side aggregation\n * with fewer details. For example, if you have 3 website instances, by default you will get 3\n * line items for website consumption. If you specify showDetails = false, the data will be\n * aggregated as a single line item for website consumption within the time period (for the given\n * subscriptionId, meterId, usageStartTime and usageEndTime).\n */\n showDetails?: boolean;\n /**\n * `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly\n * granularity. Possible values include: 'Daily', 'Hourly'. Default value: 'Daily'.\n */\n aggregationGranularity?: AggregationGranularity;\n /**\n * Used when a continuation token string is provided in the response body of the previous call,\n * enabling paging through a large result set. If not present, the data is retrieved from the\n * beginning of the day/hour (based on the granularity) passed in.\n */\n continuationToken?: string;\n}\n\n/**\n * Optional Parameters.\n */\nexport interface UsageAggregatesListNextOptionalParams extends msRest.RequestOptionsBase {\n /**\n * `True` returns usage data in instance-level detail, `false` causes server-side aggregation\n * with fewer details. For example, if you have 3 website instances, by default you will get 3\n * line items for website consumption. If you specify showDetails = false, the data will be\n * aggregated as a single line item for website consumption within the time period (for the given\n * subscriptionId, meterId, usageStartTime and usageEndTime).\n */\n showDetails?: boolean;\n /**\n * `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly\n * granularity. Possible values include: 'Daily', 'Hourly'. Default value: 'Daily'.\n */\n aggregationGranularity?: AggregationGranularity;\n /**\n * Used when a continuation token string is provided in the response body of the previous call,\n * enabling paging through a large result set. If not present, the data is retrieved from the\n * beginning of the day/hour (based on the granularity) passed in.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface representing UsageManagementClientOptions.\n */\nexport interface UsageManagementClientOptions extends AzureServiceClientOptions {\n baseUri?: string;\n}\n\n/**\n * @interface\n * The Get UsageAggregates operation response.\n * @extends Array<UsageAggregation>\n */\nexport interface UsageAggregationListResult extends Array<UsageAggregation> {\n /**\n * Gets or sets the link to the next set of results.\n */\n nextLink?: string;\n}\n\n/**\n * Defines values for AggregationGranularity.\n * Possible values include: 'Daily', 'Hourly'\n * @readonly\n * @enum {string}\n */\nexport type AggregationGranularity = 'Daily' | 'Hourly';\n\n/**\n * Contains response data for the list operation.\n */\nexport type UsageAggregatesListResponse = UsageAggregationListResult & {\n /**\n * The underlying HTTP response.\n */\n _response: msRest.HttpResponse & {\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n\n /**\n * The response body as parsed JSON or XML\n */\n parsedBody: UsageAggregationListResult;\n };\n};\n\n/**\n * Contains response data for the listNext operation.\n */\nexport type UsageAggregatesListNextResponse = UsageAggregationListResult & {\n /**\n * The underlying HTTP response.\n */\n _response: msRest.HttpResponse & {\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n\n /**\n * The response body as parsed JSON or XML\n */\n parsedBody: UsageAggregationListResult;\n };\n};\n\n/**\n * Contains response data for the get operation.\n */\nexport type RateCardGetResponse = ResourceRateCardInfo & {\n /**\n * The underlying HTTP response.\n */\n _response: msRest.HttpResponse & {\n /**\n * The response body as text (string format)\n */\n bodyAsText: string;\n\n /**\n * The response body as parsed JSON or XML\n */\n parsedBody: ResourceRateCardInfo;\n };\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CloudErrorMapper, BaseResourceMapper } from \"@azure/ms-rest-azure-js\";\nimport * as msRest from \"@azure/ms-rest-js\";\n\nexport const CloudError = CloudErrorMapper;\nexport const BaseResource = BaseResourceMapper;\n\nexport const InfoField: msRest.CompositeMapper = {\n serializedName: \"InfoField\",\n type: {\n name: \"Composite\",\n className: \"InfoField\",\n modelProperties: {\n project: {\n serializedName: \"project\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const UsageAggregation: msRest.CompositeMapper = {\n serializedName: \"UsageAggregation\",\n type: {\n name: \"Composite\",\n className: \"UsageAggregation\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n type: {\n name: \"String\"\n }\n },\n subscriptionId: {\n serializedName: \"properties.subscriptionId\",\n type: {\n name: \"Uuid\"\n }\n },\n meterId: {\n serializedName: \"properties.meterId\",\n type: {\n name: \"String\"\n }\n },\n usageStartTime: {\n serializedName: \"properties.usageStartTime\",\n type: {\n name: \"DateTime\"\n }\n },\n usageEndTime: {\n serializedName: \"properties.usageEndTime\",\n type: {\n name: \"DateTime\"\n }\n },\n quantity: {\n serializedName: \"properties.quantity\",\n type: {\n name: \"Number\"\n }\n },\n unit: {\n serializedName: \"properties.unit\",\n type: {\n name: \"String\"\n }\n },\n meterName: {\n serializedName: \"properties.meterName\",\n type: {\n name: \"String\"\n }\n },\n meterCategory: {\n serializedName: \"properties.meterCategory\",\n type: {\n name: \"String\"\n }\n },\n meterSubCategory: {\n serializedName: \"properties.meterSubCategory\",\n type: {\n name: \"String\"\n }\n },\n meterRegion: {\n serializedName: \"properties.meterRegion\",\n type: {\n name: \"String\"\n }\n },\n infoFields: {\n serializedName: \"properties.infoFields\",\n type: {\n name: \"Composite\",\n className: \"InfoField\"\n }\n },\n instanceData: {\n serializedName: \"properties.instanceData\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const RateCardQueryParameters: msRest.CompositeMapper = {\n serializedName: \"RateCardQueryParameters\",\n type: {\n name: \"Composite\",\n className: \"RateCardQueryParameters\",\n modelProperties: {\n offerDurableId: {\n required: true,\n serializedName: \"OfferDurableId\",\n constraints: {\n Pattern: /^MS-AZR-\\d{4}P(-\\d{4}P)*$/\n },\n type: {\n name: \"String\"\n }\n },\n currency: {\n required: true,\n serializedName: \"Currency\",\n type: {\n name: \"String\"\n }\n },\n locale: {\n required: true,\n serializedName: \"Locale\",\n type: {\n name: \"String\"\n }\n },\n regionInfo: {\n required: true,\n serializedName: \"RegionInfo\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const OfferTermInfo: msRest.CompositeMapper = {\n serializedName: \"OfferTermInfo\",\n type: {\n name: \"Composite\",\n polymorphicDiscriminator: {\n serializedName: \"Name\",\n clientName: \"name\"\n },\n uberParent: \"OfferTermInfo\",\n className: \"OfferTermInfo\",\n modelProperties: {\n effectiveDate: {\n serializedName: \"EffectiveDate\",\n type: {\n name: \"DateTime\"\n }\n },\n name: {\n required: true,\n serializedName: \"Name\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const MeterInfo: msRest.CompositeMapper = {\n serializedName: \"MeterInfo\",\n type: {\n name: \"Composite\",\n className: \"MeterInfo\",\n modelProperties: {\n meterId: {\n serializedName: \"MeterId\",\n type: {\n name: \"Uuid\"\n }\n },\n meterName: {\n serializedName: \"MeterName\",\n type: {\n name: \"String\"\n }\n },\n meterCategory: {\n serializedName: \"MeterCategory\",\n type: {\n name: \"String\"\n }\n },\n meterSubCategory: {\n serializedName: \"MeterSubCategory\",\n type: {\n name: \"String\"\n }\n },\n unit: {\n serializedName: \"Unit\",\n type: {\n name: \"String\"\n }\n },\n meterTags: {\n serializedName: \"MeterTags\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n },\n meterRegion: {\n serializedName: \"MeterRegion\",\n type: {\n name: \"String\"\n }\n },\n meterRates: {\n serializedName: \"MeterRates\",\n type: {\n name: \"Dictionary\",\n value: {\n type: {\n name: \"Number\"\n }\n }\n }\n },\n effectiveDate: {\n serializedName: \"EffectiveDate\",\n type: {\n name: \"DateTime\"\n }\n },\n includedQuantity: {\n serializedName: \"IncludedQuantity\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const ResourceRateCardInfo: msRest.CompositeMapper = {\n serializedName: \"ResourceRateCardInfo\",\n type: {\n name: \"Composite\",\n className: \"ResourceRateCardInfo\",\n modelProperties: {\n currency: {\n serializedName: \"Currency\",\n type: {\n name: \"String\"\n }\n },\n locale: {\n serializedName: \"Locale\",\n type: {\n name: \"String\"\n }\n },\n isTaxIncluded: {\n serializedName: \"IsTaxIncluded\",\n type: {\n name: \"Boolean\"\n }\n },\n offerTerms: {\n serializedName: \"OfferTerms\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"OfferTermInfo\"\n }\n }\n }\n },\n meters: {\n serializedName: \"Meters\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"MeterInfo\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MonetaryCredit: msRest.CompositeMapper = {\n serializedName: \"Monetary Credit\",\n type: {\n name: \"Composite\",\n polymorphicDiscriminator: OfferTermInfo.type.polymorphicDiscriminator,\n uberParent: \"OfferTermInfo\",\n className: \"MonetaryCredit\",\n modelProperties: {\n ...OfferTermInfo.type.modelProperties,\n credit: {\n serializedName: \"Credit\",\n type: {\n name: \"Number\"\n }\n },\n excludedMeterIds: {\n serializedName: \"ExcludedMeterIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Uuid\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const MonetaryCommitment: msRest.CompositeMapper = {\n serializedName: \"Monetary Commitment\",\n type: {\n name: \"Composite\",\n polymorphicDiscriminator: OfferTermInfo.type.polymorphicDiscriminator,\n uberParent: \"OfferTermInfo\",\n className: \"MonetaryCommitment\",\n modelProperties: {\n ...OfferTermInfo.type.modelProperties,\n tieredDiscount: {\n serializedName: \"TieredDiscount\",\n type: {\n name: \"Dictionary\",\n value: {\n type: {\n name: \"Number\"\n }\n }\n }\n },\n excludedMeterIds: {\n serializedName: \"ExcludedMeterIds\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Uuid\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const RecurringCharge: msRest.CompositeMapper = {\n serializedName: \"Recurring Charge\",\n type: {\n name: \"Composite\",\n polymorphicDiscriminator: OfferTermInfo.type.polymorphicDiscriminator,\n uberParent: \"OfferTermInfo\",\n className: \"RecurringCharge\",\n modelProperties: {\n ...OfferTermInfo.type.modelProperties,\n recurringCharge: {\n serializedName: \"RecurringCharge\",\n type: {\n name: \"Number\"\n }\n }\n }\n }\n};\n\nexport const ErrorResponse: msRest.CompositeMapper = {\n serializedName: \"ErrorResponse\",\n type: {\n name: \"Composite\",\n className: \"ErrorResponse\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const UsageAggregationListResult: msRest.CompositeMapper = {\n serializedName: \"UsageAggregationListResult\",\n type: {\n name: \"Composite\",\n className: \"UsageAggregationListResult\",\n modelProperties: {\n value: {\n serializedName: \"\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"UsageAggregation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const discriminators = {\n 'OfferTermInfo' : OfferTermInfo,\n 'OfferTermInfo.Monetary Credit' : MonetaryCredit,\n 'OfferTermInfo.Monetary Commitment' : MonetaryCommitment,\n 'OfferTermInfo.Recurring Charge' : RecurringCharge\n\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport {\n discriminators,\n ErrorResponse,\n InfoField,\n UsageAggregation,\n UsageAggregationListResult\n} from \"../models/mappers\";\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\nimport * as msRest from \"@azure/ms-rest-js\";\n\nexport const acceptLanguage: msRest.OperationParameter = {\n parameterPath: \"acceptLanguage\",\n mapper: {\n serializedName: \"accept-language\",\n defaultValue: 'en-US',\n type: {\n name: \"String\"\n }\n }\n};\nexport const aggregationGranularity: msRest.OperationQueryParameter = {\n parameterPath: [\n \"options\",\n \"aggregationGranularity\"\n ],\n mapper: {\n serializedName: \"aggregationGranularity\",\n defaultValue: 'Daily',\n type: {\n name: \"Enum\",\n allowedValues: [\n \"Daily\",\n \"Hourly\"\n ]\n }\n }\n};\nexport const apiVersion: msRest.OperationQueryParameter = {\n parameterPath: \"apiVersion\",\n mapper: {\n required: true,\n serializedName: \"api-version\",\n type: {\n name: \"String\"\n }\n }\n};\nexport const continuationToken: msRest.OperationQueryParameter = {\n parameterPath: [\n \"options\",\n \"continuationToken\"\n ],\n mapper: {\n serializedName: \"continuationToken\",\n type: {\n name: \"String\"\n }\n }\n};\nexport const filter: msRest.OperationQueryParameter = {\n parameterPath: \"filter\",\n mapper: {\n required: true,\n serializedName: \"$filter\",\n type: {\n name: \"String\"\n }\n }\n};\nexport const nextPageLink: msRest.OperationURLParameter = {\n parameterPath: \"nextPageLink\",\n mapper: {\n required: true,\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n },\n skipEncoding: true\n};\nexport const reportedEndTime: msRest.OperationQueryParameter = {\n parameterPath: \"reportedEndTime\",\n mapper: {\n required: true,\n serializedName: \"reportedEndTime\",\n type: {\n name: \"DateTime\"\n }\n }\n};\nexport const reportedStartTime: msRest.OperationQueryParameter = {\n parameterPath: \"reportedStartTime\",\n mapper: {\n required: true,\n serializedName: \"reportedStartTime\",\n type: {\n name: \"DateTime\"\n }\n }\n};\nexport const showDetails: msRest.OperationQueryParameter = {\n parameterPath: [\n \"options\",\n \"showDetails\"\n ],\n mapper: {\n serializedName: \"showDetails\",\n type: {\n name: \"Boolean\"\n }\n }\n};\nexport const subscriptionId: msRest.OperationURLParameter = {\n parameterPath: \"subscriptionId\",\n mapper: {\n required: true,\n serializedName: \"subscriptionId\",\n type: {\n name: \"String\"\n }\n }\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\nimport * as msRest from \"@azure/ms-rest-js\";\nimport * as Models from \"../models\";\nimport * as Mappers from \"../models/usageAggregatesMappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { UsageManagementClientContext } from \"../usageManagementClientContext\";\n\n/** Class representing a UsageAggregates. */\nexport class UsageAggregates {\n private readonly client: UsageManagementClientContext;\n\n /**\n * Create a UsageAggregates.\n * @param {UsageManagementClientContext} client Reference to the service client.\n */\n constructor(client: UsageManagementClientContext) {\n this.client = client;\n }\n\n /**\n * Query aggregated Azure subscription consumption data for a date range.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param [options] The optional parameters\n * @returns Promise<Models.UsageAggregatesListResponse>\n */\n list(reportedStartTime: Date | string, reportedEndTime: Date | string, options?: Models.UsageAggregatesListOptionalParams): Promise<Models.UsageAggregatesListResponse>;\n /**\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param callback The callback\n */\n list(reportedStartTime: Date | string, reportedEndTime: Date | string, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;\n /**\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param options The optional parameters\n * @param callback The callback\n */\n list(reportedStartTime: Date | string, reportedEndTime: Date | string, options: Models.UsageAggregatesListOptionalParams, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;\n list(reportedStartTime: Date | string, reportedEndTime: Date | string, options?: Models.UsageAggregatesListOptionalParams | msRest.ServiceCallback<Models.UsageAggregationListResult>, callback?: msRest.ServiceCallback<Models.UsageAggregationListResult>): Promise<Models.UsageAggregatesListResponse> {\n return this.client.sendOperationRequest(\n {\n reportedStartTime,\n reportedEndTime,\n options\n },\n listOperationSpec,\n callback) as Promise<Models.UsageAggregatesListResponse>;\n }\n\n /**\n * Query aggregated Azure subscription consumption data for a date range.\n * @param nextPageLink The NextLink from the previous successful call to List operation.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param [options] The optional parameters\n * @returns Promise<Models.UsageAggregatesListNextResponse>\n */\n listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, options?: Models.UsageAggregatesListNextOptionalParams): Promise<Models.UsageAggregatesListNextResponse>;\n /**\n * @param nextPageLink The NextLink from the previous successful call to List operation.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param callback The callback\n */\n listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;\n /**\n * @param nextPageLink The NextLink from the previous successful call to List operation.\n * @param reportedStartTime The start of the time range to retrieve data for.\n * @param reportedEndTime The end of the time range to retrieve data for.\n * @param options The optional parameters\n * @param callback The callback\n */\n listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, options: Models.UsageAggregatesListNextOptionalParams, callback: msRest.ServiceCallback<Models.UsageAggregationListResult>): void;\n listNext(nextPageLink: string, reportedStartTime: Date | string, reportedEndTime: Date | string, options?: Models.UsageAggregatesListNextOptionalParams | msRest.ServiceCallback<Models.UsageAggregationListResult>, callback?: msRest.ServiceCallback<Models.UsageAggregationListResult>): Promise<Models.UsageAggregatesListNextResponse> {\n return this.client.sendOperationRequest(\n {\n nextPageLink,\n reportedStartTime,\n reportedEndTime,\n options\n },\n listNextOperationSpec,\n callback) as Promise<Models.UsageAggregatesListNextResponse>;\n }\n}\n\n// Operation Specifications\nconst serializer = new msRest.Serializer(Mappers);\nconst listOperationSpec: msRest.OperationSpec = {\n httpMethod: \"GET\",\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates\",\n urlParameters: [\n Parameters.subscriptionId\n ],\n queryParameters: [\n Parameters.reportedStartTime,\n Parameters.reportedEndTime,\n Parameters.showDetails,\n Parameters.aggregationGranularity,\n Parameters.continuationToken,\n Parameters.apiVersion\n ],\n headerParameters: [\n Parameters.acceptLanguage\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.UsageAggregationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n serializer\n};\n\nconst listNextOperationSpec: msRest.OperationSpec = {\n httpMethod: \"GET\",\n baseUrl: \"https://management.azure.com\",\n path: \"{nextLink}\",\n urlParameters: [\n Parameters.nextPageLink\n ],\n queryParameters: [\n Parameters.reportedStartTime,\n Parameters.reportedEndTime,\n Parameters.showDetails,\n Parameters.aggregationGranularity,\n Parameters.continuationToken,\n Parameters.apiVersion\n ],\n headerParameters: [\n Parameters.acceptLanguage\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.UsageAggregationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport {\n discriminators,\n ErrorResponse,\n MeterInfo,\n MonetaryCommitment,\n MonetaryCredit,\n OfferTermInfo,\n RecurringCharge,\n ResourceRateCardInfo\n} from \"../models/mappers\";\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\nimport * as msRest from \"@azure/ms-rest-js\";\nimport * as Models from \"../models\";\nimport * as Mappers from \"../models/rateCardMappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { UsageManagementClientContext } from \"../usageManagementClientContext\";\n\n/** Class representing a RateCard. */\nexport class RateCard {\n private readonly client: UsageManagementClientContext;\n\n /**\n * Create a RateCard.\n * @param {UsageManagementClientContext} client Reference to the service client.\n */\n constructor(client: UsageManagementClientContext) {\n this.client = client;\n }\n\n /**\n * Enables you to query for the resource/meter metadata and related prices used in a given\n * subscription by Offer ID, Currency, Locale and Region. The metadata associated with the billing\n * meters, including but not limited to service names, types, resources, units of measure, and\n * regions, is subject to change at any time and without notice. If you intend to use this billing\n * data in an automated fashion, please use the billing meter GUID to uniquely identify each\n * billable item. If the billing meter GUID is scheduled to change due to a new billing model, you\n * will be notified in advance of the change.\n * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical\n * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale',\n * 'Region' are required to be a part of the $filter.\n * @param [options] The optional parameters\n * @returns Promise<Models.RateCardGetResponse>\n */\n get(filter: string, options?: msRest.RequestOptionsBase): Promise<Models.RateCardGetResponse>;\n /**\n * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical\n * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale',\n * 'Region' are required to be a part of the $filter.\n * @param callback The callback\n */\n get(filter: string, callback: msRest.ServiceCallback<Models.ResourceRateCardInfo>): void;\n /**\n * @param filter The filter to apply on the operation. It ONLY supports the 'eq' and 'and' logical\n * operators at this time. All the 4 query parameters 'OfferDurableId', 'Currency', 'Locale',\n * 'Region' are required to be a part of the $filter.\n * @param options The optional parameters\n * @param callback The callback\n */\n get(filter: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ResourceRateCardInfo>): void;\n get(filter: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.ResourceRateCardInfo>, callback?: msRest.ServiceCallback<Models.ResourceRateCardInfo>): Promise<Models.RateCardGetResponse> {\n return this.client.sendOperationRequest(\n {\n filter,\n options\n },\n getOperationSpec,\n callback) as Promise<Models.RateCardGetResponse>;\n }\n}\n\n// Operation Specifications\nconst serializer = new msRest.Serializer(Mappers);\nconst getOperationSpec: msRest.OperationSpec = {\n httpMethod: \"GET\",\n path: \"subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard\",\n urlParameters: [\n Parameters.subscriptionId\n ],\n queryParameters: [\n Parameters.filter,\n Parameters.apiVersion\n ],\n headerParameters: [\n Parameters.acceptLanguage\n ],\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceRateCardInfo\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n serializer\n};\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\nimport * as Models from \"./models\";\nimport * as msRest from \"@azure/ms-rest-js\";\nimport * as msRestAzure from \"@azure/ms-rest-azure-js\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\nconst packageName = \"@azure/arm-commerce\";\nconst packageVersion = \"3.0.0\";\n\nexport class UsageManagementClientContext extends msRestAzure.AzureServiceClient {\n credentials: msRest.ServiceClientCredentials | TokenCredential;\n subscriptionId: string;\n apiVersion?: string;\n\n /**\n * Initializes a new instance of the UsageManagementClient class.\n * @param credentials Credentials needed for the client to connect to Azure. Credentials\n * implementing the TokenCredential interface from the @azure/identity package are recommended. For\n * more information about these credentials, see\n * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the\n * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and\n * @azure/ms-rest-browserauth are also supported.\n * @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID\n * forms part of the URI for every service call.\n * @param [options] The parameter options\n */\n constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.UsageManagementClientOptions) {\n if (credentials == undefined) {\n throw new Error('\\'credentials\\' cannot be null.');\n }\n if (subscriptionId == undefined) {\n throw new Error('\\'subscriptionId\\' cannot be null.');\n }\n\n if (!options) {\n options = {};\n }\n if (!options.userAgent) {\n const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n super(credentials, options);\n\n this.apiVersion = '2015-06-01-preview';\n this.acceptLanguage = 'en-US';\n this.longRunningOperationRetryTimeout = 30;\n this.baseUri = options.baseUri || this.baseUri || \"https://management.azure.com\";\n this.requestContentType = \"application/json; charset=utf-8\";\n this.credentials = credentials;\n this.subscriptionId = subscriptionId;\n\n if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {\n this.acceptLanguage = options.acceptLanguage;\n }\n if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {\n this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;\n }\n }\n}\n","/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is\n * regenerated.\n */\n\nimport * as msRest from \"@azure/ms-rest-js\";\nimport { TokenCredential } from \"@azure/core-auth\";\nimport * as Models from \"./models\";\nimport * as Mappers from \"./models/mappers\";\nimport * as operations from \"./operations\";\nimport { UsageManagementClientContext } from \"./usageManagementClientContext\";\n\n\nclass UsageManagementClient extends UsageManagementClientContext {\n // Operation groups\n usageAggregates: operations.UsageAggregates;\n rateCard: operations.RateCard;\n\n /**\n * Initializes a new instance of the UsageManagementClient class.\n * @param credentials Credentials needed for the client to connect to Azure. Credentials\n * implementing the TokenCredential interface from the @azure/identity package are recommended. For\n * more information about these credentials, see\n * {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the\n * ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and\n * @azure/ms-rest-browserauth are also supported.\n * @param subscriptionId It uniquely identifies Microsoft Azure subscription. The subscription ID\n * forms part of the URI for every service call.\n * @param [options] The parameter options\n */\n constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.UsageManagementClientOptions) {\n super(credentials, subscriptionId, options);\n this.usageAggregates = new operations.UsageAggregates(this);\n this.rateCard = new operations.RateCard(this);\n }\n}\n\n// Operation Specifications\n\nexport {\n UsageManagementClient,\n UsageManagementClientContext,\n Models as UsageManagementModels,\n Mappers as UsageManagementMappers\n};\nexport * from \"./operations\";\n"],"names":["CloudErrorMapper","BaseResourceMapper","msRest.Serializer","Parameters.subscriptionId","Parameters.reportedStartTime","Parameters.reportedEndTime","Parameters.showDetails","Parameters.aggregationGranularity","Parameters.continuationToken","Parameters.apiVersion","Parameters.acceptLanguage","Mappers.UsageAggregationListResult","Mappers.ErrorResponse","Parameters.nextPageLink","serializer","Mappers","Parameters.filter","Mappers.ResourceRateCardInfo","msRestAzure.getDefaultUserAgentValue","msRestAzure.AzureServiceClient","operations.UsageAggregates","operations.RateCard"],"mappings":";;;;;;;;;;;;;IAAA;IACA;AACA;IACA;IACA;AACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;AACA;IACA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;IACpF,QAAQ,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACnF,IAAI,OAAO,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC;AACF;IACO,SAAS,SAAS,CAAC,CAAC,EAAE,CAA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AAgC,GAAG,OAAO,CAAC,gCAAgC,CAAC;aAClF;;SACF;QACH,mCAAC;IAAD,CAAC,CAlDiDC,8BAA8B;;ICjBhF;;;;;;;;;QAiBoC,yCAA4B;;;;;;;;;;;;;QAiB9D,+BAAY,WAA8D,EAAE,cAAsB,EAAE,OAA6C;YAAjJ,YACE,kBAAM,WAAW,EAAE,cAAc,EAAE,OAAO,CAAC,SAG5C;YAFC,KAAI,CAAC,eAAe,GAAG,IAAIC,eAA0B,CAAC,KAAI,CAAC,CAAC;YAC5D,KAAI,CAAC,QAAQ,GAAG,IAAIC,QAAmB,CAAC,KAAI,CAAC,CAAC;;SAC/C;QACH,4BAAC;IAAD,CAtBA,CAAoC,4BAA4B;;;;;;;;;;;;;;;;;"}
@@ -1 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@azure/ms-rest-azure-js"),require("@azure/ms-rest-js")):"function"==typeof define&&define.amd?define(["exports","@azure/ms-rest-azure-js","@azure/ms-rest-js"],r):r(((e=e||self).Azure=e.Azure||{},e.Azure.ArmCommerce={}),e.msRestAzure,e.msRest)}(this,function(e,n,r){"use strict";var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a])})(e,r)};function a(e,r){function a(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}var i=function(){return(i=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e}).apply(this,arguments)},o=Object.freeze({__proto__:null}),m=n.CloudErrorMapper,s=n.BaseResourceMapper,p={serializedName:"InfoField",type:{name:"Composite",className:"InfoField",modelProperties:{project:{serializedName:"project",type:{name:"String"}}}}},l={serializedName:"UsageAggregation",type:{name:"Composite",className:"UsageAggregation",modelProperties:{id:{serializedName:"id",type:{name:"String"}},name:{serializedName:"name",type:{name:"String"}},type:{serializedName:"type",type:{name:"String"}},subscriptionId:{serializedName:"properties.subscriptionId",type:{name:"Uuid"}},meterId:{serializedName:"properties.meterId",type:{name:"String"}},usageStartTime:{serializedName:"properties.usageStartTime",type:{name:"DateTime"}},usageEndTime:{serializedName:"properties.usageEndTime",type:{name:"DateTime"}},quantity:{serializedName:"properties.quantity",type:{name:"Number"}},unit:{serializedName:"properties.unit",type:{name:"String"}},meterName:{serializedName:"properties.meterName",type:{name:"String"}},meterCategory:{serializedName:"properties.meterCategory",type:{name:"String"}},meterSubCategory:{serializedName:"properties.meterSubCategory",type:{name:"String"}},meterRegion:{serializedName:"properties.meterRegion",type:{name:"String"}},infoFields:{serializedName:"properties.infoFields",type:{name:"Composite",className:"InfoField"}},instanceData:{serializedName:"properties.instanceData",type:{name:"String"}}}}},d={serializedName:"OfferTermInfo",type:{name:"Composite",polymorphicDiscriminator:{serializedName:"Name",clientName:"name"},uberParent:"OfferTermInfo",className:"OfferTermInfo",modelProperties:{effectiveDate:{serializedName:"EffectiveDate",type:{name:"DateTime"}},name:{required:!0,serializedName:"Name",type:{name:"String"}}}}},u={serializedName:"MeterInfo",type:{name:"Composite",className:"MeterInfo",modelProperties:{meterId:{serializedName:"MeterId",type:{name:"Uuid"}},meterName:{serializedName:"MeterName",type:{name:"String"}},meterCategory:{serializedName:"MeterCategory",type:{name:"String"}},meterSubCategory:{serializedName:"MeterSubCategory",type:{name:"String"}},unit:{serializedName:"Unit",type:{name:"String"}},meterTags:{serializedName:"MeterTags",type:{name:"Sequence",element:{type:{name:"String"}}}},meterRegion:{serializedName:"MeterRegion",type:{name:"String"}},meterRates:{serializedName:"MeterRates",type:{name:"Dictionary",value:{type:{name:"Number"}}}},effectiveDate:{serializedName:"EffectiveDate",type:{name:"DateTime"}},includedQuantity:{serializedName:"IncludedQuantity",type:{name:"Number"}}}}},c={serializedName:"ResourceRateCardInfo",type:{name:"Composite",className:"ResourceRateCardInfo",modelProperties:{currency:{serializedName:"Currency",type:{name:"String"}},locale:{serializedName:"Locale",type:{name:"String"}},isTaxIncluded:{serializedName:"IsTaxIncluded",type:{name:"Boolean"}},offerTerms:{serializedName:"OfferTerms",type:{name:"Sequence",element:{type:{name:"Composite",className:"OfferTermInfo"}}}},meters:{serializedName:"Meters",type:{name:"Sequence",element:{type:{name:"Composite",className:"MeterInfo"}}}}}}},g={serializedName:"Monetary Credit",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"OfferTermInfo",className:"MonetaryCredit",modelProperties:i(i({},d.type.modelProperties),{credit:{serializedName:"Credit",type:{name:"Number"}},excludedMeterIds:{serializedName:"ExcludedMeterIds",type:{name:"Sequence",element:{type:{name:"Uuid"}}}}})}},y={serializedName:"Monetary Commitment",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"OfferTermInfo",className:"MonetaryCommitment",modelProperties:i(i({},d.type.modelProperties),{tieredDiscount:{serializedName:"TieredDiscount",type:{name:"Dictionary",value:{type:{name:"Number"}}}},excludedMeterIds:{serializedName:"ExcludedMeterIds",type:{name:"Sequence",element:{type:{name:"Uuid"}}}}})}},f={serializedName:"Recurring Charge",type:{name:"Composite",polymorphicDiscriminator:d.type.polymorphicDiscriminator,uberParent:"OfferTermInfo",className:"RecurringCharge",modelProperties:i(i({},d.type.modelProperties),{recurringCharge:{serializedName:"RecurringCharge",type:{name:"Number"}}})}},N={serializedName:"ErrorResponse",type:{name:"Composite",className:"ErrorResponse",modelProperties:{code:{serializedName:"code",type:{name:"String"}},message:{serializedName:"message",type:{name:"String"}}}}},z={serializedName:"UsageAggregationListResult",type:{name:"Composite",className:"UsageAggregationListResult",modelProperties:{value:{serializedName:"",type:{name:"Sequence",element:{type:{name:"Composite",className:"UsageAggregation"}}}},nextLink:{serializedName:"nextLink",type:{name:"String"}}}}},C={OfferTermInfo:d,"OfferTermInfo.Monetary Credit":g,"OfferTermInfo.Monetary Commitment":y,"OfferTermInfo.Recurring Charge":f},h=Object.freeze({__proto__:null,CloudError:m,BaseResource:s,InfoField:p,UsageAggregation:l,RateCardQueryParameters:{serializedName:"RateCardQueryParameters",type:{name:"Composite",className:"RateCardQueryParameters",modelProperties:{offerDurableId:{required:!0,serializedName:"OfferDurableId",constraints:{Pattern:/^MS-AZR-\d{4}P(-\d{4}P)*$/},type:{name:"String"}},currency:{required:!0,serializedName:"Currency",type:{name:"String"}},locale:{required:!0,serializedName:"Locale",type:{name:"String"}},regionInfo:{required:!0,serializedName:"RegionInfo",type:{name:"String"}}}}},OfferTermInfo:d,MeterInfo:u,ResourceRateCardInfo:c,MonetaryCredit:g,MonetaryCommitment:y,RecurringCharge:f,ErrorResponse:N,UsageAggregationListResult:z,discriminators:C}),S=Object.freeze({__proto__:null,discriminators:C,ErrorResponse:N,InfoField:p,UsageAggregation:l,UsageAggregationListResult:z}),R={parameterPath:"acceptLanguage",mapper:{serializedName:"accept-language",defaultValue:"en-US",type:{name:"String"}}},I={parameterPath:["options","aggregationGranularity"],mapper:{serializedName:"aggregationGranularity",defaultValue:"Daily",type:{name:"Enum",allowedValues:["Daily","Hourly"]}}},P={parameterPath:"apiVersion",mapper:{required:!0,serializedName:"api-version",type:{name:"String"}}},T={parameterPath:["options","continuationToken"],mapper:{serializedName:"continuationToken",type:{name:"String"}}},m={parameterPath:"reportedEndTime",mapper:{required:!0,serializedName:"reportedEndTime",type:{name:"DateTime"}}},s={parameterPath:"reportedStartTime",mapper:{required:!0,serializedName:"reportedStartTime",type:{name:"DateTime"}}},p={parameterPath:["options","showDetails"],mapper:{serializedName:"showDetails",type:{name:"Boolean"}}},l={parameterPath:"subscriptionId",mapper:{required:!0,serializedName:"subscriptionId",type:{name:"String"}}},b=(M.prototype.list=function(e,r,a,t){return this.client.sendOperationRequest({reportedStartTime:e,reportedEndTime:r,options:a},O,t)},M.prototype.listNext=function(e,r,a,t,i){return this.client.sendOperationRequest({nextPageLink:e,reportedStartTime:r,reportedEndTime:a,options:t},D,i)},M);function M(e){this.client=e}var S=new r.Serializer(S),O={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.Commerce/UsageAggregates",urlParameters:[l],queryParameters:[s,m,p,I,T,P],headerParameters:[R],responses:{200:{bodyMapper:z},default:{bodyMapper:N}},serializer:S},D={httpMethod:"GET",baseUrl:"https://management.azure.com",path:"{nextLink}",urlParameters:[{parameterPath:"nextPageLink",mapper:{required:!0,serializedName:"nextLink",type:{name:"String"}},skipEncoding:!0}],queryParameters:[s,m,p,I,T,P],headerParameters:[R],responses:{200:{bodyMapper:z},default:{bodyMapper:N}},serializer:S},f=Object.freeze({__proto__:null,discriminators:C,ErrorResponse:N,MeterInfo:u,MonetaryCommitment:y,MonetaryCredit:g,OfferTermInfo:d,RecurringCharge:f,ResourceRateCardInfo:c}),q=(U.prototype.get=function(e,r,a){return this.client.sendOperationRequest({filter:e,options:r},v,a)},U);function U(e){this.client=e}var _,v={httpMethod:"GET",path:"subscriptions/{subscriptionId}/providers/Microsoft.Commerce/RateCard",urlParameters:[l],queryParameters:[{parameterPath:"filter",mapper:{required:!0,serializedName:"$filter",type:{name:"String"}}},P],headerParameters:[R],responses:{200:{bodyMapper:c},default:{bodyMapper:N}},serializer:new r.Serializer(f)},r=(a(E,_=n.AzureServiceClient),E);function E(e,r,a){var t,i=this;if(null==e)throw new Error("'credentials' cannot be null.");if(null==r)throw new Error("'subscriptionId' cannot be null.");return(a=a||{}).userAgent||(t=n.getDefaultUserAgentValue(),a.userAgent="@azure/arm-commerce/3.0.0 "+t),(i=_.call(this,e,a)||this).apiVersion="2015-06-01-preview",i.acceptLanguage="en-US",i.longRunningOperationRetryTimeout=30,i.baseUri=a.baseUri||i.baseUri||"https://management.azure.com",i.requestContentType="application/json; charset=utf-8",i.credentials=e,i.subscriptionId=r,null!==a.acceptLanguage&&void 0!==a.acceptLanguage&&(i.acceptLanguage=a.acceptLanguage),null!==a.longRunningOperationRetryTimeout&&void 0!==a.longRunningOperationRetryTimeout&&(i.longRunningOperationRetryTimeout=a.longRunningOperationRetryTimeout),i}var A,f=(a(L,A=r),L);function L(e,r,a){a=A.call(this,e,r,a)||this;return a.usageAggregates=new b(a),a.rateCard=new q(a),a}e.RateCard=q,e.UsageAggregates=b,e.UsageManagementClient=f,e.UsageManagementClientContext=r,e.UsageManagementMappers=h,e.UsageManagementModels=o,Object.defineProperty(e,"__esModule",{value:!0})});
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../node_modules/tslib/tslib.es6.js","../src/models/mappers.ts","../src/models/parameters.ts","../src/operations/usageAggregates.ts","../src/operations/rateCard.ts","../src/usageManagementClientContext.ts","../src/usageManagementClient.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","hasOwnProperty","__extends","__","this","constructor","prototype","create","__assign","assign","t","s","i","n","arguments","length","call","apply","CloudError","CloudErrorMapper","BaseResource","BaseResourceMapper","InfoField","serializedName","type","name","className","modelProperties","project","UsageAggregation","id","subscriptionId","meterId","usageStartTime","usageEndTime","quantity","unit","meterName","meterCategory","meterSubCategory","meterRegion","infoFields","instanceData","OfferTermInfo","polymorphicDiscriminator","clientName","uberParent","effectiveDate","required","MeterInfo","meterTags","element","meterRates","value","includedQuantity","ResourceRateCardInfo","currency","locale","isTaxIncluded","offerTerms","meters","MonetaryCredit","credit","excludedMeterIds","MonetaryCommitment","tieredDiscount","RecurringCharge","recurringCharge","ErrorResponse","code","message","UsageAggregationListResult","nextLink","discriminators","OfferTermInfo.Monetary Credit","OfferTermInfo.Monetary Commitment","OfferTermInfo.Recurring Charge","offerDurableId","constraints","Pattern","regionInfo","acceptLanguage","parameterPath","mapper","defaultValue","aggregationGranularity","allowedValues","apiVersion","continuationToken","reportedEndTime","reportedStartTime","showDetails","UsageAggregates","list","options","callback","client","sendOperationRequest","listOperationSpec","listNext","nextPageLink","listNextOperationSpec","serializer","msRest.Serializer","Mappers","httpMethod","path","urlParameters","Parameters.subscriptionId","queryParameters","Parameters.reportedStartTime","Parameters.reportedEndTime","Parameters.showDetails","Parameters.aggregationGranularity","Parameters.continuationToken","Parameters.apiVersion","headerParameters","Parameters.acceptLanguage","responses","200","bodyMapper","Mappers.UsageAggregationListResult","default","Mappers.ErrorResponse","baseUrl","skipEncoding","RateCard","get","filter","getOperationSpec","_super","Mappers.ResourceRateCardInfo","UsageManagementClientContext","msRestAzure.AzureServiceClient","credentials","defaultUserAgent","_this","undefined","Error","userAgent","msRestAzure.getDefaultUserAgentValue","packageName","longRunningOperationRetryTimeout","baseUri","requestContentType","UsageManagementClient","usageAggregates","operations.UsageAggregates","rateCard","operations.RateCard"],"mappings":"6WAgBA,IAAIA,EAAgB,SAASC,EAAGC,GAI5B,OAHAF,EAAgBG,OAAOC,gBAClB,CAAEC,UAAW,cAAgBC,OAAS,SAAUL,EAAGC,GAAKD,EAAEI,UAAYH,IACvE,SAAUD,EAAGC,GAAK,IAAK,IAAIK,KAAKL,EAAOA,EAAEM,eAAeD,KAAIN,EAAEM,GAAKL,EAAEK,MACpDN,EAAGC,IAGrB,SAASO,EAAUR,EAAGC,GAEzB,SAASQ,IAAOC,KAAKC,YAAcX,EADnCD,EAAcC,EAAGC,GAEjBD,EAAEY,UAAkB,OAANX,EAAaC,OAAOW,OAAOZ,IAAMQ,EAAGG,UAAYX,EAAEW,UAAW,IAAIH,GAG5E,IAAIK,EAAW,WAQlB,OAPAA,EAAWZ,OAAOa,QAAU,SAAkBC,GAC1C,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAIZ,KADTW,EAAIG,UAAUF,GACOhB,OAAOU,UAAUL,eAAee,KAAKL,EAAGX,KAAIU,EAAEV,GAAKW,EAAEX,IAE9E,OAAOU,IAEKO,MAAMb,KAAMU,Y,kCC1BnBI,EAAaC,EAAAA,iBACbC,EAAeC,EAAAA,mBAEfC,EAAoC,CAC/CC,eAAgB,YAChBC,KAAM,CACJC,KAAM,YACNC,UAAW,YACXC,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ACEN,EAAAlH,KAAAZ,KAAMkI,EAAavG,EAAgB+D,IAAQ1F,K,OAC3CoI,EAAKU,gBAAkB,IAAIC,EAA2BX,GACtDA,EAAKY,SAAW,IAAIC,EAAoBb,G"}
@@ -1,397 +0,0 @@
1
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
2
- import * as msRest from "@azure/ms-rest-js";
3
- export { BaseResource, CloudError };
4
- /**
5
- * Key-value pairs of instance details in the legacy format.
6
- */
7
- export interface InfoField {
8
- /**
9
- * Identifies the name of the instance provisioned by the user.
10
- */
11
- project?: string;
12
- }
13
- /**
14
- * Describes the usageAggregation.
15
- */
16
- export interface UsageAggregation {
17
- /**
18
- * Unique Id for the usage aggregate.
19
- */
20
- id?: string;
21
- /**
22
- * Name of the usage aggregate.
23
- */
24
- name?: string;
25
- /**
26
- * Type of the resource being returned.
27
- */
28
- type?: string;
29
- /**
30
- * The subscription identifier for the Azure user.
31
- */
32
- subscriptionId?: string;
33
- /**
34
- * Unique ID for the resource that was consumed (aka ResourceID).
35
- */
36
- meterId?: string;
37
- /**
38
- * UTC start time for the usage bucket to which this usage aggregate belongs.
39
- */
40
- usageStartTime?: Date;
41
- /**
42
- * UTC end time for the usage bucket to which this usage aggregate belongs.
43
- */
44
- usageEndTime?: Date;
45
- /**
46
- * The amount of the resource consumption that occurred in this time frame.
47
- */
48
- quantity?: number;
49
- /**
50
- * The unit in which the usage for this resource is being counted, e.g. Hours, GB.
51
- */
52
- unit?: string;
53
- /**
54
- * Friendly name of the resource being consumed.
55
- */
56
- meterName?: string;
57
- /**
58
- * Category of the consumed resource.
59
- */
60
- meterCategory?: string;
61
- /**
62
- * Sub-category of the consumed resource.
63
- */
64
- meterSubCategory?: string;
65
- /**
66
- * Region of the meterId used for billing purposes
67
- */
68
- meterRegion?: string;
69
- /**
70
- * Key-value pairs of instance details (legacy format).
71
- */
72
- infoFields?: InfoField;
73
- /**
74
- * Key-value pairs of instance details represented as a string.
75
- */
76
- instanceData?: string;
77
- }
78
- /**
79
- * Parameters that are used in the odata $filter query parameter for providing RateCard
80
- * information.
81
- */
82
- export interface RateCardQueryParameters {
83
- /**
84
- * The Offer ID parameter consists of the 'MS-AZR-' prefix, plus the Offer ID number (e.g.,
85
- * MS-AZR-0026P). See https://azure.microsoft.com/en-us/support/legal/offer-details/ for more
86
- * information on the list of available Offer IDs, country/region availability, and billing
87
- * currency.
88
- */
89
- offerDurableId: string;
90
- /**
91
- * The currency in which the rates need to be provided.
92
- */
93
- currency: string;
94
- /**
95
- * The culture in which the resource metadata needs to be localized.
96
- */
97
- locale: string;
98
- /**
99
- * 2 letter ISO code where the offer was purchased.
100
- */
101
- regionInfo: string;
102
- }
103
- /**
104
- * Contains the possible cases for OfferTermInfo.
105
- */
106
- export declare type OfferTermInfoUnion = OfferTermInfo | MonetaryCredit | MonetaryCommitment | RecurringCharge;
107
- /**
108
- * Describes the offer term.
109
- */
110
- export interface OfferTermInfo {
111
- /**
112
- * Polymorphic Discriminator
113
- */
114
- name: "OfferTermInfo";
115
- /**
116
- * Indicates the date from which the offer term is effective.
117
- */
118
- effectiveDate?: Date;
119
- }
120
- /**
121
- * Detailed information about the meter.
122
- */
123
- export interface MeterInfo {
124
- /**
125
- * The unique identifier of the resource.
126
- */
127
- meterId?: string;
128
- /**
129
- * The name of the meter, within the given meter category
130
- */
131
- meterName?: string;
132
- /**
133
- * The category of the meter, e.g., 'Cloud services', 'Networking', etc..
134
- */
135
- meterCategory?: string;
136
- /**
137
- * The subcategory of the meter, e.g., 'A6 Cloud services', 'ExpressRoute (IXP)', etc..
138
- */
139
- meterSubCategory?: string;
140
- /**
141
- * The unit in which the meter consumption is charged, e.g., 'Hours', 'GB', etc.
142
- */
143
- unit?: string;
144
- /**
145
- * Provides additional meter data. 'Third Party' indicates a meter with no discount. Blanks
146
- * indicate First Party.
147
- */
148
- meterTags?: string[];
149
- /**
150
- * The region in which the Azure service is available.
151
- */
152
- meterRegion?: string;
153
- /**
154
- * The list of key/value pairs for the meter rates, in the format 'key':'value' where key = the
155
- * meter quantity, and value = the corresponding price
156
- */
157
- meterRates?: {
158
- [propertyName: string]: number;
159
- };
160
- /**
161
- * Indicates the date from which the meter rate is effective.
162
- */
163
- effectiveDate?: Date;
164
- /**
165
- * The resource quantity that is included in the offer at no cost. Consumption beyond this
166
- * quantity will be charged.
167
- */
168
- includedQuantity?: number;
169
- }
170
- /**
171
- * Price and Metadata information for resources
172
- */
173
- export interface ResourceRateCardInfo {
174
- /**
175
- * The currency in which the rates are provided.
176
- */
177
- currency?: string;
178
- /**
179
- * The culture in which the resource information is localized.
180
- */
181
- locale?: string;
182
- /**
183
- * All rates are pretax, so this will always be returned as 'false'.
184
- */
185
- isTaxIncluded?: boolean;
186
- /**
187
- * A list of offer terms.
188
- */
189
- offerTerms?: OfferTermInfoUnion[];
190
- /**
191
- * A list of meters.
192
- */
193
- meters?: MeterInfo[];
194
- }
195
- /**
196
- * Indicates that this is a monetary credit offer.
197
- */
198
- export interface MonetaryCredit {
199
- /**
200
- * Polymorphic Discriminator
201
- */
202
- name: "Monetary Credit";
203
- /**
204
- * Indicates the date from which the offer term is effective.
205
- */
206
- effectiveDate?: Date;
207
- /**
208
- * The amount of credit provided under the terms of the given offer level.
209
- */
210
- credit?: number;
211
- /**
212
- * An array of meter ids that are excluded from the given offer terms.
213
- */
214
- excludedMeterIds?: string[];
215
- }
216
- /**
217
- * Indicates that a monetary commitment is required for this offer
218
- */
219
- export interface MonetaryCommitment {
220
- /**
221
- * Polymorphic Discriminator
222
- */
223
- name: "Monetary Commitment";
224
- /**
225
- * Indicates the date from which the offer term is effective.
226
- */
227
- effectiveDate?: Date;
228
- /**
229
- * The list of key/value pairs for the tiered meter rates, in the format 'key':'value' where key
230
- * = price, and value = the corresponding discount percentage. This field is used only by offer
231
- * terms of type 'Monetary Commitment'.
232
- */
233
- tieredDiscount?: {
234
- [propertyName: string]: number;
235
- };
236
- /**
237
- * An array of meter ids that are excluded from the given offer terms.
238
- */
239
- excludedMeterIds?: string[];
240
- }
241
- /**
242
- * Indicates a recurring charge is present for this offer.
243
- */
244
- export interface RecurringCharge {
245
- /**
246
- * Polymorphic Discriminator
247
- */
248
- name: "Recurring Charge";
249
- /**
250
- * Indicates the date from which the offer term is effective.
251
- */
252
- effectiveDate?: Date;
253
- /**
254
- * The amount of recurring charge as per the offer term.
255
- */
256
- recurringCharge?: number;
257
- }
258
- /**
259
- * Describes the format of Error response.
260
- */
261
- export interface ErrorResponse {
262
- /**
263
- * Error code
264
- */
265
- code?: string;
266
- /**
267
- * Error message indicating why the operation failed.
268
- */
269
- message?: string;
270
- }
271
- /**
272
- * Optional Parameters.
273
- */
274
- export interface UsageAggregatesListOptionalParams extends msRest.RequestOptionsBase {
275
- /**
276
- * `True` returns usage data in instance-level detail, `false` causes server-side aggregation
277
- * with fewer details. For example, if you have 3 website instances, by default you will get 3
278
- * line items for website consumption. If you specify showDetails = false, the data will be
279
- * aggregated as a single line item for website consumption within the time period (for the given
280
- * subscriptionId, meterId, usageStartTime and usageEndTime).
281
- */
282
- showDetails?: boolean;
283
- /**
284
- * `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly
285
- * granularity. Possible values include: 'Daily', 'Hourly'. Default value: 'Daily'.
286
- */
287
- aggregationGranularity?: AggregationGranularity;
288
- /**
289
- * Used when a continuation token string is provided in the response body of the previous call,
290
- * enabling paging through a large result set. If not present, the data is retrieved from the
291
- * beginning of the day/hour (based on the granularity) passed in.
292
- */
293
- continuationToken?: string;
294
- }
295
- /**
296
- * Optional Parameters.
297
- */
298
- export interface UsageAggregatesListNextOptionalParams extends msRest.RequestOptionsBase {
299
- /**
300
- * `True` returns usage data in instance-level detail, `false` causes server-side aggregation
301
- * with fewer details. For example, if you have 3 website instances, by default you will get 3
302
- * line items for website consumption. If you specify showDetails = false, the data will be
303
- * aggregated as a single line item for website consumption within the time period (for the given
304
- * subscriptionId, meterId, usageStartTime and usageEndTime).
305
- */
306
- showDetails?: boolean;
307
- /**
308
- * `Daily` (default) returns the data in daily granularity, `Hourly` returns the data in hourly
309
- * granularity. Possible values include: 'Daily', 'Hourly'. Default value: 'Daily'.
310
- */
311
- aggregationGranularity?: AggregationGranularity;
312
- /**
313
- * Used when a continuation token string is provided in the response body of the previous call,
314
- * enabling paging through a large result set. If not present, the data is retrieved from the
315
- * beginning of the day/hour (based on the granularity) passed in.
316
- */
317
- continuationToken?: string;
318
- }
319
- /**
320
- * An interface representing UsageManagementClientOptions.
321
- */
322
- export interface UsageManagementClientOptions extends AzureServiceClientOptions {
323
- baseUri?: string;
324
- }
325
- /**
326
- * @interface
327
- * The Get UsageAggregates operation response.
328
- * @extends Array<UsageAggregation>
329
- */
330
- export interface UsageAggregationListResult extends Array<UsageAggregation> {
331
- /**
332
- * Gets or sets the link to the next set of results.
333
- */
334
- nextLink?: string;
335
- }
336
- /**
337
- * Defines values for AggregationGranularity.
338
- * Possible values include: 'Daily', 'Hourly'
339
- * @readonly
340
- * @enum {string}
341
- */
342
- export declare type AggregationGranularity = 'Daily' | 'Hourly';
343
- /**
344
- * Contains response data for the list operation.
345
- */
346
- export declare type UsageAggregatesListResponse = UsageAggregationListResult & {
347
- /**
348
- * The underlying HTTP response.
349
- */
350
- _response: msRest.HttpResponse & {
351
- /**
352
- * The response body as text (string format)
353
- */
354
- bodyAsText: string;
355
- /**
356
- * The response body as parsed JSON or XML
357
- */
358
- parsedBody: UsageAggregationListResult;
359
- };
360
- };
361
- /**
362
- * Contains response data for the listNext operation.
363
- */
364
- export declare type UsageAggregatesListNextResponse = UsageAggregationListResult & {
365
- /**
366
- * The underlying HTTP response.
367
- */
368
- _response: msRest.HttpResponse & {
369
- /**
370
- * The response body as text (string format)
371
- */
372
- bodyAsText: string;
373
- /**
374
- * The response body as parsed JSON or XML
375
- */
376
- parsedBody: UsageAggregationListResult;
377
- };
378
- };
379
- /**
380
- * Contains response data for the get operation.
381
- */
382
- export declare type RateCardGetResponse = ResourceRateCardInfo & {
383
- /**
384
- * The underlying HTTP response.
385
- */
386
- _response: msRest.HttpResponse & {
387
- /**
388
- * The response body as text (string format)
389
- */
390
- bodyAsText: string;
391
- /**
392
- * The response body as parsed JSON or XML
393
- */
394
- parsedBody: ResourceRateCardInfo;
395
- };
396
- };
397
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAC9F,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,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