fastly 16.1.0 → 17.1.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 (322) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +77 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +102 -58
  5. data/docs/Action.md +11 -0
  6. data/docs/ActionType.md +9 -0
  7. data/docs/AgentKey.md +14 -0
  8. data/docs/AgentKeyMeta.md +10 -0
  9. data/docs/Backend.md +3 -1
  10. data/docs/BackendApi.md +12 -4
  11. data/docs/BackendResponse.md +3 -1
  12. data/docs/BotManagementRequestUpdateConfiguration.md +10 -0
  13. data/docs/BotManagementResponseConfiguration.md +10 -0
  14. data/docs/BotManagementResponseConfigurationConfiguration.md +10 -0
  15. data/docs/BotManagementResponseConfigure.md +13 -0
  16. data/docs/ClientSideProtectionApi.md +821 -0
  17. data/docs/ConditionOperator.md +9 -0
  18. data/docs/ConditionType.md +9 -0
  19. data/docs/DdosProtectionApi.md +4 -4
  20. data/docs/Directive.md +11 -0
  21. data/docs/DmDomainsApi.md +2 -2
  22. data/docs/DmRoutingConfigsApi.md +912 -0
  23. data/docs/DomainInspectorMeasurements.md +6 -0
  24. data/docs/DomainOwnershipsApi.md +2 -2
  25. data/docs/DomainResearchApi.md +2 -2
  26. data/docs/DraftDiff.md +12 -0
  27. data/docs/DraftUpdate.md +10 -0
  28. data/docs/ErrorResponse.md +13 -0
  29. data/docs/ErrorResponseErrors.md +12 -0
  30. data/docs/EventsResponse.md +1 -1
  31. data/docs/HeaderEvent.md +14 -0
  32. data/docs/InitialVersion.md +12 -0
  33. data/docs/InitialVersionPath.md +11 -0
  34. data/docs/InlineResponse20010.md +2 -2
  35. data/docs/InlineResponse20011.md +2 -2
  36. data/docs/InlineResponse20012.md +1 -1
  37. data/docs/InlineResponse20013.md +2 -2
  38. data/docs/InlineResponse20014.md +2 -1
  39. data/docs/InlineResponse20015.md +10 -0
  40. data/docs/InlineResponse20016.md +10 -0
  41. data/docs/InlineResponse20017.md +11 -0
  42. data/docs/InlineResponse20018.md +11 -0
  43. data/docs/InlineResponse20019.md +11 -0
  44. data/docs/InlineResponse20020.md +11 -0
  45. data/docs/InlineResponse20021.md +11 -0
  46. data/docs/InlineResponse20022.md +10 -0
  47. data/docs/InlineResponse2005.md +2 -2
  48. data/docs/InlineResponse2006.md +2 -2
  49. data/docs/InlineResponse2007.md +2 -2
  50. data/docs/InlineResponse2008.md +2 -1
  51. data/docs/InlineResponse2009.md +2 -1
  52. data/docs/InvitationsResponse.md +1 -1
  53. data/docs/KvStoreApi.md +2 -2
  54. data/docs/KvStoreItemApi.md +2 -2
  55. data/docs/KvStoreResponseBodyEnable.md +12 -0
  56. data/docs/KvStoreResponseCustomer.md +10 -0
  57. data/docs/KvStoreResponseLinks.md +10 -0
  58. data/docs/KvStoreResponseLinksLinks.md +10 -0
  59. data/docs/KvStoreResponseProduct.md +10 -0
  60. data/docs/KvStoreResponseProductProduct.md +11 -0
  61. data/docs/LogError.md +15 -0
  62. data/docs/LogErrorBatch.md +11 -0
  63. data/docs/LoggingAzureblobApi.md +4 -4
  64. data/docs/LoggingAzureblobResponse.md +1 -1
  65. data/docs/LoggingCloudfilesApi.md +4 -4
  66. data/docs/LoggingCloudfilesResponse.md +1 -1
  67. data/docs/LoggingDigitaloceanApi.md +4 -4
  68. data/docs/LoggingDigitaloceanResponse.md +1 -1
  69. data/docs/LoggingEndpointErrorsApi.md +61 -0
  70. data/docs/LoggingFtpApi.md +4 -4
  71. data/docs/LoggingFtpResponse.md +1 -1
  72. data/docs/LoggingGcsApi.md +4 -4
  73. data/docs/LoggingGcsResponse.md +1 -1
  74. data/docs/LoggingGenericCommon.md +1 -1
  75. data/docs/LoggingGenericCommonResponse.md +1 -1
  76. data/docs/LoggingGenericCommonResponseAllOf.md +1 -1
  77. data/docs/LoggingHttpsAdditional.md +1 -1
  78. data/docs/LoggingHttpsApi.md +4 -4
  79. data/docs/LoggingHttpsResponse.md +1 -1
  80. data/docs/LoggingOpenstackApi.md +4 -4
  81. data/docs/LoggingOpenstackResponse.md +1 -1
  82. data/docs/LoggingS3Api.md +4 -4
  83. data/docs/LoggingS3Response.md +1 -1
  84. data/docs/LoggingSftpApi.md +4 -4
  85. data/docs/LoggingSftpResponse.md +1 -1
  86. data/docs/LoggingSumologicAdditional.md +1 -1
  87. data/docs/LoggingSumologicApi.md +4 -4
  88. data/docs/LoggingSumologicResponse.md +1 -1
  89. data/docs/LoggingSyslogAdditional.md +1 -1
  90. data/docs/LoggingSyslogApi.md +4 -4
  91. data/docs/LoggingSyslogResponse.md +1 -1
  92. data/docs/MutualAuthenticationsResponse.md +1 -1
  93. data/docs/NgwafAgentKeysApi.md +55 -0
  94. data/docs/NgwafSimulateApi.md +61 -0
  95. data/docs/Notification.md +11 -0
  96. data/docs/NotificationConfig.md +10 -0
  97. data/docs/Page.md +17 -0
  98. data/docs/PageCreate.md +14 -0
  99. data/docs/PageUpdate.md +14 -0
  100. data/docs/Pagination.md +1 -1
  101. data/docs/PaginationMeta.md +4 -4
  102. data/docs/PaginationMeta1.md +13 -0
  103. data/docs/PathChange.md +15 -0
  104. data/docs/PathCreate.md +10 -0
  105. data/docs/PathResponse.md +14 -0
  106. data/docs/PathResponseAllOf.md +12 -0
  107. data/docs/PathUpdate.md +10 -0
  108. data/docs/PathWithRules.md +11 -0
  109. data/docs/PathsResponse.md +11 -0
  110. data/docs/Policy.md +17 -0
  111. data/docs/PolicyCreate.md +13 -0
  112. data/docs/PolicyUpdate.md +13 -0
  113. data/docs/Position.md +11 -0
  114. data/docs/ProductBotManagementApi.md +78 -0
  115. data/docs/ProductKvStoreApi.md +115 -0
  116. data/docs/RealtimeEntry.md +1 -1
  117. data/docs/RealtimeEntryAggregated.md +36 -3
  118. data/docs/RealtimeEntryDatacenter.md +347 -0
  119. data/docs/RealtimeMeasurements.md +36 -3
  120. data/docs/Report.md +15 -0
  121. data/docs/RequestBodyForCreate.md +1 -0
  122. data/docs/RequestBodyForUpdate.md +1 -0
  123. data/docs/Results.md +36 -3
  124. data/docs/RoutingConfig.md +11 -0
  125. data/docs/RoutingConfigCondition.md +13 -0
  126. data/docs/RoutingConfigResponse.md +16 -0
  127. data/docs/RoutingConfigResponseAllOf.md +14 -0
  128. data/docs/RoutingConfigState.md +9 -0
  129. data/docs/RoutingConfigVersionResponse.md +13 -0
  130. data/docs/RoutingConfigsResponse.md +11 -0
  131. data/docs/RuleChange.md +12 -0
  132. data/docs/RuleCreate.md +12 -0
  133. data/docs/RuleResponse.md +15 -0
  134. data/docs/RuleResponseAllOf.md +13 -0
  135. data/docs/RuleUpdate.md +12 -0
  136. data/docs/RulesResponse.md +11 -0
  137. data/docs/Script.md +20 -0
  138. data/docs/ScriptUpdate.md +12 -0
  139. data/docs/SecretStoreApi.md +2 -2
  140. data/docs/SecretStoreItemApi.md +2 -2
  141. data/docs/SecurityHeader.md +12 -0
  142. data/docs/ServiceAuthorizationsApi.md +2 -2
  143. data/docs/ServiceAuthorizationsResponse.md +1 -1
  144. data/docs/SuccessfulResponseAsObject.md +1 -0
  145. data/docs/SuccessfulResponseAsObjectAllOf.md +1 -0
  146. data/docs/TlsActivationsResponse.md +1 -1
  147. data/docs/TlsBulkCertificatesResponse.md +1 -1
  148. data/docs/TlsCertificatesResponse.md +1 -1
  149. data/docs/TlsConfigurationsResponse.md +1 -1
  150. data/docs/TlsDomainsResponse.md +1 -1
  151. data/docs/TlsPrivateKeysResponse.md +1 -1
  152. data/docs/TlsSubscriptionsResponse.md +1 -1
  153. data/docs/Values.md +6 -0
  154. data/docs/VersionsResponse.md +11 -0
  155. data/docs/WafSimulateRequest.md +11 -0
  156. data/docs/WafSimulateResponse.md +11 -0
  157. data/docs/WafSimulateSignal.md +16 -0
  158. data/docs/Website.md +14 -0
  159. data/docs/WebsiteCreate.md +10 -0
  160. data/docs/WebsiteUpdate.md +10 -0
  161. data/lib/fastly/api/backend_api.rb +16 -4
  162. data/lib/fastly/api/client_side_protection_api.rb +1465 -0
  163. data/lib/fastly/api/ddos_protection_api.rb +6 -6
  164. data/lib/fastly/api/dm_domains_api.rb +3 -3
  165. data/lib/fastly/api/dm_routing_configs_api.rb +1596 -0
  166. data/lib/fastly/api/domain_ownerships_api.rb +3 -3
  167. data/lib/fastly/api/domain_research_api.rb +3 -3
  168. data/lib/fastly/api/kv_store_api.rb +3 -3
  169. data/lib/fastly/api/kv_store_item_api.rb +3 -3
  170. data/lib/fastly/api/logging_azureblob_api.rb +6 -6
  171. data/lib/fastly/api/logging_cloudfiles_api.rb +6 -6
  172. data/lib/fastly/api/logging_digitalocean_api.rb +6 -6
  173. data/lib/fastly/api/logging_endpoint_errors_api.rb +92 -0
  174. data/lib/fastly/api/logging_ftp_api.rb +6 -6
  175. data/lib/fastly/api/logging_gcs_api.rb +6 -6
  176. data/lib/fastly/api/logging_https_api.rb +4 -4
  177. data/lib/fastly/api/logging_openstack_api.rb +6 -6
  178. data/lib/fastly/api/logging_s3_api.rb +6 -6
  179. data/lib/fastly/api/logging_sftp_api.rb +6 -6
  180. data/lib/fastly/api/logging_sumologic_api.rb +4 -4
  181. data/lib/fastly/api/logging_syslog_api.rb +4 -4
  182. data/lib/fastly/api/ngwaf_agent_keys_api.rb +83 -0
  183. data/lib/fastly/api/ngwaf_simulate_api.rb +95 -0
  184. data/lib/fastly/api/product_bot_management_api.rb +133 -0
  185. data/lib/fastly/api/product_kv_store_api.rb +186 -0
  186. data/lib/fastly/api/secret_store_api.rb +3 -3
  187. data/lib/fastly/api/secret_store_item_api.rb +3 -3
  188. data/lib/fastly/api/service_authorizations_api.rb +3 -3
  189. data/lib/fastly/configuration.rb +300 -0
  190. data/lib/fastly/models/action.rb +237 -0
  191. data/lib/fastly/models/action_type.rb +34 -0
  192. data/lib/fastly/models/agent_key.rb +283 -0
  193. data/lib/fastly/models/agent_key_meta.rb +223 -0
  194. data/lib/fastly/models/backend.rb +24 -2
  195. data/lib/fastly/models/backend_response.rb +24 -2
  196. data/lib/fastly/models/bot_management_request_update_configuration.rb +256 -0
  197. data/lib/fastly/models/bot_management_response_configuration.rb +216 -0
  198. data/lib/fastly/models/bot_management_response_configuration_configuration.rb +217 -0
  199. data/lib/fastly/models/bot_management_response_configure.rb +253 -0
  200. data/lib/fastly/models/condition_operator.rb +37 -0
  201. data/lib/fastly/models/condition_type.rb +34 -0
  202. data/lib/fastly/models/directive.rb +229 -0
  203. data/lib/fastly/models/domain_inspector_measurements.rb +64 -4
  204. data/lib/fastly/models/draft_diff.rb +244 -0
  205. data/lib/fastly/models/draft_update.rb +218 -0
  206. data/lib/fastly/models/error_response.rb +248 -0
  207. data/lib/fastly/models/error_response_errors.rb +234 -0
  208. data/lib/fastly/models/events_response.rb +1 -1
  209. data/lib/fastly/models/header_event.rb +252 -0
  210. data/lib/fastly/models/initial_version.rb +242 -0
  211. data/lib/fastly/models/initial_version_path.rb +254 -0
  212. data/lib/fastly/models/inline_response20010.rb +2 -2
  213. data/lib/fastly/models/inline_response20011.rb +2 -2
  214. data/lib/fastly/models/inline_response20012.rb +1 -1
  215. data/lib/fastly/models/inline_response20013.rb +11 -1
  216. data/lib/fastly/models/inline_response20014.rb +15 -4
  217. data/lib/fastly/models/inline_response20015.rb +217 -0
  218. data/lib/fastly/models/inline_response20016.rb +218 -0
  219. data/lib/fastly/models/inline_response20017.rb +227 -0
  220. data/lib/fastly/models/inline_response20018.rb +227 -0
  221. data/lib/fastly/models/inline_response20019.rb +228 -0
  222. data/lib/fastly/models/inline_response20020.rb +227 -0
  223. data/lib/fastly/models/inline_response20021.rb +227 -0
  224. data/lib/fastly/models/inline_response20022.rb +218 -0
  225. data/lib/fastly/models/inline_response2005.rb +2 -2
  226. data/lib/fastly/models/inline_response2006.rb +2 -12
  227. data/lib/fastly/models/inline_response2007.rb +2 -4
  228. data/lib/fastly/models/inline_response2008.rb +18 -8
  229. data/lib/fastly/models/inline_response2009.rb +17 -8
  230. data/lib/fastly/models/invitations_response.rb +1 -1
  231. data/lib/fastly/models/kv_store_response_body_enable.rb +243 -0
  232. data/lib/fastly/models/kv_store_response_customer.rb +216 -0
  233. data/lib/fastly/models/kv_store_response_links.rb +216 -0
  234. data/lib/fastly/models/kv_store_response_links_links.rb +217 -0
  235. data/lib/fastly/models/kv_store_response_product.rb +216 -0
  236. data/lib/fastly/models/kv_store_response_product_product.rb +227 -0
  237. data/lib/fastly/models/log_error.rb +267 -0
  238. data/lib/fastly/models/log_error_batch.rb +228 -0
  239. data/lib/fastly/models/logging_azureblob_response.rb +3 -3
  240. data/lib/fastly/models/logging_cloudfiles_response.rb +3 -3
  241. data/lib/fastly/models/logging_digitalocean_response.rb +3 -3
  242. data/lib/fastly/models/logging_ftp_response.rb +3 -3
  243. data/lib/fastly/models/logging_gcs_response.rb +3 -3
  244. data/lib/fastly/models/logging_generic_common.rb +3 -3
  245. data/lib/fastly/models/logging_generic_common_response.rb +3 -3
  246. data/lib/fastly/models/logging_generic_common_response_all_of.rb +3 -3
  247. data/lib/fastly/models/logging_https_additional.rb +1 -1
  248. data/lib/fastly/models/logging_https_response.rb +1 -1
  249. data/lib/fastly/models/logging_message_type.rb +1 -1
  250. data/lib/fastly/models/logging_openstack_response.rb +3 -3
  251. data/lib/fastly/models/logging_s3_response.rb +3 -3
  252. data/lib/fastly/models/logging_sftp_response.rb +3 -3
  253. data/lib/fastly/models/logging_sumologic_additional.rb +1 -1
  254. data/lib/fastly/models/logging_sumologic_response.rb +1 -1
  255. data/lib/fastly/models/logging_syslog_additional.rb +1 -1
  256. data/lib/fastly/models/logging_syslog_response.rb +1 -1
  257. data/lib/fastly/models/mutual_authentications_response.rb +1 -1
  258. data/lib/fastly/models/notification.rb +270 -0
  259. data/lib/fastly/models/notification_config.rb +218 -0
  260. data/lib/fastly/models/page.rb +289 -0
  261. data/lib/fastly/models/page_create.rb +266 -0
  262. data/lib/fastly/models/page_update.rb +256 -0
  263. data/lib/fastly/models/pagination.rb +1 -1
  264. data/lib/fastly/models/pagination_meta.rb +30 -55
  265. data/lib/fastly/models/pagination_meta1.rb +273 -0
  266. data/lib/fastly/models/path_change.rb +274 -0
  267. data/lib/fastly/models/path_create.rb +242 -0
  268. data/lib/fastly/models/path_response.rb +285 -0
  269. data/lib/fastly/models/path_response_all_of.rb +254 -0
  270. data/lib/fastly/models/path_update.rb +233 -0
  271. data/lib/fastly/models/path_with_rules.rb +228 -0
  272. data/lib/fastly/models/paths_response.rb +228 -0
  273. data/lib/fastly/models/policy.rb +315 -0
  274. data/lib/fastly/models/policy_create.rb +289 -0
  275. data/lib/fastly/models/policy_update.rb +279 -0
  276. data/lib/fastly/models/position.rb +228 -0
  277. data/lib/fastly/models/realtime_entry.rb +2 -5
  278. data/lib/fastly/models/realtime_entry_aggregated.rb +364 -34
  279. data/lib/fastly/models/realtime_entry_datacenter.rb +3597 -0
  280. data/lib/fastly/models/realtime_measurements.rb +364 -34
  281. data/lib/fastly/models/report.rb +261 -0
  282. data/lib/fastly/models/request_body_for_create.rb +12 -1
  283. data/lib/fastly/models/request_body_for_update.rb +12 -1
  284. data/lib/fastly/models/results.rb +361 -31
  285. data/lib/fastly/models/routing_config.rb +251 -0
  286. data/lib/fastly/models/routing_config_condition.rb +261 -0
  287. data/lib/fastly/models/routing_config_response.rb +305 -0
  288. data/lib/fastly/models/routing_config_response_all_of.rb +274 -0
  289. data/lib/fastly/models/routing_config_state.rb +36 -0
  290. data/lib/fastly/models/routing_config_version_response.rb +250 -0
  291. data/lib/fastly/models/routing_configs_response.rb +228 -0
  292. data/lib/fastly/models/rule_change.rb +236 -0
  293. data/lib/fastly/models/rule_create.rb +267 -0
  294. data/lib/fastly/models/rule_response.rb +279 -0
  295. data/lib/fastly/models/rule_response_all_of.rb +248 -0
  296. data/lib/fastly/models/rule_update.rb +252 -0
  297. data/lib/fastly/models/rules_response.rb +228 -0
  298. data/lib/fastly/models/script.rb +350 -0
  299. data/lib/fastly/models/script_update.rb +271 -0
  300. data/lib/fastly/models/security_header.rb +234 -0
  301. data/lib/fastly/models/service_authorizations_response.rb +1 -1
  302. data/lib/fastly/models/successful_response_as_object.rb +12 -1
  303. data/lib/fastly/models/successful_response_as_object_all_of.rb +12 -1
  304. data/lib/fastly/models/tls_activations_response.rb +1 -1
  305. data/lib/fastly/models/tls_bulk_certificates_response.rb +1 -1
  306. data/lib/fastly/models/tls_certificates_response.rb +1 -1
  307. data/lib/fastly/models/tls_configurations_response.rb +1 -1
  308. data/lib/fastly/models/tls_domains_response.rb +1 -1
  309. data/lib/fastly/models/tls_private_keys_response.rb +1 -1
  310. data/lib/fastly/models/tls_subscriptions_response.rb +1 -1
  311. data/lib/fastly/models/values.rb +64 -4
  312. data/lib/fastly/models/versions_response.rb +228 -0
  313. data/lib/fastly/models/waf_simulate_request.rb +233 -0
  314. data/lib/fastly/models/waf_simulate_response.rb +240 -0
  315. data/lib/fastly/models/waf_simulate_signal.rb +344 -0
  316. data/lib/fastly/models/website.rb +257 -0
  317. data/lib/fastly/models/website_create.rb +222 -0
  318. data/lib/fastly/models/website_update.rb +217 -0
  319. data/lib/fastly/version.rb +1 -1
  320. data/lib/fastly.rb +82 -0
  321. data/sig.json +1 -1
  322. metadata +166 -2
