fastly 7.1.1 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile.lock +2 -2
  4. data/README.md +6 -5
  5. data/docs/HistoricalDdos.md +13 -0
  6. data/docs/HistoricalDdosMeta.md +13 -0
  7. data/docs/HistoricalFieldResultsAttributes.md +9 -0
  8. data/docs/KvStoreApi.md +15 -15
  9. data/docs/LoggingLogentriesAdditional.md +1 -1
  10. data/docs/LoggingLogentriesApi.md +4 -4
  11. data/docs/LoggingLogentriesResponse.md +1 -1
  12. data/docs/PlatformDdosDataItems.md +10 -0
  13. data/docs/PlatformDdosEntry.md +10 -0
  14. data/docs/PlatformDdosResponse.md +13 -0
  15. data/docs/PlatformDdosResponseAllOf.md +10 -0
  16. data/docs/RealtimeEntryAggregated.md +9 -0
  17. data/docs/RealtimeMeasurements.md +9 -0
  18. data/docs/Results.md +9 -0
  19. data/docs/SchemasSnippetResponse.md +1 -1
  20. data/docs/SchemasSnippetResponseCommon.md +15 -0
  21. data/docs/Snippet.md +1 -1
  22. data/docs/SnippetAllOf.md +10 -0
  23. data/docs/SnippetApi.md +6 -6
  24. data/docs/SnippetCommon.md +13 -0
  25. data/docs/SnippetResponse.md +1 -1
  26. data/docs/SnippetResponseCommon.md +15 -0
  27. data/docs/{SnippetResponseAllOf.md → SnippetResponseCommonAllOf.md} +1 -1
  28. data/docs/SnippetResponsePost.md +20 -0
  29. data/docs/SnippetWithDynamicNumber.md +14 -0
  30. data/docs/SnippetWithDynamicNumberAllOf.md +10 -0
  31. data/docs/ValuesDdos.md +15 -0
  32. data/docs/WholePlatformDdosHistoricalApi.md +56 -0
  33. data/lib/fastly/api/kv_store_api.rb +14 -14
  34. data/lib/fastly/api/logging_logentries_api.rb +4 -4
  35. data/lib/fastly/api/snippet_api.rb +17 -17
  36. data/lib/fastly/api/whole_platform_ddos_historical_api.rb +89 -0
  37. data/lib/fastly/configuration.rb +6 -0
  38. data/lib/fastly/models/historical_ddos.rb +249 -0
  39. data/lib/fastly/models/historical_ddos_meta.rb +248 -0
  40. data/lib/fastly/models/historical_field_results_attributes.rb +91 -1
  41. data/lib/fastly/models/logging_logentries_additional.rb +1 -1
  42. data/lib/fastly/models/logging_logentries_response.rb +1 -1
  43. data/lib/fastly/models/platform_ddos_data_items.rb +216 -0
  44. data/lib/fastly/models/platform_ddos_entry.rb +219 -0
  45. data/lib/fastly/models/platform_ddos_response.rb +257 -0
  46. data/lib/fastly/models/platform_ddos_response_all_of.rb +219 -0
  47. data/lib/fastly/models/realtime_entry_aggregated.rb +94 -4
  48. data/lib/fastly/models/realtime_measurements.rb +94 -4
  49. data/lib/fastly/models/results.rb +94 -4
  50. data/lib/fastly/models/schemas_snippet_response.rb +25 -26
  51. data/lib/fastly/models/schemas_snippet_response_common.rb +276 -0
  52. data/lib/fastly/models/snippet.rb +34 -26
  53. data/lib/fastly/models/snippet_all_of.rb +251 -0
  54. data/lib/fastly/models/snippet_common.rb +283 -0
  55. data/lib/fastly/models/snippet_response.rb +24 -25
  56. data/lib/fastly/models/snippet_response_common.rb +276 -0
  57. data/lib/fastly/models/{snippet_response_all_of.rb → snippet_response_common_all_of.rb} +3 -3
  58. data/lib/fastly/models/snippet_response_post.rb +374 -0
  59. data/lib/fastly/models/snippet_with_dynamic_number.rb +313 -0
  60. data/lib/fastly/models/snippet_with_dynamic_number_all_of.rb +251 -0
  61. data/lib/fastly/models/values_ddos.rb +268 -0
  62. data/lib/fastly/version.rb +1 -1
  63. data/lib/fastly.rb +16 -1
  64. data/sig.json +1 -1
  65. metadata +34 -4
@@ -668,6 +668,33 @@ module Fastly
668
668
  # The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped).
669
669
  attr_accessor :ddos_action_blackhole
670
670
 
