@nexgencloud/hyperstack-sdk-javascript 1.25.0-alpha → 1.47.0-alpha

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 (420) hide show
  1. package/README.md +268 -245
  2. package/dist/ApiClient.js +2 -7
  3. package/dist/api/AccessKeysApi.js +168 -0
  4. package/dist/api/AliveApi.js +33 -2
  5. package/dist/api/ApiKeyApi.js +33 -33
  6. package/dist/api/AssigningMemberRoleApi.js +20 -20
  7. package/dist/api/AuthApi.js +146 -6
  8. package/dist/api/BetaAccessApi.js +161 -0
  9. package/dist/api/BillingApi.js +1394 -465
  10. package/dist/api/BucketsApi.js +180 -0
  11. package/dist/api/CalculateApi.js +9 -9
  12. package/dist/api/CallbacksApi.js +87 -87
  13. package/dist/api/ClusterEventsApi.js +8 -8
  14. package/dist/api/ClustersApi.js +531 -23
  15. package/dist/api/ComplianceApi.js +24 -24
  16. package/dist/api/CreditApi.js +13 -11
  17. package/dist/api/CustomerContractApi.js +71 -71
  18. package/dist/api/DashboardApi.js +9 -9
  19. package/dist/api/DeploymentApi.js +11 -11
  20. package/dist/api/EnvironmentApi.js +83 -41
  21. package/dist/api/FIPExclusionsApi.js +85 -0
  22. package/dist/api/FirewallAttachmentApi.js +11 -9
  23. package/dist/api/FirewallsApi.js +82 -82
  24. package/dist/api/FlavorApi.js +4 -4
  25. package/dist/api/FloatingIpApi.js +31 -31
  26. package/dist/api/GpuApi.js +7 -7
  27. package/dist/api/HealthApi.js +76 -0
  28. package/dist/api/ImageApi.js +25 -25
  29. package/dist/api/InviteApi.js +53 -12
  30. package/dist/api/KeypairApi.js +17 -17
  31. package/dist/api/OrganizationApi.js +10 -10
  32. package/dist/api/PartnerConfigApi.js +117 -0
  33. package/dist/api/PaymentApi.js +66 -21
  34. package/dist/api/PermissionApi.js +4 -4
  35. package/dist/api/PolicyApi.js +4 -4
  36. package/dist/api/PricebookApi.js +9 -7
  37. package/dist/api/ProfileApi.js +43 -43
  38. package/dist/api/RbacRoleApi.js +46 -46
  39. package/dist/api/RegionApi.js +6 -6
  40. package/dist/api/RegionsApi.js +76 -0
  41. package/dist/api/SecurityRulesApi.js +2 -2
  42. package/dist/api/SnapshotEventsApi.js +8 -8
  43. package/dist/api/SnapshotsApi.js +73 -73
  44. package/dist/api/StockApi.js +9 -9
  45. package/dist/api/TemplateApi.js +50 -50
  46. package/dist/api/UserApi.js +53 -47
  47. package/dist/api/UserDetailChoiceApi.js +9 -9
  48. package/dist/api/UserPermissionApi.js +7 -7
  49. package/dist/api/VirtualMachineApi.js +464 -355
  50. package/dist/api/VirtualMachineEventsApi.js +16 -16
  51. package/dist/api/VncUrlApi.js +32 -28
  52. package/dist/api/VolumeApi.js +108 -59
  53. package/dist/api/VolumeAttachmentApi.js +79 -33
  54. package/dist/api/VouchersApi.js +86 -0
  55. package/dist/index.js +525 -714
  56. package/dist/model/{EnvironmentFieldsforVolume.js → AccessTokenField.js} +23 -23
  57. package/dist/model/AddUserInfoSuccessResponseModel.js +1 -1
  58. package/dist/model/AllocatedGPUCountGraph.js +1 -1
  59. package/dist/model/ApiKeyFields.js +1 -1
  60. package/dist/model/AssignRbacRolePayload.js +1 -1
  61. package/dist/model/AttachCallbackPayload.js +1 -1
  62. package/dist/model/AttachCallbackResponse.js +1 -1
  63. package/dist/model/AttachFirewallWithVM.js +1 -1
  64. package/dist/model/AttachFirewallsToVMPayload.js +1 -1
  65. package/dist/model/AttachVolumeFields.js +21 -1
  66. package/dist/model/AttachVolumes.js +1 -1
  67. package/dist/model/AttachVolumesPayload.js +13 -2
  68. package/dist/model/{InternalVolumeAttachmentFields.js → AttachmentsFieldsForVolume.js} +39 -37
  69. package/dist/model/{VirtualMachineUsage.js → Attributes.js} +68 -34
  70. package/dist/model/AuthGetTokenResponseModel.js +5 -13
  71. package/dist/model/AuthUserFields.js +1 -1
  72. package/dist/model/AuthUserInfoResponseModel.js +1 -1
  73. package/dist/model/{FlavorVMFields.js → BetaAccessRequestFields.js} +68 -50
  74. package/dist/model/BetaAccessRequestPayload.js +122 -0
  75. package/dist/model/{CreateDiscountResponse.js → BetaAccessRequestResponseModel.js} +27 -27
  76. package/dist/model/{Creditrequests.js → BetaAccessStatusItem.js} +57 -42
  77. package/dist/model/{VolumesLastStatusChangeResponse.js → BetaAccessStatusResponseModel.js} +38 -37
  78. package/dist/model/BillingHistory.js +99 -0
  79. package/dist/model/{WarningMailLogResponse.js → BillingHistoryDataSynthesisDetails.js} +48 -43
  80. package/dist/model/{VMUsageResponse.js → BillingHistoryFineTuning.js} +46 -41
  81. package/dist/model/BillingHistoryModelEvalutationDetails.js +143 -0
  82. package/dist/model/{ContractEligibleInstancesResponse.js → BillingHistoryServerlessInference.js} +48 -43
  83. package/dist/model/{GetAllDiscountForAllOrganizationResponse.js → BillingHistoryServerlessInferenceDetails.js} +52 -39
  84. package/dist/model/{Billingmetricesfields.js → BillingMetricesFields.js} +28 -28
  85. package/dist/model/{Billingmetricesresponse.js → BillingMetricesResponse.js} +24 -24
  86. package/dist/model/ClusterEvents.js +1 -1
  87. package/dist/model/ClusterEventsFields.js +1 -1
  88. package/dist/model/ClusterFields.js +76 -13
  89. package/dist/model/{FlavorPayload.js → ClusterFlavorFields.js} +74 -74
  90. package/dist/model/ClusterListResponse.js +1 -1
  91. package/dist/model/{InternalSecurityRulesFieldsForInstance.js → ClusterNodeFields.js} +76 -58
  92. package/dist/model/{InternalInstanceKeypairFields.js → ClusterNodeGroupFields.js} +65 -43
  93. package/dist/model/{StockVisibilityUserListResponse.js → ClusterNodeGroupsCreateResponse.js} +46 -32
  94. package/dist/model/{CreateUpdatePolicyResponseModel.js → ClusterNodeGroupsGetResponse.js} +27 -27
  95. package/dist/model/{InternalInstancesResponse.js → ClusterNodeGroupsListResponse.js} +36 -36
  96. package/dist/model/{ContractEligibleInstanceFields.js → ClusterNodeInstanceFields.js} +53 -45
  97. package/dist/model/{ImageLogos.js → ClusterNodesListResponse.js} +36 -36
  98. package/dist/model/ClusterResponse.js +1 -1
  99. package/dist/model/{GetVersionResponse.js → ClusterVersion.js} +54 -30
  100. package/dist/model/ClusterVersions.js +27 -6
  101. package/dist/model/Colors.js +105 -0
  102. package/dist/model/CommonResponseModel.js +1 -1
  103. package/dist/model/ComplianceFields.js +1 -1
  104. package/dist/model/ComplianceModelFields.js +1 -1
  105. package/dist/model/CompliancePayload.js +1 -1
  106. package/dist/model/ComplianceResponse.js +1 -1
  107. package/dist/model/ContainerOverviewFields.js +1 -1
  108. package/dist/model/Contract.js +1 -1
  109. package/dist/model/ContractDiscountPlanFields.js +9 -1
  110. package/dist/model/ContractGPUAllocationGraphResponse.js +1 -1
  111. package/dist/model/ContractInstanceFields.js +15 -1
  112. package/dist/model/ContractInstancesResponse.js +1 -1
  113. package/dist/model/{ApiKeyVerifyFields.js → CreateClusterNodeFields.js} +48 -38
  114. package/dist/model/{CreateUpdatePolicyPayload.js → CreateClusterNodeGroupPayload.js} +72 -44
  115. package/dist/model/CreateClusterPayload.js +74 -22
  116. package/dist/model/CreateEnvironment.js +3 -3
  117. package/dist/model/CreateFirewallPayload.js +1 -1
  118. package/dist/model/CreateFirewallRulePayload.js +1 -1
  119. package/dist/model/CreateImage.js +1 -1
  120. package/dist/model/CreateImagePayload.js +1 -1
  121. package/dist/model/CreateInstancesPayload.js +11 -11
  122. package/dist/model/CreateInstancesResponse.js +1 -1
  123. package/dist/model/CreateProfilePayload.js +3 -3
  124. package/dist/model/CreateProfileResponse.js +1 -1
  125. package/dist/model/CreateSecurityRulePayload.js +1 -1
  126. package/dist/model/CreateSnapshotPayload.js +5 -16
  127. package/dist/model/CreateSnapshotResponse.js +1 -1
  128. package/dist/model/CreateUpdateComplianceResponse.js +1 -1
  129. package/dist/model/CreateUpdateRbacRolePayload.js +1 -1
  130. package/dist/model/CreateVolumePayload.js +3 -3
  131. package/dist/model/CustomerContractDetailResponseModel.js +1 -1
  132. package/dist/model/CustomerContractFields.js +1 -1
  133. package/dist/model/DashboardInfoResponse.js +1 -1
  134. package/dist/model/{ContractBillingHistoryResponseModel.js → DataSynthesisBillingHistoryDetailsResponseSchema.js} +29 -27
  135. package/dist/model/{ContractlBillingHistoryResponseMetrics.js → DeleteClusterNodesFields.js} +25 -21
  136. package/dist/model/DeploymentFields.js +1 -1
  137. package/dist/model/{DeploymentFieldsforstartdeployments.js → DeploymentFieldsForStartDeployments.js} +24 -24
  138. package/dist/model/Deployments.js +1 -1
  139. package/dist/model/DetachVolumes.js +1 -1
  140. package/dist/model/DetachVolumesPayload.js +1 -1
  141. package/dist/model/{EditlabelofanexistingVMPayload.js → EditLabelOfAnExistingVMPayload.js} +18 -18
  142. package/dist/model/Environment.js +1 -1
  143. package/dist/model/EnvironmentFeatures.js +36 -1
  144. package/dist/model/EnvironmentFields.js +1 -1
  145. package/dist/model/{InternalEnvironmentFields.js → EnvironmentFieldsForVolume.js} +23 -31
  146. package/dist/model/Environments.js +1 -1
  147. package/dist/model/ErrorResponseModel.js +1 -1
  148. package/dist/model/FirewallAttachmentModel.js +1 -1
  149. package/dist/model/FirewallAttachmentVMModel.js +1 -1
  150. package/dist/model/FirewallDetailFields.js +1 -1
  151. package/dist/model/FirewallDetailResponse.js +1 -1
  152. package/dist/model/FirewallEnvironmentFields.js +1 -1
  153. package/dist/model/FirewallFields.js +1 -1
  154. package/dist/model/FirewallResponse.js +1 -1
  155. package/dist/model/FirewallRule.js +1 -1
  156. package/dist/model/FirewallsListResponse.js +1 -1
  157. package/dist/model/FlavorFields.js +9 -1
  158. package/dist/model/FlavorItemGetResponse.js +1 -1
  159. package/dist/model/{CustomerFields.js → FlavorLabelFields.js} +26 -24
  160. package/dist/model/FlavorListResponse.js +1 -1
  161. package/dist/model/FlavorObjectFields.js +1 -1
  162. package/dist/model/GPUFields.js +1 -1
  163. package/dist/model/GPUList.js +1 -1
  164. package/dist/model/GPURegionFields.js +1 -1
  165. package/dist/model/GenerateUpdateApiKeyPayload.js +1 -1
  166. package/dist/model/GenerateUpdateApiKeyResponseModel.js +1 -1
  167. package/dist/model/GetApiKeysResponseModel.js +1 -1
  168. package/dist/model/{Getcreditandthresholdinfo.js → GetCreditAndThresholdInfo.js} +20 -20
  169. package/dist/model/{Getcreditandthresholdinfoinresponse.js → GetCreditAndThresholdInfoInResponse.js} +24 -24
  170. package/dist/model/GetCustomerContractsListResponseModel.js +1 -1
  171. package/dist/model/GetInstanceLogsResponse.js +89 -0
  172. package/dist/model/GetInvitesResponseModel.js +1 -1
  173. package/dist/model/GetOrganizationResponseModel.js +1 -1
  174. package/dist/model/GetPermissionsResponseModel.js +1 -1
  175. package/dist/model/GetPoliciesResponseModel.js +1 -1
  176. package/dist/model/GetRbacRolesResponseModel.js +1 -1
  177. package/dist/model/GetUserPermissionsResponseModel.js +1 -1
  178. package/dist/model/GraphDatetimeValueModel.js +1 -1
  179. package/dist/model/Image.js +1 -1
  180. package/dist/model/ImageFields.js +1 -1
  181. package/dist/model/ImageGetResponse.js +1 -1
  182. package/dist/model/Images.js +1 -1
  183. package/dist/model/ImportKeypairPayload.js +1 -1
  184. package/dist/model/ImportKeypairResponse.js +1 -1
  185. package/dist/model/InfrahubResourceObjectResponseForCustomer.js +1 -1
  186. package/dist/model/Instance.js +1 -1
  187. package/dist/model/InstanceEnvironmentFields.js +1 -1
  188. package/dist/model/InstanceEvents.js +1 -1
  189. package/dist/model/InstanceEventsFields.js +1 -1
  190. package/dist/model/InstanceFields.js +21 -5
  191. package/dist/model/InstanceFlavorFields.js +42 -1
  192. package/dist/model/InstanceImageFields.js +1 -1
  193. package/dist/model/InstanceKeypairFields.js +1 -1
  194. package/dist/model/InstanceOverviewFields.js +1 -1
  195. package/dist/model/InstanceResizePayload.js +1 -1
  196. package/dist/model/Instances.js +1 -1
  197. package/dist/model/InviteFields.js +1 -1
  198. package/dist/model/InviteUserPayload.js +1 -1
  199. package/dist/model/InviteUserResponseModel.js +1 -1
  200. package/dist/model/KeypairEnvironmentFeatures.js +120 -0
  201. package/dist/model/{InternalVolumeFields.js → KeypairEnvironmentFields.js} +41 -39
  202. package/dist/model/KeypairFields.js +8 -6
  203. package/dist/model/Keypairs.js +1 -1
  204. package/dist/model/LableResonse.js +1 -1
  205. package/dist/model/{Lastdaycostfields.js → LastDayCostFields.js} +21 -21
  206. package/dist/model/{Lastdaycostresponse.js → LastDayCostResponse.js} +24 -24
  207. package/dist/model/{TokenFields.js → Logos.js} +47 -35
  208. package/dist/model/{LogoutPayload.js → MFAStatusFields.js} +27 -30
  209. package/dist/model/{GPU.js → MFAStatusResponse.js} +31 -31
  210. package/dist/model/{VerifyApiKeyResponseModel.js → ManualReconciliationModel.js} +33 -29
  211. package/dist/model/{Creditrequestresponse.js → MasterFlavorsResponse.js} +30 -30
  212. package/dist/model/MetricItemFields.js +1 -1
  213. package/dist/model/MetricsFields.js +1 -1
  214. package/dist/model/ModelEvaluationBillingHistoryDetailsResponseSchema.js +113 -0
  215. package/dist/model/NameAvailableModel.js +1 -1
  216. package/dist/model/NewConfigurationsResponse.js +1 -1
  217. package/dist/model/NewModelResponse.js +1 -1
  218. package/dist/model/NewStockResponse.js +1 -1
  219. package/dist/model/NewStockRetriveResponse.js +1 -1
  220. package/dist/model/ObjectStorageAccessKeyCreateRequest.js +117 -0
  221. package/dist/model/{FutureNodeModel.js → ObjectStorageAccessKeyCreateResponse.js} +70 -66
  222. package/dist/model/{ContractChangePayload.js → ObjectStorageAccessKeyListResponse.js} +44 -64
  223. package/dist/model/{FutureNodeUpdateModel.js → ObjectStorageAccessKeyResponse.js} +60 -51
  224. package/dist/model/{SetDefaultsPayload.js → ObjectStorageBucketListResponse.js} +53 -37
  225. package/dist/model/{CreateUpdatePermissionPayload.js → ObjectStorageBucketResponse.js} +75 -49
  226. package/dist/model/{PowerUsageModel.js → ObjectStorageDeleteResponse.js} +28 -38
  227. package/dist/model/{ContractEventCreateModel.js → ObjectStorageErrorResponse.js} +40 -47
  228. package/dist/model/{VerifyApiKeyPayload.js → ObjectStorageHealthResponse.js} +28 -29
  229. package/dist/model/{SingleVisibilityUserResponse.js → ObjectStoragePaginationMeta.js} +38 -38
  230. package/dist/model/{CreateGPU.js → ObjectStorageRegionListResponse.js} +46 -53
  231. package/dist/model/{RegionPayload.js → ObjectStorageRegionResponse.js} +20 -32
  232. package/dist/model/ObjectStorageRegionsEnum.js +53 -0
  233. package/dist/model/OrganizationFields.js +1 -1
  234. package/dist/model/OrganizationLevelBillingHistory.js +1 -1
  235. package/dist/model/OrganizationLevelBillingHistoryResources.js +1 -1
  236. package/dist/model/OrganizationLevelBillingHistoryResponseAttributes.js +1 -1
  237. package/dist/model/OrganizationLevelBillingHistoryResponseMetrics.js +1 -1
  238. package/dist/model/OrganizationLevelBillingHistoryResponseModel.js +1 -1
  239. package/dist/model/{OrganizationThresholdfields.js → OrganizationThresholdFields.js} +22 -22
  240. package/dist/model/{Organizationthresholdupdateresponse.js → OrganizationThresholdUpdateResponse.js} +24 -24
  241. package/dist/model/{Organizationthresholdsresponse.js → OrganizationThresholdsResponse.js} +24 -24
  242. package/dist/model/OrganizationUserResponseModel.js +1 -1
  243. package/dist/model/OverviewInfo.js +1 -1
  244. package/dist/model/Pagination.js +104 -0
  245. package/dist/model/PaginationData.js +1 -1
  246. package/dist/model/PartnerConfig.js +192 -0
  247. package/dist/model/PaymentDetailsFields.js +21 -1
  248. package/dist/model/PaymentDetailsResponse.js +1 -1
  249. package/dist/model/PaymentInitiateFields.js +1 -1
  250. package/dist/model/PaymentInitiatePayload.js +1 -1
  251. package/dist/model/PaymentInitiateResponse.js +1 -1
  252. package/dist/model/PermissionFields.js +1 -1
  253. package/dist/model/PolicyFields.js +1 -1
  254. package/dist/model/PolicyPermissionFields.js +1 -1
  255. package/dist/model/PricebookModel.js +1 -1
  256. package/dist/model/PricebookResourceObjectResponseForCustomer.js +1 -1
  257. package/dist/model/{NewStockUpdateResponseModel.js → PrimaryColor.js} +31 -27
  258. package/dist/model/ProfileFields.js +1 -1
  259. package/dist/model/ProfileListResponse.js +1 -1
  260. package/dist/model/ProfileObjectFields.js +1 -1
  261. package/dist/model/RbacRoleDetailResponseModel.js +1 -1
  262. package/dist/model/RbacRoleDetailResponseModelFixed.js +1 -1
  263. package/dist/model/RbacRoleField.js +1 -1
  264. package/dist/model/RbacRoleFields.js +1 -1
  265. package/dist/model/{CustomerPayload.js → RedeemVoucherPayload.js} +29 -38
  266. package/dist/model/RegionFields.js +49 -1
  267. package/dist/model/Regions.js +1 -1
  268. package/dist/model/RemoveMemberFromOrganizationResponseModel.js +1 -1
  269. package/dist/model/RemoveMemberPayload.js +1 -1
  270. package/dist/model/RequestConsole.js +1 -1
  271. package/dist/model/{ExcludeBillingPostResponse.js → RequestInstanceLogsPayload.js} +22 -27
  272. package/dist/model/RequestInstanceLogsResponse.js +85 -0
  273. package/dist/model/ResourceBillingEventsHistoryMetrics.js +1 -1
  274. package/dist/model/ResourceBillingEventsHistoryResponse.js +1 -1
  275. package/dist/model/ResourceBillingResponseForCustomer.js +1 -1
  276. package/dist/model/{ContractBillingHistory.js → ResourceLevelBillingBucketDetailsResources.js} +27 -27
  277. package/dist/model/ResourceLevelBillingDetailsAttributes.js +1 -1
  278. package/dist/model/ResourceLevelBillingDetailsMetrics.js +1 -1
  279. package/dist/model/ResourceLevelBillingDetailsVM.js +1 -1
  280. package/dist/model/ResourceLevelBillingDetailsVolume.js +1 -1
  281. package/dist/model/ResourceLevelBillingDetailsVolumeAttributes.js +1 -1
  282. package/dist/model/ResourceLevelBillingDetailsVolumeMetrics.js +1 -1
  283. package/dist/model/ResourceLevelBillingHistory.js +1 -1
  284. package/dist/model/ResourceLevelBillingHistoryResources.js +1 -1
  285. package/dist/model/{NodeResponseModel.js → ResourceLevelBillingHistoryResourcesCluster.js} +47 -31
  286. package/dist/model/ResourceLevelBillingHistoryResponseAttributes.js +9 -1
  287. package/dist/model/ResourceLevelBillingHistoryResponseMetrics.js +1 -1
  288. package/dist/model/ResourceLevelBillingVMDetailsResources.js +1 -1
  289. package/dist/model/ResourceLevelBillingVolumeDetailsResources.js +1 -1
  290. package/dist/model/{AuthRequestLoginResponseModel.js → ResourceLevelBucketBillingDetailsResponseModel.js} +27 -27
  291. package/dist/model/{CreateUpdatePermissionResponseModel.js → ResourceLevelBucketBillingHistoryResponseModel.js} +31 -31
  292. package/dist/model/ResourceLevelClusterBillingDetailsResponseModel.js +111 -0
  293. package/dist/model/ResourceLevelClusterBillingHistoryResponseModel.js +111 -0
  294. package/dist/model/ResourceLevelClusterGraphBillingDetailsResponseModel.js +111 -0
  295. package/dist/model/ResourceLevelGraphBillingDetailVolume.js +1 -1
  296. package/dist/model/ResourceLevelGraphBillingDetailsAttributes.js +1 -1
  297. package/dist/model/{OrganizationObjectResponse.js → ResourceLevelGraphBillingDetailsBucket.js} +45 -29
  298. package/dist/model/ResourceLevelGraphBillingDetailsMetrics.js +1 -1
  299. package/dist/model/ResourceLevelGraphBillingDetailsVM.js +1 -1
  300. package/dist/model/ResourceLevelGraphBillingVMDetailsResources.js +1 -1
  301. package/dist/model/ResourceLevelGraphBillingVolumeDetailsResources.js +1 -1
  302. package/dist/model/ResourceLevelVMBillingDetailsResponseModel.js +1 -1
  303. package/dist/model/ResourceLevelVmBillingHistoryResponseModel.js +1 -1
  304. package/dist/model/ResourceLevelVmGraphBillingDetailsResponseModel.js +1 -1
  305. package/dist/model/ResourceLevelVolumeBillingDetailsResponseModel.js +1 -1
  306. package/dist/model/ResourceLevelVolumeBillingHistoryResponseModel.js +1 -1
  307. package/dist/model/ResourceLevelVolumeGraphBillingDetailsResponseModel.js +1 -1
  308. package/dist/model/ResourceObjectResponseForCustomer.js +1 -1
  309. package/dist/model/ResponseModel.js +1 -1
  310. package/dist/model/RolePermissionFields.js +1 -1
  311. package/dist/model/RolePolicyFields.js +1 -1
  312. package/dist/model/{Data.js → SecondaryColor.js} +31 -38
  313. package/dist/model/SecurityGroupRule.js +1 -1
  314. package/dist/model/SecurityGroupRuleFields.js +1 -1
  315. package/dist/model/{SecurityRulesFieldsforInstance.js → SecurityRulesFieldsForInstance.js} +26 -26
  316. package/dist/model/SecurityRulesProtocolFields.js +1 -1
  317. package/dist/model/{Organizationcreditrechargelimitresponse.js → ServerlessInferencedBillingHistoryDetailsResponseSchema.js} +29 -27
  318. package/dist/model/SnapshotFields.js +27 -5
  319. package/dist/model/SnapshotRestoreRequest.js +1 -1
  320. package/dist/model/SnapshotRetrieve.js +1 -1
  321. package/dist/model/SnapshotRetrieveFields.js +170 -5
  322. package/dist/model/Snapshots.js +1 -1
  323. package/dist/model/StartDeployment.js +5 -5
  324. package/dist/model/StartDeploymentPayload.js +1 -1
  325. package/dist/model/SubResourceGraphBillingDetailsMetrics.js +1 -1
  326. package/dist/model/SubResourcesCostsResponseModel.js +1 -1
  327. package/dist/model/SubResourcesGraphBillingHistoryFields.js +1 -1
  328. package/dist/model/SubResourcesGraphResponseModel.js +1 -1
  329. package/dist/model/{Subscribeorunsubscribeupdatepayload.js → SubscribeOrUnsubscribeUpdatePayload.js} +20 -20
  330. package/dist/model/Template.js +1 -1
  331. package/dist/model/TemplateFields.js +1 -1
  332. package/dist/model/Templates.js +1 -1
  333. package/dist/model/TokenBasedBillingHistoryResponse.js +113 -0
  334. package/dist/model/URIs.js +161 -0
  335. package/dist/model/UpdateClusterNodeGroupPayload.js +93 -0
  336. package/dist/model/UpdateEnvironment.js +1 -1
  337. package/dist/model/UpdateKeypairName.js +1 -1
  338. package/dist/model/{UpdateKeypairnameresponse.js → UpdateKeypairNameResponse.js} +20 -20
  339. package/dist/model/UpdateOrganizationPayload.js +1 -1
  340. package/dist/model/UpdateOrganizationResponseModel.js +1 -1
  341. package/dist/model/UpdateTemplate.js +1 -1
  342. package/dist/model/UpdateVolumeAttachmentPayload.js +85 -0
  343. package/dist/model/{UserTransferPayload.js → UpdateVolumePayload.js} +29 -38
  344. package/dist/model/{FlavorResponse.js → UpdateVolumeResponse.js} +41 -32
  345. package/dist/model/UserDefaultChoiceForUserFields.js +1 -1
  346. package/dist/model/UserDefaultChoicesForUserResponse.js +1 -1
  347. package/dist/model/{Userinfopostpayload.js → UserInfoPostPayload.js} +30 -30
  348. package/dist/model/{FutureNodesStockModel.js → UserOrganizationsResponse.js} +28 -28
  349. package/dist/model/UserPermissionFields.js +1 -1
  350. package/dist/model/UsersInfoFields.js +13 -1
  351. package/dist/model/UsersInfoListResponse.js +1 -1
  352. package/dist/model/VNCURL.js +1 -1
  353. package/dist/model/VNCURLFields.js +1 -1
  354. package/dist/model/Volume.js +1 -1
  355. package/dist/model/VolumeAttachmentFields.js +21 -5
  356. package/dist/model/VolumeFields.js +38 -5
  357. package/dist/model/{VolumeFieldsforInstance.js → VolumeFieldsForInstance.js} +23 -23
  358. package/dist/model/VolumeOverviewFields.js +1 -1
  359. package/dist/model/VolumeTypes.js +1 -1
  360. package/dist/model/Volumes.js +36 -12
  361. package/dist/model/{InfrahubResourceObjectResponse.js → VolumesFields.js} +95 -85
  362. package/dist/model/{FutureNodeStockModel.js → Voucher.js} +44 -33
  363. package/dist/model/{Creditrechargelimitresponse.js → VoucherRedeemResponseSchema.js} +56 -47
  364. package/dist/model/WorkloadBillingHistoryResponse.js +113 -0
  365. package/package.json +1 -1
  366. package/dist/model/AddUpdateFlavorOrganizationPayload.js +0 -242
  367. package/dist/model/AuthRequestLoginFields.js +0 -101
  368. package/dist/model/BillingImmuneResourcesResponse.js +0 -111
  369. package/dist/model/BillingResponse.js +0 -130
  370. package/dist/model/ContractBillingHistoryResponseAttributes.js +0 -149
  371. package/dist/model/ContractResourcePayload.js +0 -146
  372. package/dist/model/CreateContractFields.js +0 -170
  373. package/dist/model/CreateContractPayload.js +0 -178
  374. package/dist/model/CreateDiscountsPayload.js +0 -192
  375. package/dist/model/Creditrechargelimitfield.js +0 -109
  376. package/dist/model/DiscountEntityModel.js +0 -122
  377. package/dist/model/DiscountFields.js +0 -149
  378. package/dist/model/DiscountPlanFields.js +0 -181
  379. package/dist/model/DiscountResourceFields.js +0 -113
  380. package/dist/model/DiscountResourcePayload.js +0 -142
  381. package/dist/model/ExcludeBillingPostPayload.js +0 -135
  382. package/dist/model/ExportBillingDataRequest.js +0 -186
  383. package/dist/model/ExportBillingDataResponse.js +0 -101
  384. package/dist/model/FieldChange.js +0 -116
  385. package/dist/model/FlavorVMsResponse.js +0 -130
  386. package/dist/model/FutureNodeResponseModel.js +0 -122
  387. package/dist/model/GetAllContractFields.js +0 -137
  388. package/dist/model/GetAllContractsResponseModel.js +0 -130
  389. package/dist/model/GetAllDiscountsFields.js +0 -158
  390. package/dist/model/GetDiscountDetailResponse.js +0 -111
  391. package/dist/model/GetDiscountResponse.js +0 -130
  392. package/dist/model/GetEntityDiscountDetailResponse.js +0 -159
  393. package/dist/model/GetTokenPayload.js +0 -126
  394. package/dist/model/HistoricalInstance.js +0 -138
  395. package/dist/model/HistoricalInstancesFields.js +0 -201
  396. package/dist/model/InsertDiscountPlanFields.js +0 -168
  397. package/dist/model/InstancesSummaryFields.js +0 -249
  398. package/dist/model/InternalInstanceFields.js +0 -344
  399. package/dist/model/InternalInstanceFlavorFields.js +0 -161
  400. package/dist/model/InternalInstanceImageFields.js +0 -133
  401. package/dist/model/InternalVolumesResponse.js +0 -130
  402. package/dist/model/LogoGetResponse.js +0 -109
  403. package/dist/model/NodeModel.js +0 -230
  404. package/dist/model/NodePayloadModel.js +0 -122
  405. package/dist/model/NodePowerUsageModel.js +0 -244
  406. package/dist/model/NodeStockPayloadModel.js +0 -110
  407. package/dist/model/NodeStockResponseModel.js +0 -110
  408. package/dist/model/NodeStocksPayload.js +0 -144
  409. package/dist/model/PricebookResourceObjectResponse.js +0 -173
  410. package/dist/model/RefreshTokenPayload.js +0 -126
  411. package/dist/model/RegionResponse.js +0 -111
  412. package/dist/model/StockVisibilityUserPayload.js +0 -112
  413. package/dist/model/SuccessResponseModel.js +0 -100
  414. package/dist/model/UpdateContractPayload.js +0 -168
  415. package/dist/model/UpdateDiscountsPayload.js +0 -160
  416. package/dist/model/UpdateDiscountsStatusPayload.js +0 -112
  417. package/dist/model/UpdateGPU.js +0 -114
  418. package/dist/model/VMUsageRequestPayload.js +0 -113
  419. package/dist/model/VolumeStatusChangeFields.js +0 -125
  420. package/dist/model/WarningMailLogFields.js +0 -149
