fastly 9.0.0 → 10.0.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 (289) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -19
  3. data/Gemfile.lock +3 -3
  4. data/README.md +49 -42
  5. data/docs/AclsInComputeApi.md +2 -2
  6. data/docs/AiAcceleratorResponseBodyEnable.md +12 -0
  7. data/docs/AiAcceleratorResponseCustomer.md +10 -0
  8. data/docs/AiAcceleratorResponseCustomerCustomer.md +11 -0
  9. data/docs/AiAcceleratorResponseLinks.md +10 -0
  10. data/docs/AiAcceleratorResponseLinksLinks.md +10 -0
  11. data/docs/AiAcceleratorResponseProduct.md +10 -0
  12. data/docs/AiAcceleratorResponseProductProduct.md +11 -0
  13. data/docs/Backend.md +1 -1
  14. data/docs/BackendApi.md +4 -4
  15. data/docs/BackendResponse.md +1 -1
  16. data/docs/BillingUsageMetricsApi.md +8 -8
  17. data/docs/BotManagementResponseBodyEnable.md +12 -0
  18. data/docs/BotManagementResponseLinks.md +10 -0
  19. data/docs/BotManagementResponseLinksLinks.md +11 -0
  20. data/docs/BotManagementResponseProduct.md +10 -0
  21. data/docs/BotManagementResponseProductProduct.md +11 -0
  22. data/docs/BotManagementResponseService.md +10 -0
  23. data/docs/{EnabledProductResponseService.md → BotManagementResponseServiceService.md} +1 -1
  24. data/docs/BrotliCompressionResponseBodyEnable.md +12 -0
  25. data/docs/BrotliCompressionResponseLinks.md +10 -0
  26. data/docs/BrotliCompressionResponseLinksLinks.md +11 -0
  27. data/docs/BrotliCompressionResponseProduct.md +10 -0
  28. data/docs/BrotliCompressionResponseProductProduct.md +11 -0
  29. data/docs/BrotliCompressionResponseService.md +10 -0
  30. data/docs/ComputeAclList.md +11 -0
  31. data/docs/{ReadOnlyServiceId.md → ComputeAclListMeta.md} +2 -1
  32. data/docs/ComputeAclLookup.md +1 -2
  33. data/docs/{ReadOnlyVersion.md → DdosProtectionRequestUpdateConfiguration.md} +2 -1
  34. data/docs/DdosProtectionResponseConfiguration.md +10 -0
  35. data/docs/{Store.md → DdosProtectionResponseConfigurationConfiguration.md} +2 -2
  36. data/docs/DdosProtectionResponseConfigure.md +13 -0
  37. data/docs/DdosProtectionResponseEnable.md +12 -0
  38. data/docs/DdosProtectionResponseLinks.md +10 -0
  39. data/docs/DdosProtectionResponseLinksLinks.md +11 -0
  40. data/docs/DdosProtectionResponseProduct.md +10 -0
  41. data/docs/DdosProtectionResponseProductProduct.md +11 -0
  42. data/docs/DdosProtectionResponseService.md +10 -0
  43. data/docs/DomainInspectorMeasurements.md +2 -0
  44. data/docs/DomainInspectorResponseBodyEnable.md +12 -0
  45. data/docs/DomainInspectorResponseLinks.md +10 -0
  46. data/docs/DomainInspectorResponseLinksLinks.md +11 -0
  47. data/docs/DomainInspectorResponseProduct.md +10 -0
  48. data/docs/{InlineResponse2003Meta.md → DomainInspectorResponseProductProduct.md} +3 -3
  49. data/docs/DomainInspectorResponseService.md +10 -0
  50. data/docs/FanoutResponseBodyEnable.md +12 -0
  51. data/docs/FanoutResponseLinks.md +10 -0
  52. data/docs/{EnabledProductResponseLinks.md → FanoutResponseLinksLinks.md} +1 -1
  53. data/docs/FanoutResponseProduct.md +10 -0
  54. data/docs/{EnabledProductResponseProduct.md → FanoutResponseProductProduct.md} +1 -1
  55. data/docs/FanoutResponseService.md +10 -0
  56. data/docs/ImageOptimizerResponseBodyEnable.md +12 -0
  57. data/docs/ImageOptimizerResponseLinks.md +10 -0
  58. data/docs/ImageOptimizerResponseLinksLinks.md +11 -0
  59. data/docs/ImageOptimizerResponseProduct.md +10 -0
  60. data/docs/ImageOptimizerResponseProductProduct.md +11 -0
  61. data/docs/ImageOptimizerResponseService.md +10 -0
  62. data/docs/InlineResponse2003.md +2 -2
  63. data/docs/InlineResponse2004.md +1 -1
  64. data/docs/KvStoreApi.md +30 -30
  65. data/docs/{Batch.md → KvStoreBatchResponse.md} +2 -2
  66. data/docs/{BatchErrors.md → KvStoreBatchResponseErrors.md} +4 -4
  67. data/docs/{StoreResponse.md → KvStoreDetails.md} +2 -2
  68. data/docs/KvStoreItemApi.md +55 -52
  69. data/docs/KvStoreRequestCreate.md +10 -0
  70. data/docs/KvStoreUpsertBatch.md +14 -0
  71. data/docs/LogExplorerInsightsResponseBodyEnable.md +12 -0
  72. data/docs/LogExplorerInsightsResponseLinks.md +10 -0
  73. data/docs/LogExplorerInsightsResponseLinksLinks.md +11 -0
  74. data/docs/LogExplorerInsightsResponseProduct.md +10 -0
  75. data/docs/LogExplorerInsightsResponseProductProduct.md +11 -0
  76. data/docs/LogExplorerInsightsResponseService.md +10 -0
  77. data/docs/{LegacyWafTag.md → NgwafRequestEnable.md} +2 -2
  78. data/docs/NgwafRequestUpdateConfiguration.md +11 -0
  79. data/docs/NgwafResponseConfiguration.md +10 -0
  80. data/docs/{ConfiguredProductResponseConfiguration.md → NgwafResponseConfigurationConfiguration.md} +2 -2
  81. data/docs/NgwafResponseConfigure.md +13 -0
  82. data/docs/NgwafResponseEnable.md +12 -0
  83. data/docs/NgwafResponseLinks.md +10 -0
  84. data/docs/{ConfiguredProductResponseLinks.md → NgwafResponseLinksLinks.md} +1 -1
  85. data/docs/{InlineResponse2004Meta.md → NgwafResponseProduct.md} +2 -3
  86. data/docs/{ConfiguredProductResponseProduct.md → NgwafResponseProductProduct.md} +1 -1
  87. data/docs/NgwafResponseService.md +10 -0
  88. data/docs/ObjectStorageResponseBodyEnable.md +12 -0
  89. data/docs/ObjectStorageResponseCustomer.md +10 -0
  90. data/docs/ObjectStorageResponseLinks.md +10 -0
  91. data/docs/ObjectStorageResponseLinksLinks.md +10 -0
  92. data/docs/ObjectStorageResponseProduct.md +10 -0
  93. data/docs/ObjectStorageResponseProductProduct.md +11 -0
  94. data/docs/OriginInspectorMeasurements.md +4 -0
  95. data/docs/OriginInspectorResponseBodyEnable.md +12 -0
  96. data/docs/OriginInspectorResponseLinks.md +10 -0
  97. data/docs/OriginInspectorResponseLinksLinks.md +11 -0
  98. data/docs/OriginInspectorResponseProduct.md +10 -0
  99. data/docs/OriginInspectorResponseProductProduct.md +11 -0
  100. data/docs/OriginInspectorResponseService.md +10 -0
  101. data/docs/OriginInspectorValues.md +4 -0
  102. data/docs/ProductAiAcceleratorApi.md +115 -0
  103. data/docs/ProductBotManagementApi.md +130 -0
  104. data/docs/ProductBrotliCompressionApi.md +130 -0
  105. data/docs/ProductDdosProtectionApi.md +208 -0
  106. data/docs/ProductDomainInspectorApi.md +130 -0
  107. data/docs/ProductFanoutApi.md +130 -0
  108. data/docs/ProductImageOptimizerApi.md +130 -0
  109. data/docs/ProductLogExplorerInsightsApi.md +130 -0
  110. data/docs/ProductNgwafApi.md +210 -0
  111. data/docs/ProductObjectStorageApi.md +115 -0
  112. data/docs/ProductOriginInspectorApi.md +130 -0
  113. data/docs/ProductWebsocketsApi.md +130 -0
  114. data/docs/RealtimeEntryAggregated.md +18 -3
  115. data/docs/RealtimeMeasurements.md +18 -3
  116. data/docs/Results.md +18 -3
  117. data/docs/SnippetApi.md +15 -15
  118. data/docs/Values.md +2 -0
  119. data/docs/WebsocketsResponseBodyEnable.md +12 -0
  120. data/docs/WebsocketsResponseLinks.md +10 -0
  121. data/docs/WebsocketsResponseLinksLinks.md +11 -0
  122. data/docs/WebsocketsResponseProduct.md +10 -0
  123. data/docs/WebsocketsResponseProductProduct.md +11 -0
  124. data/docs/WebsocketsResponseService.md +10 -0
  125. data/lib/fastly/api/acls_in_compute_api.rb +3 -3
  126. data/lib/fastly/api/backend_api.rb +4 -4
  127. data/lib/fastly/api/billing_usage_metrics_api.rb +26 -26
  128. data/lib/fastly/api/kv_store_api.rb +53 -45
  129. data/lib/fastly/api/kv_store_item_api.rb +114 -102
  130. data/lib/fastly/api/product_ai_accelerator_api.rb +186 -0
  131. data/lib/fastly/api/product_bot_management_api.rb +207 -0
  132. data/lib/fastly/api/product_brotli_compression_api.rb +207 -0
  133. data/lib/fastly/api/product_ddos_protection_api.rb +340 -0
  134. data/lib/fastly/api/product_domain_inspector_api.rb +207 -0
  135. data/lib/fastly/api/product_fanout_api.rb +207 -0
  136. data/lib/fastly/api/product_image_optimizer_api.rb +207 -0
  137. data/lib/fastly/api/product_log_explorer_insights_api.rb +207 -0
  138. data/lib/fastly/api/product_ngwaf_api.rb +347 -0
  139. data/lib/fastly/api/product_object_storage_api.rb +186 -0
  140. data/lib/fastly/api/product_origin_inspector_api.rb +207 -0
  141. data/lib/fastly/api/product_websockets_api.rb +207 -0
  142. data/lib/fastly/api/snippet_api.rb +35 -35
  143. data/lib/fastly/configuration.rb +248 -206
  144. data/lib/fastly/models/{legacy_waf_rule_status.rb → ai_accelerator_response_body_enable.rb} +31 -25
  145. data/lib/fastly/models/ai_accelerator_response_customer.rb +216 -0
  146. data/lib/fastly/models/ai_accelerator_response_customer_customer.rb +227 -0
  147. data/lib/fastly/models/ai_accelerator_response_links.rb +216 -0
  148. data/lib/fastly/models/ai_accelerator_response_links_links.rb +217 -0
  149. data/lib/fastly/models/ai_accelerator_response_product.rb +216 -0
  150. data/lib/fastly/models/ai_accelerator_response_product_product.rb +227 -0
  151. data/lib/fastly/models/backend.rb +1 -1
  152. data/lib/fastly/models/backend_response.rb +1 -1
  153. data/lib/fastly/models/bot_management_response_body_enable.rb +243 -0
  154. data/lib/fastly/models/bot_management_response_links.rb +216 -0
  155. data/lib/fastly/models/bot_management_response_links_links.rb +227 -0
  156. data/lib/fastly/models/bot_management_response_product.rb +216 -0
  157. data/lib/fastly/models/bot_management_response_product_product.rb +227 -0
  158. data/lib/fastly/models/bot_management_response_service.rb +216 -0
  159. data/lib/fastly/models/{enabled_product_response_service.rb → bot_management_response_service_service.rb} +3 -3
  160. data/lib/fastly/models/brotli_compression_response_body_enable.rb +243 -0
  161. data/lib/fastly/models/brotli_compression_response_links.rb +216 -0
  162. data/lib/fastly/models/brotli_compression_response_links_links.rb +227 -0
  163. data/lib/fastly/models/brotli_compression_response_product.rb +216 -0
  164. data/lib/fastly/models/brotli_compression_response_product_product.rb +227 -0
  165. data/lib/fastly/models/brotli_compression_response_service.rb +216 -0
  166. data/lib/fastly/models/{inline_response2004_meta.rb → compute_acl_list.rb} +19 -16
  167. data/lib/fastly/models/compute_acl_list_meta.rb +218 -0
  168. data/lib/fastly/models/compute_acl_lookup.rb +2 -12
  169. data/lib/fastly/models/{set_configuration.rb → ddos_protection_request_update_configuration.rb} +43 -24
  170. data/lib/fastly/models/ddos_protection_response_configuration.rb +216 -0
  171. data/lib/fastly/models/ddos_protection_response_configuration_configuration.rb +217 -0
  172. data/lib/fastly/models/ddos_protection_response_configure.rb +253 -0
  173. data/lib/fastly/models/ddos_protection_response_enable.rb +243 -0
  174. data/lib/fastly/models/ddos_protection_response_links.rb +216 -0
  175. data/lib/fastly/models/ddos_protection_response_links_links.rb +227 -0
  176. data/lib/fastly/models/ddos_protection_response_product.rb +216 -0
  177. data/lib/fastly/models/ddos_protection_response_product_product.rb +227 -0
  178. data/lib/fastly/models/ddos_protection_response_service.rb +216 -0
  179. data/lib/fastly/models/domain_inspector_measurements.rb +21 -1
  180. data/lib/fastly/models/domain_inspector_response_body_enable.rb +243 -0
  181. data/lib/fastly/models/domain_inspector_response_links.rb +216 -0
  182. data/lib/fastly/models/domain_inspector_response_links_links.rb +227 -0
  183. data/lib/fastly/models/domain_inspector_response_product.rb +216 -0
  184. data/lib/fastly/models/domain_inspector_response_product_product.rb +227 -0
  185. data/lib/fastly/models/domain_inspector_response_service.rb +216 -0
  186. data/lib/fastly/models/fanout_response_body_enable.rb +243 -0
  187. data/lib/fastly/models/{store.rb → fanout_response_links.rb} +10 -11
  188. data/lib/fastly/models/{enabled_product_response_links.rb → fanout_response_links_links.rb} +3 -3
  189. data/lib/fastly/models/fanout_response_product.rb +216 -0
  190. data/lib/fastly/models/{enabled_product_response_product.rb → fanout_response_product_product.rb} +3 -3
  191. data/lib/fastly/models/fanout_response_service.rb +216 -0
  192. data/lib/fastly/models/image_optimizer_response_body_enable.rb +243 -0
  193. data/lib/fastly/models/image_optimizer_response_links.rb +216 -0
  194. data/lib/fastly/models/image_optimizer_response_links_links.rb +227 -0
  195. data/lib/fastly/models/image_optimizer_response_product.rb +216 -0
  196. data/lib/fastly/models/image_optimizer_response_product_product.rb +227 -0
  197. data/lib/fastly/models/image_optimizer_response_service.rb +216 -0
  198. data/lib/fastly/models/inline_response2003.rb +2 -2
  199. data/lib/fastly/models/inline_response2004.rb +1 -1
  200. data/lib/fastly/models/{batch.rb → kv_store_batch_response.rb} +5 -5
  201. data/lib/fastly/models/{batch_errors.rb → kv_store_batch_response_errors.rb} +6 -6
  202. data/lib/fastly/models/{store_response.rb → kv_store_details.rb} +4 -4
  203. data/lib/fastly/models/{legacy_waf_configuration_set.rb → kv_store_request_create.rb} +10 -15
  204. data/lib/fastly/models/{legacy_waf_update_status.rb → kv_store_upsert_batch.rb} +51 -49
  205. data/lib/fastly/models/log_explorer_insights_response_body_enable.rb +243 -0
  206. data/lib/fastly/models/log_explorer_insights_response_links.rb +216 -0
  207. data/lib/fastly/models/log_explorer_insights_response_links_links.rb +227 -0
  208. data/lib/fastly/models/log_explorer_insights_response_product.rb +216 -0
  209. data/lib/fastly/models/log_explorer_insights_response_product_product.rb +227 -0
  210. data/lib/fastly/models/log_explorer_insights_response_service.rb +216 -0
  211. data/lib/fastly/models/{set_workspace_id.rb → ngwaf_request_enable.rb} +9 -4
  212. data/lib/fastly/models/ngwaf_request_update_configuration.rb +227 -0
  213. data/lib/fastly/models/ngwaf_response_configuration.rb +216 -0
  214. data/lib/fastly/models/{configured_product_response_configuration.rb → ngwaf_response_configuration_configuration.rb} +4 -4
  215. data/lib/fastly/models/{configured_product_response.rb → ngwaf_response_configure.rb} +17 -7
  216. data/lib/fastly/models/{enabled_product_response.rb → ngwaf_response_enable.rb} +15 -6
  217. data/lib/fastly/models/{legacy_waf_tag.rb → ngwaf_response_links.rb} +10 -11
  218. data/lib/fastly/models/{configured_product_response_links.rb → ngwaf_response_links_links.rb} +3 -3
  219. data/lib/fastly/models/{read_only_version.rb → ngwaf_response_product.rb} +14 -5
  220. data/lib/fastly/models/ngwaf_response_product_product.rb +227 -0
  221. data/lib/fastly/models/ngwaf_response_service.rb +216 -0
  222. data/lib/fastly/models/object_storage_response_body_enable.rb +243 -0
  223. data/lib/fastly/models/object_storage_response_customer.rb +216 -0
  224. data/lib/fastly/models/object_storage_response_links.rb +216 -0
  225. data/lib/fastly/models/object_storage_response_links_links.rb +217 -0
  226. data/lib/fastly/models/object_storage_response_product.rb +216 -0
  227. data/lib/fastly/models/object_storage_response_product_product.rb +227 -0
  228. data/lib/fastly/models/origin_inspector_measurements.rb +41 -1
  229. data/lib/fastly/models/origin_inspector_response_body_enable.rb +243 -0
  230. data/lib/fastly/models/origin_inspector_response_links.rb +216 -0
  231. data/lib/fastly/models/origin_inspector_response_links_links.rb +227 -0
  232. data/lib/fastly/models/origin_inspector_response_product.rb +216 -0
  233. data/lib/fastly/models/origin_inspector_response_product_product.rb +227 -0
  234. data/lib/fastly/models/origin_inspector_response_service.rb +216 -0
  235. data/lib/fastly/models/origin_inspector_values.rb +41 -1
  236. data/lib/fastly/models/realtime_entry_aggregated.rb +169 -19
  237. data/lib/fastly/models/realtime_measurements.rb +169 -19
  238. data/lib/fastly/models/results.rb +169 -19
  239. data/lib/fastly/models/schemas_snippet_response.rb +1 -0
  240. data/lib/fastly/models/snippet.rb +1 -0
  241. data/lib/fastly/models/snippet_common.rb +1 -0
  242. data/lib/fastly/models/snippet_response.rb +1 -0
  243. data/lib/fastly/models/snippet_response_post.rb +1 -0
  244. data/lib/fastly/models/snippet_with_dynamic_number.rb +1 -0
  245. data/lib/fastly/models/values.rb +21 -1
  246. data/lib/fastly/models/websockets_response_body_enable.rb +243 -0
  247. data/lib/fastly/models/{read_only_service_id.rb → websockets_response_links.rb} +14 -5
  248. data/lib/fastly/models/websockets_response_links_links.rb +227 -0
  249. data/lib/fastly/models/websockets_response_product.rb +216 -0
  250. data/lib/fastly/models/{configured_product_response_product.rb → websockets_response_product_product.rb} +3 -3
  251. data/lib/fastly/models/websockets_response_service.rb +216 -0
  252. data/lib/fastly/version.rb +1 -1
  253. data/lib/fastly.rb +102 -35
  254. data/sig.json +1 -1
  255. metadata +209 -75
  256. data/docs/ConfiguredProductResponse.md +0 -13
  257. data/docs/EnabledProductResponse.md +0 -12
  258. data/docs/EnabledProductsApi.md +0 -220
  259. data/docs/LegacyWafConfigurationSet.md +0 -11
  260. data/docs/LegacyWafConfigurationSetsApi.md +0 -128
  261. data/docs/LegacyWafFirewall.md +0 -18
  262. data/docs/LegacyWafFirewallApi.md +0 -355
  263. data/docs/LegacyWafOwasp.md +0 -38
  264. data/docs/LegacyWafOwaspApi.md +0 -141
  265. data/docs/LegacyWafRule.md +0 -14
  266. data/docs/LegacyWafRuleApi.md +0 -187
  267. data/docs/LegacyWafRuleStatus.md +0 -12
  268. data/docs/LegacyWafRuleStatusApi.md +0 -205
  269. data/docs/LegacyWafRuleset.md +0 -11
  270. data/docs/LegacyWafRulesetApi.md +0 -139
  271. data/docs/LegacyWafTagApi.md +0 -61
  272. data/docs/LegacyWafUpdateStatus.md +0 -15
  273. data/docs/LegacyWafUpdateStatusApi.md +0 -105
  274. data/docs/SetConfiguration.md +0 -12
  275. data/docs/SetWorkspaceId.md +0 -10
  276. data/lib/fastly/api/enabled_products_api.rb +0 -382
  277. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +0 -209
  278. data/lib/fastly/api/legacy_waf_firewall_api.rb +0 -627
  279. data/lib/fastly/api/legacy_waf_owasp_api.rb +0 -244
  280. data/lib/fastly/api/legacy_waf_rule_api.rb +0 -307
  281. data/lib/fastly/api/legacy_waf_rule_status_api.rb +0 -366
  282. data/lib/fastly/api/legacy_waf_ruleset_api.rb +0 -237
  283. data/lib/fastly/api/legacy_waf_tag_api.rb +0 -96
  284. data/lib/fastly/api/legacy_waf_update_status_api.rb +0 -184
  285. data/lib/fastly/models/inline_response2003_meta.rb +0 -228
  286. data/lib/fastly/models/legacy_waf_firewall.rb +0 -297
  287. data/lib/fastly/models/legacy_waf_owasp.rb +0 -527
  288. data/lib/fastly/models/legacy_waf_rule.rb +0 -257
  289. data/lib/fastly/models/legacy_waf_ruleset.rb +0 -227