@@ -37,7 +37,7 @@ module Fastly
37
37
  def self.fastly_types
38
38
  {
39
39
  :'links' => :'PaginationLinks',
40
- :'meta' => :'PaginationMeta',
40
+ :'meta' => :'PaginationMeta1',
41
41
  :'data' => :'Array<TlsSubscriptionResponse>'
42
42
  }
43
43
  end
@@ -395,6 +395,24 @@ module Fastly
395
395
  # Number of \"Server Error\" category status codes delivered by the Compute platform.
396
396
  attr_accessor :compute_resp_status_5xx
397
397
 
398
+ # Number of requests received over HTTP/2.
399
+ attr_accessor :http2
400
+
401
+ # Number of requests received over HTTP/3.
402
+ attr_accessor :http3
403
+
404
+ # Number of requests received over TLS 1.0.
405
+ attr_accessor :tls_v10
406
+
407
+ # Number of requests received over TLS 1.1.
408
+ attr_accessor :tls_v11
409
+
410
+ # Number of requests received over TLS 1.2.
411
+ attr_accessor :tls_v12
412
+
413
+ # Number of requests received over TLS 1.3.
414
+ attr_accessor :tls_v13
415
+
398
416
  # Attribute mapping from ruby-style variable name to JSON key.
399
417
  def self.attribute_map