671
+ # The number of challenge-start tokens created.
672
+ attr_accessor :bot_challenge_starts
673
+
674
+ # The number of challenge-complete tokens that passed validation.
675
+ attr_accessor :bot_challenge_complete_tokens_passed
676
+
677
+ # The number of challenge-complete tokens that failed validation.
678
+ attr_accessor :bot_challenge_complete_tokens_failed
679
+
680
+ # The number of challenge-complete tokens checked.
681
+ attr_accessor :bot_challenge_complete_tokens_checked
682
+
683
+ # The number of challenge-complete tokens not checked because the feature was disabled.
684
+ attr_accessor :bot_challenge_complete_tokens_disabled
685
+
686
+ # The number of challenges issued. For example, the issuance of a CAPTCHA challenge.
687
+ attr_accessor :bot_challenges_issued
688
+
689
+ # The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.
690
+ attr_accessor :bot_challenges_succeeded
691
+
692
+ # The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
693
+ attr_accessor :bot_challenges_failed
694
+
695
+ # The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.
696
+ attr_accessor :bot_challenge_complete_tokens_issued
697
+
671
698
  # Attribute mapping from ruby-style variable name to JSON key.
672
699
  def self.attribute_map
673
700
  {
@@ -888,7 +915,16 @@ module Fastly
888
915
  :'ddos_action_tarpit_accept' => :'ddos_action_tarpit_accept',
889
916
  :'ddos_action_tarpit' => :'ddos_action_tarpit',
890
917
  :'ddos_action_close' => :'ddos_action_close',
891
- :'ddos_action_blackhole' => :'ddos_action_blackhole'
918
+ :'ddos_action_blackhole' => :'ddos_action_blackhole',
919
+ :'bot_challenge_starts' => :'bot_challenge_starts',
920
+ :'bot_challenge_complete_tokens_passed' => :'bot_challenge_complete_tokens_passed',
921
+ :'bot_challenge_complete_tokens_failed' => :'bot_challenge_complete_tokens_failed',
922
+ :'bot_challenge_complete_tokens_checked' => :'bot_challenge_complete_tokens_checked',
923
+ :'bot_challenge_complete_tokens_disabled' => :'bot_challenge_complete_tokens_disabled',
924
+ :'bot_challenges_issued' => :'bot_challenges_issued',
925
+ :'bot_challenges_succeeded' => :'bot_challenges_succeeded',
926
+ :'bot_challenges_failed' => :'bot_challenges_failed',
927
+ :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued'
892
928
  }
893
929
  end
894
930
 
@@ -1117,7 +1153,16 @@ module Fastly
1117
1153
  :'ddos_action_tarpit_accept' => :'Integer',
1118
1154
  :'ddos_action_tarpit' => :'Integer',
1119
1155
  :'ddos_action_close' => :'Integer',
1120
- :'ddos_action_blackhole' => :'Integer'
1156
+ :'ddos_action_blackhole' => :'Integer',
1157
+ :'bot_challenge_starts' => :'Integer',
1158
+ :'bot_challenge_complete_tokens_passed' => :'Integer',
1159
+ :'bot_challenge_complete_tokens_failed' => :'Integer',
1160
+ :'bot_challenge_complete_tokens_checked' => :'Integer',
1161
+ :'bot_challenge_complete_tokens_disabled' => :'Integer',
1162
+ :'bot_challenges_issued' => :'Integer',
1163
+ :'bot_challenges_succeeded' => :'Integer',
1164
+ :'bot_challenges_failed' => :'Integer',
1165
+ :'bot_challenge_complete_tokens_issued' => :'Integer'
1121
1166
  }
1122
1167
  end
1123
1168
 
@@ -2022,6 +2067,42 @@ module Fastly
2022
2067
  if attributes.key?(:'ddos_action_blackhole')
2023
2068
  self.ddos_action_blackhole = attributes[:'ddos_action_blackhole']
2024
2069
  end
2070
+
2071
+ if attributes.key?(:'bot_challenge_starts')
2072
+ self.bot_challenge_starts = attributes[:'bot_challenge_starts']
2073
+ end
2074
+
2075
+ if attributes.key?(:'bot_challenge_complete_tokens_passed')
2076
+ self.bot_challenge_complete_tokens_passed = attributes[:'bot_challenge_complete_tokens_passed']
2077
+ end
2078
+
2079
+ if attributes.key?(:'bot_challenge_complete_tokens_failed')
2080
+ self.bot_challenge_complete_tokens_failed = attributes[:'bot_challenge_complete_tokens_failed']
2081
+ end
2082
+
2083
+ if attributes.key?(:'bot_challenge_complete_tokens_checked')
2084
+ self.bot_challenge_complete_tokens_checked = attributes[:'bot_challenge_complete_tokens_checked']
2085
+ end
2086
+
2087
+ if attributes.key?(:'bot_challenge_complete_tokens_disabled')
2088
+ self.bot_challenge_complete_tokens_disabled = attributes[:'bot_challenge_complete_tokens_disabled']
2089
+ end
2090
+
2091
+ if attributes.key?(:'bot_challenges_issued')
2092
+ self.bot_challenges_issued = attributes[:'bot_challenges_issued']
2093
+ end
2094
+
2095
+ if attributes.key?(:'bot_challenges_succeeded')
2096
+ self.bot_challenges_succeeded = attributes[:'bot_challenges_succeeded']
2097
+ end
2098
+
2099
+ if attributes.key?(:'bot_challenges_failed')
2100
+ self.bot_challenges_failed = attributes[:'bot_challenges_failed']
2101
+ end
2102
+
2103
+ if attributes.key?(:'bot_challenge_complete_tokens_issued')
2104
+ self.bot_challenge_complete_tokens_issued = attributes[:'bot_challenge_complete_tokens_issued']
2105
+ end
2025
2106
  end