@@ -5,22 +5,33 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _Billingmetricesresponse = _interopRequireDefault(require("../model/Billingmetricesresponse"));
8
+ var _BillingMetricesResponse = _interopRequireDefault(require("../model/BillingMetricesResponse"));
9
+ var _DataSynthesisBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("../model/DataSynthesisBillingHistoryDetailsResponseSchema"));
9
10
  var _ErrorResponseModel = _interopRequireDefault(require("../model/ErrorResponseModel"));
10
- var _Lastdaycostresponse = _interopRequireDefault(require("../model/Lastdaycostresponse"));
11
+ var _LastDayCostResponse = _interopRequireDefault(require("../model/LastDayCostResponse"));
12
+ var _ModelEvaluationBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("../model/ModelEvaluationBillingHistoryDetailsResponseSchema"));
11
13
  var _OrganizationLevelBillingHistoryResponseModel = _interopRequireDefault(require("../model/OrganizationLevelBillingHistoryResponseModel"));
12
- var _Organizationthresholdsresponse = _interopRequireDefault(require("../model/Organizationthresholdsresponse"));
13
- var _Organizationthresholdupdateresponse = _interopRequireDefault(require("../model/Organizationthresholdupdateresponse"));
14
+ var _OrganizationThresholdUpdateResponse = _interopRequireDefault(require("../model/OrganizationThresholdUpdateResponse"));
15
+ var _OrganizationThresholdsResponse = _interopRequireDefault(require("../model/OrganizationThresholdsResponse"));
14
16
  var _ResourceBillingEventsHistoryResponse = _interopRequireDefault(require("../model/ResourceBillingEventsHistoryResponse"));