data/docs/Results.md CHANGED
@@ -114,6 +114,7 @@
114
114
  | **status_503** | **Integer** | Number of responses sent with status code 503 (Service Unavailable). | [optional] |
115
115
  | **status_504** | **Integer** | Number of responses sent with status code 504 (Gateway Timeout). | [optional] |
116
116
  | **status_505** | **Integer** | Number of responses sent with status code 505 (HTTP Version Not Supported). | [optional] |
117
+ | **status_530** | **Integer** | Number of responses sent with status code 530. | [optional] |
117
118
  | **status_1xx** | **Integer** | Number of \"Informational\" category status codes delivered. | [optional] |
118
119
  | **status_2xx** | **Integer** | Number of \"Success\" status codes delivered. | [optional] |
119
120
  | **status_3xx** | **Integer** | Number of \"Redirection\" codes delivered. | [optional] |
@@ -247,9 +248,23 @@
247
248
  | **all_status_5xx** | **Integer** | Number of \"Server Error\" codes delivered for all sources. | [optional] |
248
249
  | **origin_offload** | **Float** | Origin Offload measures the ratio of bytes served to end users that were cached by Fastly, over the bytes served to end users, between 0 and 1. ((`edge_resp_body_bytes` + `edge_resp_header_bytes`) - (`origin_fetch_resp_body_bytes` + `origin_fetch_resp_header_bytes`)) / (`edge_resp_body_bytes` + `edge_resp_header_bytes`). | [optional] |