2026
2107
 
2027
2108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -2259,7 +2340,16 @@ module Fastly
2259
2340
  ddos_action_tarpit_accept == o.ddos_action_tarpit_accept &&
2260
2341
  ddos_action_tarpit == o.ddos_action_tarpit &&
2261
2342
  ddos_action_close == o.ddos_action_close &&
2262
- ddos_action_blackhole == o.ddos_action_blackhole
2343
+ ddos_action_blackhole == o.ddos_action_blackhole &&
2344
+ bot_challenge_starts == o.bot_challenge_starts &&
2345
+ bot_challenge_complete_tokens_passed == o.bot_challenge_complete_tokens_passed &&
2346
+ bot_challenge_complete_tokens_failed == o.bot_challenge_complete_tokens_failed &&
2347
+ bot_challenge_complete_tokens_checked == o.bot_challenge_complete_tokens_checked &&
2348
+ bot_challenge_complete_tokens_disabled == o.bot_challenge_complete_tokens_disabled &&
2349
+ bot_challenges_issued == o.bot_challenges_issued &&
2350
+ bot_challenges_succeeded == o.bot_challenges_succeeded &&
2351
+ bot_challenges_failed == o.bot_challenges_failed &&
2352
+ bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued
2263
2353
  end
2264
2354
 
2265
2355
  # @see the `==` method
@@ -2271,7 +2361,7 @@ module Fastly
2271
2361
  # Calculates hash code according to all attributes.
2272
2362
  # @return [Integer] Hash code
2273
2363
  def hash
2274
- [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, compute_request_time_billed_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole].hash
2364
+ [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, compute_request_time_billed_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, bot_challenge_complete_tokens_issued].hash
2275
2365
  end
2276
2366
 
2277
2367
  # Builds the object from hash
@@ -668,6 +668,33 @@ module Fastly
668
668
  # The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped).
669
669
  attr_accessor :ddos_action_blackhole
670
670
 
671
+ # The number of challenge-start tokens created.
672
+ attr_accessor :bot_challenge_starts
673
+
674
+ # The number of challenge-complete tokens that passed validation.
675
+ attr_accessor :bot_challenge_complete_tokens_passed
676
+
677
+ # The number of challenge-complete tokens that failed validation.
678
+ attr_accessor :bot_challenge_complete_tokens_failed
679
+
680
+ # The number of challenge-complete tokens checked.
681
+ attr_accessor :bot_challenge_complete_tokens_checked
682
+
683
+ # The number of challenge-complete tokens not checked because the feature was disabled.
684
+ attr_accessor :bot_challenge_complete_tokens_disabled
685
+
686
+ # The number of challenges issued. For example, the issuance of a CAPTCHA challenge.
687
+ attr_accessor :bot_challenges_issued
688
+
689
+ # The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.
690
+ attr_accessor :bot_challenges_succeeded
691
+
692
+ # The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
693
+ attr_accessor :bot_challenges_failed
694
+
695
+ # The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.
696
+ attr_accessor :bot_challenge_complete_tokens_issued
697
+
671
698
  # Attribute mapping from ruby-style variable name to JSON key.
672
699
  def self.attribute_map
673
700
  {
@@ -888,7 +915,16 @@ module Fastly
888
915
  :'ddos_action_tarpit_accept' => :'ddos_action_tarpit_accept',
889
916
  :'ddos_action_tarpit' => :'ddos_action_tarpit',
890
917
  :'ddos_action_close' => :'ddos_action_close',
891
- :'ddos_action_blackhole' => :'ddos_action_blackhole'
918
+ :'ddos_action_blackhole' => :'ddos_action_blackhole',
919
+ :'bot_challenge_starts' => :'bot_challenge_starts',
920
+ :'bot_challenge_complete_tokens_passed' => :'bot_challenge_complete_tokens_passed',
921
+ :'bot_challenge_complete_tokens_failed' => :'bot_challenge_complete_tokens_failed',
922
+ :'bot_challenge_complete_tokens_checked' => :'bot_challenge_complete_tokens_checked',
923
+ :'bot_challenge_complete_tokens_disabled' => :'bot_challenge_complete_tokens_disabled',
924
+ :'bot_challenges_issued' => :'bot_challenges_issued',
925
+ :'bot_challenges_succeeded' => :'bot_challenges_succeeded',
926
+ :'bot_challenges_failed' => :'bot_challenges_failed',
927
+ :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued'
892
928
  }
893
929
  end
894
930
 
@@ -1117,7 +1153,16 @@ module Fastly
1117
1153
  :'ddos_action_tarpit_accept' => :'Integer',
1118
1154
  :'ddos_action_tarpit' => :'Integer',
1119
1155
  :'ddos_action_close' => :'Integer',
