fastly 7.1.0 → 7.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/Gemfile.lock +2 -2
  4. data/README.md +6 -5
  5. data/docs/EventsApi.md +8 -0
  6. data/docs/HistoricalDdos.md +13 -0
  7. data/docs/HistoricalDdosMeta.md +13 -0
  8. data/docs/HistoricalFieldResultsAttributes.md +9 -0
  9. data/docs/KvStoreApi.md +15 -15
  10. data/docs/LoggingLogentriesAdditional.md +1 -1
  11. data/docs/LoggingLogentriesApi.md +4 -4
  12. data/docs/LoggingLogentriesResponse.md +1 -1
  13. data/docs/PlatformDdosDataItems.md +10 -0
  14. data/docs/PlatformDdosEntry.md +10 -0
  15. data/docs/PlatformDdosResponse.md +13 -0
  16. data/docs/PlatformDdosResponseAllOf.md +10 -0
  17. data/docs/RealtimeEntryAggregated.md +9 -0
  18. data/docs/RealtimeMeasurements.md +9 -0
  19. data/docs/Results.md +9 -0
  20. data/docs/SchemasSnippetResponse.md +1 -1
  21. data/docs/SchemasSnippetResponseCommon.md +15 -0
  22. data/docs/Snippet.md +1 -1
  23. data/docs/SnippetAllOf.md +10 -0
  24. data/docs/SnippetApi.md +6 -6
  25. data/docs/SnippetCommon.md +13 -0
  26. data/docs/SnippetResponse.md +1 -1
  27. data/docs/SnippetResponseCommon.md +15 -0
  28. data/docs/{SnippetResponseAllOf.md → SnippetResponseCommonAllOf.md} +1 -1
  29. data/docs/SnippetResponsePost.md +20 -0
  30. data/docs/SnippetWithDynamicNumber.md +14 -0
  31. data/docs/SnippetWithDynamicNumberAllOf.md +10 -0
  32. data/docs/ValuesDdos.md +15 -0
  33. data/docs/WholePlatformDdosHistoricalApi.md +56 -0
  34. data/lib/fastly/api/events_api.rb +12 -0
  35. data/lib/fastly/api/kv_store_api.rb +14 -14
  36. data/lib/fastly/api/logging_logentries_api.rb +4 -4
  37. data/lib/fastly/api/snippet_api.rb +17 -17
  38. data/lib/fastly/api/whole_platform_ddos_historical_api.rb +89 -0
  39. data/lib/fastly/configuration.rb +6 -0
  40. data/lib/fastly/models/historical_ddos.rb +249 -0
  41. data/lib/fastly/models/historical_ddos_meta.rb +248 -0
  42. data/lib/fastly/models/historical_field_results_attributes.rb +91 -1
  43. data/lib/fastly/models/logging_logentries_additional.rb +1 -1
  44. data/lib/fastly/models/logging_logentries_response.rb +1 -1
  45. data/lib/fastly/models/platform_ddos_data_items.rb +216 -0
  46. data/lib/fastly/models/platform_ddos_entry.rb +219 -0
  47. data/lib/fastly/models/platform_ddos_response.rb +257 -0
  48. data/lib/fastly/models/platform_ddos_response_all_of.rb +219 -0
  49. data/lib/fastly/models/realtime_entry_aggregated.rb +94 -4
  50. data/lib/fastly/models/realtime_measurements.rb +94 -4
  51. data/lib/fastly/models/results.rb +94 -4
  52. data/lib/fastly/models/schemas_snippet_response.rb +25 -26
  53. data/lib/fastly/models/schemas_snippet_response_common.rb +276 -0
  54. data/lib/fastly/models/snippet.rb +34 -26
  55. data/lib/fastly/models/snippet_all_of.rb +251 -0
  56. data/lib/fastly/models/snippet_common.rb +283 -0
  57. data/lib/fastly/models/snippet_response.rb +24 -25
  58. data/lib/fastly/models/snippet_response_common.rb +276 -0
  59. data/lib/fastly/models/{snippet_response_all_of.rb → snippet_response_common_all_of.rb} +3 -3
  60. data/lib/fastly/models/snippet_response_post.rb +374 -0
  61. data/lib/fastly/models/snippet_with_dynamic_number.rb +313 -0
  62. data/lib/fastly/models/snippet_with_dynamic_number_all_of.rb +251 -0
  63. data/lib/fastly/models/values_ddos.rb +268 -0
  64. data/lib/fastly/version.rb +1 -1
  65. data/lib/fastly.rb +16 -1
  66. data/sig.json +1 -1
  67. metadata +34 -4