17
+ var _ResourceLevelBucketBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelBucketBillingDetailsResponseModel"));
18
+ var _ResourceLevelBucketBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelBucketBillingHistoryResponseModel"));
19
+ var _ResourceLevelClusterBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelClusterBillingDetailsResponseModel"));
20
+ var _ResourceLevelClusterBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelClusterBillingHistoryResponseModel"));
21
+ var _ResourceLevelClusterGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelClusterGraphBillingDetailsResponseModel"));
22
+ var _ResourceLevelGraphBillingDetailsBucket = _interopRequireDefault(require("../model/ResourceLevelGraphBillingDetailsBucket"));
15
23
  var _ResourceLevelVMBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVMBillingDetailsResponseModel"));
16
24
  var _ResourceLevelVmBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelVmBillingHistoryResponseModel"));
17
25
  var _ResourceLevelVmGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVmGraphBillingDetailsResponseModel"));
18
26
  var _ResourceLevelVolumeBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeBillingDetailsResponseModel"));
19
27
  var _ResourceLevelVolumeBillingHistoryResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeBillingHistoryResponseModel"));
20
28
  var _ResourceLevelVolumeGraphBillingDetailsResponseModel = _interopRequireDefault(require("../model/ResourceLevelVolumeGraphBillingDetailsResponseModel"));
29
+ var _ServerlessInferencedBillingHistoryDetailsResponseSchema = _interopRequireDefault(require("../model/ServerlessInferencedBillingHistoryDetailsResponseSchema"));
21
30
  var _SubResourcesCostsResponseModel = _interopRequireDefault(require("../model/SubResourcesCostsResponseModel"));
22
31
  var _SubResourcesGraphResponseModel = _interopRequireDefault(require("../model/SubResourcesGraphResponseModel"));
23
- var _Subscribeorunsubscribeupdatepayload = _interopRequireDefault(require("../model/Subscribeorunsubscribeupdatepayload"));
32
+ var _SubscribeOrUnsubscribeUpdatePayload = _interopRequireDefault(require("../model/SubscribeOrUnsubscribeUpdatePayload"));
33
+ var _TokenBasedBillingHistoryResponse = _interopRequireDefault(require("../model/TokenBasedBillingHistoryResponse"));
34
+ var _WorkloadBillingHistoryResponse = _interopRequireDefault(require("../model/WorkloadBillingHistoryResponse"));
24
35
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
25
36
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
26
37
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -42,7 +53,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
42
53
  /**
43
54
  * Billing service.
44
55
  * @module api/BillingApi
45
- * @version v1.25.0-alpha
56
+ * @version v1.47.0-alpha
46
57
  */