1120
- :'ddos_action_blackhole' => :'Integer'
1156
+ :'ddos_action_blackhole' => :'Integer',
1157
+ :'bot_challenge_starts' => :'Integer',
1158
+ :'bot_challenge_complete_tokens_passed' => :'Integer',
1159
+ :'bot_challenge_complete_tokens_failed' => :'Integer',
1160
+ :'bot_challenge_complete_tokens_checked' => :'Integer',
1161
+ :'bot_challenge_complete_tokens_disabled' => :'Integer',
1162
+ :'bot_challenges_issued' => :'Integer',
1163
+ :'bot_challenges_succeeded' => :'Integer',
1164
+ :'bot_challenges_failed' => :'Integer',
1165
+ :'bot_challenge_complete_tokens_issued' => :'Integer'
1121
1166
  }
1122
1167
  end
1123
1168
 
@@ -2015,6 +2060,42 @@ module Fastly
2015
2060
  if attributes.key?(:'ddos_action_blackhole')
2016
2061
  self.ddos_action_blackhole = attributes[:'ddos_action_blackhole']
2017
2062
  end
2063
+
2064
+ if attributes.key?(:'bot_challenge_starts')
2065
+ self.bot_challenge_starts = attributes[:'bot_challenge_starts']
2066
+ end
2067
+
2068
+ if attributes.key?(:'bot_challenge_complete_tokens_passed')
2069
+ self.bot_challenge_complete_tokens_passed = attributes[:'bot_challenge_complete_tokens_passed']
2070
+ end
2071
+
2072
+ if attributes.key?(:'bot_challenge_complete_tokens_failed')
2073
+ self.bot_challenge_complete_tokens_failed = attributes[:'bot_challenge_complete_tokens_failed']
2074
+ end
2075
+
2076
+ if attributes.key?(:'bot_challenge_complete_tokens_checked')
2077
+ self.bot_challenge_complete_tokens_checked = attributes[:'bot_challenge_complete_tokens_checked']
2078
+ end
2079
+
2080
+ if attributes.key?(:'bot_challenge_complete_tokens_disabled')
2081
+ self.bot_challenge_complete_tokens_disabled = attributes[:'bot_challenge_complete_tokens_disabled']
2082
+ end
2083
+
2084
+ if attributes.key?(:'bot_challenges_issued')
2085
+ self.bot_challenges_issued = attributes[:'bot_challenges_issued']
2086
+ end
2087
+
2088
+ if attributes.key?(:'bot_challenges_succeeded')
2089
+ self.bot_challenges_succeeded = attributes[:'bot_challenges_succeeded']
2090
+ end
2091
+
2092
+ if attributes.key?(:'bot_challenges_failed')
2093
+ self.bot_challenges_failed = attributes[:'bot_challenges_failed']
2094
+ end
2095
+
2096
+ if attributes.key?(:'bot_challenge_complete_tokens_issued')
2097
+ self.bot_challenge_complete_tokens_issued = attributes[:'bot_challenge_complete_tokens_issued']
2098
+ end
2018
2099
  end
2019
2100
 
2020
2101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -2252,7 +2333,16 @@ module Fastly
2252
2333
  ddos_action_tarpit_accept == o.ddos_action_tarpit_accept &&
2253
2334
  ddos_action_tarpit == o.ddos_action_tarpit &&
2254
2335
  ddos_action_close == o.ddos_action_close &&
2255
- ddos_action_blackhole == o.ddos_action_blackhole
2336
+ ddos_action_blackhole == o.ddos_action_blackhole &&
2337
+ bot_challenge_starts == o.bot_challenge_starts &&
2338
+ bot_challenge_complete_tokens_passed == o.bot_challenge_complete_tokens_passed &&
2339
+ bot_challenge_complete_tokens_failed == o.bot_challenge_complete_tokens_failed &&
2340
+ bot_challenge_complete_tokens_checked == o.bot_challenge_complete_tokens_checked &&
2341
+ bot_challenge_complete_tokens_disabled == o.bot_challenge_complete_tokens_disabled &&
2342
+ bot_challenges_issued == o.bot_challenges_issued &&
2343
+ bot_challenges_succeeded == o.bot_challenges_succeeded &&
2344
+ bot_challenges_failed == o.bot_challenges_failed &&
2345
+ bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued
2256
2346
  end
2257
2347
 
2258
2348
  # @see the `==` method
@@ -2264,7 +2354,7 @@ module Fastly
2264
2354
  # Calculates hash code according to all attributes.
2265
2355
  # @return [Integer] Hash code
2266
2356
  def hash