@@ -0,0 +1,251 @@
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
+ class SnippetWithDynamicNumberAllOf
16
+ # Sets the snippet version.
17
+ attr_accessor :dynamic
18
+
19
+ class EnumAttributeValidator
20
+ attr_reader :datatype
21
+ attr_reader :allowable_values
22
+
23
+ def initialize(datatype, allowable_values)
24
+ @allowable_values = allowable_values.map do |value|
25
+ case datatype.to_s
26
+ when /Integer/i
27
+ value.to_i
28
+ when /Float/i
29
+ value.to_f
30
+ else
31
+ value
32
+ end
33
+ end
34
+ end
35
+
36
+ def valid?(value)
37
+ !value || allowable_values.include?(value)
38
+ end
39
+ end
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'dynamic' => :'dynamic'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.fastly_types
55
+ {
56
+ :'dynamic' => :'Float'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.fastly_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::SnippetWithDynamicNumberAllOf` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::SnippetWithDynamicNumberAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'dynamic')
82
+ self.dynamic = attributes[:'dynamic']
83
+ end
84
+ end
85
+
86
+ # Show invalid properties with the reasons. Usually used together with valid?
87
+ # @return Array for valid properties with the reasons
88
+ def list_invalid_properties
89
+ invalid_properties = Array.new
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ dynamic_validator = EnumAttributeValidator.new('Float', [0, 1])
97
+ return false unless dynamic_validator.valid?(@dynamic)
98
+ true
99
+ end
100
+
101
+ # Custom attribute writer method checking allowed values (enum).
102
+ # @param [Object] dynamic Object to be assigned
103
+ def dynamic=(dynamic)
104
+ validator = EnumAttributeValidator.new('Float', [0, 1])
105
+ unless validator.valid?(dynamic)
106
+ fail ArgumentError, "invalid value for \"dynamic\", must be one of #{validator.allowable_values}."
107
+ end
108
+ @dynamic = dynamic
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ dynamic == o.dynamic
117
+ end
118
+
119
+ # @see the `==` method
120
+ # @param [Object] Object to be compared
121
+ def eql?(o)
122
+ self == o
123
+ end
124
+
125
+ # Calculates hash code according to all attributes.
126
+ # @return [Integer] Hash code
127
+ def hash
128
+ [dynamic].hash
129
+ end
130
+
131
+ # Builds the object from hash
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ # @return [Object] Returns the model itself
134
+ def self.build_from_hash(attributes)
135
+ new.build_from_hash(attributes)
136
+ end
137
+
138
+ # Builds the object from hash
139
+ # @param [Hash] attributes Model attributes in the form of hash
140
+ # @return [Object] Returns the model itself
141
+ def build_from_hash(attributes)
142
+ return nil unless attributes.is_a?(Hash)
143
+ self.class.fastly_types.each_pair do |key, type|
144
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
145
+ self.send("#{key}=", nil)
146
+ elsif type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
150
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
151
+ end
152
+ elsif !attributes[self.class.attribute_map[key]].nil?
153
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
154
+ end
155
+ end
156
+
157
+ self
158
+ end
159
+
160
+ # Deserializes the data based on type
161
+ # @param string type Data type
162
+ # @param string value Value to be deserialized
163
+ # @return [Object] Deserialized data
164
+ def _deserialize(type, value)
165
+ case type.to_sym
166
+ when :Time
167
+ Time.parse(value)
168
+ when :Date
169
+ Date.parse(value)
170
+ when :String
171
+ value.to_s
172
+ when :Integer
173
+ value.to_i
174
+ when :Float
175
+ value.to_f
176
+ when :Boolean
177
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
178
+ true
179
+ else
180
+ false
181
+ end
182
+ when :Object
183
+ # generic object (usually a Hash), return directly
184
+ value
185
+ when /\AArray<(?<inner_type>.+)>\z/
186
+ inner_type = Regexp.last_match[:inner_type]
187
+ value.map { |v| _deserialize(inner_type, v) }
188
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
189
+ k_type = Regexp.last_match[:k_type]
190
+ v_type = Regexp.last_match[:v_type]
191
+ {}.tap do |hash|
192
+ value.each do |k, v|
193
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
194
+ end
195
+ end
196
+ else # model
197
+ # models (e.g. Pet) or oneOf
198
+ klass = Fastly.const_get(type)
199
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
200
+ end
201
+ end
202
+
203
+ # Returns the string representation of the object
204
+ # @return [String] String presentation of the object
205
+ def to_s
206
+ to_hash.to_s
207
+ end
208
+
209
+ # to_body is an alias to to_hash (backward compatibility)
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_body
212
+ to_hash
213
+ end
214
+
215
+ # Returns the object in the form of hash
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_hash
218
+ hash = {}
219
+ self.class.attribute_map.each_pair do |attr, param|
220
+ value = self.send(attr)
221
+ if value.nil?
222
+ is_nullable = self.class.fastly_nullable.include?(attr)
223
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
224
+ end
225
+
226
+ hash[param] = _to_hash(value)
227
+ end
228
+ hash
229
+ end
230
+
231
+ # Outputs non-array value in the form of hash
232
+ # For object, use to_hash. Otherwise, just return the value
233
+ # @param [Object] value Any valid value
234
+ # @return [Hash] Returns the value in the form of hash
235
+ def _to_hash(value)
236
+ if value.is_a?(Array)
237
+ value.compact.map { |v| _to_hash(v) }
238
+ elsif value.is_a?(Hash)
239
+ {}.tap do |hash|
240
+ value.each { |k, v| hash[k] = _to_hash(v) }
241
+ end
242
+ elsif value.respond_to? :to_hash
243
+ value.to_hash
244
+ else
245
+ value
246
+ end
247
+ end
248
+
249
+ end
250
+
251
+ end
@@ -0,0 +1,268 @@
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
+ # The results of the query, optionally filtered and grouped over the requested timespan.
16
+ class ValuesDdos
17
+ # For HTTP/2, the number of connections the limit-streams action was applied to. The limit-streams action caps the allowed number of concurrent streams in a connection.
18
+ attr_accessor :ddos_action_limit_streams_connections
19
+
20
+ # For HTTP/2, the number of requests made on a connection for which the limit-streams action was taken. The limit-streams action caps the allowed number of concurrent streams in a connection.
21
+ attr_accessor :ddos_action_limit_streams_requests
22
+
23
+ # The number of times the tarpit-accept action was taken. The tarpit-accept action adds a delay when accepting future connections.
24
+ attr_accessor :ddos_action_tarpit_accept
25
+
26
+ # The number of times the tarpit action was taken. The tarpit action delays writing the response to the client.
27
+ attr_accessor :ddos_action_tarpit
28
+
29
+ # The number of times the close action was taken. The close action aborts the connection as soon as possible. The close action takes effect either right after accept, right after the client hello, or right after the response was sent.
30
+ attr_accessor :ddos_action_close
31
+
32
+ # 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).
33
+ attr_accessor :ddos_action_blackhole
34
+
35
+ # Attribute mapping from ruby-style variable name to JSON key.
36
+ def self.attribute_map
37
+ {
38
+ :'ddos_action_limit_streams_connections' => :'ddos_action_limit_streams_connections',
39
+ :'ddos_action_limit_streams_requests' => :'ddos_action_limit_streams_requests',
40
+ :'ddos_action_tarpit_accept' => :'ddos_action_tarpit_accept',
41
+ :'ddos_action_tarpit' => :'ddos_action_tarpit',
42
+ :'ddos_action_close' => :'ddos_action_close',
43
+ :'ddos_action_blackhole' => :'ddos_action_blackhole'
44
+ }
45
+ end
46
+
47
+ # Returns all the JSON keys this model knows about
48
+ def self.acceptable_attributes
49
+ attribute_map.values
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.fastly_types
54
+ {
55
+ :'ddos_action_limit_streams_connections' => :'Integer',
56
+ :'ddos_action_limit_streams_requests' => :'Integer',
57
+ :'ddos_action_tarpit_accept' => :'Integer',
58
+ :'ddos_action_tarpit' => :'Integer',
59
+ :'ddos_action_close' => :'Integer',
60
+ :'ddos_action_blackhole' => :'Integer'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.fastly_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::ValuesDdos` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!self.class.attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::ValuesDdos`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'ddos_action_limit_streams_connections')
86
+ self.ddos_action_limit_streams_connections = attributes[:'ddos_action_limit_streams_connections']
87
+ end
88
+
89
+ if attributes.key?(:'ddos_action_limit_streams_requests')
90
+ self.ddos_action_limit_streams_requests = attributes[:'ddos_action_limit_streams_requests']
91
+ end
92
+
93
+ if attributes.key?(:'ddos_action_tarpit_accept')
94
+ self.ddos_action_tarpit_accept = attributes[:'ddos_action_tarpit_accept']
95
+ end
96
+
97
+ if attributes.key?(:'ddos_action_tarpit')
98
+ self.ddos_action_tarpit = attributes[:'ddos_action_tarpit']
99
+ end
100
+
101
+ if attributes.key?(:'ddos_action_close')
102
+ self.ddos_action_close = attributes[:'ddos_action_close']
103
+ end
104
+
105
+ if attributes.key?(:'ddos_action_blackhole')
106
+ self.ddos_action_blackhole = attributes[:'ddos_action_blackhole']
107
+ end
108
+ end
109
+
110
+ # Show invalid properties with the reasons. Usually used together with valid?
111
+ # @return Array for valid properties with the reasons
112
+ def list_invalid_properties
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ true
121
+ end
122
+
123
+ # Checks equality by comparing each attribute.
124
+ # @param [Object] Object to be compared
125
+ def ==(o)
126
+ return true if self.equal?(o)
127
+ self.class == o.class &&
128
+ ddos_action_limit_streams_connections == o.ddos_action_limit_streams_connections &&
129
+ ddos_action_limit_streams_requests == o.ddos_action_limit_streams_requests &&
130
+ ddos_action_tarpit_accept == o.ddos_action_tarpit_accept &&
131
+ ddos_action_tarpit == o.ddos_action_tarpit &&
132
+ ddos_action_close == o.ddos_action_close &&
133
+ ddos_action_blackhole == o.ddos_action_blackhole
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(o)
139
+ self == o
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Integer] Hash code
144
+ def hash
145
+ [ddos_action_limit_streams_connections, ddos_action_limit_streams_requests, ddos_action_tarpit_accept, ddos_action_tarpit, ddos_action_close, ddos_action_blackhole].hash
146
+ end
147
+
148
+ # Builds the object from hash
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ # @return [Object] Returns the model itself
151
+ def self.build_from_hash(attributes)
152
+ new.build_from_hash(attributes)
153
+ end
154
+
155
+ # Builds the object from hash
156
+ # @param [Hash] attributes Model attributes in the form of hash
157
+ # @return [Object] Returns the model itself
158
+ def build_from_hash(attributes)
159
+ return nil unless attributes.is_a?(Hash)
160
+ self.class.fastly_types.each_pair do |key, type|
161
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
162
+ self.send("#{key}=", nil)
163
+ elsif type =~ /\AArray<(.*)>/i
164
+ # check to ensure the input is an array given that the attribute
165
+ # is documented as an array but the input is not
166
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
167
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
168
+ end
169
+ elsif !attributes[self.class.attribute_map[key]].nil?
170
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
171
+ end
172
+ end
173
+
174
+ self
175
+ end
176
+
177
+ # Deserializes the data based on type
178
+ # @param string type Data type
179
+ # @param string value Value to be deserialized
180
+ # @return [Object] Deserialized data
181
+ def _deserialize(type, value)
182
+ case type.to_sym
183
+ when :Time
184
+ Time.parse(value)
185
+ when :Date
186
+ Date.parse(value)
187
+ when :String
188
+ value.to_s
189
+ when :Integer
190
+ value.to_i
191
+ when :Float
192
+ value.to_f
193
+ when :Boolean
194
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
195
+ true
196
+ else
197
+ false
198
+ end
199
+ when :Object
200
+ # generic object (usually a Hash), return directly
201
+ value
202
+ when /\AArray<(?<inner_type>.+)>\z/
203
+ inner_type = Regexp.last_match[:inner_type]
204
+ value.map { |v| _deserialize(inner_type, v) }
205
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
206
+ k_type = Regexp.last_match[:k_type]
207
+ v_type = Regexp.last_match[:v_type]
208
+ {}.tap do |hash|
209
+ value.each do |k, v|
210
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
211
+ end
212
+ end
213
+ else # model
214
+ # models (e.g. Pet) or oneOf
215
+ klass = Fastly.const_get(type)
216
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
217
+ end
218
+ end
219
+
220
+ # Returns the string representation of the object
221
+ # @return [String] String presentation of the object
222
+ def to_s
223
+ to_hash.to_s
224
+ end
225
+
226
+ # to_body is an alias to to_hash (backward compatibility)
227
+ # @return [Hash] Returns the object in the form of hash
228
+ def to_body
229
+ to_hash
230
+ end
231
+
232
+ # Returns the object in the form of hash
233
+ # @return [Hash] Returns the object in the form of hash
234
+ def to_hash
235
+ hash = {}
236
+ self.class.attribute_map.each_pair do |attr, param|
237
+ value = self.send(attr)
238
+ if value.nil?
239
+ is_nullable = self.class.fastly_nullable.include?(attr)
240
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
241
+ end
242
+
243
+ hash[param] = _to_hash(value)
244
+ end
245
+ hash
246
+ end
247
+
248
+ # Outputs non-array value in the form of hash
249
+ # For object, use to_hash. Otherwise, just return the value
250
+ # @param [Object] value Any valid value
251
+ # @return [Hash] Returns the value in the form of hash
252
+ def _to_hash(value)
253
+ if value.is_a?(Array)
254
+ value.compact.map { |v| _to_hash(v) }
255
+ elsif value.is_a?(Hash)
256
+ {}.tap do |hash|
257
+ value.each { |k, v| hash[k] = _to_hash(v) }
258
+ end
259
+ elsif value.respond_to? :to_hash
260
+ value.to_hash
261
+ else
262
+ value
263
+ end
264
+ end
265
+
266
+ end
267
+
268
+ end
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '7.1.0'
12
+ VERSION = '7.2.0'
13
13
  end
data/lib/fastly.rb CHANGED
@@ -121,6 +121,8 @@ require 'fastly/models/healthcheck_response'
121
121
  require 'fastly/models/historical'
122
122
  require 'fastly/models/historical_aggregate_response'
123
123
  require 'fastly/models/historical_aggregate_response_all_of'
124
+ require 'fastly/models/historical_ddos'
125
+ require 'fastly/models/historical_ddos_meta'
124
126
  require 'fastly/models/historical_domains'
125
127
  require 'fastly/models/historical_domains_data'
126
128
  require 'fastly/models/historical_domains_meta'
@@ -299,6 +301,10 @@ require 'fastly/models/pagination_cursor_meta'
299
301
  require 'fastly/models/pagination_links'
300
302
  require 'fastly/models/pagination_meta'
301
303
  require 'fastly/models/permission'
304
+ require 'fastly/models/platform_ddos_data_items'
305
+ require 'fastly/models/platform_ddos_entry'
306
+ require 'fastly/models/platform_ddos_response'
307
+ require 'fastly/models/platform_ddos_response_all_of'
302
308
  require 'fastly/models/pool_additional'
303
309
  require 'fastly/models/pool_response'
304
310
  require 'fastly/models/pool_response_all_of'
@@ -431,6 +437,7 @@ require 'fastly/models/results'
431
437
  require 'fastly/models/role_user'
432
438
  require 'fastly/models/schemas_contact_response'
433
439
  require 'fastly/models/schemas_snippet_response'
440
+ require 'fastly/models/schemas_snippet_response_common'
434
441
  require 'fastly/models/schemas_user_response'
435
442
  require 'fastly/models/schemas_user_response_read_only'
436
443
  require 'fastly/models/schemas_vcl_response'
@@ -480,8 +487,14 @@ require 'fastly/models/settings'
480
487
  require 'fastly/models/settings_response'
481
488
  require 'fastly/models/signing_key'
482
489
  require 'fastly/models/snippet'
490
+ require 'fastly/models/snippet_all_of'
491
+ require 'fastly/models/snippet_common'
483
492
  require 'fastly/models/snippet_response'
484
- require 'fastly/models/snippet_response_all_of'
493
+ require 'fastly/models/snippet_response_common'
494
+ require 'fastly/models/snippet_response_common_all_of'
495
+ require 'fastly/models/snippet_response_post'
496
+ require 'fastly/models/snippet_with_dynamic_number'
497
+ require 'fastly/models/snippet_with_dynamic_number_all_of'
485
498
  require 'fastly/models/star'
486
499
  require 'fastly/models/star_data'
487
500
  require 'fastly/models/star_response'
@@ -600,6 +613,7 @@ require 'fastly/models/validator_result_data'
600
613
  require 'fastly/models/validator_result_data_attributes'
601
614
  require 'fastly/models/validator_result_data_attributes_messages'
602
615
  require 'fastly/models/values'
616
+ require 'fastly/models/values_ddos'
603
617
  require 'fastly/models/vcl'
604
618
  require 'fastly/models/vcl_diff'
605
619
  require 'fastly/models/vcl_response'
@@ -792,6 +806,7 @@ require 'fastly/api/waf_firewalls_api'
792
806
  require 'fastly/api/waf_rule_revisions_api'
793
807
  require 'fastly/api/waf_rules_api'
794
808
  require 'fastly/api/waf_tags_api'
809
+ require 'fastly/api/whole_platform_ddos_historical_api'
795
810
 
796
811
  module Fastly
797
812
  class << self
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "a5d4c17e", "D": "6ddfaf95"}
1
+ {"G": "ecaca45c", "D": "ffdeb163"}