@datadog/datadog-api-client 1.8.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/packages/datadog-api-client-common/configuration.js +0 -1
  3. package/dist/packages/datadog-api-client-common/configuration.js.map +1 -1
  4. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js +0 -4
  5. package/dist/packages/datadog-api-client-v1/apis/ServiceLevelObjectivesApi.js.map +1 -1
  6. package/dist/packages/datadog-api-client-v1/index.d.ts +13 -0
  7. package/dist/packages/datadog-api-client-v1/index.js +25 -9
  8. package/dist/packages/datadog-api-client-v1/index.js.map +1 -1
  9. package/dist/packages/datadog-api-client-v1/models/GCPAccount.d.ts +4 -0
  10. package/dist/packages/datadog-api-client-v1/models/GCPAccount.js +4 -0
  11. package/dist/packages/datadog-api-client-v1/models/GCPAccount.js.map +1 -1
  12. package/dist/packages/datadog-api-client-v1/models/HostMeta.d.ts +4 -4
  13. package/dist/packages/datadog-api-client-v1/models/HostMeta.js +4 -4
  14. package/dist/packages/datadog-api-client-v1/models/HostMeta.js.map +1 -1
  15. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.d.ts +2 -2
  16. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js +2 -2
  17. package/dist/packages/datadog-api-client-v1/models/HourlyUsageAttributionUsageType.js.map +1 -1
  18. package/dist/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.d.ts +32 -0
  19. package/dist/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.js +35 -0
  20. package/dist/packages/datadog-api-client-v1/models/IPPrefixesOrchestrator.js.map +1 -0
  21. package/dist/packages/datadog-api-client-v1/models/IPRanges.d.ts +5 -0
  22. package/dist/packages/datadog-api-client-v1/models/IPRanges.js +4 -0
  23. package/dist/packages/datadog-api-client-v1/models/IPRanges.js.map +1 -1
  24. package/dist/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.d.ts +25 -0
  25. package/dist/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.js +24 -0
  26. package/dist/packages/datadog-api-client-v1/models/ListStreamComputeAggregation.js.map +1 -0
  27. package/dist/packages/datadog-api-client-v1/models/ListStreamComputeItems.d.ts +33 -0
  28. package/dist/packages/datadog-api-client-v1/models/ListStreamComputeItems.js +31 -0
  29. package/dist/packages/datadog-api-client-v1/models/ListStreamComputeItems.js.map +1 -0
  30. package/dist/packages/datadog-api-client-v1/models/ListStreamGroupByItems.d.ts +28 -0
  31. package/dist/packages/datadog-api-client-v1/models/ListStreamGroupByItems.js +32 -0
  32. package/dist/packages/datadog-api-client-v1/models/ListStreamGroupByItems.js.map +1 -0
  33. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.d.ts +15 -0
  34. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js +12 -0
  35. package/dist/packages/datadog-api-client-v1/models/ListStreamQuery.js.map +1 -1
  36. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.d.ts +3 -1
  37. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js +3 -1
  38. package/dist/packages/datadog-api-client-v1/models/ListStreamSource.js.map +1 -1
  39. package/dist/packages/datadog-api-client-v1/models/MetricsQueryMetadata.d.ts +3 -2
  40. package/dist/packages/datadog-api-client-v1/models/MetricsQueryMetadata.js.map +1 -1
  41. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.d.ts +5 -0
  42. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js +4 -0
  43. package/dist/packages/datadog-api-client-v1/models/MonitorOptions.js.map +1 -1
  44. package/dist/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.d.ts +14 -0
  45. package/dist/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.js +13 -0
  46. package/dist/packages/datadog-api-client-v1/models/MonitorOptionsNotificationPresets.js.map +1 -0
  47. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.d.ts +3 -3
  48. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js +4 -4
  49. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionSupportedMetrics.js.map +1 -1
  50. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.d.ts +12 -12
  51. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js +4 -4
  52. package/dist/packages/datadog-api-client-v1/models/MonthlyUsageAttributionValues.js.map +1 -1
  53. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js +54 -4
  54. package/dist/packages/datadog-api-client-v1/models/ObjectSerializer.js.map +1 -1
  55. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.d.ts +61 -0
  56. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.js +56 -0
  57. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinition.js.map +1 -0
  58. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.d.ts +11 -0
  59. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.js +10 -0
  60. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetDefinitionType.js.map +1 -0
  61. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.d.ts +32 -0
  62. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.js +37 -0
  63. package/dist/packages/datadog-api-client-v1/models/RunWorkflowWidgetInput.js.map +1 -0
  64. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.d.ts +5 -0
  65. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js +4 -5
  66. package/dist/packages/datadog-api-client-v1/models/SLOListWidgetQuery.js.map +1 -1
  67. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.d.ts +9 -0
  68. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js +9 -0
  69. package/dist/packages/datadog-api-client-v1/models/SLOOverallStatuses.js.map +1 -1
  70. package/dist/packages/datadog-api-client-v1/models/SLOState.d.ts +14 -0
  71. package/dist/packages/datadog-api-client-v1/models/SLOState.js +13 -0
  72. package/dist/packages/datadog-api-client-v1/models/SLOState.js.map +1 -0
  73. package/dist/packages/datadog-api-client-v1/models/SLOStatus.d.ts +55 -0
  74. package/dist/packages/datadog-api-client-v1/models/SLOStatus.js +54 -0
  75. package/dist/packages/datadog-api-client-v1/models/SLOStatus.js.map +1 -0
  76. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.d.ts +5 -0
  77. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js +4 -0
  78. package/dist/packages/datadog-api-client-v1/models/SearchServiceLevelObjectiveAttributes.js.map +1 -1
  79. package/dist/packages/datadog-api-client-v1/models/SyntheticsConfigVariable.d.ts +1 -1
  80. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.d.ts +10 -0
  81. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js +8 -0
  82. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptions.js.map +1 -1
  83. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.d.ts +13 -0
  84. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.js +12 -0
  85. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsHTTPVersion.js.map +1 -0
  86. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.d.ts +33 -0
  87. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.js +30 -0
  88. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsScheduling.js.map +1 -0
  89. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.d.ts +36 -0
  90. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.js +40 -0
  91. package/dist/packages/datadog-api-client-v1/models/SyntheticsTestOptionsSchedulingTimeframe.js.map +1 -0
  92. package/dist/packages/datadog-api-client-v1/models/UsageAttributionValues.d.ts +10 -10
  93. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.d.ts +8 -0
  94. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js +10 -0
  95. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDate.js.map +1 -1
  96. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.d.ts +8 -0
  97. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js +10 -0
  98. package/dist/packages/datadog-api-client-v1/models/UsageSummaryDateOrg.js.map +1 -1
  99. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.d.ts +8 -0
  100. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js +10 -0
  101. package/dist/packages/datadog-api-client-v1/models/UsageSummaryResponse.js.map +1 -1
  102. package/dist/packages/datadog-api-client-v1/models/WidgetDefinition.d.ts +2 -1
  103. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js +0 -3
  104. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityPipelinesApi.js.map +1 -1
  105. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.js +0 -3
  106. package/dist/packages/datadog-api-client-v2/apis/CIVisibilityTestsApi.js.map +1 -1
  107. package/dist/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.d.ts +118 -0
  108. package/dist/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.js +414 -0
  109. package/dist/packages/datadog-api-client-v2/apis/CloudflareIntegrationApi.js.map +1 -0
  110. package/dist/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.d.ts +249 -0
  111. package/dist/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.js +817 -0
  112. package/dist/packages/datadog-api-client-v2/apis/FastlyIntegrationApi.js.map +1 -0
  113. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.d.ts +3 -2
  114. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js +5 -2
  115. package/dist/packages/datadog-api-client-v2/apis/MetricsApi.js.map +1 -1
  116. package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.d.ts +120 -0
  117. package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js +410 -0
  118. package/dist/packages/datadog-api-client-v2/apis/MonitorsApi.js.map +1 -0
  119. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.d.ts +22 -0
  120. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js +79 -0
  121. package/dist/packages/datadog-api-client-v2/apis/ServiceAccountsApi.js.map +1 -1
  122. package/dist/packages/datadog-api-client-v2/apis/UsageMeteringApi.d.ts +1 -1
  123. package/dist/packages/datadog-api-client-v2/apis/UsersApi.d.ts +0 -21
  124. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js +0 -79
  125. package/dist/packages/datadog-api-client-v2/apis/UsersApi.js.map +1 -1
  126. package/dist/packages/datadog-api-client-v2/index.d.ts +53 -2
  127. package/dist/packages/datadog-api-client-v2/index.js +102 -15
  128. package/dist/packages/datadog-api-client-v2/index.js.map +1 -1
  129. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.d.ts +29 -0
  130. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.js +27 -0
  131. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequest.js.map +1 -0
  132. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.d.ts +36 -0
  133. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.js +41 -0
  134. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestAttributes.js.map +1 -0
  135. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.d.ts +34 -0
  136. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.js +32 -0
  137. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountCreateRequestData.js.map +1 -0
  138. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponse.d.ts +29 -0
  139. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponse.js +26 -0
  140. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponse.js.map +1 -0
  141. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.d.ts +32 -0
  142. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.js +36 -0
  143. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponseAttributes.js.map +1 -0
  144. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.d.ts +38 -0
  145. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.js +37 -0
  146. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountResponseData.js.map +1 -0
  147. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountType.d.ts +11 -0
  148. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountType.js +10 -0
  149. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountType.js.map +1 -0
  150. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.d.ts +29 -0
  151. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.js +27 -0
  152. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequest.js.map +1 -0
  153. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.d.ts +32 -0
  154. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.js +36 -0
  155. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestAttributes.js.map +1 -0
  156. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.d.ts +34 -0
  157. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.js +30 -0
  158. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountUpdateRequestData.js.map +1 -0
  159. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.d.ts +29 -0
  160. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.js +26 -0
  161. package/dist/packages/datadog-api-client-v2/models/CloudflareAccountsResponse.js.map +1 -0
  162. package/dist/packages/datadog-api-client-v2/models/CostByOrgAttributes.d.ts +4 -0
  163. package/dist/packages/datadog-api-client-v2/models/CostByOrgAttributes.js +4 -0
  164. package/dist/packages/datadog-api-client-v2/models/CostByOrgAttributes.js.map +1 -1
  165. package/dist/packages/datadog-api-client-v2/models/DataScalarColumn.d.ts +41 -0
  166. package/dist/packages/datadog-api-client-v2/models/DataScalarColumn.js +39 -0
  167. package/dist/packages/datadog-api-client-v2/models/DataScalarColumn.js.map +1 -0
  168. package/dist/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.d.ts +33 -0
  169. package/dist/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.js +31 -0
  170. package/dist/packages/datadog-api-client-v2/models/FastlyAccounResponseAttributes.js.map +1 -0
  171. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.d.ts +29 -0
  172. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.js +27 -0
  173. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequest.js.map +1 -0
  174. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.d.ts +37 -0
  175. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.js +36 -0
  176. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestAttributes.js.map +1 -0
  177. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.d.ts +34 -0
  178. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.js +32 -0
  179. package/dist/packages/datadog-api-client-v2/models/FastlyAccountCreateRequestData.js.map +1 -0
  180. package/dist/packages/datadog-api-client-v2/models/FastlyAccountResponse.d.ts +29 -0
  181. package/dist/packages/datadog-api-client-v2/models/FastlyAccountResponse.js +26 -0
  182. package/dist/packages/datadog-api-client-v2/models/FastlyAccountResponse.js.map +1 -0
  183. package/dist/packages/datadog-api-client-v2/models/FastlyAccountResponseData.d.ts +38 -0
  184. package/dist/packages/datadog-api-client-v2/models/FastlyAccountResponseData.js +37 -0
  185. package/dist/packages/datadog-api-client-v2/models/FastlyAccountResponseData.js.map +1 -0
  186. package/dist/packages/datadog-api-client-v2/models/FastlyAccountType.d.ts +11 -0
  187. package/dist/packages/datadog-api-client-v2/models/FastlyAccountType.js +10 -0
  188. package/dist/packages/datadog-api-client-v2/models/FastlyAccountType.js.map +1 -0
  189. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.d.ts +29 -0
  190. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.js +27 -0
  191. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequest.js.map +1 -0
  192. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.d.ts +28 -0
  193. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.js +31 -0
  194. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestAttributes.js.map +1 -0
  195. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.d.ts +34 -0
  196. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.js +30 -0
  197. package/dist/packages/datadog-api-client-v2/models/FastlyAccountUpdateRequestData.js.map +1 -0
  198. package/dist/packages/datadog-api-client-v2/models/FastlyAccountsResponse.d.ts +29 -0
  199. package/dist/packages/datadog-api-client-v2/models/FastlyAccountsResponse.js +26 -0
  200. package/dist/packages/datadog-api-client-v2/models/FastlyAccountsResponse.js.map +1 -0
  201. package/dist/packages/datadog-api-client-v2/models/FastlyService.d.ts +32 -0
  202. package/dist/packages/datadog-api-client-v2/models/FastlyService.js +36 -0
  203. package/dist/packages/datadog-api-client-v2/models/FastlyService.js.map +1 -0
  204. package/dist/packages/datadog-api-client-v2/models/FastlyServiceAttributes.d.ts +28 -0
  205. package/dist/packages/datadog-api-client-v2/models/FastlyServiceAttributes.js +31 -0
  206. package/dist/packages/datadog-api-client-v2/models/FastlyServiceAttributes.js.map +1 -0
  207. package/dist/packages/datadog-api-client-v2/models/FastlyServiceData.d.ts +38 -0
  208. package/dist/packages/datadog-api-client-v2/models/FastlyServiceData.js +36 -0
  209. package/dist/packages/datadog-api-client-v2/models/FastlyServiceData.js.map +1 -0
  210. package/dist/packages/datadog-api-client-v2/models/FastlyServiceRequest.d.ts +29 -0
  211. package/dist/packages/datadog-api-client-v2/models/FastlyServiceRequest.js +27 -0
  212. package/dist/packages/datadog-api-client-v2/models/FastlyServiceRequest.js.map +1 -0
  213. package/dist/packages/datadog-api-client-v2/models/FastlyServiceResponse.d.ts +29 -0
  214. package/dist/packages/datadog-api-client-v2/models/FastlyServiceResponse.js +26 -0
  215. package/dist/packages/datadog-api-client-v2/models/FastlyServiceResponse.js.map +1 -0
  216. package/dist/packages/datadog-api-client-v2/models/FastlyServiceType.d.ts +11 -0
  217. package/dist/packages/datadog-api-client-v2/models/FastlyServiceType.js +10 -0
  218. package/dist/packages/datadog-api-client-v2/models/FastlyServiceType.js.map +1 -0
  219. package/dist/packages/datadog-api-client-v2/models/FastlyServicesResponse.d.ts +29 -0
  220. package/dist/packages/datadog-api-client-v2/models/FastlyServicesResponse.js +26 -0
  221. package/dist/packages/datadog-api-client-v2/models/FastlyServicesResponse.js.map +1 -0
  222. package/dist/packages/datadog-api-client-v2/models/GroupScalarColumn.d.ts +36 -0
  223. package/dist/packages/datadog-api-client-v2/models/GroupScalarColumn.js +39 -0
  224. package/dist/packages/datadog-api-client-v2/models/GroupScalarColumn.js.map +1 -0
  225. package/dist/packages/datadog-api-client-v2/models/MetricsDataSource.d.ts +3 -2
  226. package/dist/packages/datadog-api-client-v2/models/MetricsDataSource.js +2 -1
  227. package/dist/packages/datadog-api-client-v2/models/MetricsDataSource.js.map +1 -1
  228. package/dist/packages/datadog-api-client-v2/models/MetricsScalarQuery.d.ts +1 -1
  229. package/dist/packages/datadog-api-client-v2/models/MetricsTimeseriesQuery.d.ts +1 -1
  230. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.d.ts +34 -0
  231. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.js +32 -0
  232. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeCreateRequest.js.map +1 -0
  233. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.d.ts +34 -0
  234. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.js +32 -0
  235. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeEditRequest.js.map +1 -0
  236. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.d.ts +34 -0
  237. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.js +30 -0
  238. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyAttributeResponse.js.map +1 -0
  239. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.d.ts +34 -0
  240. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.js +32 -0
  241. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateData.js.map +1 -0
  242. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.d.ts +29 -0
  243. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.js +27 -0
  244. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyCreateRequest.js.map +1 -0
  245. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.d.ts +38 -0
  246. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.js +37 -0
  247. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditData.js.map +1 -0
  248. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.d.ts +29 -0
  249. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.js +27 -0
  250. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyEditRequest.js.map +1 -0
  251. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.d.ts +29 -0
  252. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.js +26 -0
  253. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyListResponse.js.map +1 -0
  254. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.d.ts +11 -0
  255. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.js +3 -0
  256. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicy.js.map +1 -0
  257. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.d.ts +11 -0
  258. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.js +3 -0
  259. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyPolicyCreateRequest.js.map +1 -0
  260. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.d.ts +11 -0
  261. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.js +10 -0
  262. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResourceType.js.map +1 -0
  263. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.d.ts +29 -0
  264. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.js +26 -0
  265. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponse.js.map +1 -0
  266. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.d.ts +38 -0
  267. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.js +34 -0
  268. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyResponseData.js.map +1 -0
  269. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.d.ts +36 -0
  270. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.js +39 -0
  271. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicy.js.map +1 -0
  272. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.d.ts +36 -0
  273. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.js +42 -0
  274. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyTagPolicyCreateRequest.js.map +1 -0
  275. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.d.ts +11 -0
  276. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.js +10 -0
  277. package/dist/packages/datadog-api-client-v2/models/MonitorConfigPolicyType.js.map +1 -0
  278. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js +101 -4
  279. package/dist/packages/datadog-api-client-v2/models/ObjectSerializer.js.map +1 -1
  280. package/dist/packages/datadog-api-client-v2/models/ScalarColumn.d.ts +4 -25
  281. package/dist/packages/datadog-api-client-v2/models/ScalarColumn.js +0 -28
  282. package/dist/packages/datadog-api-client-v2/models/ScalarColumn.js.map +1 -1
  283. package/dist/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.d.ts +0 -4
  284. package/dist/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.js +0 -4
  285. package/dist/packages/datadog-api-client-v2/models/ScalarFormulaResponseAtrributes.js.map +1 -1
  286. package/dist/packages/datadog-api-client-v2/models/ScalarMeta.d.ts +32 -0
  287. package/dist/packages/datadog-api-client-v2/models/ScalarMeta.js +26 -0
  288. package/dist/packages/datadog-api-client-v2/models/ScalarMeta.js.map +1 -0
  289. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.d.ts +2 -1
  290. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.js +2 -1
  291. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleDetectionMethod.js.map +1 -1
  292. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.d.ts +2 -1
  293. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js +2 -1
  294. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringRuleQueryAggregation.js.map +1 -1
  295. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.d.ts +4 -0
  296. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js +5 -0
  297. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringSignalRuleResponse.js.map +1 -1
  298. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.d.ts +4 -0
  299. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js +5 -0
  300. package/dist/packages/datadog-api-client-v2/models/SecurityMonitoringStandardRuleResponse.js.map +1 -1
  301. package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.d.ts +7 -2
  302. package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.js +6 -2
  303. package/dist/packages/datadog-api-client-v2/models/SensitiveDataScannerRuleAttributes.js.map +1 -1
  304. package/dist/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.d.ts +4 -1
  305. package/dist/packages/datadog-api-client-v2/models/TimeseriesResponseSeries.js.map +1 -1
  306. package/dist/version.d.ts +1 -1
  307. package/dist/version.js +1 -1
  308. package/dist/version.js.map +1 -1
  309. package/package.json +1 -1