2267
- [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, compute_request_time_billed_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole].hash
2357
+ [requests, logging, log, resp_header_bytes, header_size, resp_body_bytes, body_size, hits, miss, pass, synth, errors, hits_time, miss_time, miss_histogram, compute_requests, compute_execution_time_ms, compute_ram_used, compute_request_time_ms, compute_request_time_billed_ms, shield, ipv6, imgopto, imgopto_shield, imgopto_transforms, otfp, otfp_shield, otfp_manifests, video, pci, http2, http3, restarts, req_header_bytes, req_body_bytes, bereq_header_bytes, bereq_body_bytes, waf_blocked, waf_logged, waf_passed, attack_req_header_bytes, attack_req_body_bytes, attack_resp_synth_bytes, attack_logged_req_header_bytes, attack_logged_req_body_bytes, attack_blocked_req_header_bytes, attack_blocked_req_body_bytes, attack_passed_req_header_bytes, attack_passed_req_body_bytes, shield_resp_header_bytes, shield_resp_body_bytes, otfp_resp_header_bytes, otfp_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_time, otfp_deliver_time, imgopto_resp_header_bytes, imgopto_resp_body_bytes, imgopto_shield_resp_header_bytes, imgopto_shield_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_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, uncacheable, pass_time, tls, tls_v10, tls_v11, tls_v12, tls_v13, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, object_size_other, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, log_bytes, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, origin_revalidations, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, shield_revalidations, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, edge_hit_requests, edge_miss_requests, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, origin_cache_fetches, shield_cache_fetches, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, websocket_resp_body_bytes, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed, bot_challenge_complete_tokens_issued].hash
2268
2358
  end
2269
2359
 
2270
2360
  # Builds the object from hash
@@ -662,6 +662,33 @@ module Fastly
662
662
  # The number of times the blackhole action was taken. The blackhole action quietly closes a TCP connection without sending a reset. The blackhole action quietly closes a TCP connection without notifying its peer (all TCP state is dropped).
663
663
  attr_accessor :ddos_action_blackhole
664
664
 
665
+ # The number of challenge-start tokens created.
666
+ attr_accessor :bot_challenge_starts
667
+
668
+ # The number of challenge-complete tokens that passed validation.
669
+ attr_accessor :bot_challenge_complete_tokens_passed
670
+
671
+ # The number of challenge-complete tokens that failed validation.
672
+ attr_accessor :bot_challenge_complete_tokens_failed
673
+
674
+ # The number of challenge-complete tokens checked.
675
+ attr_accessor :bot_challenge_complete_tokens_checked
676
+
677
+ # The number of challenge-complete tokens not checked because the feature was disabled.
678
+ attr_accessor :bot_challenge_complete_tokens_disabled
679
+
680
+ # The number of challenge-complete tokens issued. For example, issuing a challenge-complete token after a series of CAPTCHA challenges ending in success.
681
+ attr_accessor :bot_challenge_complete_tokens_issued
682
+
683
+ # The number of challenges issued. For example, the issuance of a CAPTCHA challenge.
684
+ attr_accessor :bot_challenges_issued
685
+
686
+ # The number of successful challenge solutions processed. For example, a correct CAPTCHA solution.
687
+ attr_accessor :bot_challenges_succeeded
688
+
689
+ # The number of failed challenge solutions processed. For example, an incorrect CAPTCHA solution.
690
+ attr_accessor :bot_challenges_failed
691
+
665
692
  # Attribute mapping from ruby-style variable name to JSON key.
666
693
  def self.attribute_map
667
694
  {
@@ -880,7 +907,16 @@ module Fastly
880
907
  :'ddos_action_tarpit_accept' => :'ddos_action_tarpit_accept',
881
908
  :'ddos_action_tarpit' => :'ddos_action_tarpit',
882
909
  :'ddos_action_close' => :'ddos_action_close',
883
- :'ddos_action_blackhole' => :'ddos_action_blackhole'
910
+ :'ddos_action_blackhole' => :'ddos_action_blackhole',
911
+ :'bot_challenge_starts' => :'bot_challenge_starts',
912
+ :'bot_challenge_complete_tokens_passed' => :'bot_challenge_complete_tokens_passed',
913
+ :'bot_challenge_complete_tokens_failed' => :'bot_challenge_complete_tokens_failed',
914
+ :'bot_challenge_complete_tokens_checked' => :'bot_challenge_complete_tokens_checked',
915
+ :'bot_challenge_complete_tokens_disabled' => :'bot_challenge_complete_tokens_disabled',
916
+ :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued',
917
+ :'bot_challenges_issued' => :'bot_challenges_issued',
918
+ :'bot_challenges_succeeded' => :'bot_challenges_succeeded',
919
+ :'bot_challenges_failed' => :'bot_challenges_failed'
884
920
  }
885
921
  end
886
922
 
@@ -1107,7 +1143,16 @@ module Fastly
1107
1143
  :'ddos_action_tarpit_accept' => :'Integer',
1108
1144
  :'ddos_action_tarpit' => :'Integer',
1109
1145
  :'ddos_action_close' => :'Integer',
1110
- :'ddos_action_blackhole' => :'Integer'
1146
+ :'ddos_action_blackhole' => :'Integer',
1147
+ :'bot_challenge_starts' => :'Integer',
1148
+ :'bot_challenge_complete_tokens_passed' => :'Integer',
1149
+ :'bot_challenge_complete_tokens_failed' => :'Integer',
1150
+ :'bot_challenge_complete_tokens_checked' => :'Integer',
1151
+ :'bot_challenge_complete_tokens_disabled' => :'Integer',
1152
+ :'bot_challenge_complete_tokens_issued' => :'Integer',
1153
+ :'bot_challenges_issued' => :'Integer',
1154
+ :'bot_challenges_succeeded' => :'Integer',
1155
+ :'bot_challenges_failed' => :'Integer'
1111
1156
  }