47
58
  var BillingApi = exports["default"] = /*#__PURE__*/function () {
48
59
  /**
@@ -58,180 +69,76 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
58
69
  }
59
70
 
60
71
  /**
61
- * GET: All Thresholds for Organization
62
- * Retrieve all the notification thresholds for an organization.
63
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Organizationthresholdsresponse} and HTTP response
72
+ * Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
73
+ * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
74
+ * @param {Number} bucketId
75
+ * @param {Object} opts Optional parameters
76
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
77
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
78
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelGraphBillingDetailsBucket} and HTTP response
64
79
  */
65
80
  return _createClass(BillingApi, [{
66
- key: "getAllThresholdsForOrganizationWithHttpInfo",
67
- value: function getAllThresholdsForOrganizationWithHttpInfo() {
68
- var postBody = null;
69
- var pathParams = {};
70
- var queryParams = {};
71
- var headerParams = {};
72
- var formParams = {};
73
- var authNames = ['apiKey', 'accessToken'];
74
- var contentTypes = [];
75
- var accepts = ['application/json'];
76
- var returnType = _Organizationthresholdsresponse["default"];
77
- return this.apiClient.callApi('/billing/billing/threshold', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
78
- }
79
-
80
- /**
81
- * GET: All Thresholds for Organization
82
- * Retrieve all the notification thresholds for an organization.
83
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Organizationthresholdsresponse}
84
- */
85
- }, {
86
- key: "getAllThresholdsForOrganization",
87
- value: function getAllThresholdsForOrganization() {
88
- return this.getAllThresholdsForOrganizationWithHttpInfo().then(function (response_and_data) {
89
- return response_and_data.data;
90
- });
91
- }
92
-
93
- /**
94
- * GET: Billing usage
95
- * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/billing-features#view-usage-costs-for-all-resources)
96
- * @param {Object} opts Optional parameters
97
- * @param {String} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
98
- * @param {String} [environment] Filter resources by environment ID or Name
99
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Billingmetricesresponse} and HTTP response
100
- */
101
- }, {
102
- key: "getBillingUsageWithHttpInfo",
103
- value: function getBillingUsageWithHttpInfo(opts) {
81
+ key: "bucketsBillingHistoryHourlyChartWithHttpInfo",
82
+ value: function bucketsBillingHistoryHourlyChartWithHttpInfo(bucketId, opts) {
104
83
  opts = opts || {};
105
84
  var postBody = null;
106
- var pathParams = {};
107
- var queryParams = {
108
- 'deleted': opts['deleted'],
109
- 'environment': opts['environment']
85
+ // verify the required parameter 'bucketId' is set
86
+ if (bucketId === undefined || bucketId === null) {
87
+ throw new Error("Missing the required parameter 'bucketId' when calling bucketsBillingHistoryHourlyChart");
88
+ }
89
+ var pathParams = {
90
+ 'bucket_id': bucketId
110
91
  };
111
- var headerParams = {};
112
- var formParams = {};
113
- var authNames = ['apiKey', 'accessToken'];
114
- var contentTypes = [];
115
- var accepts = ['application/json'];
116
- var returnType = _Billingmetricesresponse["default"];
117
- return this.apiClient.callApi('/billing/billing/usage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
118
- }
119
-
120
- /**
121
- * GET: Billing usage
122
- * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](https://infrahub-doc.nexgencloud.com/docs/billing-and-payment/billing-features#view-usage-costs-for-all-resources)
123
- * @param {Object} opts Optional parameters
124
- * @param {String} opts.deleted `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
125
- * @param {String} opts.environment Filter resources by environment ID or Name
126
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Billingmetricesresponse}
127
- */
128
- }, {
129
- key: "getBillingUsage",
130
- value: function getBillingUsage(opts) {
131
- return this.getBillingUsageWithHttpInfo(opts).then(function (response_and_data) {
132
- return response_and_data.data;
133
- });
134
- }
135
-
136
- /**
137
- * GET: Last Day Cost
138
- * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/billing-resources/last-day-usage/)
139
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Lastdaycostresponse} and HTTP response
140
- */
141
- }, {
142
- key: "getLastDayCostWithHttpInfo",
143
- value: function getLastDayCostWithHttpInfo() {
144
- var postBody = null;
145
- var pathParams = {};
146
- var queryParams = {};
147
- var headerParams = {};
148
- var formParams = {};
149
- var authNames = ['apiKey', 'accessToken'];
150
- var contentTypes = [];
151
- var accepts = ['application/json'];
152
- var returnType = _Lastdaycostresponse["default"];
153
- return this.apiClient.callApi('/billing/billing/last-day-cost', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
154
- }
155
-
156
- /**
157
- * GET: Last Day Cost
158
- * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](https://infrahub-doc.nexgencloud.com/docs/api-reference/billing-resources/last-day-usage/)
159
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Lastdaycostresponse}
160
- */
161
- }, {
162
- key: "getLastDayCost",
163
- value: function getLastDayCost() {
164
- return this.getLastDayCostWithHttpInfo().then(function (response_and_data) {
165
- return response_and_data.data;
166
- });
167
- }
168
-
169
- /**
170
- * Retrieve Billing History for a specific Billing Cycle
171
- * User will recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
172
- * @param {Object} opts Optional parameters
173
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
174
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
175
- * @param {String} [graph] Set this value to \"true\" for getting graph value
176
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel} and HTTP response
177
- */
178
- }, {
179
- key: "retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo",
180
- value: function retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts) {
181
- opts = opts || {};
182
- var postBody = null;
183
- var pathParams = {};
184
92
  var queryParams = {
185
93
  'start_date': opts['startDate'],
186
- 'end_date': opts['endDate'],
187
- 'graph': opts['graph']
94
+ 'end_date': opts['endDate']
188
95
  };
189
96
  var headerParams = {};
190
97
  var formParams = {};
191
- var authNames = ['apiKey', 'accessToken'];
98
+ var authNames = ['apiKey'];
192
99
  var contentTypes = [];
193
100
  var accepts = ['application/json'];
194
- var returnType = _OrganizationLevelBillingHistoryResponseModel["default"];
195
- return this.apiClient.callApi('/billing/billing/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
101
+ var returnType = _ResourceLevelGraphBillingDetailsBucket["default"];
102
+ return this.apiClient.callApi('/billing/billing/history/bucket/{bucket_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
196
103
  }
197
104
 
198
105
  /**
199
- * Retrieve Billing History for a specific Billing Cycle
200
- * User will recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
106
+ * Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
107
+ * User will receive hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
108
+ * @param {Number} bucketId
201
109
  * @param {Object} opts Optional parameters
202
110
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
203
111
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
204
- * @param {String} opts.graph Set this value to \"true\" for getting graph value
205
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel}
112
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelGraphBillingDetailsBucket}
206
113
  */
207
114
  }, {
208
- key: "retrieveBillingHistoryForASpecificBillingCycle",
209
- value: function retrieveBillingHistoryForASpecificBillingCycle(opts) {
210
- return this.retrieveBillingHistoryForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
115
+ key: "bucketsBillingHistoryHourlyChart",
116
+ value: function bucketsBillingHistoryHourlyChart(bucketId, opts) {
117
+ return this.bucketsBillingHistoryHourlyChartWithHttpInfo(bucketId, opts).then(function (response_and_data) {
211
118
  return response_and_data.data;
212
119
  });
213
120
  }
214
121
 
215
122
  /**
216
123
  * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
217
- * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
218
- * @param {Number} snapshotId
124
+ * Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
125
+ * @param {Number} bucketId
219
126
  * @param {Object} opts Optional parameters
220
127
  * @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
221
128
  * @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
222
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
129
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelBucketBillingDetailsResponseModel} and HTTP response
223
130
  */
224
131
  }, {
225
- key: "retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo",
226
- value: function retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) {
132
+ key: "getBucketBillingHistoryWithHttpInfo",
133
+ value: function getBucketBillingHistoryWithHttpInfo(bucketId, opts) {
227
134
  opts = opts || {};
228
135
  var postBody = null;
229
- // verify the required parameter 'snapshotId' is set
230
- if (snapshotId === undefined || snapshotId === null) {
231
- throw new Error("Missing the required parameter 'snapshotId' when calling retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle");
136
+ // verify the required parameter 'bucketId' is set
137
+ if (bucketId === undefined || bucketId === null) {
138
+ throw new Error("Missing the required parameter 'bucketId' when calling getBucketBillingHistory");
232
139
  }
233
140
  var pathParams = {
234
- 'snapshot_id': snapshotId
141
+ 'bucket_id': bucketId
235
142
  };
236
143
  var queryParams = {
237
144
  'start_date': opts['startDate'],
@@ -239,50 +146,50 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
239
146
  };
240
147
  var headerParams = {};
241
148
  var formParams = {};
242
- var authNames = ['apiKey', 'accessToken'];
149
+ var authNames = ['apiKey'];
243
150
  var contentTypes = [];
244
151
  var accepts = ['application/json'];
245
- var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
246
- return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
152
+ var returnType = _ResourceLevelBucketBillingDetailsResponseModel["default"];
153
+ return this.apiClient.callApi('/billing/billing/history/bucket/{bucket_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
247
154
  }
248
155
 
249
156
  /**
250
157
  * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
251
- * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
252
- * @param {Number} snapshotId
158
+ * Retrieve billing history of a specific Bucket for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
159
+ * @param {Number} bucketId
253
160
  * @param {Object} opts Optional parameters
254
161
  * @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
255
162
  * @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
256
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
163
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelBucketBillingDetailsResponseModel}
257
164
  */
258
165
  }, {
259
- key: "retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle",
260
- value: function retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) {
261
- return this.retrieveBillingHistoryOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
166
+ key: "getBucketBillingHistory",
167
+ value: function getBucketBillingHistory(bucketId, opts) {
168
+ return this.getBucketBillingHistoryWithHttpInfo(bucketId, opts).then(function (response_and_data) {
262
169
  return response_and_data.data;
263
170
  });
264
171
  }
265
172
 
266
173
  /**
267
- * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
268
- * User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
269
- * @param {Number} vmId
174
+ * Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
175
+ * User will receive billing history of a specific Cluster for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'.
176
+ * @param {Number} clusterId
270
177
  * @param {Object} opts Optional parameters
271
178
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
272
179
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
273
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel} and HTTP response
180
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterBillingDetailsResponseModel} and HTTP response
274
181
  */
275
182
  }, {
276
- key: "retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo",
277
- value: function retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) {
183
+ key: "getClusterBillingHistoryWithHttpInfo",
184
+ value: function getClusterBillingHistoryWithHttpInfo(clusterId, opts) {
278
185
  opts = opts || {};
279
186
  var postBody = null;
280
- // verify the required parameter 'vmId' is set
281
- if (vmId === undefined || vmId === null) {
282
- throw new Error("Missing the required parameter 'vmId' when calling retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle");
187
+ // verify the required parameter 'clusterId' is set
188
+ if (clusterId === undefined || clusterId === null) {
189
+ throw new Error("Missing the required parameter 'clusterId' when calling getClusterBillingHistory");
283
190
  }
284
191
  var pathParams = {
285
- 'vm_id': vmId
192
+ 'cluster_id': clusterId
286
193
  };
287
194
  var queryParams = {
288
195
  'start_date': opts['startDate'],
@@ -290,50 +197,50 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
290
197
  };
291
198
  var headerParams = {};
292
199
  var formParams = {};
293
- var authNames = ['apiKey', 'accessToken'];
200
+ var authNames = ['apiKey'];
294
201
  var contentTypes = [];
295
202
  var accepts = ['application/json'];
296
- var returnType = _ResourceLevelVMBillingDetailsResponseModel["default"];
297
- return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
203
+ var returnType = _ResourceLevelClusterBillingDetailsResponseModel["default"];
204
+ return this.apiClient.callApi('/billing/billing/history/cluster/{cluster_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
298
205
  }
299
206
 
300
207
  /**
301
- * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
302
- * User will recieve billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
303
- * @param {Number} vmId
208
+ * Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
209
+ * User will receive billing history of a specific Cluster for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'.
210
+ * @param {Number} clusterId
304
211
  * @param {Object} opts Optional parameters
305
212
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
306
213
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
307
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel}
214
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelClusterBillingDetailsResponseModel}
308
215
  */
309
216
  }, {
310
- key: "retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle",
311
- value: function retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) {
312
- return this.retrieveBillingHistoryOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts).then(function (response_and_data) {
217
+ key: "getClusterBillingHistory",
218
+ value: function getClusterBillingHistory(clusterId, opts) {
219
+ return this.getClusterBillingHistoryWithHttpInfo(clusterId, opts).then(function (response_and_data) {
313
220
  return response_and_data.data;
314
221
  });
315
222
  }
316
223
 
317
224
  /**
318
- * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
319
- * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
320
- * @param {Number} volumeId
225
+ * Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
226
+ * User will receive hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
227
+ * @param {Number} clusterId
321
228
  * @param {Object} opts Optional parameters
322
229
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
323
230
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
324
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
231
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterGraphBillingDetailsResponseModel} and HTTP response
325
232
  */
326
233
  }, {
327
- key: "retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo",
328
- value: function retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) {
234
+ key: "getClusterBillingHistoryGraphWithHttpInfo",
235
+ value: function getClusterBillingHistoryGraphWithHttpInfo(clusterId, opts) {
329
236
  opts = opts || {};
330
237
  var postBody = null;
331
- // verify the required parameter 'volumeId' is set
332
- if (volumeId === undefined || volumeId === null) {
333
- throw new Error("Missing the required parameter 'volumeId' when calling retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle");
238
+ // verify the required parameter 'clusterId' is set
239
+ if (clusterId === undefined || clusterId === null) {
240
+ throw new Error("Missing the required parameter 'clusterId' when calling getClusterBillingHistoryGraph");
334
241
  }
335
242
  var pathParams = {
336
- 'volume_id': volumeId
243
+ 'cluster_id': clusterId
337
244
  };
338
245
  var queryParams = {
339
246
  'start_date': opts['startDate'],
@@ -341,194 +248,196 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
341
248
  };
342
249
  var headerParams = {};
343
250
  var formParams = {};
344
- var authNames = ['apiKey', 'accessToken'];
251
+ var authNames = ['apiKey'];
345
252
  var contentTypes = [];
346
253
  var accepts = ['application/json'];
347
- var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
348
- return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
254
+ var returnType = _ResourceLevelClusterGraphBillingDetailsResponseModel["default"];
255
+ return this.apiClient.callApi('/billing/billing/history/cluster/{cluster_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
349
256
  }
350
257
 
351
258
  /**
352
- * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
353
- * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
354
- * @param {Number} volumeId
259
+ * Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
260
+ * User will receive hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
261
+ * @param {Number} clusterId
355
262
  * @param {Object} opts Optional parameters
356
263
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
357
264
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
358
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
265
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelClusterGraphBillingDetailsResponseModel}
359
266
  */
360
267
  }, {
361
- key: "retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle",
362
- value: function retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) {
363
- return this.retrieveBillingHistoryOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts).then(function (response_and_data) {
268
+ key: "getClusterBillingHistoryGraph",
269
+ value: function getClusterBillingHistoryGraph(clusterId, opts) {
270
+ return this.getClusterBillingHistoryGraphWithHttpInfo(clusterId, opts).then(function (response_and_data) {
364
271
  return response_and_data.data;
365
272
  });
366
273
  }
367
274
 
368
275
  /**
369
- * Retrieve Billing History of Contract for a specific Billing Cycle
370
- * User will recieve billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
276
+ * Retrieve Billing History of data synthesis for a specific Billing Cycle
277
+ * User will receive billing history of data_synthesis for the specified billing cycle.
371
278
  * @param {Object} opts Optional parameters
372
279
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
373
280
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
374
- * @param {String} [search] Search by Contract \"Description\" or \"ID\"
375
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
281
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
282
+ * @param {Number} [perPage] Number of items to return per page
283
+ * @param {Number} [page] Page number
284
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenBasedBillingHistoryResponse} and HTTP response
376
285
  */
377
286
  }, {
378
- key: "retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo",
379
- value: function retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts) {
287
+ key: "getDataSynthesisBillingHistoryWithHttpInfo",
288
+ value: function getDataSynthesisBillingHistoryWithHttpInfo(opts) {
380
289
  opts = opts || {};
381
290
  var postBody = null;
382
291
  var pathParams = {};
383
292
  var queryParams = {
384
293
  'start_date': opts['startDate'],
385
294
  'end_date': opts['endDate'],
386
- 'search': opts['search']
295
+ 'search': opts['search'],
296
+ 'per_page': opts['perPage'],
297
+ 'page': opts['page']
387
298
  };
388
299
  var headerParams = {};
389
300
  var formParams = {};
390
- var authNames = ['apiKey', 'accessToken'];
301
+ var authNames = ['apiKey'];
391
302
  var contentTypes = [];
392
303
  var accepts = ['application/json'];
393
- var returnType = null;
394
- return this.apiClient.callApi('/billing/billing/history/contract', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
304
+ var returnType = _TokenBasedBillingHistoryResponse["default"];
305
+ return this.apiClient.callApi('/billing/billing/history/data_synthesis', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
395
306
  }
396
307
 
397
308
  /**
398
- * Retrieve Billing History of Contract for a specific Billing Cycle
399
- * User will recieve billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
309
+ * Retrieve Billing History of data synthesis for a specific Billing Cycle
310
+ * User will receive billing history of data_synthesis for the specified billing cycle.
400
311
  * @param {Object} opts Optional parameters
401
312
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
402
313
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
403
- * @param {String} opts.search Search by Contract \"Description\" or \"ID\"
404
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
314
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
315
+ * @param {Number} opts.perPage Number of items to return per page
316
+ * @param {Number} opts.page Page number
317
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenBasedBillingHistoryResponse}
405
318
  */
406
319
  }, {
407
- key: "retrieveBillingHistoryOfContractForASpecificBillingCycle",
408
- value: function retrieveBillingHistoryOfContractForASpecificBillingCycle(opts) {
409
- return this.retrieveBillingHistoryOfContractForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
320
+ key: "getDataSynthesisBillingHistory",
321
+ value: function getDataSynthesisBillingHistory(opts) {
322
+ return this.getDataSynthesisBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
410
323
  return response_and_data.data;
411
324
  });
412
325
  }
413
326
 
414
327
  /**
415
- * Retrieve Billing History of Snapshot for a specific Billing Cycle
416
- * User will recieve billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
328
+ * Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
329
+ * User will receive hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
330
+ * @param {Number} resourceId
417
331
  * @param {Object} opts Optional parameters
418
332
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
419
333
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
420
- * @param {String} [search] Search by Volume \"Name\" or \"ID\"
421
- * @param {String} [page] Page number
422
- * @param {String} [perPage] Number of items to return per page
423
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
334
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema} and HTTP response
424
335
  */
425
336
  }, {
426
- key: "retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo",
427
- value: function retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts) {
337
+ key: "getDataSynthesisBillingHistoryGraphWithHttpInfo",
338
+ value: function getDataSynthesisBillingHistoryGraphWithHttpInfo(resourceId, opts) {
428
339
  opts = opts || {};
429
340
  var postBody = null;
430
- var pathParams = {};
341
+ // verify the required parameter 'resourceId' is set
342
+ if (resourceId === undefined || resourceId === null) {
343
+ throw new Error("Missing the required parameter 'resourceId' when calling getDataSynthesisBillingHistoryGraph");
344
+ }
345
+ var pathParams = {
346
+ 'resource_id': resourceId
347
+ };
431
348
  var queryParams = {
432
349
  'start_date': opts['startDate'],
433
- 'end_date': opts['endDate'],
434
- 'search': opts['search'],
435
- 'page': opts['page'],
436
- 'per_page': opts['perPage']
350
+ 'end_date': opts['endDate']
437
351
  };
438
352
  var headerParams = {};
439
353
  var formParams = {};
440
- var authNames = ['apiKey', 'accessToken'];
354
+ var authNames = ['apiKey'];
441
355
  var contentTypes = [];
442
356
  var accepts = ['application/json'];
443
- var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
444
- return this.apiClient.callApi('/billing/billing/history/snapshot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
357
+ var returnType = _DataSynthesisBillingHistoryDetailsResponseSchema["default"];
358
+ return this.apiClient.callApi('/billing/billing/history/data_synthesis/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
445
359
  }
446
360
 
447
361
  /**
448
- * Retrieve Billing History of Snapshot for a specific Billing Cycle
449
- * User will recieve billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
362
+ * Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
363
+ * User will receive hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
364
+ * @param {Number} resourceId
450
365
  * @param {Object} opts Optional parameters
451
366
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
452
367
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
453
- * @param {String} opts.search Search by Volume \"Name\" or \"ID\"
454
- * @param {String} opts.page Page number
455
- * @param {String} opts.perPage Number of items to return per page
456
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
368
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema}
457
369
  */
458
370
  }, {
459
- key: "retrieveBillingHistoryOfSnapshotForASpecificBillingCycle",
460
- value: function retrieveBillingHistoryOfSnapshotForASpecificBillingCycle(opts) {
461
- return this.retrieveBillingHistoryOfSnapshotForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
371
+ key: "getDataSynthesisBillingHistoryGraph",
372
+ value: function getDataSynthesisBillingHistoryGraph(resourceId, opts) {
373
+ return this.getDataSynthesisBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
462
374
  return response_and_data.data;
463
375
  });
464
376
  }
465
377
 
466
378
  /**
467
- * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
468
- * User will recieve billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
379
+ * Retrieve billing history for a specific Data Synthesis resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
380
+ * @param {Number} resourceId
469
381
  * @param {Object} opts Optional parameters
470
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
471
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
472
- * @param {String} [search] Search by Virtual Machine \"Name\" or \"ID\"
473
- * @param {String} [perPage] Number of items to return per page
474
- * @param {String} [page] Page number
475
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel} and HTTP response
382
+ * @param {String} [startDate] YYYY-MM-DDTHH:MM:SS
383
+ * @param {String} [endDate] YYYY-MM-DDTHH:MM:SS
384
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema} and HTTP response
476
385
  */
477
386
  }, {
478
- key: "retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo",
479
- value: function retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts) {
387
+ key: "getDataSynthesisHistoryForResourceWithHttpInfo",
388
+ value: function getDataSynthesisHistoryForResourceWithHttpInfo(resourceId, opts) {
480
389
  opts = opts || {};
481
390
  var postBody = null;
482
- var pathParams = {};
391
+ // verify the required parameter 'resourceId' is set
392
+ if (resourceId === undefined || resourceId === null) {
393
+ throw new Error("Missing the required parameter 'resourceId' when calling getDataSynthesisHistoryForResource");
394
+ }
395
+ var pathParams = {
396
+ 'resource_id': resourceId
397
+ };
483
398
  var queryParams = {
484
399
  'start_date': opts['startDate'],
485
- 'end_date': opts['endDate'],
486
- 'search': opts['search'],
487
- 'per_page': opts['perPage'],
488
- 'page': opts['page']
400
+ 'end_date': opts['endDate']
489
401
  };
490
402
  var headerParams = {};
491
403
  var formParams = {};
492
- var authNames = ['apiKey', 'accessToken'];
404
+ var authNames = ['apiKey'];
493
405
  var contentTypes = [];
494
406
  var accepts = ['application/json'];
495
- var returnType = _ResourceLevelVmBillingHistoryResponseModel["default"];
496
- return this.apiClient.callApi('/billing/billing/history/virtual-machine', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
407
+ var returnType = _DataSynthesisBillingHistoryDetailsResponseSchema["default"];
408
+ return this.apiClient.callApi('/billing/billing/history/data_synthesis/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
497
409
  }
498
410
 
499
411
  /**
500
- * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
501
- * User will recieve billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
412
+ * Retrieve billing history for a specific Data Synthesis resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
413
+ * @param {Number} resourceId
502
414
  * @param {Object} opts Optional parameters
503
- * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
504
- * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
505
- * @param {String} opts.search Search by Virtual Machine \"Name\" or \"ID\"
506
- * @param {String} opts.perPage Number of items to return per page
507
- * @param {String} opts.page Page number
508
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel}
415
+ * @param {String} opts.startDate YYYY-MM-DDTHH:MM:SS
416
+ * @param {String} opts.endDate YYYY-MM-DDTHH:MM:SS
417
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DataSynthesisBillingHistoryDetailsResponseSchema}
509
418
  */
510
419
  }, {
511
- key: "retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle",
512
- value: function retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycle(opts) {
513
- return this.retrieveBillingHistoryOfVirtualMachineForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
420
+ key: "getDataSynthesisHistoryForResource",
421
+ value: function getDataSynthesisHistoryForResource(resourceId, opts) {
422
+ return this.getDataSynthesisHistoryForResourceWithHttpInfo(resourceId, opts).then(function (response_and_data) {
514
423
  return response_and_data.data;
515
424
  });
516
425
  }
517
426
 
518
427
  /**
519
- * Retrieve Billing History of Volume for a specific Billing Cycle
520
- * User will recieve billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
428
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
429
+ * User will receive billing history of fine_tuning for the specified billing cycle.
521
430
  * @param {Object} opts Optional parameters
522
431
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
523
432
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
524
- * @param {String} [search] Search by Volume \"Name\" or \"ID\"
525
- * @param {String} [perPage] Number of items to return per page
526
- * @param {String} [page] Page number
527
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
433
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
434
+ * @param {Number} [perPage] Number of items to return per page
435
+ * @param {Number} [page] Page number
436
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WorkloadBillingHistoryResponse} and HTTP response
528
437
  */
529
438
  }, {
530
- key: "retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo",
531
- value: function retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts) {
439
+ key: "getFineTuningBillingHistoryWithHttpInfo",
440
+ value: function getFineTuningBillingHistoryWithHttpInfo(opts) {
532
441
  opts = opts || {};
533
442
  var postBody = null;
534
443
  var pathParams = {};
@@ -541,52 +450,52 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
541
450
  };
542
451
  var headerParams = {};
543
452
  var formParams = {};
544
- var authNames = ['apiKey', 'accessToken'];
453
+ var authNames = ['apiKey'];
545
454
  var contentTypes = [];
546
455
  var accepts = ['application/json'];
547
- var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
548
- return this.apiClient.callApi('/billing/billing/history/volume', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
456
+ var returnType = _WorkloadBillingHistoryResponse["default"];
457
+ return this.apiClient.callApi('/billing/billing/history/fine_tuning', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
549
458
  }
550
459
 
551
460
  /**
552
- * Retrieve Billing History of Volume for a specific Billing Cycle
553
- * User will recieve billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
461
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
462
+ * User will receive billing history of fine_tuning for the specified billing cycle.
554
463
  * @param {Object} opts Optional parameters
555
464
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
556
465
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
557
- * @param {String} opts.search Search by Volume \"Name\" or \"ID\"
558
- * @param {String} opts.perPage Number of items to return per page
559
- * @param {String} opts.page Page number
560
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
466
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
467
+ * @param {Number} opts.perPage Number of items to return per page
468
+ * @param {Number} opts.page Page number
469
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WorkloadBillingHistoryResponse}
561
470
  */
562
471
  }, {
563
- key: "retrieveBillingHistoryOfVolumeForASpecificBillingCycle",
564
- value: function retrieveBillingHistoryOfVolumeForASpecificBillingCycle(opts) {
565
- return this.retrieveBillingHistoryOfVolumeForASpecificBillingCycleWithHttpInfo(opts).then(function (response_and_data) {
472
+ key: "getFineTuningBillingHistory",
473
+ value: function getFineTuningBillingHistory(opts) {
474
+ return this.getFineTuningBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
566
475
  return response_and_data.data;
567
476
  });
568
477
  }
569
478
 
570
479
  /**
571
- * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
572
- * User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
573
- * @param {Number} snapshotId
480
+ * Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
481
+ * User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
482
+ * @param {Number} resourceId
574
483
  * @param {Object} opts Optional parameters
575
484
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
576
485
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
577
486
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
578
487
  */
579
488
  }, {
580
- key: "retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo",
581
- value: function retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts) {
489
+ key: "getFineTuningBillingHistoryGraphWithHttpInfo",
490
+ value: function getFineTuningBillingHistoryGraphWithHttpInfo(resourceId, opts) {
582
491
  opts = opts || {};
583
492
  var postBody = null;
584
- // verify the required parameter 'snapshotId' is set
585
- if (snapshotId === undefined || snapshotId === null) {
586
- throw new Error("Missing the required parameter 'snapshotId' when calling retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle");
493
+ // verify the required parameter 'resourceId' is set
494
+ if (resourceId === undefined || resourceId === null) {
495
+ throw new Error("Missing the required parameter 'resourceId' when calling getFineTuningBillingHistoryGraph");
587
496
  }
588
497
  var pathParams = {
589
- 'snapshot_id': snapshotId
498
+ 'resource_id': resourceId
590
499
  };
591
500
  var queryParams = {
592
501
  'start_date': opts['startDate'],
@@ -594,152 +503,135 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
594
503
  };
595
504
  var headerParams = {};
596
505
  var formParams = {};
597
- var authNames = ['apiKey', 'accessToken'];
506
+ var authNames = ['apiKey'];
598
507
  var contentTypes = [];
599
508
  var accepts = ['application/json'];
600
509
  var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
601
- return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
510
+ return this.apiClient.callApi('/billing/billing/history/fine_tuning/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
602
511
  }
603
512
 
604
513
  /**
605
- * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
606
- * User will recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
607
- * @param {Number} snapshotId
514
+ * Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
515
+ * User will receive hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
516
+ * @param {Number} resourceId
608
517
  * @param {Object} opts Optional parameters
609
518
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
610
519
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
611
520
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
612
521
  */
613
522
  }, {
614
- key: "retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle",
615
- value: function retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycle(snapshotId, opts) {
616
- return this.retrieveHourlyCostDatapointsOfASpecificSnapshotForASpecificBillingCycleWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
523
+ key: "getFineTuningBillingHistoryGraph",
524
+ value: function getFineTuningBillingHistoryGraph(resourceId, opts) {
525
+ return this.getFineTuningBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
617
526
  return response_and_data.data;
618
527
  });
619
528
  }
620
529
 
621
530
  /**
622
- * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
623
- * User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
624
- * @param {Number} vmId
625
- * @param {Object} opts Optional parameters
626
- * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
627
- * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
628
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel} and HTTP response
531
+ * GET: Last Day Cost
532
+ * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
533
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LastDayCostResponse} and HTTP response
629
534
  */
630
535
  }, {
631
- key: "retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo",
632
- value: function retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts) {
633
- opts = opts || {};
536
+ key: "getLastDayCostWithHttpInfo",
537
+ value: function getLastDayCostWithHttpInfo() {
634
538
  var postBody = null;
635
- // verify the required parameter 'vmId' is set
636
- if (vmId === undefined || vmId === null) {
637
- throw new Error("Missing the required parameter 'vmId' when calling retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle");
638
- }
639
- var pathParams = {
640
- 'vm_id': vmId
641
- };
642
- var queryParams = {
643
- 'start_date': opts['startDate'],
644
- 'end_date': opts['endDate']
645
- };
539
+ var pathParams = {};
540
+ var queryParams = {};
646
541
  var headerParams = {};
647
542
  var formParams = {};
648
- var authNames = ['apiKey', 'accessToken'];
543
+ var authNames = ['apiKey'];
649
544
  var contentTypes = [];
650
545
  var accepts = ['application/json'];
651
- var returnType = _ResourceLevelVmGraphBillingDetailsResponseModel["default"];
652
- return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
546
+ var returnType = _LastDayCostResponse["default"];
547
+ return this.apiClient.callApi('/billing/billing/last-day-cost', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
653
548
  }
654
549
 
655
550
  /**
656
- * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
657
- * User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
658
- * @param {Number} vmId
659
- * @param {Object} opts Optional parameters
660
- * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
661
- * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
662
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel}
551
+ * GET: Last Day Cost
552
+ * Retrieve the previous day's costs for instances, volumes, and clusters. Returns a breakdown of the costs and the total cost for the last day. For additional information on Retrieve Previous Day Usage Costs, [**click here**](None/docs/api-reference/billing-resources/last-day-usage/)
553
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LastDayCostResponse}
663
554
  */
664
555
  }, {
665
- key: "retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle",
666
- value: function retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycle(vmId, opts) {
667
- return this.retrieveHourlyCostDatapointsOfASpecificVirtualMachineForASpecificBillingCycleWithHttpInfo(vmId, opts).then(function (response_and_data) {
556
+ key: "getLastDayCost",
557
+ value: function getLastDayCost() {
558
+ return this.getLastDayCostWithHttpInfo().then(function (response_and_data) {
668
559
  return response_and_data.data;
669
560
  });
670
561
  }
671
562
 
672
563
  /**
673
- * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
674
- * User will recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
675
- * @param {Number} volumeId
564
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
565
+ * User will receive billing history of model_evaluation for the specified billing cycle.
676
566
  * @param {Object} opts Optional parameters
677
567
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
678
568
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
679
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
569
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
570
+ * @param {Number} [perPage] Number of items to return per page
571
+ * @param {Number} [page] Page number
572
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenBasedBillingHistoryResponse} and HTTP response
680
573
  */
681
574
  }, {
682
- key: "retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo",
683
- value: function retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts) {
575
+ key: "getModelEvaluationBillingHistoryWithHttpInfo",
576
+ value: function getModelEvaluationBillingHistoryWithHttpInfo(opts) {
684
577
  opts = opts || {};
685
578
  var postBody = null;
686
- // verify the required parameter 'volumeId' is set
687
- if (volumeId === undefined || volumeId === null) {
688
- throw new Error("Missing the required parameter 'volumeId' when calling retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle");
689
- }
690
- var pathParams = {
691
- 'volume_id': volumeId
692
- };
579
+ var pathParams = {};
693
580
  var queryParams = {
694
581
  'start_date': opts['startDate'],
695
- 'end_date': opts['endDate']
582
+ 'end_date': opts['endDate'],
583
+ 'search': opts['search'],
584
+ 'per_page': opts['perPage'],
585
+ 'page': opts['page']
696
586
  };
697
587
  var headerParams = {};
698
588
  var formParams = {};
699
- var authNames = ['apiKey', 'accessToken'];
589
+ var authNames = ['apiKey'];
700
590
  var contentTypes = [];
701
591
  var accepts = ['application/json'];
702
- var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
703
- return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
592
+ var returnType = _TokenBasedBillingHistoryResponse["default"];
593
+ return this.apiClient.callApi('/billing/billing/history/model_evaluation', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
704
594
  }
705
595
 
706
596
  /**
707
- * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
708
- * User will recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
709
- * @param {Number} volumeId
597
+ * Retrieve Billing History of model evaluation for a specific Billing Cycle
598
+ * User will receive billing history of model_evaluation for the specified billing cycle.
710
599
  * @param {Object} opts Optional parameters
711
600
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
712
601
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
713
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
602
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
603
+ * @param {Number} opts.perPage Number of items to return per page
604
+ * @param {Number} opts.page Page number
605
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenBasedBillingHistoryResponse}
714
606
  */
715
607
  }, {
716
- key: "retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle",
717
- value: function retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycle(volumeId, opts) {
718
- return this.retrieveHourlyCostDatapointsOfASpecificVolumeForASpecificBillingCycleWithHttpInfo(volumeId, opts).then(function (response_and_data) {
608
+ key: "getModelEvaluationBillingHistory",
609
+ value: function getModelEvaluationBillingHistory(opts) {
610
+ return this.getModelEvaluationBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
719
611
  return response_and_data.data;
720
612
  });
721
613
  }
722
614
 
723
615
  /**
724
- * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
725
- * User will recieve sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
726
- * @param {Number} vmId
616
+ * Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
617
+ * User will receive hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
618
+ * @param {Number} resourceId
727
619
  * @param {Object} opts Optional parameters
728
620
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
729
621
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
730
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesGraphResponseModel} and HTTP response
622
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} and HTTP response
731
623
  */
732
624
  }, {
733
- key: "retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo",
734
- value: function retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts) {
625
+ key: "getModelEvaluationBillingHistoryGraphWithHttpInfo",
626
+ value: function getModelEvaluationBillingHistoryGraphWithHttpInfo(resourceId, opts) {
735
627
  opts = opts || {};
736
628
  var postBody = null;
737
- // verify the required parameter 'vmId' is set
738
- if (vmId === undefined || vmId === null) {
739
- throw new Error("Missing the required parameter 'vmId' when calling retrieveSubResourcesHistoricalCostDatapointsOfAVirtual");
629
+ // verify the required parameter 'resourceId' is set
630
+ if (resourceId === undefined || resourceId === null) {
631
+ throw new Error("Missing the required parameter 'resourceId' when calling getModelEvaluationBillingHistoryGraph");
740
632
  }
741
633
  var pathParams = {
742
- 'vm_id': vmId
634
+ 'resource_id': resourceId
743
635
  };
744
636
  var queryParams = {
745
637
  'start_date': opts['startDate'],
@@ -747,26 +639,669 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
747
639
  };
748
640
  var headerParams = {};
749
641
  var formParams = {};
750
- var authNames = ['apiKey', 'accessToken'];
642
+ var authNames = ['apiKey'];
751
643
  var contentTypes = [];
752
644
  var accepts = ['application/json'];
753
- var returnType = _SubResourcesGraphResponseModel["default"];
754
- return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
645
+ var returnType = _ModelEvaluationBillingHistoryDetailsResponseSchema["default"];
646
+ return this.apiClient.callApi('/billing/billing/history/model_evaluation/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
755
647
  }
756
648
 
757
649
  /**
758
- * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
759
- * User will recieve sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
760
- * @param {Number} vmId
650
+ * Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
651
+ * User will receive hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
652
+ * @param {Number} resourceId
761
653
  * @param {Object} opts Optional parameters
762
654
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
763
655
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
764
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesGraphResponseModel}
656
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema}
765
657
  */
766
658
  }, {
767
- key: "retrieveSubResourcesHistoricalCostDatapointsOfAVirtual",
768
- value: function retrieveSubResourcesHistoricalCostDatapointsOfAVirtual(vmId, opts) {
769
- return this.retrieveSubResourcesHistoricalCostDatapointsOfAVirtualWithHttpInfo(vmId, opts).then(function (response_and_data) {
659
+ key: "getModelEvaluationBillingHistoryGraph",
660
+ value: function getModelEvaluationBillingHistoryGraph(resourceId, opts) {
661
+ return this.getModelEvaluationBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
662
+ return response_and_data.data;
663
+ });
664
+ }
665
+
666
+ /**
667
+ * Update: Subscribe or Unsubscribe Notification Threshold
668
+ * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
669
+ * @param {Number} thresholdId
670
+ * @param {module:model/SubscribeOrUnsubscribeUpdatePayload} payload
671
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationThresholdUpdateResponse} and HTTP response
672
+ */
673
+ }, {
674
+ key: "getNotificationThresholdWithHttpInfo",
675
+ value: function getNotificationThresholdWithHttpInfo(thresholdId, payload) {
676
+ var postBody = payload;
677
+ // verify the required parameter 'thresholdId' is set
678
+ if (thresholdId === undefined || thresholdId === null) {
679
+ throw new Error("Missing the required parameter 'thresholdId' when calling getNotificationThreshold");
680
+ }
681
+ // verify the required parameter 'payload' is set
682
+ if (payload === undefined || payload === null) {
683
+ throw new Error("Missing the required parameter 'payload' when calling getNotificationThreshold");
684
+ }
685
+ var pathParams = {
686
+ 'threshold_id': thresholdId
687
+ };
688
+ var queryParams = {};
689
+ var headerParams = {};
690
+ var formParams = {};
691
+ var authNames = ['apiKey'];
692
+ var contentTypes = ['application/json'];
693
+ var accepts = ['application/json'];
694
+ var returnType = _OrganizationThresholdUpdateResponse["default"];
695
+ return this.apiClient.callApi('/billing/billing/threshold/{threshold_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
696
+ }
697
+
698
+ /**
699
+ * Update: Subscribe or Unsubscribe Notification Threshold
700
+ * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
701
+ * @param {Number} thresholdId
702
+ * @param {module:model/SubscribeOrUnsubscribeUpdatePayload} payload
703
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationThresholdUpdateResponse}
704
+ */
705
+ }, {
706
+ key: "getNotificationThreshold",
707
+ value: function getNotificationThreshold(thresholdId, payload) {
708
+ return this.getNotificationThresholdWithHttpInfo(thresholdId, payload).then(function (response_and_data) {
709
+ return response_and_data.data;
710
+ });
711
+ }
712
+
713
+ /**
714
+ * Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
715
+ * Retrieve billing history of a specific Fine tuning for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
716
+ * @param {Number} resourceId
717
+ * @param {Object} opts Optional parameters
718
+ * @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
719
+ * @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
720
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
721
+ */
722
+ }, {
723
+ key: "getResourceFineTuningBillingHistoryWithHttpInfo",
724
+ value: function getResourceFineTuningBillingHistoryWithHttpInfo(resourceId, opts) {
725
+ opts = opts || {};
726
+ var postBody = null;
727
+ // verify the required parameter 'resourceId' is set
728
+ if (resourceId === undefined || resourceId === null) {
729
+ throw new Error("Missing the required parameter 'resourceId' when calling getResourceFineTuningBillingHistory");
730
+ }
731
+ var pathParams = {
732
+ 'resource_id': resourceId
733
+ };
734
+ var queryParams = {
735
+ 'start_date': opts['startDate'],
736
+ 'end_date': opts['endDate']
737
+ };
738
+ var headerParams = {};
739
+ var formParams = {};
740
+ var authNames = ['apiKey'];
741
+ var contentTypes = [];
742
+ var accepts = ['application/json'];
743
+ var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
744
+ return this.apiClient.callApi('/billing/billing/history/fine_tuning/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
745
+ }
746
+
747
+ /**
748
+ * Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
749
+ * Retrieve billing history of a specific Fine tuning for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
750
+ * @param {Number} resourceId
751
+ * @param {Object} opts Optional parameters
752
+ * @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
753
+ * @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
754
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
755
+ */
756
+ }, {
757
+ key: "getResourceFineTuningBillingHistory",
758
+ value: function getResourceFineTuningBillingHistory(resourceId, opts) {
759
+ return this.getResourceFineTuningBillingHistoryWithHttpInfo(resourceId, opts).then(function (response_and_data) {
760
+ return response_and_data.data;
761
+ });
762
+ }
763
+
764
+ /**
765
+ * Retrieve billing history for a specific Model Evaluation resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
766
+ * @param {Number} resourceId
767
+ * @param {Object} opts Optional parameters
768
+ * @param {String} [startDate] YYYY-MM-DDTHH:MM:SS
769
+ * @param {String} [endDate] YYYY-MM-DDTHH:MM:SS
770
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema} and HTTP response
771
+ */
772
+ }, {
773
+ key: "getResourceModelEvaluationBillingHistoryWithHttpInfo",
774
+ value: function getResourceModelEvaluationBillingHistoryWithHttpInfo(resourceId, opts) {
775
+ opts = opts || {};
776
+ var postBody = null;
777
+ // verify the required parameter 'resourceId' is set
778
+ if (resourceId === undefined || resourceId === null) {
779
+ throw new Error("Missing the required parameter 'resourceId' when calling getResourceModelEvaluationBillingHistory");
780
+ }
781
+ var pathParams = {
782
+ 'resource_id': resourceId
783
+ };
784
+ var queryParams = {
785
+ 'start_date': opts['startDate'],
786
+ 'end_date': opts['endDate']
787
+ };
788
+ var headerParams = {};
789
+ var formParams = {};
790
+ var authNames = ['apiKey'];
791
+ var contentTypes = [];
792
+ var accepts = ['application/json'];
793
+ var returnType = _ModelEvaluationBillingHistoryDetailsResponseSchema["default"];
794
+ return this.apiClient.callApi('/billing/billing/history/model_evaluation/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
795
+ }
796
+
797
+ /**
798
+ * Retrieve billing history for a specific Model Evaluation resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
799
+ * @param {Number} resourceId
800
+ * @param {Object} opts Optional parameters
801
+ * @param {String} opts.startDate YYYY-MM-DDTHH:MM:SS
802
+ * @param {String} opts.endDate YYYY-MM-DDTHH:MM:SS
803
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ModelEvaluationBillingHistoryDetailsResponseSchema}
804
+ */
805
+ }, {
806
+ key: "getResourceModelEvaluationBillingHistory",
807
+ value: function getResourceModelEvaluationBillingHistory(resourceId, opts) {
808
+ return this.getResourceModelEvaluationBillingHistoryWithHttpInfo(resourceId, opts).then(function (response_and_data) {
809
+ return response_and_data.data;
810
+ });
811
+ }
812
+
813
+ /**
814
+ * Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
815
+ * User will receive hourly cost datapoints for a serverless inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
816
+ * @param {Number} resourceId
817
+ * @param {Object} opts Optional parameters
818
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
819
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
820
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} and HTTP response
821
+ */
822
+ }, {
823
+ key: "getServerlessInferenceBillingHistoryGraphWithHttpInfo",
824
+ value: function getServerlessInferenceBillingHistoryGraphWithHttpInfo(resourceId, opts) {
825
+ opts = opts || {};
826
+ var postBody = null;
827
+ // verify the required parameter 'resourceId' is set
828
+ if (resourceId === undefined || resourceId === null) {
829
+ throw new Error("Missing the required parameter 'resourceId' when calling getServerlessInferenceBillingHistoryGraph");
830
+ }
831
+ var pathParams = {
832
+ 'resource_id': resourceId
833
+ };
834
+ var queryParams = {
835
+ 'start_date': opts['startDate'],
836
+ 'end_date': opts['endDate']
837
+ };
838
+ var headerParams = {};
839
+ var formParams = {};
840
+ var authNames = ['apiKey'];
841
+ var contentTypes = [];
842
+ var accepts = ['application/json'];
843
+ var returnType = _ServerlessInferencedBillingHistoryDetailsResponseSchema["default"];
844
+ return this.apiClient.callApi('/billing/billing/history/serverless_inference/{resource_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
845
+ }
846
+
847
+ /**
848
+ * Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
849
+ * User will receive hourly cost datapoints for a serverless inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
850
+ * @param {Number} resourceId
851
+ * @param {Object} opts Optional parameters
852
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
853
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
854
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema}
855
+ */
856
+ }, {
857
+ key: "getServerlessInferenceBillingHistoryGraph",
858
+ value: function getServerlessInferenceBillingHistoryGraph(resourceId, opts) {
859
+ return this.getServerlessInferenceBillingHistoryGraphWithHttpInfo(resourceId, opts).then(function (response_and_data) {
860
+ return response_and_data.data;
861
+ });
862
+ }
863
+
864
+ /**
865
+ * Retrieve billing history for a specific Serverless Inference resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
866
+ * @param {Number} resourceId
867
+ * @param {Object} opts Optional parameters
868
+ * @param {String} [startDate] YYYY-MM-DDTHH:MM:SS
869
+ * @param {String} [endDate] YYYY-MM-DDTHH:MM:SS
870
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema} and HTTP response
871
+ */
872
+ }, {
873
+ key: "getServerlessInferencesBillingHistoryWithHttpInfo",
874
+ value: function getServerlessInferencesBillingHistoryWithHttpInfo(resourceId, opts) {
875
+ opts = opts || {};
876
+ var postBody = null;
877
+ // verify the required parameter 'resourceId' is set
878
+ if (resourceId === undefined || resourceId === null) {
879
+ throw new Error("Missing the required parameter 'resourceId' when calling getServerlessInferencesBillingHistory");
880
+ }
881
+ var pathParams = {
882
+ 'resource_id': resourceId
883
+ };
884
+ var queryParams = {
885
+ 'start_date': opts['startDate'],
886
+ 'end_date': opts['endDate']
887
+ };
888
+ var headerParams = {};
889
+ var formParams = {};
890
+ var authNames = ['apiKey'];
891
+ var contentTypes = [];
892
+ var accepts = ['application/json'];
893
+ var returnType = _ServerlessInferencedBillingHistoryDetailsResponseSchema["default"];
894
+ return this.apiClient.callApi('/billing/billing/history/serverless_inference/{resource_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
895
+ }
896
+
897
+ /**
898
+ * Retrieve billing history for a specific Serverless Inference resource. Includes: 'resource_name', 'infrahub_id', 'base_model', 'base_model_display_name', 'lora_adapter', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'input_tokens', 'output_tokens', 'input_tokens_incurred_bill', 'input_tokens_non_discounted_bill', 'output_tokens_incurred_bill', 'output_tokens_non_discounted_bill'
899
+ * @param {Number} resourceId
900
+ * @param {Object} opts Optional parameters
901
+ * @param {String} opts.startDate YYYY-MM-DDTHH:MM:SS
902
+ * @param {String} opts.endDate YYYY-MM-DDTHH:MM:SS
903
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ServerlessInferencedBillingHistoryDetailsResponseSchema}
904
+ */
905
+ }, {
906
+ key: "getServerlessInferencesBillingHistory",
907
+ value: function getServerlessInferencesBillingHistory(resourceId, opts) {
908
+ return this.getServerlessInferencesBillingHistoryWithHttpInfo(resourceId, opts).then(function (response_and_data) {
909
+ return response_and_data.data;
910
+ });
911
+ }
912
+
913
+ /**
914
+ * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
915
+ * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
916
+ * @param {Number} snapshotId
917
+ * @param {Object} opts Optional parameters
918
+ * @param {String} [startDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
919
+ * @param {String} [endDate] Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
920
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
921
+ */
922
+ }, {
923
+ key: "getSnapshotBillingHistoryWithHttpInfo",
924
+ value: function getSnapshotBillingHistoryWithHttpInfo(snapshotId, opts) {
925
+ opts = opts || {};
926
+ var postBody = null;
927
+ // verify the required parameter 'snapshotId' is set
928
+ if (snapshotId === undefined || snapshotId === null) {
929
+ throw new Error("Missing the required parameter 'snapshotId' when calling getSnapshotBillingHistory");
930
+ }
931
+ var pathParams = {
932
+ 'snapshot_id': snapshotId
933
+ };
934
+ var queryParams = {
935
+ 'start_date': opts['startDate'],
936
+ 'end_date': opts['endDate']
937
+ };
938
+ var headerParams = {};
939
+ var formParams = {};
940
+ var authNames = ['apiKey'];
941
+ var contentTypes = [];
942
+ var accepts = ['application/json'];
943
+ var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
944
+ return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
945
+ }
946
+
947
+ /**
948
+ * Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
949
+ * Retrieve billing history of a specific Snapshot for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
950
+ * @param {Number} snapshotId
951
+ * @param {Object} opts Optional parameters
952
+ * @param {String} opts.startDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
953
+ * @param {String} opts.endDate Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
954
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
955
+ */
956
+ }, {
957
+ key: "getSnapshotBillingHistory",
958
+ value: function getSnapshotBillingHistory(snapshotId, opts) {
959
+ return this.getSnapshotBillingHistoryWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
960
+ return response_and_data.data;
961
+ });
962
+ }
963
+
964
+ /**
965
+ * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
966
+ * User will receive hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
967
+ * @param {Number} snapshotId
968
+ * @param {Object} opts Optional parameters
969
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
970
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
971
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
972
+ */
973
+ }, {
974
+ key: "getSnapshotBillingHistoryGraphWithHttpInfo",
975
+ value: function getSnapshotBillingHistoryGraphWithHttpInfo(snapshotId, opts) {
976
+ opts = opts || {};
977
+ var postBody = null;
978
+ // verify the required parameter 'snapshotId' is set
979
+ if (snapshotId === undefined || snapshotId === null) {
980
+ throw new Error("Missing the required parameter 'snapshotId' when calling getSnapshotBillingHistoryGraph");
981
+ }
982
+ var pathParams = {
983
+ 'snapshot_id': snapshotId
984
+ };
985
+ var queryParams = {
986
+ 'start_date': opts['startDate'],
987
+ 'end_date': opts['endDate']
988
+ };
989
+ var headerParams = {};
990
+ var formParams = {};
991
+ var authNames = ['apiKey'];
992
+ var contentTypes = [];
993
+ var accepts = ['application/json'];
994
+ var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
995
+ return this.apiClient.callApi('/billing/billing/history/snapshot/{snapshot_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
996
+ }
997
+
998
+ /**
999
+ * Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
1000
+ * User will receive hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
1001
+ * @param {Number} snapshotId
1002
+ * @param {Object} opts Optional parameters
1003
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1004
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1005
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
1006
+ */
1007
+ }, {
1008
+ key: "getSnapshotBillingHistoryGraph",
1009
+ value: function getSnapshotBillingHistoryGraph(snapshotId, opts) {
1010
+ return this.getSnapshotBillingHistoryGraphWithHttpInfo(snapshotId, opts).then(function (response_and_data) {
1011
+ return response_and_data.data;
1012
+ });
1013
+ }
1014
+
1015
+ /**
1016
+ * GET: Billing usage
1017
+ * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](None/docs/billing/pricebook/)
1018
+ * @param {Object} opts Optional parameters
1019
+ * @param {String} [deleted] `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
1020
+ * @param {String} [environment] Filter resources by environment ID or Name
1021
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BillingMetricesResponse} and HTTP response
1022
+ */
1023
+ }, {
1024
+ key: "getUsageWithHttpInfo",
1025
+ value: function getUsageWithHttpInfo(opts) {
1026
+ opts = opts || {};
1027
+ var postBody = null;
1028
+ var pathParams = {};
1029
+ var queryParams = {
1030
+ 'deleted': opts['deleted'],
1031
+ 'environment': opts['environment']
1032
+ };
1033
+ var headerParams = {};
1034
+ var formParams = {};
1035
+ var authNames = ['apiKey'];
1036
+ var contentTypes = [];
1037
+ var accepts = ['application/json'];
1038
+ var returnType = _BillingMetricesResponse["default"];
1039
+ return this.apiClient.callApi('/billing/billing/usage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1040
+ }
1041
+
1042
+ /**
1043
+ * GET: Billing usage
1044
+ * Retrieve active billing metrics for the organization's resources, including pricing, uptime, and total cost. Returns usage details for each active resource by defualt(`deleted=false` will return active resources). Additionally, adding `deleted=true` in query parameter will return inactive resources. For additional information on view usage costs for all resources, [**click here**](None/docs/billing/pricebook/)
1045
+ * @param {Object} opts Optional parameters
1046
+ * @param {String} opts.deleted `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
1047
+ * @param {String} opts.environment Filter resources by environment ID or Name
1048
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BillingMetricesResponse}
1049
+ */
1050
+ }, {
1051
+ key: "getUsage",
1052
+ value: function getUsage(opts) {
1053
+ return this.getUsageWithHttpInfo(opts).then(function (response_and_data) {
1054
+ return response_and_data.data;
1055
+ });
1056
+ }
1057
+
1058
+ /**
1059
+ * Retrieve Billing History for a specific Billing Cycle
1060
+ * User will receive billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
1061
+ * @param {Object} opts Optional parameters
1062
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1063
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1064
+ * @param {String} [graph] Set this value to \"true\" for getting graph value
1065
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel} and HTTP response
1066
+ */
1067
+ }, {
1068
+ key: "getUserBillingHistoryWithHttpInfo",
1069
+ value: function getUserBillingHistoryWithHttpInfo(opts) {
1070
+ opts = opts || {};
1071
+ var postBody = null;
1072
+ var pathParams = {};
1073
+ var queryParams = {
1074
+ 'start_date': opts['startDate'],
1075
+ 'end_date': opts['endDate'],
1076
+ 'graph': opts['graph']
1077
+ };
1078
+ var headerParams = {};
1079
+ var formParams = {};
1080
+ var authNames = ['apiKey'];
1081
+ var contentTypes = [];
1082
+ var accepts = ['application/json'];
1083
+ var returnType = _OrganizationLevelBillingHistoryResponseModel["default"];
1084
+ return this.apiClient.callApi('/billing/billing/history', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1085
+ }
1086
+
1087
+ /**
1088
+ * Retrieve Billing History for a specific Billing Cycle
1089
+ * User will receive billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
1090
+ * @param {Object} opts Optional parameters
1091
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1092
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1093
+ * @param {String} opts.graph Set this value to \"true\" for getting graph value
1094
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationLevelBillingHistoryResponseModel}
1095
+ */
1096
+ }, {
1097
+ key: "getUserBillingHistory",
1098
+ value: function getUserBillingHistory(opts) {
1099
+ return this.getUserBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
1100
+ return response_and_data.data;
1101
+ });
1102
+ }
1103
+
1104
+ /**
1105
+ * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
1106
+ * User will receive billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
1107
+ * @param {Number} vmId
1108
+ * @param {Object} opts Optional parameters
1109
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1110
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1111
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel} and HTTP response
1112
+ */
1113
+ }, {
1114
+ key: "getVMBillingDetailsWithHttpInfo",
1115
+ value: function getVMBillingDetailsWithHttpInfo(vmId, opts) {
1116
+ opts = opts || {};
1117
+ var postBody = null;
1118
+ // verify the required parameter 'vmId' is set
1119
+ if (vmId === undefined || vmId === null) {
1120
+ throw new Error("Missing the required parameter 'vmId' when calling getVMBillingDetails");
1121
+ }
1122
+ var pathParams = {
1123
+ 'vm_id': vmId
1124
+ };
1125
+ var queryParams = {
1126
+ 'start_date': opts['startDate'],
1127
+ 'end_date': opts['endDate']
1128
+ };
1129
+ var headerParams = {};
1130
+ var formParams = {};
1131
+ var authNames = ['apiKey'];
1132
+ var contentTypes = [];
1133
+ var accepts = ['application/json'];
1134
+ var returnType = _ResourceLevelVMBillingDetailsResponseModel["default"];
1135
+ return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1136
+ }
1137
+
1138
+ /**
1139
+ * Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
1140
+ * User will receive billing history of a specific Virtual Machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'non_discounted_price_per_hour', 'incurred_bill', 'non_discounted_bill', 'usage_time', 'usage_time_ACTIVE', 'usage_time_SHUTOFF', 'usage_time_HIBERNATED'
1141
+ * @param {Number} vmId
1142
+ * @param {Object} opts Optional parameters
1143
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1144
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1145
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVMBillingDetailsResponseModel}
1146
+ */
1147
+ }, {
1148
+ key: "getVMBillingDetails",
1149
+ value: function getVMBillingDetails(vmId, opts) {
1150
+ return this.getVMBillingDetailsWithHttpInfo(vmId, opts).then(function (response_and_data) {
1151
+ return response_and_data.data;
1152
+ });
1153
+ }
1154
+
1155
+ /**
1156
+ * Retrieve VM billing events history
1157
+ * User will receive vm billing events history
1158
+ * @param {Number} vmId
1159
+ * @param {Object} opts Optional parameters
1160
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1161
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1162
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
1163
+ */
1164
+ }, {
1165
+ key: "getVMBillingEventsWithHttpInfo",
1166
+ value: function getVMBillingEventsWithHttpInfo(vmId, opts) {
1167
+ opts = opts || {};
1168
+ var postBody = null;
1169
+ // verify the required parameter 'vmId' is set
1170
+ if (vmId === undefined || vmId === null) {
1171
+ throw new Error("Missing the required parameter 'vmId' when calling getVMBillingEvents");
1172
+ }
1173
+ var pathParams = {
1174
+ 'vm_id': vmId
1175
+ };
1176
+ var queryParams = {
1177
+ 'start_date': opts['startDate'],
1178
+ 'end_date': opts['endDate']
1179
+ };
1180
+ var headerParams = {};
1181
+ var formParams = {};
1182
+ var authNames = ['apiKey'];
1183
+ var contentTypes = [];
1184
+ var accepts = ['application/json'];
1185
+ var returnType = _ResourceBillingEventsHistoryResponse["default"];
1186
+ return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1187
+ }
1188
+
1189
+ /**
1190
+ * Retrieve VM billing events history
1191
+ * User will receive vm billing events history
1192
+ * @param {Number} vmId
1193
+ * @param {Object} opts Optional parameters
1194
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1195
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1196
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
1197
+ */
1198
+ }, {
1199
+ key: "getVMBillingEvents",
1200
+ value: function getVMBillingEvents(vmId, opts) {
1201
+ return this.getVMBillingEventsWithHttpInfo(vmId, opts).then(function (response_and_data) {
1202
+ return response_and_data.data;
1203
+ });
1204
+ }
1205
+
1206
+ /**
1207
+ * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
1208
+ * User will receive hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
1209
+ * @param {Number} vmId
1210
+ * @param {Object} opts Optional parameters
1211
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1212
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1213
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel} and HTTP response
1214
+ */
1215
+ }, {
1216
+ key: "getVMBillingGraphWithHttpInfo",
1217
+ value: function getVMBillingGraphWithHttpInfo(vmId, opts) {
1218
+ opts = opts || {};
1219
+ var postBody = null;
1220
+ // verify the required parameter 'vmId' is set
1221
+ if (vmId === undefined || vmId === null) {
1222
+ throw new Error("Missing the required parameter 'vmId' when calling getVMBillingGraph");
1223
+ }
1224
+ var pathParams = {
1225
+ 'vm_id': vmId
1226
+ };
1227
+ var queryParams = {
1228
+ 'start_date': opts['startDate'],
1229
+ 'end_date': opts['endDate']
1230
+ };
1231
+ var headerParams = {};
1232
+ var formParams = {};
1233
+ var authNames = ['apiKey'];
1234
+ var contentTypes = [];
1235
+ var accepts = ['application/json'];
1236
+ var returnType = _ResourceLevelVmGraphBillingDetailsResponseModel["default"];
1237
+ return this.apiClient.callApi('/billing/billing/history/virtual-machine/{vm_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1238
+ }
1239
+
1240
+ /**
1241
+ * Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
1242
+ * User will receive hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
1243
+ * @param {Number} vmId
1244
+ * @param {Object} opts Optional parameters
1245
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1246
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1247
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmGraphBillingDetailsResponseModel}
1248
+ */
1249
+ }, {
1250
+ key: "getVMBillingGraph",
1251
+ value: function getVMBillingGraph(vmId, opts) {
1252
+ return this.getVMBillingGraphWithHttpInfo(vmId, opts).then(function (response_and_data) {
1253
+ return response_and_data.data;
1254
+ });
1255
+ }
1256
+
1257
+ /**
1258
+ * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
1259
+ * User will receive billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1260
+ * @param {Object} opts Optional parameters
1261
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1262
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1263
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
1264
+ * @param {Number} [perPage] Number of items to return per page
1265
+ * @param {Number} [page] Page number
1266
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel} and HTTP response
1267
+ */
1268
+ }, {
1269
+ key: "getVMBillingHistoryWithHttpInfo",
1270
+ value: function getVMBillingHistoryWithHttpInfo(opts) {
1271
+ opts = opts || {};
1272
+ var postBody = null;
1273
+ var pathParams = {};
1274
+ var queryParams = {
1275
+ 'start_date': opts['startDate'],
1276
+ 'end_date': opts['endDate'],
1277
+ 'search': opts['search'],
1278
+ 'per_page': opts['perPage'],
1279
+ 'page': opts['page']
1280
+ };
1281
+ var headerParams = {};
1282
+ var formParams = {};
1283
+ var authNames = ['apiKey'];
1284
+ var contentTypes = [];
1285
+ var accepts = ['application/json'];
1286
+ var returnType = _ResourceLevelVmBillingHistoryResponseModel["default"];
1287
+ return this.apiClient.callApi('/billing/billing/history/virtual-machine', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1288
+ }
1289
+
1290
+ /**
1291
+ * Retrieve Billing History of Virtual Machine for a specific Billing Cycle
1292
+ * User will receive billing history of virtual machine for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1293
+ * @param {Object} opts Optional parameters
1294
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1295
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1296
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
1297
+ * @param {Number} opts.perPage Number of items to return per page
1298
+ * @param {Number} opts.page Page number
1299
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVmBillingHistoryResponseModel}
1300
+ */
1301
+ }, {
1302
+ key: "getVMBillingHistory",
1303
+ value: function getVMBillingHistory(opts) {
1304
+ return this.getVMBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
770
1305
  return response_and_data.data;
771
1306
  });
772
1307
  }
@@ -781,16 +1316,169 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
781
1316
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesCostsResponseModel} and HTTP response
782
1317
  */
783
1318
  }, {
784
- key: "retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo",
785
- value: function retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts) {
1319
+ key: "getVMSubResourceCostsWithHttpInfo",
1320
+ value: function getVMSubResourceCostsWithHttpInfo(vmId, opts) {
1321
+ opts = opts || {};
1322
+ var postBody = null;
1323
+ // verify the required parameter 'vmId' is set
1324
+ if (vmId === undefined || vmId === null) {
1325
+ throw new Error("Missing the required parameter 'vmId' when calling getVMSubResourceCosts");
1326
+ }
1327
+ var pathParams = {
1328
+ 'vm_id': vmId
1329
+ };
1330
+ var queryParams = {
1331
+ 'start_date': opts['startDate'],
1332
+ 'end_date': opts['endDate']
1333
+ };
1334
+ var headerParams = {};
1335
+ var formParams = {};
1336
+ var authNames = ['apiKey'];
1337
+ var contentTypes = [];
1338
+ var accepts = ['application/json'];
1339
+ var returnType = _SubResourcesCostsResponseModel["default"];
1340
+ return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1341
+ }
1342
+
1343
+ /**
1344
+ * Retrieve Total Costs and Non Discount Costs for Sub Resources
1345
+ * User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
1346
+ * @param {Number} vmId
1347
+ * @param {Object} opts Optional parameters
1348
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1349
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1350
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesCostsResponseModel}
1351
+ */
1352
+ }, {
1353
+ key: "getVMSubResourceCosts",
1354
+ value: function getVMSubResourceCosts(vmId, opts) {
1355
+ return this.getVMSubResourceCostsWithHttpInfo(vmId, opts).then(function (response_and_data) {
1356
+ return response_and_data.data;
1357
+ });
1358
+ }
1359
+
1360
+ /**
1361
+ * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
1362
+ * User will receive sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
1363
+ * @param {Number} vmId
1364
+ * @param {Object} opts Optional parameters
1365
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1366
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1367
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubResourcesGraphResponseModel} and HTTP response
1368
+ */
1369
+ }, {
1370
+ key: "getVMSubResourceGraphWithHttpInfo",
1371
+ value: function getVMSubResourceGraphWithHttpInfo(vmId, opts) {
1372
+ opts = opts || {};
1373
+ var postBody = null;
1374
+ // verify the required parameter 'vmId' is set
1375
+ if (vmId === undefined || vmId === null) {
1376
+ throw new Error("Missing the required parameter 'vmId' when calling getVMSubResourceGraph");
1377
+ }
1378
+ var pathParams = {
1379
+ 'vm_id': vmId
1380
+ };
1381
+ var queryParams = {
1382
+ 'start_date': opts['startDate'],
1383
+ 'end_date': opts['endDate']
1384
+ };
1385
+ var headerParams = {};
1386
+ var formParams = {};
1387
+ var authNames = ['apiKey'];
1388
+ var contentTypes = [];
1389
+ var accepts = ['application/json'];
1390
+ var returnType = _SubResourcesGraphResponseModel["default"];
1391
+ return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1392
+ }
1393
+
1394
+ /**
1395
+ * Retrieve Sub-Resources Historical Cost datapoints of a Virtual
1396
+ * User will receive sub-resources historical cost datapoints for a VM sub resources for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. Machine sub resources for a specific billing cycle
1397
+ * @param {Number} vmId
1398
+ * @param {Object} opts Optional parameters
1399
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1400
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1401
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesGraphResponseModel}
1402
+ */
1403
+ }, {
1404
+ key: "getVMSubResourceGraph",
1405
+ value: function getVMSubResourceGraph(vmId, opts) {
1406
+ return this.getVMSubResourceGraphWithHttpInfo(vmId, opts).then(function (response_and_data) {
1407
+ return response_and_data.data;
1408
+ });
1409
+ }
1410
+
1411
+ /**
1412
+ * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
1413
+ * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
1414
+ * @param {Number} volumeId
1415
+ * @param {Object} opts Optional parameters
1416
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1417
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1418
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel} and HTTP response
1419
+ */
1420
+ }, {
1421
+ key: "getVolumeBillingDetailsWithHttpInfo",
1422
+ value: function getVolumeBillingDetailsWithHttpInfo(volumeId, opts) {
1423
+ opts = opts || {};
1424
+ var postBody = null;
1425
+ // verify the required parameter 'volumeId' is set
1426
+ if (volumeId === undefined || volumeId === null) {
1427
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingDetails");
1428
+ }
1429
+ var pathParams = {
1430
+ 'volume_id': volumeId
1431
+ };
1432
+ var queryParams = {
1433
+ 'start_date': opts['startDate'],
1434
+ 'end_date': opts['endDate']
1435
+ };
1436
+ var headerParams = {};
1437
+ var formParams = {};
1438
+ var authNames = ['apiKey'];
1439
+ var contentTypes = [];
1440
+ var accepts = ['application/json'];
1441
+ var returnType = _ResourceLevelVolumeBillingDetailsResponseModel["default"];
1442
+ return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1443
+ }
1444
+
1445
+ /**
1446
+ * Retrieve Billing History of a Specific Volume for a specific Billing Cycle
1447
+ * Retrieve billing history of a specific Volume for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'price_per_hour', 'incurred_bill', 'usage_time', 'non_discounted_price_per_hour', 'non_discounted_bill'.
1448
+ * @param {Number} volumeId
1449
+ * @param {Object} opts Optional parameters
1450
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1451
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1452
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingDetailsResponseModel}
1453
+ */
1454
+ }, {
1455
+ key: "getVolumeBillingDetails",
1456
+ value: function getVolumeBillingDetails(volumeId, opts) {
1457
+ return this.getVolumeBillingDetailsWithHttpInfo(volumeId, opts).then(function (response_and_data) {
1458
+ return response_and_data.data;
1459
+ });
1460
+ }
1461
+
1462
+ /**
1463
+ * Retrieve Volume billing events history
1464
+ * User will receive volume billing events history
1465
+ * @param {Number} volumeId
1466
+ * @param {Object} opts Optional parameters
1467
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1468
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1469
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
1470
+ */
1471
+ }, {
1472
+ key: "getVolumeBillingEventsWithHttpInfo",
1473
+ value: function getVolumeBillingEventsWithHttpInfo(volumeId, opts) {
786
1474
  opts = opts || {};
787
1475
  var postBody = null;
788
- // verify the required parameter 'vmId' is set
789
- if (vmId === undefined || vmId === null) {
790
- throw new Error("Missing the required parameter 'vmId' when calling retrieveTotalCostsAndNonDiscountCostsForSubResources");
1476
+ // verify the required parameter 'volumeId' is set
1477
+ if (volumeId === undefined || volumeId === null) {
1478
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingEvents");
791
1479
  }
792
1480
  var pathParams = {
793
- 'vm_id': vmId
1481
+ 'volume_id': volumeId
794
1482
  };
795
1483
  var queryParams = {
796
1484
  'start_date': opts['startDate'],
@@ -798,98 +1486,99 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
798
1486
  };
799
1487
  var headerParams = {};
800
1488
  var formParams = {};
801
- var authNames = ['apiKey', 'accessToken'];
1489
+ var authNames = ['apiKey'];
802
1490
  var contentTypes = [];
803
1491
  var accepts = ['application/json'];
804
- var returnType = _SubResourcesCostsResponseModel["default"];
805
- return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/sub-resource', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1492
+ var returnType = _ResourceBillingEventsHistoryResponse["default"];
1493
+ return this.apiClient.callApi('/billing/billing/volume/{volume_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
806
1494
  }
807
1495
 
808
1496
  /**
809
- * Retrieve Total Costs and Non Discount Costs for Sub Resources
810
- * User will get total costs and non_discount costs of sub resources on a specific Virtual Machine for the specified billing cycle. on a Specific VM for the Specified Billing Cycle
811
- * @param {Number} vmId
1497
+ * Retrieve Volume billing events history
1498
+ * User will receive volume billing events history
1499
+ * @param {Number} volumeId
812
1500
  * @param {Object} opts Optional parameters
813
1501
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
814
1502
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
815
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubResourcesCostsResponseModel}
1503
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
816
1504
  */
817
1505
  }, {
818
- key: "retrieveTotalCostsAndNonDiscountCostsForSubResources",
819
- value: function retrieveTotalCostsAndNonDiscountCostsForSubResources(vmId, opts) {
820
- return this.retrieveTotalCostsAndNonDiscountCostsForSubResourcesWithHttpInfo(vmId, opts).then(function (response_and_data) {
1506
+ key: "getVolumeBillingEvents",
1507
+ value: function getVolumeBillingEvents(volumeId, opts) {
1508
+ return this.getVolumeBillingEventsWithHttpInfo(volumeId, opts).then(function (response_and_data) {
821
1509
  return response_and_data.data;
822
1510
  });
823
1511
  }
824
1512
 
825
1513
  /**
826
- * Retrieve VM billing events history
827
- * User will receive vm billing events history
828
- * @param {Number} vmId
1514
+ * Retrieve Billing History of Volume for a specific Billing Cycle
1515
+ * User will receive billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
829
1516
  * @param {Object} opts Optional parameters
830
1517
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
831
1518
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
832
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
1519
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
1520
+ * @param {Number} [perPage] Number of items to return per page
1521
+ * @param {Number} [page] Page number
1522
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
833
1523
  */
834
1524
  }, {
835
- key: "retrieveVmBillingEventsHistoryWithHttpInfo",
836
- value: function retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts) {
1525
+ key: "getVolumeBillingHistoryWithHttpInfo",
1526
+ value: function getVolumeBillingHistoryWithHttpInfo(opts) {
837
1527
  opts = opts || {};
838
1528
  var postBody = null;
839
- // verify the required parameter 'vmId' is set
840
- if (vmId === undefined || vmId === null) {
841
- throw new Error("Missing the required parameter 'vmId' when calling retrieveVmBillingEventsHistory");
842
- }
843
- var pathParams = {
844
- 'vm_id': vmId
845
- };
1529
+ var pathParams = {};
846
1530
  var queryParams = {
847
1531
  'start_date': opts['startDate'],
848
- 'end_date': opts['endDate']
1532
+ 'end_date': opts['endDate'],
1533
+ 'search': opts['search'],
1534
+ 'per_page': opts['perPage'],
1535
+ 'page': opts['page']
849
1536
  };
850
1537
  var headerParams = {};
851
1538
  var formParams = {};
852
- var authNames = ['apiKey', 'accessToken'];
1539
+ var authNames = ['apiKey'];
853
1540
  var contentTypes = [];
854
1541
  var accepts = ['application/json'];
855
- var returnType = _ResourceBillingEventsHistoryResponse["default"];
856
- return this.apiClient.callApi('/billing/billing/virtual-machine/{vm_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1542
+ var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
1543
+ return this.apiClient.callApi('/billing/billing/history/volume', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
857
1544
  }
858
1545
 
859
1546
  /**
860
- * Retrieve VM billing events history
861
- * User will receive vm billing events history
862
- * @param {Number} vmId
1547
+ * Retrieve Billing History of Volume for a specific Billing Cycle
1548
+ * User will receive billing history of volumes for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
863
1549
  * @param {Object} opts Optional parameters
864
1550
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
865
1551
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
866
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
1552
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
1553
+ * @param {Number} opts.perPage Number of items to return per page
1554
+ * @param {Number} opts.page Page number
1555
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
867
1556
  */
868
1557
  }, {
869
- key: "retrieveVmBillingEventsHistory",
870
- value: function retrieveVmBillingEventsHistory(vmId, opts) {
871
- return this.retrieveVmBillingEventsHistoryWithHttpInfo(vmId, opts).then(function (response_and_data) {
1558
+ key: "getVolumeBillingHistory",
1559
+ value: function getVolumeBillingHistory(opts) {
1560
+ return this.getVolumeBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
872
1561
  return response_and_data.data;
873
1562
  });
874
1563
  }
875
1564
 
876
1565
  /**
877
- * Retrieve Volume billing events history
878
- * User will receive volume billing events history
1566
+ * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
1567
+ * User will receive hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
879
1568
  * @param {Number} volumeId
880
1569
  * @param {Object} opts Optional parameters
881
1570
  * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
882
1571
  * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
883
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceBillingEventsHistoryResponse} and HTTP response
1572
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel} and HTTP response
884
1573
  */
885
1574
  }, {
886
- key: "retrieveVolumeBillingEventsHistoryWithHttpInfo",
887
- value: function retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts) {
1575
+ key: "getVolumeBillingHistoryGraphWithHttpInfo",
1576
+ value: function getVolumeBillingHistoryGraphWithHttpInfo(volumeId, opts) {
888
1577
  opts = opts || {};
889
1578
  var postBody = null;
890
1579
  // verify the required parameter 'volumeId' is set
891
1580
  if (volumeId === undefined || volumeId === null) {
892
- throw new Error("Missing the required parameter 'volumeId' when calling retrieveVolumeBillingEventsHistory");
1581
+ throw new Error("Missing the required parameter 'volumeId' when calling getVolumeBillingHistoryGraph");
893
1582
  }
894
1583
  var pathParams = {
895
1584
  'volume_id': volumeId
@@ -900,73 +1589,313 @@ var BillingApi = exports["default"] = /*#__PURE__*/function () {
900
1589
  };
901
1590
  var headerParams = {};
902
1591
  var formParams = {};
903
- var authNames = ['apiKey', 'accessToken'];
1592
+ var authNames = ['apiKey'];
904
1593
  var contentTypes = [];
905
1594
  var accepts = ['application/json'];
906
- var returnType = _ResourceBillingEventsHistoryResponse["default"];
907
- return this.apiClient.callApi('/billing/billing/volume/{volume_id}/billing-events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1595
+ var returnType = _ResourceLevelVolumeGraphBillingDetailsResponseModel["default"];
1596
+ return this.apiClient.callApi('/billing/billing/history/volume/{volume_id}/graph', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
908
1597
  }
909
1598
 
910
1599
  /**
911
- * Retrieve Volume billing events history
912
- * User will receive volume billing events history
1600
+ * Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
1601
+ * User will receive hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
913
1602
  * @param {Number} volumeId
914
1603
  * @param {Object} opts Optional parameters
915
1604
  * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
916
1605
  * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
917
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceBillingEventsHistoryResponse}
1606
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeGraphBillingDetailsResponseModel}
918
1607
  */
919
1608
  }, {
920
- key: "retrieveVolumeBillingEventsHistory",
921
- value: function retrieveVolumeBillingEventsHistory(volumeId, opts) {
922
- return this.retrieveVolumeBillingEventsHistoryWithHttpInfo(volumeId, opts).then(function (response_and_data) {
1609
+ key: "getVolumeBillingHistoryGraph",
1610
+ value: function getVolumeBillingHistoryGraph(volumeId, opts) {
1611
+ return this.getVolumeBillingHistoryGraphWithHttpInfo(volumeId, opts).then(function (response_and_data) {
923
1612
  return response_and_data.data;
924
1613
  });
925
1614
  }
926
1615
 
927
1616
  /**
928
- * Update: Subscribe or Unsubscribe Notification Threshold
929
- * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
930
- * @param {Number} thresholdId
931
- * @param {module:model/Subscribeorunsubscribeupdatepayload} payload
932
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Organizationthresholdupdateresponse} and HTTP response
1617
+ * Retrieve Billing History of Contract for a specific Billing Cycle
1618
+ * User will receive billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
1619
+ * @param {Object} opts Optional parameters
1620
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1621
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1622
+ * @param {String} [search] Search by Contract \"Description\" or \"ID\"
1623
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
933
1624
  */
934
1625
  }, {
935
- key: "updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo",
936
- value: function updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload) {
937
- var postBody = payload;
938
- // verify the required parameter 'thresholdId' is set
939
- if (thresholdId === undefined || thresholdId === null) {
940
- throw new Error("Missing the required parameter 'thresholdId' when calling updateSubscribeOrUnsubscribeNotificationThreshold");
941
- }
942
- // verify the required parameter 'payload' is set
943
- if (payload === undefined || payload === null) {
944
- throw new Error("Missing the required parameter 'payload' when calling updateSubscribeOrUnsubscribeNotificationThreshold");
945
- }
946
- var pathParams = {
947
- 'threshold_id': thresholdId
1626
+ key: "listBillingContractHistoryWithHttpInfo",
1627
+ value: function listBillingContractHistoryWithHttpInfo(opts) {
1628
+ opts = opts || {};
1629
+ var postBody = null;
1630
+ var pathParams = {};
1631
+ var queryParams = {
1632
+ 'start_date': opts['startDate'],
1633
+ 'end_date': opts['endDate'],
1634
+ 'search': opts['search']
1635
+ };
1636
+ var headerParams = {};
1637
+ var formParams = {};
1638
+ var authNames = ['apiKey'];
1639
+ var contentTypes = [];
1640
+ var accepts = ['application/json'];
1641
+ var returnType = null;
1642
+ return this.apiClient.callApi('/billing/billing/history/contract', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1643
+ }
1644
+
1645
+ /**
1646
+ * Retrieve Billing History of Contract for a specific Billing Cycle
1647
+ * User will receive billing history of contracts for the specified billing cycle. This data will include 'description', gpu_type','infrahub_id', 'status', 'incurred_bill', 'price_per_hour'
1648
+ * @param {Object} opts Optional parameters
1649
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1650
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1651
+ * @param {String} opts.search Search by Contract \"Description\" or \"ID\"
1652
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}
1653
+ */
1654
+ }, {
1655
+ key: "listBillingContractHistory",
1656
+ value: function listBillingContractHistory(opts) {
1657
+ return this.listBillingContractHistoryWithHttpInfo(opts).then(function (response_and_data) {
1658
+ return response_and_data.data;
1659
+ });
1660
+ }
1661
+
1662
+ /**
1663
+ * Retrieve Billing History of a Bucket for a specific Billing Cycle
1664
+ * User will receive billing history of buckets for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1665
+ * @param {Object} opts Optional parameters
1666
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1667
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1668
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
1669
+ * @param {Number} [perPage] Number of items to return per page
1670
+ * @param {Number} [page] Page number
1671
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelBucketBillingHistoryResponseModel} and HTTP response
1672
+ */
1673
+ }, {
1674
+ key: "listBucketBillingHistoryWithHttpInfo",
1675
+ value: function listBucketBillingHistoryWithHttpInfo(opts) {
1676
+ opts = opts || {};
1677
+ var postBody = null;
1678
+ var pathParams = {};
1679
+ var queryParams = {
1680
+ 'start_date': opts['startDate'],
1681
+ 'end_date': opts['endDate'],
1682
+ 'search': opts['search'],
1683
+ 'per_page': opts['perPage'],
1684
+ 'page': opts['page']
1685
+ };
1686
+ var headerParams = {};
1687
+ var formParams = {};
1688
+ var authNames = ['apiKey'];
1689
+ var contentTypes = [];
1690
+ var accepts = ['application/json'];
1691
+ var returnType = _ResourceLevelBucketBillingHistoryResponseModel["default"];
1692
+ return this.apiClient.callApi('/billing/billing/history/bucket', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1693
+ }
1694
+
1695
+ /**
1696
+ * Retrieve Billing History of a Bucket for a specific Billing Cycle
1697
+ * User will receive billing history of buckets for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1698
+ * @param {Object} opts Optional parameters
1699
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1700
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1701
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
1702
+ * @param {Number} opts.perPage Number of items to return per page
1703
+ * @param {Number} opts.page Page number
1704
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelBucketBillingHistoryResponseModel}
1705
+ */
1706
+ }, {
1707
+ key: "listBucketBillingHistory",
1708
+ value: function listBucketBillingHistory(opts) {
1709
+ return this.listBucketBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
1710
+ return response_and_data.data;
1711
+ });
1712
+ }
1713
+
1714
+ /**
1715
+ * Retrieve Billing History of Clusters for a specific Billing Cycle
1716
+ * User will receive billing history of clusters for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1717
+ * @param {Object} opts Optional parameters
1718
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1719
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1720
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
1721
+ * @param {Number} [perPage] Number of items to return per page
1722
+ * @param {Number} [page] Page number
1723
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelClusterBillingHistoryResponseModel} and HTTP response
1724
+ */
1725
+ }, {
1726
+ key: "listClustersBillingHistoryWithHttpInfo",
1727
+ value: function listClustersBillingHistoryWithHttpInfo(opts) {
1728
+ opts = opts || {};
1729
+ var postBody = null;
1730
+ var pathParams = {};
1731
+ var queryParams = {
1732
+ 'start_date': opts['startDate'],
1733
+ 'end_date': opts['endDate'],
1734
+ 'search': opts['search'],
1735
+ 'per_page': opts['perPage'],
1736
+ 'page': opts['page']
948
1737
  };
1738
+ var headerParams = {};
1739
+ var formParams = {};
1740
+ var authNames = ['apiKey'];
1741
+ var contentTypes = [];
1742
+ var accepts = ['application/json'];
1743
+ var returnType = _ResourceLevelClusterBillingHistoryResponseModel["default"];
1744
+ return this.apiClient.callApi('/billing/billing/history/cluster', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1745
+ }
1746
+
1747
+ /**
1748
+ * Retrieve Billing History of Clusters for a specific Billing Cycle
1749
+ * User will receive billing history of clusters for the specified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1750
+ * @param {Object} opts Optional parameters
1751
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1752
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1753
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
1754
+ * @param {Number} opts.perPage Number of items to return per page
1755
+ * @param {Number} opts.page Page number
1756
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelClusterBillingHistoryResponseModel}
1757
+ */
1758
+ }, {
1759
+ key: "listClustersBillingHistory",
1760
+ value: function listClustersBillingHistory(opts) {
1761
+ return this.listClustersBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
1762
+ return response_and_data.data;
1763
+ });
1764
+ }
1765
+
1766
+ /**
1767
+ * GET: All Thresholds for Organization
1768
+ * Retrieve all the notification thresholds for an organization.
1769
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationThresholdsResponse} and HTTP response
1770
+ */
1771
+ }, {
1772
+ key: "listOrgNotificationThresholdsWithHttpInfo",
1773
+ value: function listOrgNotificationThresholdsWithHttpInfo() {
1774
+ var postBody = null;
1775
+ var pathParams = {};
949
1776
  var queryParams = {};
950
1777
  var headerParams = {};
951
1778
  var formParams = {};
952
- var authNames = ['apiKey', 'accessToken'];
953
- var contentTypes = ['application/json'];
1779
+ var authNames = ['apiKey'];
1780
+ var contentTypes = [];
954
1781
  var accepts = ['application/json'];
955
- var returnType = _Organizationthresholdupdateresponse["default"];
956
- return this.apiClient.callApi('/billing/billing/threshold/{threshold_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1782
+ var returnType = _OrganizationThresholdsResponse["default"];
1783
+ return this.apiClient.callApi('/billing/billing/threshold', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
957
1784
  }
958
1785
 
959
1786
  /**
960
- * Update: Subscribe or Unsubscribe Notification Threshold
961
- * By default, you are subscribed to all the threshold values and you will be receiving the email notification for these default thresholds values. `false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.
962
- * @param {Number} thresholdId
963
- * @param {module:model/Subscribeorunsubscribeupdatepayload} payload
964
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Organizationthresholdupdateresponse}
1787
+ * GET: All Thresholds for Organization
1788
+ * Retrieve all the notification thresholds for an organization.
1789
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationThresholdsResponse}
1790
+ */
1791
+ }, {
1792
+ key: "listOrgNotificationThresholds",
1793
+ value: function listOrgNotificationThresholds() {
1794
+ return this.listOrgNotificationThresholdsWithHttpInfo().then(function (response_and_data) {
1795
+ return response_and_data.data;
1796
+ });
1797
+ }
1798
+
1799
+ /**
1800
+ * Retrieve Billing History of serverless inference for a specific Billing Cycle
1801
+ * User will receive billing history of serverless_inference for the specified billing cycle.
1802
+ * @param {Object} opts Optional parameters
1803
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1804
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1805
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
1806
+ * @param {Number} [perPage] Number of items to return per page
1807
+ * @param {Number} [page] Page number
1808
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TokenBasedBillingHistoryResponse} and HTTP response
1809
+ */
1810
+ }, {
1811
+ key: "listServerlessInferenceBillingHistoryWithHttpInfo",
1812
+ value: function listServerlessInferenceBillingHistoryWithHttpInfo(opts) {
1813
+ opts = opts || {};
1814
+ var postBody = null;
1815
+ var pathParams = {};
1816
+ var queryParams = {
1817
+ 'start_date': opts['startDate'],
1818
+ 'end_date': opts['endDate'],
1819
+ 'search': opts['search'],
1820
+ 'per_page': opts['perPage'],
1821
+ 'page': opts['page']
1822
+ };
1823
+ var headerParams = {};
1824
+ var formParams = {};
1825
+ var authNames = ['apiKey'];
1826
+ var contentTypes = [];
1827
+ var accepts = ['application/json'];
1828
+ var returnType = _TokenBasedBillingHistoryResponse["default"];
1829
+ return this.apiClient.callApi('/billing/billing/history/serverless_inference', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1830
+ }
1831
+
1832
+ /**
1833
+ * Retrieve Billing History of serverless inference for a specific Billing Cycle
1834
+ * User will receive billing history of serverless_inference for the specified billing cycle.
1835
+ * @param {Object} opts Optional parameters
1836
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1837
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1838
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
1839
+ * @param {Number} opts.perPage Number of items to return per page
1840
+ * @param {Number} opts.page Page number
1841
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TokenBasedBillingHistoryResponse}
1842
+ */
1843
+ }, {
1844
+ key: "listServerlessInferenceBillingHistory",
1845
+ value: function listServerlessInferenceBillingHistory(opts) {
1846
+ return this.listServerlessInferenceBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
1847
+ return response_and_data.data;
1848
+ });
1849
+ }
1850
+
1851
+ /**
1852
+ * Retrieve Billing History of Snapshot for a specific Billing Cycle
1853
+ * User will receive billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1854
+ * @param {Object} opts Optional parameters
1855
+ * @param {String} [startDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1856
+ * @param {String} [endDate] Date should be formatted in YYYY-MM-DDTHH:MM:SS
1857
+ * @param {String} [search] Search by resource \"Name\" or \"ID\"
1858
+ * @param {Number} [perPage] Number of items to return per page
1859
+ * @param {Number} [page] Page number
1860
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel} and HTTP response
1861
+ */
1862
+ }, {
1863
+ key: "listSnapshotBillingHistoryWithHttpInfo",
1864
+ value: function listSnapshotBillingHistoryWithHttpInfo(opts) {
1865
+ opts = opts || {};
1866
+ var postBody = null;
1867
+ var pathParams = {};
1868
+ var queryParams = {
1869
+ 'start_date': opts['startDate'],
1870
+ 'end_date': opts['endDate'],
1871
+ 'search': opts['search'],
1872
+ 'per_page': opts['perPage'],
1873
+ 'page': opts['page']
1874
+ };
1875
+ var headerParams = {};
1876
+ var formParams = {};
1877
+ var authNames = ['apiKey'];
1878
+ var contentTypes = [];
1879
+ var accepts = ['application/json'];
1880
+ var returnType = _ResourceLevelVolumeBillingHistoryResponseModel["default"];
1881
+ return this.apiClient.callApi('/billing/billing/history/snapshot', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
1882
+ }
1883
+
1884
+ /**
1885
+ * Retrieve Billing History of Snapshot for a specific Billing Cycle
1886
+ * User will receive billing history of snapshots for thespecified billing cycle. This data will include 'resource_name', 'infrahub_id', 'status', 'incurred_bill', 'usage_time', 'price_per_hour'
1887
+ * @param {Object} opts Optional parameters
1888
+ * @param {String} opts.startDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1889
+ * @param {String} opts.endDate Date should be formatted in YYYY-MM-DDTHH:MM:SS
1890
+ * @param {String} opts.search Search by resource \"Name\" or \"ID\"
1891
+ * @param {Number} opts.perPage Number of items to return per page
1892
+ * @param {Number} opts.page Page number
1893
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResourceLevelVolumeBillingHistoryResponseModel}
965
1894
  */
966
1895
  }, {
967
- key: "updateSubscribeOrUnsubscribeNotificationThreshold",
968
- value: function updateSubscribeOrUnsubscribeNotificationThreshold(thresholdId, payload) {
969
- return this.updateSubscribeOrUnsubscribeNotificationThresholdWithHttpInfo(thresholdId, payload).then(function (response_and_data) {
1896
+ key: "listSnapshotBillingHistory",
1897
+ value: function listSnapshotBillingHistory(opts) {
1898
+ return this.listSnapshotBillingHistoryWithHttpInfo(opts).then(function (response_and_data) {
970
1899
  return response_and_data.data;
971
1900
  });
972
1901
  }