400
418
  {
@@ -524,7 +542,13 @@ module Fastly
524
542
  :'compute_resp_status_504' => :'compute_resp_status_504',
525
543
  :'compute_resp_status_505' => :'compute_resp_status_505',
526
544
  :'compute_resp_status_530' => :'compute_resp_status_530',
527
- :'compute_resp_status_5xx' => :'compute_resp_status_5xx'
545
+ :'compute_resp_status_5xx' => :'compute_resp_status_5xx',
546
+ :'http2' => :'http2',
547
+ :'http3' => :'http3',
548
+ :'tls_v10' => :'tls_v10',
549
+ :'tls_v11' => :'tls_v11',
550
+ :'tls_v12' => :'tls_v12',
551
+ :'tls_v13' => :'tls_v13'
528
552
  }
529
553
  end
530
554
 
@@ -662,7 +686,13 @@ module Fastly
662
686
  :'compute_resp_status_504' => :'Integer',
663
687
  :'compute_resp_status_505' => :'Integer',
664
688
  :'compute_resp_status_530' => :'Integer',
665
- :'compute_resp_status_5xx' => :'Integer'
689
+ :'compute_resp_status_5xx' => :'Integer',
690
+ :'http2' => :'Integer',
691
+ :'http3' => :'Integer',
692
+ :'tls_v10' => :'Integer',
693
+ :'tls_v11' => :'Integer',
694
+ :'tls_v12' => :'Integer',
695
+ :'tls_v13' => :'Integer'
666
696
  }