1112
1157
  end
1113
1158
 
@@ -1996,6 +2041,42 @@ module Fastly
1996
2041
  if attributes.key?(:'ddos_action_blackhole')
1997
2042
  self.ddos_action_blackhole = attributes[:'ddos_action_blackhole']
1998
2043
  end
2044
+
2045
+ if attributes.key?(:'bot_challenge_starts')
2046
+ self.bot_challenge_starts = attributes[:'bot_challenge_starts']
2047
+ end
2048
+
2049
+ if attributes.key?(:'bot_challenge_complete_tokens_passed')
2050
+ self.bot_challenge_complete_tokens_passed = attributes[:'bot_challenge_complete_tokens_passed']
2051
+ end
2052
+
2053
+ if attributes.key?(:'bot_challenge_complete_tokens_failed')
2054
+ self.bot_challenge_complete_tokens_failed = attributes[:'bot_challenge_complete_tokens_failed']
2055
+ end
2056
+
2057
+ if attributes.key?(:'bot_challenge_complete_tokens_checked')
2058
+ self.bot_challenge_complete_tokens_checked = attributes[:'bot_challenge_complete_tokens_checked']
2059
+ end
2060
+
2061
+ if attributes.key?(:'bot_challenge_complete_tokens_disabled')
2062
+ self.bot_challenge_complete_tokens_disabled = attributes[:'bot_challenge_complete_tokens_disabled']
2063
+ end
2064
+
2065
+ if attributes.key?(:'bot_challenge_complete_tokens_issued')
2066
+ self.bot_challenge_complete_tokens_issued = attributes[:'bot_challenge_complete_tokens_issued']
2067
+ end
2068
+
2069
+ if attributes.key?(:'bot_challenges_issued')
2070
+ self.bot_challenges_issued = attributes[:'bot_challenges_issued']
2071
+ end
2072
+
2073
+ if attributes.key?(:'bot_challenges_succeeded')
2074
+ self.bot_challenges_succeeded = attributes[:'bot_challenges_succeeded']
2075
+ end
2076
+
2077
+ if attributes.key?(:'bot_challenges_failed')
2078
+ self.bot_challenges_failed = attributes[:'bot_challenges_failed']
2079
+ end
1999
2080
  end
2000
2081
 
2001
2082
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -2231,7 +2312,16 @@ module Fastly
2231
2312
  ddos_action_tarpit_accept == o.ddos_action_tarpit_accept &&
2232
2313
  ddos_action_tarpit == o.ddos_action_tarpit &&
2233
2314
  ddos_action_close == o.ddos_action_close &&
2234
- ddos_action_blackhole == o.ddos_action_blackhole
2315
+ ddos_action_blackhole == o.ddos_action_blackhole &&
2316
+ bot_challenge_starts == o.bot_challenge_starts &&
2317
+ bot_challenge_complete_tokens_passed == o.bot_challenge_complete_tokens_passed &&
2318
+ bot_challenge_complete_tokens_failed == o.bot_challenge_complete_tokens_failed &&
2319
+ bot_challenge_complete_tokens_checked == o.bot_challenge_complete_tokens_checked &&
2320
+ bot_challenge_complete_tokens_disabled == o.bot_challenge_complete_tokens_disabled &&
2321
+ bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued &&
2322
+ bot_challenges_issued == o.bot_challenges_issued &&
2323
+ bot_challenges_succeeded == o.bot_challenges_succeeded &&
2324
+ bot_challenges_failed == o.bot_challenges_failed
2235
2325
  end
2236
2326
 
2237
2327
  # @see the `==` method
@@ -2243,7 +2333,7 @@ module Fastly
2243
2333
  # Calculates hash code according to all attributes.
2244
2334
  # @return [Integer] Hash code
2245
2335
  def hash