249
250
  | **request_denied_get_head_body** | **Integer** | Number of requests where Fastly responded with 400 due to the request being a GET or HEAD request containing a body. | [optional] |
250
- | **service_ddos_requests_detected** | **Integer** | Number of requests classified as a DDoS attack against a customer origin or service. | [optional] |
251
- | **service_ddos_requests_mitigated** | **Integer** | Number of requests classified as a DDoS attack against a customer origin or service that were mitigated by the Fastly platform. | [optional] |
252
- | **service_ddos_requests_allowed** | **Integer** | Number of requests analyzed for DDoS attacks against a customer origin or service, but with no DDoS detected. | [optional] |
251
+ | **ddos_protection_requests_detect_count** | **Integer** | Number of requests classified as a DDoS attack against a customer origin or service. | [optional] |
252
+ | **ddos_protection_requests_mitigate_count** | **Integer** | Number of requests classified as a DDoS attack against a customer origin or service that were mitigated by the Fastly platform. | [optional] |
253
+ | **ddos_protection_requests_allow_count** | **Integer** | Number of requests analyzed for DDoS attacks against a customer origin or service, but with no DDoS detected. | [optional] |
254
+ | **object_storage_class_a_operations_count** | **Integer** | A count of the number of Class A Object Storage operations. | [optional] |
255
+ | **object_storage_class_b_operations_count** | **Integer** | A count of the number of Class B Object Storage operations. | [optional] |
256
+ | **aia_requests** | **Integer** | Number of requests received by AI Accelerator. | [optional] |
257
+ | **aia_status_1xx** | **Integer** | Number of \"Informational\" category status codes received from AI provider. | [optional] |
258
+ | **aia_status_2xx** | **Integer** | Number of \"Success\" status codes received from AI provider. | [optional] |
259
+ | **aia_status_3xx** | **Integer** | Number of \"Redirection\" received from AI provider. | [optional] |
260
+ | **aia_status_4xx** | **Integer** | Number of \"Client Error\" received from AI provider. | [optional] |
261
+ | **aia_status_5xx** | **Integer** | Number of \"Server Error\" received from AI provider. | [optional] |
262
+ | **aia_response_usage_tokens** | **Integer** | The usage tokens associated with the response returned from the AI Accelerator cache. | [optional] |
263
+ | **aia_origin_usage_tokens** | **Integer** | The number of usage tokens reported by the request to the origin from AI Accelerator. | [optional] |
264
+ | **aia_estimated_time_saved_ms** | **Integer** | The estimated amount of time saved by responses served from the AI Accelerator semantic cache. | [optional] |
265
+ | **request_collapse_usable_count** | **Integer** | Number of requests that were collapsed and satisfied by a usable cache object. | [optional] |
266
+ | **request_collapse_unusable_count** | **Integer** | Number of requests that were collapsed and unable to be satisfied by the resulting cache object. | [optional] |
267
+ | **compute_cache_operations_count** | **Integer** | Number of cache operations executed by the Compute platform. | [optional] |
253
268
  | **service_id** | **String** | | [optional][readonly] |
