fastly 8.0.1 → 8.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +223 -130
  3. data/Gemfile.lock +1 -1
  4. data/README.md +19 -7
  5. data/docs/{ErrorResponse.md → AutomationTokenErrorResponse.md} +1 -1
  6. data/docs/AutomationTokensApi.md +2 -2
  7. data/docs/Backend.md +5 -1
  8. data/docs/BackendApi.md +20 -4
  9. data/docs/BackendResponse.md +5 -1
  10. data/docs/BillingInvoicesApi.md +96 -0
  11. data/docs/Director.md +1 -1
  12. data/docs/DirectorApi.md +2 -2
  13. data/docs/DirectorResponse.md +1 -1
  14. data/docs/DomainInspectorHistoricalApi.md +4 -4
  15. data/docs/DomainInspectorRealtimeEntry.md +1 -1
  16. data/docs/Error.md +13 -0
  17. data/docs/ErrorResponseData.md +11 -0
  18. data/docs/Invoice.md +18 -0
  19. data/docs/InvoiceResponse.md +18 -0
  20. data/docs/Invoicelineitems.md +18 -0
  21. data/docs/KvStoreApi.md +1 -1
  22. data/docs/ListInvoicesResponse.md +11 -0
  23. data/docs/Listinvoices.md +11 -0
  24. data/docs/LoggingScalyrAdditional.md +1 -1
  25. data/docs/LoggingScalyrApi.md +4 -4
  26. data/docs/LoggingScalyrResponse.md +1 -1
  27. data/docs/Metadata.md +13 -0
  28. data/docs/OriginInspectorHistoricalApi.md +4 -4
  29. data/docs/OriginInspectorRealtimeEntry.md +1 -1
  30. data/docs/PoolAdditional.md +1 -1
  31. data/docs/PoolApi.md +4 -4
  32. data/docs/PoolResponse.md +1 -1
  33. data/docs/PoolResponsePost.md +1 -1
  34. data/docs/Pop.md +2 -2
  35. data/docs/PublishApi.md +1 -1
  36. data/docs/RealtimeEntry.md +1 -1
  37. data/docs/RealtimeEntryAggregated.md +22 -1
  38. data/docs/RealtimeMeasurements.md +22 -1
  39. data/docs/RelationshipCustomerCustomer.md +1 -1
  40. data/docs/Results.md +23 -0
  41. data/docs/SecretStoreApi.md +4 -2
  42. data/docs/SecretStoreItemApi.md +2 -2
  43. data/docs/ServiceDetail.md +1 -1
  44. data/docs/ServiceListResponse.md +2 -2
  45. data/docs/ServiceListResponseAllOf.md +2 -2
  46. data/docs/ServiceResponse.md +1 -1
  47. data/docs/ServiceResponseAllOf.md +1 -1
  48. data/docs/TlsConfigurationResponseAttributes.md +1 -1
  49. data/docs/TlsConfigurationResponseAttributesAllOf.md +1 -1
  50. data/docs/TlsCsr.md +10 -0
  51. data/docs/TlsCsrData.md +12 -0
  52. data/docs/TlsCsrDataAttributes.md +20 -0
  53. data/docs/TlsCsrErrorResponse.md +10 -0
  54. data/docs/TlsCsrResponse.md +10 -0
  55. data/docs/TlsCsrResponseAttributes.md +10 -0
  56. data/docs/TlsCsrResponseData.md +13 -0
  57. data/docs/TlsCsrsApi.md +52 -0
  58. data/docs/TlsSubscriptionResponseAttributes.md +1 -0
  59. data/docs/TlsSubscriptionResponseAttributesAllOf.md +1 -0
  60. data/docs/TokensApi.md +1 -1
  61. data/docs/TypeTlsCsr.md +9 -0
  62. data/docs/VclApi.md +1 -1
  63. data/docs/WafActiveRulesApi.md +1 -1
  64. data/lib/fastly/api/automation_tokens_api.rb +3 -3
  65. data/lib/fastly/api/backend_api.rb +28 -4
  66. data/lib/fastly/api/billing_invoices_api.rb +151 -0
  67. data/lib/fastly/api/director_api.rb +2 -2
  68. data/lib/fastly/api/domain_inspector_historical_api.rb +4 -4
  69. data/lib/fastly/api/kv_store_api.rb +2 -2
  70. data/lib/fastly/api/logging_scalyr_api.rb +4 -4
  71. data/lib/fastly/api/origin_inspector_historical_api.rb +4 -4
  72. data/lib/fastly/api/pool_api.rb +4 -4
  73. data/lib/fastly/api/publish_api.rb +2 -2
  74. data/lib/fastly/api/secret_store_api.rb +5 -2
  75. data/lib/fastly/api/secret_store_item_api.rb +2 -2
  76. data/lib/fastly/api/tls_csrs_api.rb +83 -0
  77. data/lib/fastly/api/tokens_api.rb +2 -2
  78. data/lib/fastly/api/vcl_api.rb +2 -2
  79. data/lib/fastly/api/waf_active_rules_api.rb +2 -2
  80. data/lib/fastly/configuration.rb +18 -0
  81. data/lib/fastly/models/{error_response.rb → automation_token_error_response.rb} +3 -3
  82. data/lib/fastly/models/backend.rb +45 -2
  83. data/lib/fastly/models/backend_response.rb +45 -2
  84. data/lib/fastly/models/director.rb +1 -1
  85. data/lib/fastly/models/director_response.rb +1 -1
  86. data/lib/fastly/models/domain_inspector_realtime_entry.rb +1 -1
  87. data/lib/fastly/models/error.rb +243 -0
  88. data/lib/fastly/models/error_response_data.rb +225 -0
  89. data/lib/fastly/models/event_attributes.rb +2 -2
  90. data/lib/fastly/models/invoice.rb +298 -0
  91. data/lib/fastly/models/invoice_response.rb +305 -0
  92. data/lib/fastly/models/invoicelineitems.rb +297 -0
  93. data/lib/fastly/models/list_invoices_response.rb +234 -0
  94. data/lib/fastly/models/listinvoices.rb +227 -0
  95. data/lib/fastly/models/logging_scalyr_additional.rb +1 -1
  96. data/lib/fastly/models/logging_scalyr_response.rb +1 -1
  97. data/lib/fastly/models/metadata.rb +250 -0
  98. data/lib/fastly/models/origin_inspector_realtime_entry.rb +1 -1
  99. data/lib/fastly/models/pool_additional.rb +1 -1
  100. data/lib/fastly/models/pool_response.rb +1 -1
  101. data/lib/fastly/models/pool_response_post.rb +1 -1
  102. data/lib/fastly/models/pop.rb +2 -2
  103. data/lib/fastly/models/realtime_entry.rb +1 -1
  104. data/lib/fastly/models/realtime_entry_aggregated.rb +215 -5
  105. data/lib/fastly/models/realtime_measurements.rb +215 -5
  106. data/lib/fastly/models/relationship_customer_customer.rb +2 -4
  107. data/lib/fastly/models/relationship_tls_certificate.rb +1 -1
  108. data/lib/fastly/models/relationship_tls_configuration.rb +1 -1
  109. data/lib/fastly/models/request_settings_additional.rb +1 -0
  110. data/lib/fastly/models/request_settings_response.rb +6 -0
  111. data/lib/fastly/models/request_settings_response_all_of.rb +5 -0
  112. data/lib/fastly/models/results.rb +231 -1
  113. data/lib/fastly/models/service_detail.rb +1 -1
  114. data/lib/fastly/models/service_list_response.rb +2 -2
  115. data/lib/fastly/models/service_list_response_all_of.rb +2 -2
  116. data/lib/fastly/models/service_response.rb +1 -1
  117. data/lib/fastly/models/service_response_all_of.rb +1 -1
  118. data/lib/fastly/models/tls_configuration_response_attributes.rb +1 -1
  119. data/lib/fastly/models/tls_configuration_response_attributes_all_of.rb +1 -1
  120. data/lib/fastly/models/tls_csr.rb +216 -0
  121. data/lib/fastly/models/tls_csr_data.rb +236 -0
  122. data/lib/fastly/models/tls_csr_data_attributes.rb +358 -0
  123. data/lib/fastly/models/tls_csr_error_response.rb +218 -0
  124. data/lib/fastly/models/tls_csr_response.rb +216 -0
  125. data/lib/fastly/models/tls_csr_response_attributes.rb +217 -0
  126. data/lib/fastly/models/tls_csr_response_data.rb +245 -0
  127. data/lib/fastly/models/tls_subscription_data_attributes.rb +2 -2
  128. data/lib/fastly/models/tls_subscription_response_attributes.rb +14 -4
  129. data/lib/fastly/models/tls_subscription_response_attributes_all_of.rb +14 -4
  130. data/lib/fastly/models/type_tls_csr.rb +34 -0
  131. data/lib/fastly/version.rb +1 -1
  132. data/lib/fastly.rb +19 -1
  133. data/sig.json +1 -1
  134. metadata +41 -5