2246
- [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole].hash
2336
+ [requests, hits, hits_time, miss, miss_time, pass, pass_time, errors, restarts, hit_ratio, bandwidth, body_size, header_size, req_body_bytes, req_header_bytes, resp_body_bytes, resp_header_bytes, bereq_body_bytes, bereq_header_bytes, uncacheable, pipe, synth, tls, tls_v10, tls_v11, tls_v12, tls_v13, edge_requests, edge_resp_header_bytes, edge_resp_body_bytes, edge_hit_requests, edge_miss_requests, origin_fetches, origin_fetch_header_bytes, origin_fetch_body_bytes, origin_fetch_resp_header_bytes, origin_fetch_resp_body_bytes, origin_revalidations, origin_cache_fetches, shield, shield_resp_body_bytes, shield_resp_header_bytes, shield_fetches, shield_fetch_header_bytes, shield_fetch_body_bytes, shield_fetch_resp_header_bytes, shield_fetch_resp_body_bytes, shield_revalidations, shield_cache_fetches, ipv6, otfp, otfp_resp_body_bytes, otfp_resp_header_bytes, otfp_shield_resp_body_bytes, otfp_shield_resp_header_bytes, otfp_manifests, otfp_deliver_time, otfp_shield_time, video, pci, log, log_bytes, http2, http3, waf_logged, waf_blocked, waf_passed, attack_req_body_bytes, attack_req_header_bytes, attack_logged_req_body_bytes, attack_logged_req_header_bytes, attack_blocked_req_body_bytes, attack_blocked_req_header_bytes, attack_passed_req_body_bytes, attack_passed_req_header_bytes, attack_resp_synth_bytes, imgopto, imgopto_resp_body_bytes, imgopto_resp_header_bytes, imgopto_shield_resp_body_bytes, imgopto_shield_resp_header_bytes, imgvideo, imgvideo_frames, imgvideo_resp_header_bytes, imgvideo_resp_body_bytes, imgvideo_shield_resp_header_bytes, imgvideo_shield_resp_body_bytes, imgvideo_shield, imgvideo_shield_frames, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_406, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, object_size_1k, object_size_10k, object_size_100k, object_size_1m, object_size_10m, object_size_100m, object_size_1g, recv_sub_time, recv_sub_count, hash_sub_time, hash_sub_count, miss_sub_time, miss_sub_count, fetch_sub_time, fetch_sub_count, pass_sub_time, pass_sub_count, pipe_sub_time, pipe_sub_count, deliver_sub_time, deliver_sub_count, error_sub_time, error_sub_count, hit_sub_time, hit_sub_count, prehash_sub_time, prehash_sub_count, predeliver_sub_time, predeliver_sub_count, tls_handshake_sent_bytes, hit_resp_body_bytes, miss_resp_body_bytes, pass_resp_body_bytes, segblock_origin_fetches, segblock_shield_fetches, compute_requests, compute_request_time_ms, compute_request_time_billed_ms, compute_ram_used, compute_execution_time_ms, compute_req_header_bytes, compute_req_body_bytes, compute_resp_header_bytes, compute_resp_body_bytes, compute_resp_status_1xx, compute_resp_status_2xx, compute_resp_status_3xx, compute_resp_status_4xx, compute_resp_status_5xx, compute_bereq_header_bytes, compute_bereq_body_bytes, compute_beresp_header_bytes, compute_beresp_body_bytes, compute_bereqs, compute_bereq_errors, compute_resource_limit_exceeded, compute_heap_limit_exceeded, compute_stack_limit_exceeded, compute_globals_limit_exceeded, compute_guest_errors, compute_runtime_errors, edge_hit_resp_body_bytes, edge_hit_resp_header_bytes, edge_miss_resp_body_bytes, edge_miss_resp_header_bytes, origin_cache_fetch_resp_body_bytes, origin_cache_fetch_resp_header_bytes, shield_hit_requests, shield_miss_requests, shield_hit_resp_header_bytes, shield_hit_resp_body_bytes, shield_miss_resp_header_bytes, shield_miss_resp_body_bytes, websocket_req_header_bytes, websocket_req_body_bytes, websocket_resp_header_bytes, websocket_resp_body_bytes, websocket_bereq_header_bytes, websocket_bereq_body_bytes, websocket_beresp_header_bytes, websocket_beresp_body_bytes, websocket_conn_time_ms, fanout_recv_publishes, fanout_send_publishes, kv_store_class_a_operations, kv_store_class_b_operations, object_store_class_a_operations, object_store_class_b_operations, fanout_req_header_bytes, fanout_req_body_bytes, fanout_resp_header_bytes, fanout_resp_body_bytes, fanout_bereq_header_bytes, fanout_bereq_body_bytes, fanout_beresp_header_bytes, fanout_beresp_body_bytes, fanout_conn_time_ms, ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole, bot_challenge_starts, bot_challenge_complete_tokens_passed, bot_challenge_complete_tokens_failed, bot_challenge_complete_tokens_checked, bot_challenge_complete_tokens_disabled, bot_challenge_complete_tokens_issued, bot_challenges_issued, bot_challenges_succeeded, bot_challenges_failed].hash
2247
2337
  end
2248
2338
 
2249
2339
  # Builds the object from hash
@@ -16,9 +16,6 @@ module Fastly
16
16
  # The name for the snippet.
17
17
  attr_accessor :name
18
18
 
19
- # Sets the snippet version.
20
- attr_accessor :dynamic
21
-
22
19
  # The location in generated VCL where the snippet should be placed.
23
20
  attr_accessor :type
24
21
 
@@ -28,6 +25,9 @@ module Fastly
28
25
  # Priority determines execution order. Lower numbers execute first.
29
26
  attr_accessor :priority
30
27
 
28
+ # Sets the snippet version.
29
+ attr_accessor :dynamic
30
+
31
31
  # Date and time in ISO 8601 format.
32
32
  attr_accessor :created_at
33
33
 
@@ -70,10 +70,10 @@ module Fastly
70
70
  def self.attribute_map