254
269
  | **start_time** | **Integer** | Timestamp for the start of the time period being reported | [optional] |
255
270
 
data/docs/SnippetApi.md CHANGED
@@ -14,12 +14,12 @@ api_instance = Fastly::SnippetApi.new
14
14
  Method | HTTP request | Description
15
15
  ------ | ------------ | -----------
16
16
  [**create_snippet**](SnippetApi.md#create_snippet) | **POST** /service/{service_id}/version/{version_id}/snippet | Create a snippet
17
- [**delete_snippet**](SnippetApi.md#delete_snippet) | **DELETE** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Delete a snippet
18
- [**get_snippet**](SnippetApi.md#get_snippet) | **GET** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Get a versioned snippet
19
- [**get_snippet_dynamic**](SnippetApi.md#get_snippet_dynamic) | **GET** /service/{service_id}/snippet/{snippet_id} | Get a dynamic snippet
17
+ [**delete_snippet**](SnippetApi.md#delete_snippet) | **DELETE** /service/{service_id}/version/{version_id}/snippet/{name} | Delete a snippet
18
+ [**get_snippet**](SnippetApi.md#get_snippet) | **GET** /service/{service_id}/version/{version_id}/snippet/{name} | Get a versioned snippet
19
+ [**get_snippet_dynamic**](SnippetApi.md#get_snippet_dynamic) | **GET** /service/{service_id}/snippet/{id} | Get a dynamic snippet
20
20
  [**list_snippets**](SnippetApi.md#list_snippets) | **GET** /service/{service_id}/version/{version_id}/snippet | List snippets
21
- [**update_snippet**](SnippetApi.md#update_snippet) | **PUT** /service/{service_id}/version/{version_id}/snippet/{snippet_name} | Update a versioned snippet
22
- [**update_snippet_dynamic**](SnippetApi.md#update_snippet_dynamic) | **PUT** /service/{service_id}/snippet/{snippet_id} | Update a dynamic snippet
21
+ [**update_snippet**](SnippetApi.md#update_snippet) | **PUT** /service/{service_id}/version/{version_id}/snippet/{name} | Update a versioned snippet
22
+ [**update_snippet_dynamic**](SnippetApi.md#update_snippet_dynamic) | **PUT** /service/{service_id}/snippet/{id} | Update a dynamic snippet
23
23
 
24
24
 
25
25
  ## `create_snippet()`
@@ -86,7 +86,7 @@ api_instance = Fastly::SnippetApi.new
86
86
  opts = {
87
87
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
88
88
  version_id: 56, # Integer | Integer identifying a service version.
89
- snippet_name: 'snippet_name_example', # String | The name for the snippet.
89
+ name: 'name_example', # String | The name for the snippet.
90
90
  }
91
91
 
92
92
  begin
@@ -104,7 +104,7 @@ end
104
104
  | ---- | ---- | ----------- | ----- |
105
105
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
106
106
  | **version_id** | **Integer** | Integer identifying a service version. | |
107
- | **snippet_name** | **String** | The name for the snippet. | |
107
+ | **name** | **String** | The name for the snippet. | |
108
108
 
109
109
  ### Return type
110
110
 
@@ -127,7 +127,7 @@ api_instance = Fastly::SnippetApi.new
127
127
  opts = {
128
128
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
129
129
  version_id: 56, # Integer | Integer identifying a service version.
130
- snippet_name: 'snippet_name_example', # String | The name for the snippet.
130
+ name: 'name_example', # String | The name for the snippet.
131
131
  }
132
132
 
133
133
  begin
@@ -145,7 +145,7 @@ end
145
145
  | ---- | ---- | ----------- | ----- |
146
146
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
147
147
  | **version_id** | **Integer** | Integer identifying a service version. | |
148
- | **snippet_name** | **String** | The name for the snippet. | |
148
+ | **name** | **String** | The name for the snippet. | |
149
149
 
150
150
  ### Return type
151
151
 
@@ -167,7 +167,7 @@ Get a single dynamic snippet for a particular service.
167
167
  api_instance = Fastly::SnippetApi.new
168
168
  opts = {
169
169
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
170
- snippet_id: 'snippet_id_example', # String | Alphanumeric string identifying a VCL Snippet.
170
+ id: 'id_example', # String | Alphanumeric string identifying a VCL Snippet.
171
171
  }
172
172
 
173
173
  begin
@@ -184,7 +184,7 @@ end
184
184
  | Name | Type | Description | Notes |
185
185
  | ---- | ---- | ----------- | ----- |
186
186
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
187
- | **snippet_id** | **String** | Alphanumeric string identifying a VCL Snippet. | |
187
+ | **id** | **String** | Alphanumeric string identifying a VCL Snippet. | |
188
188
 
189
189
  ### Return type
190
190
 
@@ -246,7 +246,7 @@ api_instance = Fastly::SnippetApi.new
246
246
  opts = {
247
247
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
248
248
  version_id: 56, # Integer | Integer identifying a service version.
249
- snippet_name: 'snippet_name_example', # String | The name for the snippet.
249
+ name: 'name_example', # String | The name for the snippet.
250
250
  }
251
251
 
252
252
  begin
@@ -264,7 +264,7 @@ end
264
264
  | ---- | ---- | ----------- | ----- |
265
265
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
266
266
  | **version_id** | **Integer** | Integer identifying a service version. | |
267
- | **snippet_name** | **String** | The name for the snippet. | |
267
+ | **name** | **String** | The name for the snippet. | |
268
268
 
269
269
  ### Return type
270
270
 
@@ -286,7 +286,7 @@ Update a dynamic snippet for a particular service.
286
286
  api_instance = Fastly::SnippetApi.new
287
287
  opts = {
288
288
  service_id: 'service_id_example', # String | Alphanumeric string identifying the service.
289
- snippet_id: 'snippet_id_example', # String | Alphanumeric string identifying a VCL Snippet.
289
+ id: 'id_example', # String | Alphanumeric string identifying a VCL Snippet.
290
290
  name: 'name_example', # String | The name for the snippet.
291
291
  type: 'init', # String | The location in generated VCL where the snippet should be placed.
292
292
  content: 'content_example', # String | The VCL code that specifies exactly what the snippet does.
@@ -308,7 +308,7 @@ end
308
308
  | Name | Type | Description | Notes |
309
309
  | ---- | ---- | ----------- | ----- |
310
310
  | **service_id** | **String** | Alphanumeric string identifying the service. | |
311
- | **snippet_id** | **String** | Alphanumeric string identifying a VCL Snippet. | |
311
+ | **id** | **String** | Alphanumeric string identifying a VCL Snippet. | |
312
312
  | **name** | **String** | The name for the snippet. | [optional] |
313
313
  | **type** | **String** | The location in generated VCL where the snippet should be placed. | [optional] |
314
314
  | **content** | **String** | The VCL code that specifies exactly what the snippet does. | [optional] |
data/docs/Values.md CHANGED
@@ -30,6 +30,7 @@
30
30
  | **status_503** | **Integer** | Number of responses delivered with status code 503 (Service Unavailable). | [optional] |
31
31
  | **status_504** | **Integer** | Number of responses delivered with status code 504 (Gateway Timeout). | [optional] |
32
32
  | **status_505** | **Integer** | Number of responses delivered with status code 505 (HTTP Version Not Supported). | [optional] |
33
+ | **status_530** | **Integer** | Number of responses delivered with status code 530. | [optional] |
33
34
  | **requests** | **Integer** | Number of requests processed. | [optional] |
34
35
  | **resp_header_bytes** | **Integer** | Total header bytes delivered. | [optional] |
35
36
  | **resp_body_bytes** | **Integer** | Total body bytes delivered. | [optional] |
@@ -61,6 +62,7 @@
61
62
  | **origin_status_503** | **Integer** | Number of responses received from origin with status code 503 (Service Unavailable). | [optional] |
62
63
  | **origin_status_504** | **Integer** | Number of responses received from origin with status code 504 (Gateway Timeout). | [optional] |
63
64
  | **origin_status_505** | **Integer** | Number of responses received from origin with status code 505 (HTTP Version Not Supported). | [optional] |
65
+ | **origin_status_530** | **Integer** | Number of responses received from origin with status code 530. | [optional] |
64
66
  | **origin_status_1xx** | **Integer** | Number of \"Informational\" category status codes received from origin. | [optional] |
65
67
  | **origin_status_2xx** | **Integer** | Number of \"Success\" status codes received from origin. | [optional] |
66
68
  | **origin_status_3xx** | **Integer** | Number of \"Redirection\" codes received from origin. | [optional] |
@@ -0,0 +1,12 @@
1
+ # Fastly::WebsocketsResponseBodyEnable
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **product** | [**WebsocketsResponseProductProduct**](WebsocketsResponseProductProduct.md) | | [optional] |
8
+ | **service** | [**BotManagementResponseServiceService**](BotManagementResponseServiceService.md) | | [optional] |
9
+ | **_links** | [**WebsocketsResponseLinksLinks**](WebsocketsResponseLinksLinks.md) | | [optional] |
10
+
11
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
12
+
@@ -0,0 +1,10 @@
1
+ # Fastly::WebsocketsResponseLinks
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_links** | [**WebsocketsResponseLinksLinks**](WebsocketsResponseLinksLinks.md) | | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,11 @@
1
+ # Fastly::WebsocketsResponseLinksLinks
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **_self** | **String** | Location of resource | [optional] |
8
+ | **service** | **String** | Location of the service resource | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,10 @@
1
+ # Fastly::WebsocketsResponseProduct
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **product** | [**WebsocketsResponseProductProduct**](WebsocketsResponseProductProduct.md) | | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -0,0 +1,11 @@
1
+ # Fastly::WebsocketsResponseProductProduct
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Product identifier | [optional] |
8
+ | **object** | **String** | Name of the object | [optional] |
9
+
10
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
11
+
@@ -0,0 +1,10 @@
1
+ # Fastly::WebsocketsResponseService
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **service** | [**BotManagementResponseServiceService**](BotManagementResponseServiceService.md) | | [optional] |
8
+
9
+ [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
10
+
@@ -212,7 +212,7 @@ module Fastly
212
212
 
213
213
  # List ACLs
214
214
  # List all ACLs.
215
- # @return [Array<ComputeAclCreateAclsResponse>]
215
+ # @return [ComputeAclList]
216
216
  def compute_acl_list_acls(opts = {})
217
217
  data, _status_code, _headers = compute_acl_list_acls_with_http_info(opts)
218
218
  data
@@ -220,7 +220,7 @@ module Fastly
220
220
 
221
221
  # List ACLs
222
222
  # List all ACLs.
223
- # @return [Array<(Array<ComputeAclCreateAclsResponse>, Integer, Hash)>] Array<ComputeAclCreateAclsResponse> data, response status code and response headers
223
+ # @return [Array<(ComputeAclList, Integer, Hash)>] ComputeAclList data, response status code and response headers
224
224
  def compute_acl_list_acls_with_http_info(opts = {})
225
225
  if @api_client.config.debugging
226
226
  @api_client.config.logger.debug 'Calling API: AclsInComputeApi.compute_acl_list_acls ...'
@@ -244,7 +244,7 @@ module Fastly
244
244
  post_body = opts[:debug_body]
245
245
 
246
246
  # return_type
247
- return_type = opts[:debug_return_type] || 'Array<ComputeAclCreateAclsResponse>'
247
+ return_type = opts[:debug_return_type] || 'ComputeAclList'
248
248
 
249
249
  # auth_names
250
250
  auth_names = opts[:debug_auth_names] || ['token']
@@ -32,7 +32,7 @@ module Fastly
32
32
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
33
33
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
34
34
  # @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
35
- # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
35
+ # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
36
36
  # @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
37
37
  # @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
38
38
  # @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
@@ -77,7 +77,7 @@ module Fastly
77
77
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
78
78
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
79
79
  # @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
80
- # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
80
+ # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
81
81
  # @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
82
82
  # @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
83
83
  # @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
@@ -442,7 +442,7 @@ module Fastly
442
442
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
443
443
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
444
444
  # @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
445
- # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
445
+ # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
446
446
  # @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
447
447
  # @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
448
448
  # @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
@@ -488,7 +488,7 @@ module Fastly
488
488
  # @option opts [String] :hostname The hostname of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
489
489
  # @option opts [String] :ipv4 IPv4 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
490
490
  # @option opts [String] :ipv6 IPv6 address of the backend. May be used as an alternative to &#x60;address&#x60; to set the backend location.
491
- # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests.
491
+ # @option opts [Integer] :keepalive_time How long in seconds to keep a persistent connection to the backend between requests. By default, Varnish keeps connections open as long as it can.
492
492
  # @option opts [Integer] :max_conn Maximum number of concurrent connections this backend will accept.
493
493
  # @option opts [String] :max_tls_version Maximum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
494
494
  # @option opts [String] :min_tls_version Minimum allowed TLS version on SSL connections to this backend. If your backend server is not able to negotiate a connection meeting this constraint, a synthetic &#x60;503&#x60; error response will be generated.
@@ -19,8 +19,8 @@ module Fastly
19
19
  end
20
20
  # Retrieve service-level usage metrics for a product.
21
21
  # Returns product usage, broken down by service.
22
- # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;). This field is not required for CSV requests. (required)
23
- # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;). This field is not required for CSV requests. (required)
22
+ # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;).
23
+ # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;).
24
24
  # @option opts [String] :start_month
25
25
  # @option opts [String] :end_month
26
26
  # @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
@@ -33,8 +33,8 @@ module Fastly
33
33
 
34
34
  # Retrieve service-level usage metrics for a product.
35
35
  # Returns product usage, broken down by service.
36
- # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;). This field is not required for CSV requests. (required)
37
- # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;). This field is not required for CSV requests. (required)
36
+ # @option opts [String] :product_id The product identifier for the metrics returned (e.g., &#x60;cdn_usage&#x60;).
37
+ # @option opts [String] :usage_type_name The usage type name for the metrics returned (e.g., &#x60;North America Requests&#x60;).
38
38
  # @option opts [String] :start_month
39
39
  # @option opts [String] :end_month
40
40
  # @option opts [String] :limit Number of results per page. The maximum is 100. (default to '5')
@@ -45,16 +45,6 @@ module Fastly
45
45
  @api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_service_level_usage ...'
46
46
  end
47
47
  # unbox the parameters from the hash
48
- product_id = opts[:'product_id']
49
- usage_type_name = opts[:'usage_type_name']
50
- # verify the required parameter 'product_id' is set
51
- if @api_client.config.client_side_validation && product_id.nil?
52
- fail ArgumentError, "Missing the required parameter 'product_id' when calling BillingUsageMetricsApi.get_service_level_usage"
53
- end
54
- # verify the required parameter 'usage_type_name' is set
55
- if @api_client.config.client_side_validation && usage_type_name.nil?
56
- fail ArgumentError, "Missing the required parameter 'usage_type_name' when calling BillingUsageMetricsApi.get_service_level_usage"
57
- end
58
48
  pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
59
49
  if @api_client.config.client_side_validation && !opts[:'start_month'].nil? && opts[:'start_month'] !~ pattern
60
50
  fail ArgumentError, "invalid value for 'opts[:\"start_month\"]' when calling BillingUsageMetricsApi.get_service_level_usage, must conform to the pattern #{pattern}."
@@ -70,8 +60,8 @@ module Fastly
70
60
 
71
61
  # query parameters
72
62
  query_params = opts[:query_params] || {}
73
- query_params[:'product_id'] = product_id
74
- query_params[:'usage_type_name'] = usage_type_name
63
+ query_params[:'product_id'] = opts[:'product_id'] if !opts[:'product_id'].nil?
64
+ query_params[:'usage_type_name'] = opts[:'usage_type_name'] if !opts[:'usage_type_name'].nil?
75
65
  query_params[:'start_month'] = opts[:'start_month'] if !opts[:'start_month'].nil?
76
66
  query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
77
67
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
@@ -113,8 +103,8 @@ module Fastly
113
103
 
114
104
  # Get monthly usage metrics
115
105
  # Returns monthly usage metrics for customer by product.
116
- # @option opts [String] :start_month
117
- # @option opts [String] :end_month
106
+ # @option opts [String] :start_month (required)
107
+ # @option opts [String] :end_month (required)
118
108
  # @return [Usagemetric]
119
109
  def get_usage_metrics(opts = {})
120
110
  data, _status_code, _headers = get_usage_metrics_with_http_info(opts)
@@ -123,22 +113,32 @@ module Fastly
123
113
 
124
114
  # Get monthly usage metrics
125
115
  # Returns monthly usage metrics for customer by product.
126
- # @option opts [String] :start_month
127
- # @option opts [String] :end_month
116
+ # @option opts [String] :start_month (required)
117
+ # @option opts [String] :end_month (required)
128
118
  # @return [Array<(Usagemetric, Integer, Hash)>] Usagemetric data, response status code and response headers
129
119
  def get_usage_metrics_with_http_info(opts = {})
130
120
  if @api_client.config.debugging
131
121
  @api_client.config.logger.debug 'Calling API: BillingUsageMetricsApi.get_usage_metrics ...'
132
122
  end
133
123
  # unbox the parameters from the hash
124
+ start_month = opts[:'start_month']
125
+ end_month = opts[:'end_month']
126
+ # verify the required parameter 'start_month' is set
127
+ if @api_client.config.client_side_validation && start_month.nil?
128
+ fail ArgumentError, "Missing the required parameter 'start_month' when calling BillingUsageMetricsApi.get_usage_metrics"
129
+ end
134
130
  pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
135
- if @api_client.config.client_side_validation && !opts[:'start_month'].nil? && opts[:'start_month'] !~ pattern
136
- fail ArgumentError, "invalid value for 'opts[:\"start_month\"]' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
131
+ if @api_client.config.client_side_validation && start_month !~ pattern
132
+ fail ArgumentError, "invalid value for 'start_month' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
137
133
  end
138
134
 
135
+ # verify the required parameter 'end_month' is set
136
+ if @api_client.config.client_side_validation && end_month.nil?
137
+ fail ArgumentError, "Missing the required parameter 'end_month' when calling BillingUsageMetricsApi.get_usage_metrics"
138
+ end
139
139
  pattern = Regexp.new(/^[0-9]{4}-[0-9]{2}$/)
140
- if @api_client.config.client_side_validation && !opts[:'end_month'].nil? && opts[:'end_month'] !~ pattern
141
- fail ArgumentError, "invalid value for 'opts[:\"end_month\"]' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
140
+ if @api_client.config.client_side_validation && end_month !~ pattern
141
+ fail ArgumentError, "invalid value for 'end_month' when calling BillingUsageMetricsApi.get_usage_metrics, must conform to the pattern #{pattern}."
142
142
  end
143
143
 
144
144
  # resource path
@@ -146,8 +146,8 @@ module Fastly
146
146
 
147
147
  # query parameters
148
148
  query_params = opts[:query_params] || {}
149
- query_params[:'start_month'] = opts[:'start_month'] if !opts[:'start_month'].nil?
150
- query_params[:'end_month'] = opts[:'end_month'] if !opts[:'end_month'].nil?
149
+ query_params[:'start_month'] = start_month
150
+ query_params[:'end_month'] = end_month
151
151
 
152
152
  # header parameters
153
153
  header_params = opts[:header_params] || {}