@@ -0,0 +1,250 @@
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://developer.fastly.com/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
+ # Pagination metadata
16
+ class Metadata
17
+ # The token used to request the next set of results.
18
+ attr_accessor :next_cursor
19
+
20
+ # The number of invoices included in the response.
21
+ attr_accessor :limit
22
+
23
+ # The sort order of the invoices in the response.
24
+ attr_accessor :sort
25
+
26
+ # Total number of records available on the backend.
27
+ attr_accessor :total
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'next_cursor' => :'next_cursor',
33
+ :'limit' => :'limit',
34
+ :'sort' => :'sort',
35
+ :'total' => :'total'
36
+ }
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.fastly_types
46
+ {
47
+ :'next_cursor' => :'String',
48
+ :'limit' => :'Integer',
49
+ :'sort' => :'String',
50
+ :'total' => :'Integer'
51
+ }
52
+ end
53
+
54
+ # List of attributes with nullable: true
55
+ def self.fastly_nullable
56
+ Set.new([
57
+ ])
58
+ end
59
+
60
+ # Initializes the object
61
+ # @param [Hash] attributes Model attributes in the form of hash
62
+ def initialize(attributes = {})
63
+ if (!attributes.is_a?(Hash))
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::Metadata` initialize method"
65
+ end
66
+
67
+ # check to see if the attribute exists and convert string to symbol for hash key
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!self.class.attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::Metadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'next_cursor')
76
+ self.next_cursor = attributes[:'next_cursor']
77
+ end
78
+
79
+ if attributes.key?(:'limit')
80
+ self.limit = attributes[:'limit']
81
+ end
82
+
83
+ if attributes.key?(:'sort')
84
+ self.sort = attributes[:'sort']
85
+ else
86
+ self.sort = 'billing_start_date'
87
+ end
88
+
89
+ if attributes.key?(:'total')
90
+ self.total = attributes[:'total']
91
+ end
92
+ end
93
+
94
+ # Show invalid properties with the reasons. Usually used together with valid?
95
+ # @return Array for valid properties with the reasons
96
+ def list_invalid_properties
97
+ invalid_properties = Array.new
98
+ invalid_properties
99
+ end
100
+
101
+ # Check to see if the all the properties in the model are valid
102
+ # @return true if the model is valid
103
+ def valid?
104
+ true
105
+ end
106
+
107
+ # Checks equality by comparing each attribute.
108
+ # @param [Object] Object to be compared
109
+ def ==(o)
110
+ return true if self.equal?(o)
111
+ self.class == o.class &&
112
+ next_cursor == o.next_cursor &&
113
+ limit == o.limit &&
114
+ sort == o.sort &&
115
+ total == o.total
116
+ end
117
+
118
+ # @see the `==` method
119
+ # @param [Object] Object to be compared
120
+ def eql?(o)
121
+ self == o
122
+ end
123
+
124
+ # Calculates hash code according to all attributes.
125
+ # @return [Integer] Hash code
126
+ def hash
127
+ [next_cursor, limit, sort, total].hash
128
+ end
129
+
130
+ # Builds the object from hash
131
+ # @param [Hash] attributes Model attributes in the form of hash
132
+ # @return [Object] Returns the model itself
133
+ def self.build_from_hash(attributes)
134
+ new.build_from_hash(attributes)
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ self.class.fastly_types.each_pair do |key, type|
143
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
144
+ self.send("#{key}=", nil)
145
+ elsif type =~ /\AArray<(.*)>/i
146
+ # check to ensure the input is an array given that the attribute
147
+ # is documented as an array but the input is not
148
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
150
+ end
151
+ elsif !attributes[self.class.attribute_map[key]].nil?
152
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
153
+ end
154
+ end
155
+
156
+ self
157
+ end
158
+
159
+ # Deserializes the data based on type
160
+ # @param string type Data type
161
+ # @param string value Value to be deserialized
162
+ # @return [Object] Deserialized data
163
+ def _deserialize(type, value)
164
+ case type.to_sym
165
+ when :Time
166
+ Time.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :Boolean
176
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ # models (e.g. Pet) or oneOf
197
+ klass = Fastly.const_get(type)
198
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ if value.nil?
221
+ is_nullable = self.class.fastly_nullable.include?(attr)
222
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
+ end
224
+
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+
250
+ end
@@ -19,7 +19,7 @@ module Fastly
19
19
  # Groups [measurements](#measurements-data-model) by backend name.
20
20
  attr_accessor :aggregated
21
21
 
22
- # Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](/reference/api/utils/pops/) for details about POP identifiers.
22
+ # Groups [measurements](#measurements-data-model) by POP, then backend name. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details about POP identifiers.
23
23
  attr_accessor :datacenter
24
24
 
25
25
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -16,7 +16,7 @@ module Fastly
16
16
  # Name for the Pool.
17
17
  attr_accessor :name
18
18
 
19
- # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding.
19
+ # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding.
20
20
  attr_accessor :shield
21
21
 
22
22
  # Condition which, if met, will select this configuration during a request. Optional.
@@ -44,7 +44,7 @@ module Fastly
44
44
  # Name for the Pool.
45
45
  attr_accessor :name
46
46
 
47
- # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding.
47
+ # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding.
48
48
  attr_accessor :shield
49
49
 
50
50
  # Condition which, if met, will select this configuration during a request. Optional.
@@ -44,7 +44,7 @@ module Fastly
44
44
  # Name for the Pool.
45
45
  attr_accessor :name
46
46
 
47
- # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](/reference/api/utils/pops/) to get a list of available POPs used for shielding.
47
+ # Selected POP to serve as a shield for the servers. Defaults to `null` meaning no origin shielding if not set. Refer to the [POPs API endpoint](https://www.fastly.com/documentation/reference/api/utils/pops/) to get a list of available POPs used for shielding.
48
48
  attr_accessor :shield
49
49
 
50
50
  # Condition which, if met, will select this configuration during a request. Optional.
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class Pop
16
- # the three-letter code for the [POP](https://developer.fastly.com/learning/concepts/pop/)
16
+ # the three-letter code for the [POP](https://www.fastly.com/documentation/learning/concepts/pop/)
17
17
  attr_accessor :code
18
18
 
19
19
  # the name of the POP
@@ -31,7 +31,7 @@ module Fastly
31
31
 
32
32
  attr_accessor :coordinates
33
33
 
34
- # the name of the [shield code](https://developer.fastly.com/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding
34
+ # the name of the [shield code](https://www.fastly.com/documentation/learning/concepts/shielding/#choosing-a-shield-location) if this POP is suitable for shielding
35
35
  attr_accessor :shield
36
36
 
37
37
  class EnumAttributeValidator
@@ -18,7 +18,7 @@ module Fastly
18
18
 
19
19
  attr_accessor :aggregated
20
20
 
21
- # Groups [measurements](#measurements-data-model) by POP. See the [POPs API](/reference/api/utils/pops/) for details of POP identifiers.
21
+ # Groups [measurements](#measurements-data-model) by POP. See the [POPs API](https://www.fastly.com/documentation/reference/api/utils/pops/) for details of POP identifiers.
22
22
  attr_accessor :datacenter
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -56,7 +56,7 @@ module Fastly
56
56
  # Total amount of time spent processing cache misses (in seconds).
57
57
  attr_accessor :miss_time
58
58
 
59
- # A histogram. Each key represents the upper bound of a span of 10 milliseconds and the values represent the number of requests to origin during that 10ms period. Any origin request that takes more than 60 seconds to return will be in the 60000 bucket.
59
+ # A histogram. The value in each bucket is the number of requests to the origin whose responses arrived during the time period represented by the bucket. The key of each bucket represents the upper bound (in response time) of that bucket. The buckets vary in width and cover the time periods 0-10ms (in 1ms increments), 10-250ms (in 10ms increments), 250-1,000ms (in 50ms increments), 1,000-3,000ms (in 100ms increments), 3,000-10,000ms (in 500 ms increments), 10,000-20,000ms (in 1,000ms increments), 20,000-60,000ms (in 5,000ms increments), and 60,000ms through infinity (in a single bucket).
60
60
  attr_accessor :miss_histogram
61
61
 
62
62
  # The total number of requests that were received for your service by Fastly.
@@ -695,6 +695,69 @@ module Fastly
695
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
696
  attr_accessor :bot_challenge_complete_tokens_issued
697
697
 
698
+ # The number of times the downgrade action was taken. The downgrade action restricts the client to http1.
699
+ attr_accessor :ddos_action_downgrade
700
+
701
+ # The number of connections the downgrade action was applied to. The downgrade action restricts the connection to http1.
702
+ attr_accessor :ddos_action_downgraded_connections
703
+
704
+ # Number of cache hits for a VCL service running on Compute.
705
+ attr_accessor :vcl_on_compute_hit_requests
706
+
707
+ # Number of cache misses for a VCL service running on Compute.
708
+ attr_accessor :vcl_on_compute_miss_requests
709
+
710
+ # Number of requests that passed through the CDN without being cached for a VCL service running on Compute.
711
+ attr_accessor :vcl_on_compute_pass_requests
712
+
713
+ # Number of cache errors for a VCL service running on Compute.
714
+ attr_accessor :vcl_on_compute_error_requests
715
+
716
+ # Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service running on Compute.
717
+ attr_accessor :vcl_on_compute_synth_requests
718
+
719
+ # Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service running on Compute.
720
+ attr_accessor :vcl_on_compute_edge_hit_requests
721
+
722
+ # Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service running on Compute.
723
+ attr_accessor :vcl_on_compute_edge_miss_requests
724
+
725
+ # Number of cache hits for a VCL service.
726
+ attr_accessor :all_hit_requests
727
+
728
+ # Number of cache misses for a VCL service.
729
+ attr_accessor :all_miss_requests
730
+
731
+ # Number of requests that passed through the CDN without being cached for a VCL service.
732
+ attr_accessor :all_pass_requests
733
+
734
+ # Number of cache errors for a VCL service.
735
+ attr_accessor :all_error_requests
736
+
737
+ # Number of requests that returned a synthetic response (i.e., response objects created with the `synthetic` VCL statement) for a VCL service.
738
+ attr_accessor :all_synth_requests
739
+
740
+ # Number of requests sent by end users to Fastly that resulted in a hit at the edge for a VCL service.
741
+ attr_accessor :all_edge_hit_requests
742
+
743
+ # Number of requests sent by end users to Fastly that resulted in a miss at the edge for a VCL service.
744
+ attr_accessor :all_edge_miss_requests
745
+
746
+ # Number of \"Informational\" category status codes delivered for all sources.
747
+ attr_accessor :all_status_1xx
748
+
749
+ # Number of \"Success\" status codes delivered for all sources.
750
+ attr_accessor :all_status_2xx
751
+
752
+ # Number of \"Redirection\" codes delivered for all sources.
753
+ attr_accessor :all_status_3xx
754
+
755
+ # Number of \"Client Error\" codes delivered for all sources.
756
+ attr_accessor :all_status_4xx
757
+
758
+ # Number of \"Server Error\" codes delivered for all sources.
759
+ attr_accessor :all_status_5xx
760
+
698
761
  # Attribute mapping from ruby-style variable name to JSON key.
699
762
  def self.attribute_map
700
763
  {
@@ -924,7 +987,28 @@ module Fastly
924
987
  :'bot_challenges_issued' => :'bot_challenges_issued',
925
988
  :'bot_challenges_succeeded' => :'bot_challenges_succeeded',
926
989
  :'bot_challenges_failed' => :'bot_challenges_failed',
927
- :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued'
990
+ :'bot_challenge_complete_tokens_issued' => :'bot_challenge_complete_tokens_issued',
991
+ :'ddos_action_downgrade' => :'ddos_action_downgrade',
992
+ :'ddos_action_downgraded_connections' => :'ddos_action_downgraded_connections',
993
+ :'vcl_on_compute_hit_requests' => :'vcl_on_compute_hit_requests',
994
+ :'vcl_on_compute_miss_requests' => :'vcl_on_compute_miss_requests',
995
+ :'vcl_on_compute_pass_requests' => :'vcl_on_compute_pass_requests',
996
+ :'vcl_on_compute_error_requests' => :'vcl_on_compute_error_requests',
997
+ :'vcl_on_compute_synth_requests' => :'vcl_on_compute_synth_requests',
998
+ :'vcl_on_compute_edge_hit_requests' => :'vcl_on_compute_edge_hit_requests',
999
+ :'vcl_on_compute_edge_miss_requests' => :'vcl_on_compute_edge_miss_requests',
1000
+ :'all_hit_requests' => :'all_hit_requests',
1001
+ :'all_miss_requests' => :'all_miss_requests',
1002
+ :'all_pass_requests' => :'all_pass_requests',
1003
+ :'all_error_requests' => :'all_error_requests',
1004
+ :'all_synth_requests' => :'all_synth_requests',
1005
+ :'all_edge_hit_requests' => :'all_edge_hit_requests',
1006
+ :'all_edge_miss_requests' => :'all_edge_miss_requests',
1007
+ :'all_status_1xx' => :'all_status_1xx',
1008
+ :'all_status_2xx' => :'all_status_2xx',
1009
+ :'all_status_3xx' => :'all_status_3xx',
1010
+ :'all_status_4xx' => :'all_status_4xx',
1011
+ :'all_status_5xx' => :'all_status_5xx'
928
1012
  }
929
1013
  end
930
1014
 
@@ -1162,7 +1246,28 @@ module Fastly
1162
1246
  :'bot_challenges_issued' => :'Integer',
1163
1247
  :'bot_challenges_succeeded' => :'Integer',
1164
1248
  :'bot_challenges_failed' => :'Integer',
1165
- :'bot_challenge_complete_tokens_issued' => :'Integer'
1249
+ :'bot_challenge_complete_tokens_issued' => :'Integer',
1250
+ :'ddos_action_downgrade' => :'Integer',
1251
+ :'ddos_action_downgraded_connections' => :'Integer',
1252
+ :'vcl_on_compute_hit_requests' => :'Integer',
1253
+ :'vcl_on_compute_miss_requests' => :'Integer',
1254
+ :'vcl_on_compute_pass_requests' => :'Integer',
1255
+ :'vcl_on_compute_error_requests' => :'Integer',
1256
+ :'vcl_on_compute_synth_requests' => :'Integer',
1257
+ :'vcl_on_compute_edge_hit_requests' => :'Integer',
1258
+ :'vcl_on_compute_edge_miss_requests' => :'Integer',
1259
+ :'all_hit_requests' => :'Integer',
1260
+ :'all_miss_requests' => :'Integer',
1261
+ :'all_pass_requests' => :'Integer',
1262
+ :'all_error_requests' => :'Integer',
1263
+ :'all_synth_requests' => :'Integer',
1264
+ :'all_edge_hit_requests' => :'Integer',
1265
+ :'all_edge_miss_requests' => :'Integer',
1266
+ :'all_status_1xx' => :'Integer',
1267
+ :'all_status_2xx' => :'Integer',
1268
+ :'all_status_3xx' => :'Integer',
1269
+ :'all_status_4xx' => :'Integer',
1270
+ :'all_status_5xx' => :'Integer'
1166
1271
  }
1167
1272
  end
1168
1273
 
@@ -2103,6 +2208,90 @@ module Fastly
2103
2208
  if attributes.key?(:'bot_challenge_complete_tokens_issued')
2104
2209
  self.bot_challenge_complete_tokens_issued = attributes[:'bot_challenge_complete_tokens_issued']
2105
2210
  end
2211
+
2212
+ if attributes.key?(:'ddos_action_downgrade')
2213
+ self.ddos_action_downgrade = attributes[:'ddos_action_downgrade']
2214
+ end
2215
+
2216
+ if attributes.key?(:'ddos_action_downgraded_connections')
2217
+ self.ddos_action_downgraded_connections = attributes[:'ddos_action_downgraded_connections']
2218
+ end
2219
+
2220
+ if attributes.key?(:'vcl_on_compute_hit_requests')
2221
+ self.vcl_on_compute_hit_requests = attributes[:'vcl_on_compute_hit_requests']
2222
+ end
2223
+
2224
+ if attributes.key?(:'vcl_on_compute_miss_requests')
2225
+ self.vcl_on_compute_miss_requests = attributes[:'vcl_on_compute_miss_requests']
2226
+ end
2227
+
2228
+ if attributes.key?(:'vcl_on_compute_pass_requests')
2229
+ self.vcl_on_compute_pass_requests = attributes[:'vcl_on_compute_pass_requests']
2230
+ end
2231
+
2232
+ if attributes.key?(:'vcl_on_compute_error_requests')
2233
+ self.vcl_on_compute_error_requests = attributes[:'vcl_on_compute_error_requests']
2234
+ end
2235
+
2236
+ if attributes.key?(:'vcl_on_compute_synth_requests')
2237
+ self.vcl_on_compute_synth_requests = attributes[:'vcl_on_compute_synth_requests']
2238
+ end
2239
+
2240
+ if attributes.key?(:'vcl_on_compute_edge_hit_requests')
2241
+ self.vcl_on_compute_edge_hit_requests = attributes[:'vcl_on_compute_edge_hit_requests']
2242
+ end
2243
+
2244
+ if attributes.key?(:'vcl_on_compute_edge_miss_requests')
2245
+ self.vcl_on_compute_edge_miss_requests = attributes[:'vcl_on_compute_edge_miss_requests']
2246
+ end
2247
+
2248
+ if attributes.key?(:'all_hit_requests')
2249
+ self.all_hit_requests = attributes[:'all_hit_requests']
2250
+ end
2251
+
2252
+ if attributes.key?(:'all_miss_requests')
2253
+ self.all_miss_requests = attributes[:'all_miss_requests']
2254
+ end
2255
+
2256
+ if attributes.key?(:'all_pass_requests')
2257
+ self.all_pass_requests = attributes[:'all_pass_requests']
2258
+ end
2259
+
2260
+ if attributes.key?(:'all_error_requests')
2261
+ self.all_error_requests = attributes[:'all_error_requests']
2262
+ end
2263
+
2264
+ if attributes.key?(:'all_synth_requests')
2265
+ self.all_synth_requests = attributes[:'all_synth_requests']
2266
+ end
2267
+
2268
+ if attributes.key?(:'all_edge_hit_requests')
2269
+ self.all_edge_hit_requests = attributes[:'all_edge_hit_requests']
2270
+ end
2271
+
2272
+ if attributes.key?(:'all_edge_miss_requests')
2273
+ self.all_edge_miss_requests = attributes[:'all_edge_miss_requests']
2274
+ end
2275
+
2276
+ if attributes.key?(:'all_status_1xx')
2277
+ self.all_status_1xx = attributes[:'all_status_1xx']
2278
+ end
2279
+
2280
+ if attributes.key?(:'all_status_2xx')
2281
+ self.all_status_2xx = attributes[:'all_status_2xx']
2282
+ end
2283
+
2284
+ if attributes.key?(:'all_status_3xx')
2285
+ self.all_status_3xx = attributes[:'all_status_3xx']
2286
+ end
2287
+
2288
+ if attributes.key?(:'all_status_4xx')
2289
+ self.all_status_4xx = attributes[:'all_status_4xx']
2290
+ end
2291
+
2292
+ if attributes.key?(:'all_status_5xx')
2293
+ self.all_status_5xx = attributes[:'all_status_5xx']
2294
+ end
2106
2295
  end
2107
2296
 
2108
2297
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -2349,7 +2538,28 @@ module Fastly
2349
2538
  bot_challenges_issued == o.bot_challenges_issued &&
2350
2539
  bot_challenges_succeeded == o.bot_challenges_succeeded &&
2351
2540
  bot_challenges_failed == o.bot_challenges_failed &&
2352
- bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued
2541
+ bot_challenge_complete_tokens_issued == o.bot_challenge_complete_tokens_issued &&
2542
+ ddos_action_downgrade == o.ddos_action_downgrade &&
2543
+ ddos_action_downgraded_connections == o.ddos_action_downgraded_connections &&
2544
+ vcl_on_compute_hit_requests == o.vcl_on_compute_hit_requests &&
2545
+ vcl_on_compute_miss_requests == o.vcl_on_compute_miss_requests &&
2546
+ vcl_on_compute_pass_requests == o.vcl_on_compute_pass_requests &&
2547
+ vcl_on_compute_error_requests == o.vcl_on_compute_error_requests &&
2548
+ vcl_on_compute_synth_requests == o.vcl_on_compute_synth_requests &&
2549
+ vcl_on_compute_edge_hit_requests == o.vcl_on_compute_edge_hit_requests &&
2550
+ vcl_on_compute_edge_miss_requests == o.vcl_on_compute_edge_miss_requests &&
2551
+ all_hit_requests == o.all_hit_requests &&
2552
+ all_miss_requests == o.all_miss_requests &&
2553
+ all_pass_requests == o.all_pass_requests &&
2554
+ all_error_requests == o.all_error_requests &&
2555
+ all_synth_requests == o.all_synth_requests &&
2556
+ all_edge_hit_requests == o.all_edge_hit_requests &&
2557
+ all_edge_miss_requests == o.all_edge_miss_requests &&
2558
+ all_status_1xx == o.all_status_1xx &&
2559
+ all_status_2xx == o.all_status_2xx &&
2560
+ all_status_3xx == o.all_status_3xx &&
2561
+ all_status_4xx == o.all_status_4xx &&
2562
+ all_status_5xx == o.all_status_5xx
2353
2563
  end
2354
2564
 
2355
2565
  # @see the `==` method
@@ -2361,7 +2571,7 @@ module Fastly
2361
2571
  # Calculates hash code according to all attributes.
2362
2572
  # @return [Integer] Hash code
2363
2573
  def 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
2574
+ [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, ddos_action_downgrade, ddos_action_downgraded_connections, vcl_on_compute_hit_requests, vcl_on_compute_miss_requests, vcl_on_compute_pass_requests, vcl_on_compute_error_requests, vcl_on_compute_synth_requests, vcl_on_compute_edge_hit_requests, vcl_on_compute_edge_miss_requests, all_hit_requests, all_miss_requests, all_pass_requests, all_error_requests, all_synth_requests, all_edge_hit_requests, all_edge_miss_requests, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx].hash
2365
2575
  end
2366
2576
 
2367
2577
  # Builds the object from hash