71
71
  {
72
72
  :'name' => :'name',
73
- :'dynamic' => :'dynamic',
74
73
  :'type' => :'type',
75
74
  :'content' => :'content',
76
75
  :'priority' => :'priority',
76
+ :'dynamic' => :'dynamic',
77
77
  :'created_at' => :'created_at',
78
78
  :'deleted_at' => :'deleted_at',
79
79
  :'updated_at' => :'updated_at',
@@ -92,10 +92,10 @@ module Fastly
92
92
  def self.fastly_types
93
93
  {
94
94
  :'name' => :'String',
95
- :'dynamic' => :'String',
96
95
  :'type' => :'String',
97
96
  :'content' => :'String',
98
97
  :'priority' => :'String',
98
+ :'dynamic' => :'String',
99
99
  :'created_at' => :'Time',
100
100
  :'deleted_at' => :'Time',
101
101
  :'updated_at' => :'Time',
@@ -117,9 +117,8 @@ module Fastly
117
117
  # List of class defined in allOf (OpenAPI v3)
118
118
  def self.fastly_all_of
119
119
  [
120
- :'Snippet',
121
- :'SnippetResponseAllOf',
122
- :'Timestamps'
120
+ :'SchemasSnippetResponseCommon',
121
+ :'Snippet'
123
122
  ]
124
123
  end
125
124
 
@@ -142,10 +141,6 @@ module Fastly
142
141
  self.name = attributes[:'name']
143
142
  end
144
143
 
145
- if attributes.key?(:'dynamic')
146
- self.dynamic = attributes[:'dynamic']
147
- end
148
-
149
144
  if attributes.key?(:'type')
150
145
  self.type = attributes[:'type']
151
146
  end
@@ -160,6 +155,10 @@ module Fastly
160
155
  self.priority = '100'
161
156
  end
162
157
 
158
+ if attributes.key?(:'dynamic')
159
+ self.dynamic = attributes[:'dynamic']
160
+ end
161
+
163
162
  if attributes.key?(:'created_at')
164
163
  self.created_at = attributes[:'created_at']
165
164
  end
@@ -195,23 +194,13 @@ module Fastly
195
194
  # Check to see if the all the properties in the model are valid
196
195
  # @return true if the model is valid
197
196
  def valid?
198
- dynamic_validator = EnumAttributeValidator.new('String', ["0", "1"])
199
- return false unless dynamic_validator.valid?(@dynamic)
200
197
  type_validator = EnumAttributeValidator.new('String', ["init", "recv", "hash", "hit", "miss", "pass", "fetch", "error", "deliver", "log", "none"])
201
198
  return false unless type_validator.valid?(@type)
199
+ dynamic_validator = EnumAttributeValidator.new('String', ["0", "1"])
200
+ return false unless dynamic_validator.valid?(@dynamic)
202
201
  true
203
202
  end
204
203
 
205
- # Custom attribute writer method checking allowed values (enum).
206
- # @param [Object] dynamic Object to be assigned
207
- def dynamic=(dynamic)
208
- validator = EnumAttributeValidator.new('String', ["0", "1"])
209
- unless validator.valid?(dynamic)
210
- fail ArgumentError, "invalid value for \"dynamic\", must be one of #{validator.allowable_values}."
211
- end
212
- @dynamic = dynamic
213
- end
214
-
215
204
  # Custom attribute writer method checking allowed values (enum).
216
205
  # @param [Object] type Object to be assigned
217
206
  def type=(type)
@@ -222,16 +211,26 @@ module Fastly
222
211
  @type = type
223
212
  end
224
213
 
214
+ # Custom attribute writer method checking allowed values (enum).
215
+ # @param [Object] dynamic Object to be assigned
216
+ def dynamic=(dynamic)
217
+ validator = EnumAttributeValidator.new('String', ["0", "1"])
218
+ unless validator.valid?(dynamic)
219
+ fail ArgumentError, "invalid value for \"dynamic\", must be one of #{validator.allowable_values}."
220
+ end
221
+ @dynamic = dynamic
222
+ end
223
+
225
224
  # Checks equality by comparing each attribute.
226
225
  # @param [Object] Object to be compared
227
226
  def ==(o)
228
227
  return true if self.equal?(o)
229
228
  self.class == o.class &&
230
229
  name == o.name &&
231
- dynamic == o.dynamic &&
232
230
  type == o.type &&
233
231
  content == o.content &&
234
232
  priority == o.priority &&
233
+ dynamic == o.dynamic &&
235
234
  created_at == o.created_at &&
236
235
  deleted_at == o.deleted_at &&
237
236
  updated_at == o.updated_at &&
@@ -249,7 +248,7 @@ module Fastly
249
248
  # Calculates hash code according to all attributes.
250
249
  # @return [Integer] Hash code
251
250
  def hash
252
- [name, dynamic, type, content, priority, created_at, deleted_at, updated_at, service_id, version, id].hash
251
+ [name, type, content, priority, dynamic, created_at, deleted_at, updated_at, service_id, version, id].hash
253
252
  end
254
253
 
255
254
  # Builds the object from hash