667
697
  end
668
698
 
@@ -1194,6 +1224,30 @@ module Fastly
1194
1224
  if attributes.key?(:'compute_resp_status_5xx')
1195
1225
  self.compute_resp_status_5xx = attributes[:'compute_resp_status_5xx']
1196
1226
  end
1227
+
1228
+ if attributes.key?(:'http2')
1229
+ self.http2 = attributes[:'http2']
1230
+ end
1231
+
1232
+ if attributes.key?(:'http3')
1233
+ self.http3 = attributes[:'http3']
1234
+ end
1235
+
1236
+ if attributes.key?(:'tls_v10')
1237
+ self.tls_v10 = attributes[:'tls_v10']
1238
+ end
1239
+
1240
+ if attributes.key?(:'tls_v11')
1241
+ self.tls_v11 = attributes[:'tls_v11']
1242
+ end
1243
+
1244
+ if attributes.key?(:'tls_v12')
1245
+ self.tls_v12 = attributes[:'tls_v12']
1246
+ end
1247
+
1248
+ if attributes.key?(:'tls_v13')
1249
+ self.tls_v13 = attributes[:'tls_v13']
1250
+ end
1197
1251
  end
1198
1252
 
1199
1253
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1340,7 +1394,13 @@ module Fastly
1340
1394
  compute_resp_status_504 == o.compute_resp_status_504 &&