@@ -0,0 +1,817 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.FastlyIntegrationApi = exports.FastlyIntegrationApiResponseProcessor = exports.FastlyIntegrationApiRequestFactory = void 0;
13
+ const baseapi_1 = require("../../datadog-api-client-common/baseapi");
14
+ const configuration_1 = require("../../datadog-api-client-common/configuration");
15
+ const http_1 = require("../../datadog-api-client-common/http/http");
16
+ const logger_1 = require("../../../logger");
17
+ const ObjectSerializer_1 = require("../models/ObjectSerializer");
18
+ const exception_1 = require("../../datadog-api-client-common/exception");
19
+ class FastlyIntegrationApiRequestFactory extends baseapi_1.BaseAPIRequestFactory {
20
+ createFastlyAccount(body, _options) {
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const _config = _options || this.configuration;
23
+ // verify required parameter 'body' is not null or undefined
24
+ if (body === null || body === undefined) {
25
+ throw new baseapi_1.RequiredError("body", "createFastlyAccount");
26
+ }
27
+ // Path Params
28
+ const localVarPath = "/api/v2/integrations/fastly/accounts";
29
+ // Make Request Context
30
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.createFastlyAccount").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
31
+ requestContext.setHeaderParam("Accept", "application/json");
32
+ requestContext.setHttpConfig(_config.httpConfig);
33
+ // Body Params
34
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
35
+ "application/json",
36
+ ]);
37
+ requestContext.setHeaderParam("Content-Type", contentType);
38
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyAccountCreateRequest", ""), contentType);
39
+ requestContext.setBody(serializedBody);
40
+ // Apply auth methods
41
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
42
+ "apiKeyAuth",
43
+ "appKeyAuth",
44
+ ]);
45
+ return requestContext;
46
+ });
47
+ }
48
+ createFastlyService(accountId, body, _options) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const _config = _options || this.configuration;
51
+ // verify required parameter 'accountId' is not null or undefined
52
+ if (accountId === null || accountId === undefined) {
53
+ throw new baseapi_1.RequiredError("accountId", "createFastlyService");
54
+ }
55
+ // verify required parameter 'body' is not null or undefined
56
+ if (body === null || body === undefined) {
57
+ throw new baseapi_1.RequiredError("body", "createFastlyService");
58
+ }
59
+ // Path Params
60
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services".replace("{account_id}", encodeURIComponent(String(accountId)));
61
+ // Make Request Context
62
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.createFastlyService").makeRequestContext(localVarPath, http_1.HttpMethod.POST);
63
+ requestContext.setHeaderParam("Accept", "application/json");
64
+ requestContext.setHttpConfig(_config.httpConfig);
65
+ // Body Params
66
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
67
+ "application/json",
68
+ ]);
69
+ requestContext.setHeaderParam("Content-Type", contentType);
70
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyServiceRequest", ""), contentType);
71
+ requestContext.setBody(serializedBody);
72
+ // Apply auth methods
73
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
74
+ "apiKeyAuth",
75
+ "appKeyAuth",
76
+ ]);
77
+ return requestContext;
78
+ });
79
+ }
80
+ deleteFastlyAccount(accountId, _options) {
81
+ return __awaiter(this, void 0, void 0, function* () {
82
+ const _config = _options || this.configuration;
83
+ // verify required parameter 'accountId' is not null or undefined
84
+ if (accountId === null || accountId === undefined) {
85
+ throw new baseapi_1.RequiredError("accountId", "deleteFastlyAccount");
86
+ }
87
+ // Path Params
88
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId)));
89
+ // Make Request Context
90
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.deleteFastlyAccount").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
91
+ requestContext.setHeaderParam("Accept", "*/*");
92
+ requestContext.setHttpConfig(_config.httpConfig);
93
+ // Apply auth methods
94
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
95
+ "apiKeyAuth",
96
+ "appKeyAuth",
97
+ ]);
98
+ return requestContext;
99
+ });
100
+ }
101
+ deleteFastlyService(accountId, serviceId, _options) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ const _config = _options || this.configuration;
104
+ // verify required parameter 'accountId' is not null or undefined
105
+ if (accountId === null || accountId === undefined) {
106
+ throw new baseapi_1.RequiredError("accountId", "deleteFastlyService");
107
+ }
108
+ // verify required parameter 'serviceId' is not null or undefined
109
+ if (serviceId === null || serviceId === undefined) {
110
+ throw new baseapi_1.RequiredError("serviceId", "deleteFastlyService");
111
+ }
112
+ // Path Params
113
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}"
114
+ .replace("{account_id}", encodeURIComponent(String(accountId)))
115
+ .replace("{service_id}", encodeURIComponent(String(serviceId)));
116
+ // Make Request Context
117
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.deleteFastlyService").makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
118
+ requestContext.setHeaderParam("Accept", "*/*");
119
+ requestContext.setHttpConfig(_config.httpConfig);
120
+ // Apply auth methods
121
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
122
+ "apiKeyAuth",
123
+ "appKeyAuth",
124
+ ]);
125
+ return requestContext;
126
+ });
127
+ }
128
+ getFastlyAccount(accountId, _options) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ const _config = _options || this.configuration;
131
+ // verify required parameter 'accountId' is not null or undefined
132
+ if (accountId === null || accountId === undefined) {
133
+ throw new baseapi_1.RequiredError("accountId", "getFastlyAccount");
134
+ }
135
+ // Path Params
136
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId)));
137
+ // Make Request Context
138
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.getFastlyAccount").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
139
+ requestContext.setHeaderParam("Accept", "application/json");
140
+ requestContext.setHttpConfig(_config.httpConfig);
141
+ // Apply auth methods
142
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
143
+ "apiKeyAuth",
144
+ "appKeyAuth",
145
+ ]);
146
+ return requestContext;
147
+ });
148
+ }
149
+ getFastlyService(accountId, serviceId, _options) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ const _config = _options || this.configuration;
152
+ // verify required parameter 'accountId' is not null or undefined
153
+ if (accountId === null || accountId === undefined) {
154
+ throw new baseapi_1.RequiredError("accountId", "getFastlyService");
155
+ }
156
+ // verify required parameter 'serviceId' is not null or undefined
157
+ if (serviceId === null || serviceId === undefined) {
158
+ throw new baseapi_1.RequiredError("serviceId", "getFastlyService");
159
+ }
160
+ // Path Params
161
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}"
162
+ .replace("{account_id}", encodeURIComponent(String(accountId)))
163
+ .replace("{service_id}", encodeURIComponent(String(serviceId)));
164
+ // Make Request Context
165
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.getFastlyService").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
166
+ requestContext.setHeaderParam("Accept", "application/json");
167
+ requestContext.setHttpConfig(_config.httpConfig);
168
+ // Apply auth methods
169
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
170
+ "apiKeyAuth",
171
+ "appKeyAuth",
172
+ ]);
173
+ return requestContext;
174
+ });
175
+ }
176
+ listFastlyAccounts(_options) {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ const _config = _options || this.configuration;
179
+ // Path Params
180
+ const localVarPath = "/api/v2/integrations/fastly/accounts";
181
+ // Make Request Context
182
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.listFastlyAccounts").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
183
+ requestContext.setHeaderParam("Accept", "application/json");
184
+ requestContext.setHttpConfig(_config.httpConfig);
185
+ // Apply auth methods
186
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
187
+ "apiKeyAuth",
188
+ "appKeyAuth",
189
+ ]);
190
+ return requestContext;
191
+ });
192
+ }
193
+ listFastlyServices(accountId, _options) {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ const _config = _options || this.configuration;
196
+ // verify required parameter 'accountId' is not null or undefined
197
+ if (accountId === null || accountId === undefined) {
198
+ throw new baseapi_1.RequiredError("accountId", "listFastlyServices");
199
+ }
200
+ // Path Params
201
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services".replace("{account_id}", encodeURIComponent(String(accountId)));
202
+ // Make Request Context
203
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.listFastlyServices").makeRequestContext(localVarPath, http_1.HttpMethod.GET);
204
+ requestContext.setHeaderParam("Accept", "application/json");
205
+ requestContext.setHttpConfig(_config.httpConfig);
206
+ // Apply auth methods
207
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
208
+ "apiKeyAuth",
209
+ "appKeyAuth",
210
+ ]);
211
+ return requestContext;
212
+ });
213
+ }
214
+ updateFastlyAccount(accountId, body, _options) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ const _config = _options || this.configuration;
217
+ // verify required parameter 'accountId' is not null or undefined
218
+ if (accountId === null || accountId === undefined) {
219
+ throw new baseapi_1.RequiredError("accountId", "updateFastlyAccount");
220
+ }
221
+ // verify required parameter 'body' is not null or undefined
222
+ if (body === null || body === undefined) {
223
+ throw new baseapi_1.RequiredError("body", "updateFastlyAccount");
224
+ }
225
+ // Path Params
226
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}".replace("{account_id}", encodeURIComponent(String(accountId)));
227
+ // Make Request Context
228
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.updateFastlyAccount").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
229
+ requestContext.setHeaderParam("Accept", "application/json");
230
+ requestContext.setHttpConfig(_config.httpConfig);
231
+ // Body Params
232
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
233
+ "application/json",
234
+ ]);
235
+ requestContext.setHeaderParam("Content-Type", contentType);
236
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyAccountUpdateRequest", ""), contentType);
237
+ requestContext.setBody(serializedBody);
238
+ // Apply auth methods
239
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
240
+ "apiKeyAuth",
241
+ "appKeyAuth",
242
+ ]);
243
+ return requestContext;
244
+ });
245
+ }
246
+ updateFastlyService(accountId, serviceId, body, _options) {
247
+ return __awaiter(this, void 0, void 0, function* () {
248
+ const _config = _options || this.configuration;
249
+ // verify required parameter 'accountId' is not null or undefined
250
+ if (accountId === null || accountId === undefined) {
251
+ throw new baseapi_1.RequiredError("accountId", "updateFastlyService");
252
+ }
253
+ // verify required parameter 'serviceId' is not null or undefined
254
+ if (serviceId === null || serviceId === undefined) {
255
+ throw new baseapi_1.RequiredError("serviceId", "updateFastlyService");
256
+ }
257
+ // verify required parameter 'body' is not null or undefined
258
+ if (body === null || body === undefined) {
259
+ throw new baseapi_1.RequiredError("body", "updateFastlyService");
260
+ }
261
+ // Path Params
262
+ const localVarPath = "/api/v2/integrations/fastly/accounts/{account_id}/services/{service_id}"
263
+ .replace("{account_id}", encodeURIComponent(String(accountId)))
264
+ .replace("{service_id}", encodeURIComponent(String(serviceId)));
265
+ // Make Request Context
266
+ const requestContext = (0, configuration_1.getServer)(_config, "v2.FastlyIntegrationApi.updateFastlyService").makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
267
+ requestContext.setHeaderParam("Accept", "application/json");
268
+ requestContext.setHttpConfig(_config.httpConfig);
269
+ // Body Params
270
+ const contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
271
+ "application/json",
272
+ ]);
273
+ requestContext.setHeaderParam("Content-Type", contentType);
274
+ const serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "FastlyServiceRequest", ""), contentType);
275
+ requestContext.setBody(serializedBody);
276
+ // Apply auth methods
277
+ (0, configuration_1.applySecurityAuthentication)(_config, requestContext, [
278
+ "apiKeyAuth",
279
+ "appKeyAuth",
280
+ ]);
281
+ return requestContext;
282
+ });
283
+ }
284
+ }
285
+ exports.FastlyIntegrationApiRequestFactory = FastlyIntegrationApiRequestFactory;
286
+ class FastlyIntegrationApiResponseProcessor {
287
+ /**
288
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
289
+ * to the expected objects
290
+ *
291
+ * @params response Response returned by the server for a request to createFastlyAccount
292
+ * @throws ApiException if the response code was not in [200, 299]
293
+ */
294
+ createFastlyAccount(response) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
297
+ if (response.httpStatusCode == 201) {
298
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse");
299
+ return body;
300
+ }
301
+ if (response.httpStatusCode == 400 ||
302
+ response.httpStatusCode == 403 ||
303
+ response.httpStatusCode == 404 ||
304
+ response.httpStatusCode == 429) {
305
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
306
+ let body;
307
+ try {
308
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
309
+ }
310
+ catch (error) {
311
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
312
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
313
+ }
314
+ throw new exception_1.ApiException(response.httpStatusCode, body);
315
+ }
316
+ // Work around for missing responses in specification, e.g. for petstore.yaml
317
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
318
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse", "");
319
+ return body;
320
+ }
321
+ const body = (yield response.body.text()) || "";
322
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
323
+ });
324
+ }
325
+ /**
326
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
327
+ * to the expected objects
328
+ *
329
+ * @params response Response returned by the server for a request to createFastlyService
330
+ * @throws ApiException if the response code was not in [200, 299]
331
+ */
332
+ createFastlyService(response) {
333
+ return __awaiter(this, void 0, void 0, function* () {
334
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
335
+ if (response.httpStatusCode == 201) {
336
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse");
337
+ return body;
338
+ }
339
+ if (response.httpStatusCode == 400 ||
340
+ response.httpStatusCode == 403 ||
341
+ response.httpStatusCode == 404 ||
342
+ response.httpStatusCode == 429) {
343
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
344
+ let body;
345
+ try {
346
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
347
+ }
348
+ catch (error) {
349
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
350
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
351
+ }
352
+ throw new exception_1.ApiException(response.httpStatusCode, body);
353
+ }
354
+ // Work around for missing responses in specification, e.g. for petstore.yaml
355
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
356
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse", "");
357
+ return body;
358
+ }
359
+ const body = (yield response.body.text()) || "";
360
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
361
+ });
362
+ }
363
+ /**
364
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
365
+ * to the expected objects
366
+ *
367
+ * @params response Response returned by the server for a request to deleteFastlyAccount
368
+ * @throws ApiException if the response code was not in [200, 299]
369
+ */
370
+ deleteFastlyAccount(response) {
371
+ return __awaiter(this, void 0, void 0, function* () {
372
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
373
+ if (response.httpStatusCode == 204) {
374
+ return;
375
+ }
376
+ if (response.httpStatusCode == 400 ||
377
+ response.httpStatusCode == 403 ||
378
+ response.httpStatusCode == 404 ||
379
+ response.httpStatusCode == 429) {
380
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
381
+ let body;
382
+ try {
383
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
384
+ }
385
+ catch (error) {
386
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
387
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
388
+ }
389
+ throw new exception_1.ApiException(response.httpStatusCode, body);
390
+ }
391
+ // Work around for missing responses in specification, e.g. for petstore.yaml
392
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
393
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
394
+ return body;
395
+ }
396
+ const body = (yield response.body.text()) || "";
397
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
398
+ });
399
+ }
400
+ /**
401
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
402
+ * to the expected objects
403
+ *
404
+ * @params response Response returned by the server for a request to deleteFastlyService
405
+ * @throws ApiException if the response code was not in [200, 299]
406
+ */
407
+ deleteFastlyService(response) {
408
+ return __awaiter(this, void 0, void 0, function* () {
409
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
410
+ if (response.httpStatusCode == 204) {
411
+ return;
412
+ }
413
+ if (response.httpStatusCode == 400 ||
414
+ response.httpStatusCode == 403 ||
415
+ response.httpStatusCode == 404 ||
416
+ response.httpStatusCode == 429) {
417
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
418
+ let body;
419
+ try {
420
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
421
+ }
422
+ catch (error) {
423
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
424
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
425
+ }
426
+ throw new exception_1.ApiException(response.httpStatusCode, body);
427
+ }
428
+ // Work around for missing responses in specification, e.g. for petstore.yaml
429
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
430
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "void", "");
431
+ return body;
432
+ }
433
+ const body = (yield response.body.text()) || "";
434
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
435
+ });
436
+ }
437
+ /**
438
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
439
+ * to the expected objects
440
+ *
441
+ * @params response Response returned by the server for a request to getFastlyAccount
442
+ * @throws ApiException if the response code was not in [200, 299]
443
+ */
444
+ getFastlyAccount(response) {
445
+ return __awaiter(this, void 0, void 0, function* () {
446
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
447
+ if (response.httpStatusCode == 200) {
448
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse");
449
+ return body;
450
+ }
451
+ if (response.httpStatusCode == 400 ||
452
+ response.httpStatusCode == 403 ||
453
+ response.httpStatusCode == 404 ||
454
+ response.httpStatusCode == 429) {
455
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
456
+ let body;
457
+ try {
458
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
459
+ }
460
+ catch (error) {
461
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
462
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
463
+ }
464
+ throw new exception_1.ApiException(response.httpStatusCode, body);
465
+ }
466
+ // Work around for missing responses in specification, e.g. for petstore.yaml
467
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
468
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse", "");
469
+ return body;
470
+ }
471
+ const body = (yield response.body.text()) || "";
472
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
473
+ });
474
+ }
475
+ /**
476
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
477
+ * to the expected objects
478
+ *
479
+ * @params response Response returned by the server for a request to getFastlyService
480
+ * @throws ApiException if the response code was not in [200, 299]
481
+ */
482
+ getFastlyService(response) {
483
+ return __awaiter(this, void 0, void 0, function* () {
484
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
485
+ if (response.httpStatusCode == 200) {
486
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse");
487
+ return body;
488
+ }
489
+ if (response.httpStatusCode == 400 ||
490
+ response.httpStatusCode == 403 ||
491
+ response.httpStatusCode == 404 ||
492
+ response.httpStatusCode == 429) {
493
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
494
+ let body;
495
+ try {
496
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
497
+ }
498
+ catch (error) {
499
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
500
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
501
+ }
502
+ throw new exception_1.ApiException(response.httpStatusCode, body);
503
+ }
504
+ // Work around for missing responses in specification, e.g. for petstore.yaml
505
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
506
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse", "");
507
+ return body;
508
+ }
509
+ const body = (yield response.body.text()) || "";
510
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
511
+ });
512
+ }
513
+ /**
514
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
515
+ * to the expected objects
516
+ *
517
+ * @params response Response returned by the server for a request to listFastlyAccounts
518
+ * @throws ApiException if the response code was not in [200, 299]
519
+ */
520
+ listFastlyAccounts(response) {
521
+ return __awaiter(this, void 0, void 0, function* () {
522
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
523
+ if (response.httpStatusCode == 200) {
524
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountsResponse");
525
+ return body;
526
+ }
527
+ if (response.httpStatusCode == 400 ||
528
+ response.httpStatusCode == 403 ||
529
+ response.httpStatusCode == 404 ||
530
+ response.httpStatusCode == 429) {
531
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
532
+ let body;
533
+ try {
534
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
535
+ }
536
+ catch (error) {
537
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
538
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
539
+ }
540
+ throw new exception_1.ApiException(response.httpStatusCode, body);
541
+ }
542
+ // Work around for missing responses in specification, e.g. for petstore.yaml
543
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
544
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountsResponse", "");
545
+ return body;
546
+ }
547
+ const body = (yield response.body.text()) || "";
548
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
549
+ });
550
+ }
551
+ /**
552
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
553
+ * to the expected objects
554
+ *
555
+ * @params response Response returned by the server for a request to listFastlyServices
556
+ * @throws ApiException if the response code was not in [200, 299]
557
+ */
558
+ listFastlyServices(response) {
559
+ return __awaiter(this, void 0, void 0, function* () {
560
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
561
+ if (response.httpStatusCode == 200) {
562
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServicesResponse");
563
+ return body;
564
+ }
565
+ if (response.httpStatusCode == 400 ||
566
+ response.httpStatusCode == 403 ||
567
+ response.httpStatusCode == 404 ||
568
+ response.httpStatusCode == 429) {
569
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
570
+ let body;
571
+ try {
572
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
573
+ }
574
+ catch (error) {
575
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
576
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
577
+ }
578
+ throw new exception_1.ApiException(response.httpStatusCode, body);
579
+ }
580
+ // Work around for missing responses in specification, e.g. for petstore.yaml
581
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
582
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServicesResponse", "");
583
+ return body;
584
+ }
585
+ const body = (yield response.body.text()) || "";
586
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
587
+ });
588
+ }
589
+ /**
590
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
591
+ * to the expected objects
592
+ *
593
+ * @params response Response returned by the server for a request to updateFastlyAccount
594
+ * @throws ApiException if the response code was not in [200, 299]
595
+ */
596
+ updateFastlyAccount(response) {
597
+ return __awaiter(this, void 0, void 0, function* () {
598
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
599
+ if (response.httpStatusCode == 200) {
600
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse");
601
+ return body;
602
+ }
603
+ if (response.httpStatusCode == 400 ||
604
+ response.httpStatusCode == 403 ||
605
+ response.httpStatusCode == 404 ||
606
+ response.httpStatusCode == 429) {
607
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
608
+ let body;
609
+ try {
610
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
611
+ }
612
+ catch (error) {
613
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
614
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
615
+ }
616
+ throw new exception_1.ApiException(response.httpStatusCode, body);
617
+ }
618
+ // Work around for missing responses in specification, e.g. for petstore.yaml
619
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
620
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyAccountResponse", "");
621
+ return body;
622
+ }
623
+ const body = (yield response.body.text()) || "";
624
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
625
+ });
626
+ }
627
+ /**
628
+ * Unwraps the actual response sent by the server from the response context and deserializes the response content
629
+ * to the expected objects
630
+ *
631
+ * @params response Response returned by the server for a request to updateFastlyService
632
+ * @throws ApiException if the response code was not in [200, 299]
633
+ */
634
+ updateFastlyService(response) {
635
+ return __awaiter(this, void 0, void 0, function* () {
636
+ const contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
637
+ if (response.httpStatusCode == 200) {
638
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse");
639
+ return body;
640
+ }
641
+ if (response.httpStatusCode == 400 ||
642
+ response.httpStatusCode == 403 ||
643
+ response.httpStatusCode == 404 ||
644
+ response.httpStatusCode == 429) {
645
+ const bodyText = ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType);
646
+ let body;
647
+ try {
648
+ body = ObjectSerializer_1.ObjectSerializer.deserialize(bodyText, "APIErrorResponse");
649
+ }
650
+ catch (error) {
651
+ logger_1.logger.info(`Got error deserializing error: ${error}`);
652
+ throw new exception_1.ApiException(response.httpStatusCode, bodyText);
653
+ }
654
+ throw new exception_1.ApiException(response.httpStatusCode, body);
655
+ }
656
+ // Work around for missing responses in specification, e.g. for petstore.yaml
657
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
658
+ const body = ObjectSerializer_1.ObjectSerializer.deserialize(ObjectSerializer_1.ObjectSerializer.parse(yield response.body.text(), contentType), "FastlyServiceResponse", "");
659
+ return body;
660
+ }
661
+ const body = (yield response.body.text()) || "";
662
+ throw new exception_1.ApiException(response.httpStatusCode, 'Unknown API Status Code!\nBody: "' + body + '"');
663
+ });
664
+ }
665
+ }
666
+ exports.FastlyIntegrationApiResponseProcessor = FastlyIntegrationApiResponseProcessor;
667
+ class FastlyIntegrationApi {
668
+ constructor(configuration, requestFactory, responseProcessor) {
669
+ this.configuration = configuration;
670
+ this.requestFactory =
671
+ requestFactory || new FastlyIntegrationApiRequestFactory(configuration);
672
+ this.responseProcessor =
673
+ responseProcessor || new FastlyIntegrationApiResponseProcessor();
674
+ }
675
+ /**
676
+ * Create a Fastly account.
677
+ * @param param The request object
678
+ */
679
+ createFastlyAccount(param, options) {
680
+ const requestContextPromise = this.requestFactory.createFastlyAccount(param.body, options);
681
+ return requestContextPromise.then((requestContext) => {
682
+ return this.configuration.httpApi
683
+ .send(requestContext)
684
+ .then((responseContext) => {
685
+ return this.responseProcessor.createFastlyAccount(responseContext);
686
+ });
687
+ });
688
+ }
689
+ /**
690
+ * Create a Fastly service for an account.
691
+ * @param param The request object
692
+ */
693
+ createFastlyService(param, options) {
694
+ const requestContextPromise = this.requestFactory.createFastlyService(param.accountId, param.body, options);
695
+ return requestContextPromise.then((requestContext) => {
696
+ return this.configuration.httpApi
697
+ .send(requestContext)
698
+ .then((responseContext) => {
699
+ return this.responseProcessor.createFastlyService(responseContext);
700
+ });
701
+ });
702
+ }
703
+ /**
704
+ * Delete a Fastly account.
705
+ * @param param The request object
706
+ */
707
+ deleteFastlyAccount(param, options) {
708
+ const requestContextPromise = this.requestFactory.deleteFastlyAccount(param.accountId, options);
709
+ return requestContextPromise.then((requestContext) => {
710
+ return this.configuration.httpApi
711
+ .send(requestContext)
712
+ .then((responseContext) => {
713
+ return this.responseProcessor.deleteFastlyAccount(responseContext);
714
+ });
715
+ });
716
+ }
717
+ /**
718
+ * Delete a Fastly service for an account.
719
+ * @param param The request object
720
+ */
721
+ deleteFastlyService(param, options) {
722
+ const requestContextPromise = this.requestFactory.deleteFastlyService(param.accountId, param.serviceId, options);
723
+ return requestContextPromise.then((requestContext) => {
724
+ return this.configuration.httpApi
725
+ .send(requestContext)
726
+ .then((responseContext) => {
727
+ return this.responseProcessor.deleteFastlyService(responseContext);
728
+ });
729
+ });
730
+ }
731
+ /**
732
+ * Get a Fastly account.
733
+ * @param param The request object
734
+ */
735
+ getFastlyAccount(param, options) {
736
+ const requestContextPromise = this.requestFactory.getFastlyAccount(param.accountId, options);
737
+ return requestContextPromise.then((requestContext) => {
738
+ return this.configuration.httpApi
739
+ .send(requestContext)
740
+ .then((responseContext) => {
741
+ return this.responseProcessor.getFastlyAccount(responseContext);
742
+ });
743
+ });
744
+ }
745
+ /**
746
+ * Get a Fastly service for an account.
747
+ * @param param The request object
748
+ */
749
+ getFastlyService(param, options) {
750
+ const requestContextPromise = this.requestFactory.getFastlyService(param.accountId, param.serviceId, options);
751
+ return requestContextPromise.then((requestContext) => {
752
+ return this.configuration.httpApi
753
+ .send(requestContext)
754
+ .then((responseContext) => {
755
+ return this.responseProcessor.getFastlyService(responseContext);
756
+ });
757
+ });
758
+ }
759
+ /**
760
+ * List Fastly accounts.
761
+ * @param param The request object
762
+ */
763
+ listFastlyAccounts(options) {
764
+ const requestContextPromise = this.requestFactory.listFastlyAccounts(options);
765
+ return requestContextPromise.then((requestContext) => {
766
+ return this.configuration.httpApi
767
+ .send(requestContext)
768
+ .then((responseContext) => {
769
+ return this.responseProcessor.listFastlyAccounts(responseContext);
770
+ });
771
+ });
772
+ }
773
+ /**
774
+ * List Fastly services for an account.
775
+ * @param param The request object
776
+ */
777
+ listFastlyServices(param, options) {
778
+ const requestContextPromise = this.requestFactory.listFastlyServices(param.accountId, options);
779
+ return requestContextPromise.then((requestContext) => {
780
+ return this.configuration.httpApi
781
+ .send(requestContext)
782
+ .then((responseContext) => {
783
+ return this.responseProcessor.listFastlyServices(responseContext);
784
+ });
785
+ });
786
+ }
787
+ /**
788
+ * Update a Fastly account.
789
+ * @param param The request object
790
+ */
791
+ updateFastlyAccount(param, options) {
792
+ const requestContextPromise = this.requestFactory.updateFastlyAccount(param.accountId, param.body, options);
793
+ return requestContextPromise.then((requestContext) => {
794
+ return this.configuration.httpApi
795
+ .send(requestContext)
796
+ .then((responseContext) => {
797
+ return this.responseProcessor.updateFastlyAccount(responseContext);
798
+ });
799
+ });
800
+ }
801
+ /**
802
+ * Update a Fastly service for an account.
803
+ * @param param The request object
804
+ */
805
+ updateFastlyService(param, options) {
806
+ const requestContextPromise = this.requestFactory.updateFastlyService(param.accountId, param.serviceId, param.body, options);
807
+ return requestContextPromise.then((requestContext) => {
808
+ return this.configuration.httpApi
809
+ .send(requestContext)
810
+ .then((responseContext) => {
811
+ return this.responseProcessor.updateFastlyService(responseContext);
812
+ });
813
+ });
814
+ }
815
+ }
816
+ exports.FastlyIntegrationApi = FastlyIntegrationApi;
817
+ //# sourceMappingURL=FastlyIntegrationApi.js.map