1341
1395
  compute_resp_status_505 == o.compute_resp_status_505 &&
1342
1396
  compute_resp_status_530 == o.compute_resp_status_530 &&
1343
- compute_resp_status_5xx == o.compute_resp_status_5xx
1397
+ compute_resp_status_5xx == o.compute_resp_status_5xx &&
1398
+ http2 == o.http2 &&
1399
+ http3 == o.http3 &&
1400
+ tls_v10 == o.tls_v10 &&
1401
+ tls_v11 == o.tls_v11 &&
1402
+ tls_v12 == o.tls_v12 &&
1403
+ tls_v13 == o.tls_v13
1344
1404
  end
1345
1405
 
1346
1406
  # @see the `==` method
@@ -1352,7 +1412,7 @@ module Fastly
1352
1412
  # Calculates hash code according to all attributes.
1353
1413
  # @return [Integer] Hash code
1354
1414
  def hash
1355
- [edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, requests, resp_header_bytes, resp_body_bytes, bereq_header_bytes, bereq_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, bandwidth, edge_hit_ratio, origin_offload, origin_status_200, origin_status_204, origin_status_206, origin_status_301, origin_status_302, origin_status_304, origin_status_400, origin_status_401, origin_status_403, origin_status_404, origin_status_416, origin_status_429, origin_status_500, origin_status_501, origin_status_502, origin_status_503, origin_status_504, origin_status_505, origin_status_530, origin_status_1xx, origin_status_2xx, origin_status_3xx, origin_status_4xx, origin_status_5xx, compute_bereq_body_bytes, compute_bereq_errors, compute_bereq_header_bytes, compute_bereqs, compute_beresp_body_bytes, compute_beresp_header_bytes, compute_execution_time_ms, compute_origin_status_1xx, compute_origin_status_200, compute_origin_status_204, compute_origin_status_206, compute_origin_status_2xx, compute_origin_status_301, compute_origin_status_302, compute_origin_status_304, compute_origin_status_3xx, compute_origin_status_400, compute_origin_status_401, compute_origin_status_403, compute_origin_status_404, compute_origin_status_416, compute_origin_status_429, compute_origin_status_4xx, compute_origin_status_500, compute_origin_status_501, compute_origin_status_502, compute_origin_status_503, compute_origin_status_504, compute_origin_status_505, compute_origin_status_530, compute_origin_status_5xx, compute_req_body_bytes, compute_req_header_bytes, compute_request_time_billed_ms, compute_request_time_ms, compute_request, compute_resp_body_bytes, compute_resp_header_bytes, compute_resp_status_103, compute_resp_status_1xx, compute_resp_status_200, compute_resp_status_204, compute_resp_status_206, compute_resp_status_2xx, compute_resp_status_301, compute_resp_status_302, compute_resp_status_304, compute_resp_status_3xx, compute_resp_status_400, compute_resp_status_401, compute_resp_status_403, compute_resp_status_404, compute_resp_status_416, compute_resp_status_429, compute_resp_status_4xx, compute_resp_status_500, compute_resp_status_501, compute_resp_status_502, compute_resp_status_503, compute_resp_status_504, compute_resp_status_505, compute_resp_status_530, compute_resp_status_5xx].hash
1415
+ [edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_530, requests, resp_header_bytes, resp_body_bytes, bereq_header_bytes, bereq_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, bandwidth, edge_hit_ratio, origin_offload, origin_status_200, origin_status_204, origin_status_206, origin_status_301, origin_status_302, origin_status_304, origin_status_400, origin_status_401, origin_status_403, origin_status_404, origin_status_416, origin_status_429, origin_status_500, origin_status_501, origin_status_502, origin_status_503, origin_status_504, origin_status_505, origin_status_530, origin_status_1xx, origin_status_2xx, origin_status_3xx, origin_status_4xx, origin_status_5xx, compute_bereq_body_bytes, compute_bereq_errors, compute_bereq_header_bytes, compute_bereqs, compute_beresp_body_bytes, compute_beresp_header_bytes, compute_execution_time_ms, compute_origin_status_1xx, compute_origin_status_200, compute_origin_status_204, compute_origin_status_206, compute_origin_status_2xx, compute_origin_status_301, compute_origin_status_302, compute_origin_status_304, compute_origin_status_3xx, compute_origin_status_400, compute_origin_status_401, compute_origin_status_403, compute_origin_status_404, compute_origin_status_416, compute_origin_status_429, compute_origin_status_4xx, compute_origin_status_500, compute_origin_status_501, compute_origin_status_502, compute_origin_status_503, compute_origin_status_504, compute_origin_status_505, compute_origin_status_530, compute_origin_status_5xx, compute_req_body_bytes, compute_req_header_bytes, compute_request_time_billed_ms, compute_request_time_ms, compute_request, compute_resp_body_bytes, compute_resp_header_bytes, compute_resp_status_103, compute_resp_status_1xx, compute_resp_status_200, compute_resp_status_204, compute_resp_status_206, compute_resp_status_2xx, compute_resp_status_301, compute_resp_status_302, compute_resp_status_304, compute_resp_status_3xx, compute_resp_status_400, compute_resp_status_401, compute_resp_status_403, compute_resp_status_404, compute_resp_status_416, compute_resp_status_429, compute_resp_status_4xx, compute_resp_status_500, compute_resp_status_501, compute_resp_status_502, compute_resp_status_503, compute_resp_status_504, compute_resp_status_505, compute_resp_status_530, compute_resp_status_5xx, http2, http3, tls_v10, tls_v11, tls_v12, tls_v13].hash
1356
1416
  end
1357
1417
 
1358
1418
  # Builds the object from hash
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Fastly
15
+ # A paginated list of versions.
16
+ class VersionsResponse
17
+ attr_accessor :data
18
+
19
+ attr_accessor :meta
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'data' => :'data',
25
+ :'meta' => :'meta'
26
+ }
27
+ end
28
+
29
+ # Returns all the JSON keys this model knows about
30
+ def self.acceptable_attributes
31
+ attribute_map.values
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.fastly_types
36
+ {
37
+ :'data' => :'Array<RoutingConfigVersionResponse>',
38
+ :'meta' => :'PaginationMeta'
39
+ }
40
+ end
41
+
42
+ # List of attributes with nullable: true
43
+ def self.fastly_nullable
44
+ Set.new([
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::VersionsResponse` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::VersionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'data')
64
+ if (value = attributes[:'data']).is_a?(Array)
65
+ self.data = value
66
+ end
67
+ end
68
+
69
+ if attributes.key?(:'meta')
70
+ self.meta = attributes[:'meta']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ true
85
+ end
86
+
87
+ # Checks equality by comparing each attribute.
88
+ # @param [Object] Object to be compared
89
+ def ==(o)
90
+ return true if self.equal?(o)
91
+ self.class == o.class &&
92
+ data == o.data &&
93
+ meta == o.meta
94
+ end
95
+
96
+ # @see the `==` method
97
+ # @param [Object] Object to be compared
98
+ def eql?(o)
99
+ self == o
100
+ end
101
+
102
+ # Calculates hash code according to all attributes.
103
+ # @return [Integer] Hash code
104
+ def hash
105
+ [data, meta].hash
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def self.build_from_hash(attributes)
112
+ new.build_from_hash(attributes)
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def build_from_hash(attributes)
119
+ return nil unless attributes.is_a?(Hash)
120
+ self.class.fastly_types.each_pair do |key, type|
121
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
122
+ self.send("#{key}=", nil)
123
+ elsif type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :Time
144
+ Time.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :Boolean
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ # models (e.g. Pet) or oneOf
175
+ klass = Fastly.const_get(type)
176
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.fastly_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+
226
+ end
227
+
228
+ end
@@ -0,0 +1,233 @@
1
+ =begin
2
+ #Fastly API
3
+
4
+ #Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://www.fastly.com/documentation/reference/api/)
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: oss@fastly.com
8
+
9
+ =end
10
+
11
+ require 'date'
12
+ require 'time'
13
+
14
+ module Fastly
15
+ # Request body for simulating a WAF request. The total request body must not exceed 200 KB.
16
+ class WafSimulateRequest
17
+ # The raw HTTP request in wire format to simulate through the WAF. Must include the request line, headers, and optionally a body, separated by CRLF sequences.
18
+ attr_accessor :request
19
+
20
+ # The raw HTTP response in wire format. The WAF engine inspects response headers during its PostRequest phase and may generate signals from them. When omitted, a default response of `HTTP/1.1 200 OK\\r\\n\\r\\n` is used.
21
+ attr_accessor :response
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'request' => :'request',
27
+ :'response' => :'response'
28
+ }
29
+ end
30
+
31
+ # Returns all the JSON keys this model knows about
32
+ def self.acceptable_attributes
33
+ attribute_map.values
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.fastly_types
38
+ {
39
+ :'request' => :'String',
40
+ :'response' => :'String'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.fastly_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::WafSimulateRequest` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ attributes = attributes.each_with_object({}) { |(k, v), h|
59
+ if (!self.class.attribute_map.key?(k.to_sym))
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::WafSimulateRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
+ end
62
+ h[k.to_sym] = v
63
+ }
64
+
65
+ if attributes.key?(:'request')
66
+ self.request = attributes[:'request']
67
+ end
68
+
69
+ if attributes.key?(:'response')
70
+ self.response = attributes[:'response']
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = Array.new
78
+ if @request.nil?
79
+ invalid_properties.push('invalid value for "request", request cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ return false if @request.nil?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ request == o.request &&
98
+ response == o.response
99
+ end
100
+
101
+ # @see the `==` method
102
+ # @param [Object] Object to be compared
103
+ def eql?(o)
104
+ self == o
105
+ end
106
+
107
+ # Calculates hash code according to all attributes.
108
+ # @return [Integer] Hash code
109
+ def hash
110
+ [request, response].hash
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def self.build_from_hash(attributes)
117
+ new.build_from_hash(attributes)
118
+ end
119
+
120
+ # Builds the object from hash
121
+ # @param [Hash] attributes Model attributes in the form of hash
122
+ # @return [Object] Returns the model itself
123
+ def build_from_hash(attributes)
124
+ return nil unless attributes.is_a?(Hash)
125
+ self.class.fastly_types.each_pair do |key, type|
126
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
127
+ self.send("#{key}=", nil)
128
+ elsif type =~ /\AArray<(.*)>/i
129
+ # check to ensure the input is an array given that the attribute
130
+ # is documented as an array but the input is not
131
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
132
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
133
+ end
134
+ elsif !attributes[self.class.attribute_map[key]].nil?
135
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
136
+ end
137
+ end
138
+
139
+ self
140
+ end
141
+
142
+ # Deserializes the data based on type
143
+ # @param string type Data type
144
+ # @param string value Value to be deserialized
145
+ # @return [Object] Deserialized data
146
+ def _deserialize(type, value)
147
+ case type.to_sym
148
+ when :Time
149
+ Time.parse(value)
150
+ when :Date
151
+ Date.parse(value)
152
+ when :String
153
+ value.to_s
154
+ when :Integer
155
+ value.to_i
156
+ when :Float
157
+ value.to_f
158
+ when :Boolean
159
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
160
+ true
161
+ else
162
+ false
163
+ end
164
+ when :Object
165
+ # generic object (usually a Hash), return directly
166
+ value
167
+ when /\AArray<(?<inner_type>.+)>\z/
168
+ inner_type = Regexp.last_match[:inner_type]
169
+ value.map { |v| _deserialize(inner_type, v) }
170
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
171
+ k_type = Regexp.last_match[:k_type]
172
+ v_type = Regexp.last_match[:v_type]
173
+ {}.tap do |hash|
174
+ value.each do |k, v|
175
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
176
+ end
177
+ end
178
+ else # model
179
+ # models (e.g. Pet) or oneOf
180
+ klass = Fastly.const_get(type)
181
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
182
+ end
183
+ end
184
+
185
+ # Returns the string representation of the object
186
+ # @return [String] String presentation of the object
187
+ def to_s
188
+ to_hash.to_s
189
+ end
190
+
191
+ # to_body is an alias to to_hash (backward compatibility)
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_body
194
+ to_hash
195
+ end
196
+
197
+ # Returns the object in the form of hash
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_hash
200
+ hash = {}
201
+ self.class.attribute_map.each_pair do |attr, param|
202
+ value = self.send(attr)
203
+ if value.nil?
204
+ is_nullable = self.class.fastly_nullable.include?(attr)
205
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
206
+ end
207
+
208
+ hash[param] = _to_hash(value)
209
+ end
210
+ hash
211
+ end
212
+
213
+ # Outputs non-array value in the form of hash
214
+ # For object, use to_hash. Otherwise, just return the value
215
+ # @param [Object] value Any valid value
216
+ # @return [Hash] Returns the value in the form of hash
217
+ def _to_hash(value)
218
+ if value.is_a?(Array)
219
+ value.compact.map { |v| _to_hash(v) }
220
+ elsif value.is_a?(Hash)
221
+ {}.tap do |hash|
222
+ value.each { |k, v| hash[k] = _to_hash(v) }
223
+ end
224
+ elsif value.respond_to? :to_hash
225
+ value.to_hash
226
+ else
227
+ value
228
+ end
229
+ end
230
+
231
+ end
232
+
233
+ end