fastly 5.1.1 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,226 @@
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 HistoricalFieldResultsAttributesAllOf
16
+ attr_accessor :service_id
17
+
18
+ attr_accessor :start_time
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'service_id' => :'service_id',
24
+ :'start_time' => :'start_time'
25
+ }
26
+ end
27
+
28
+ # Returns all the JSON keys this model knows about
29
+ def self.acceptable_attributes
30
+ attribute_map.values
31
+ end
32
+
33
+ # Attribute type mapping.
34
+ def self.fastly_types
35
+ {
36
+ :'service_id' => :'String',
37
+ :'start_time' => :'Integer'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.fastly_nullable
43
+ Set.new([
44
+ :'service_id',
45
+ ])
46
+ end
47
+
48
+ # Initializes the object
49
+ # @param [Hash] attributes Model attributes in the form of hash
50
+ def initialize(attributes = {})
51
+ if (!attributes.is_a?(Hash))
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::HistoricalFieldResultsAttributesAllOf` initialize method"
53
+ end
54
+
55
+ # check to see if the attribute exists and convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h|
57
+ if (!self.class.attribute_map.key?(k.to_sym))
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::HistoricalFieldResultsAttributesAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ end
60
+ h[k.to_sym] = v
61
+ }
62
+
63
+ if attributes.key?(:'service_id')
64
+ self.service_id = attributes[:'service_id']
65
+ end
66
+
67
+ if attributes.key?(:'start_time')
68
+ self.start_time = attributes[:'start_time']
69
+ end
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properties with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ invalid_properties
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ def valid?
82
+ true
83
+ end
84
+
85
+ # Checks equality by comparing each attribute.
86
+ # @param [Object] Object to be compared
87
+ def ==(o)
88
+ return true if self.equal?(o)
89
+ self.class == o.class &&
90
+ service_id == o.service_id &&
91
+ start_time == o.start_time
92
+ end
93
+
94
+ # @see the `==` method
95
+ # @param [Object] Object to be compared
96
+ def eql?(o)
97
+ self == o
98
+ end
99
+
100
+ # Calculates hash code according to all attributes.
101
+ # @return [Integer] Hash code
102
+ def hash
103
+ [service_id, start_time].hash
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def self.build_from_hash(attributes)
110
+ new.build_from_hash(attributes)
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def build_from_hash(attributes)
117
+ return nil unless attributes.is_a?(Hash)
118
+ self.class.fastly_types.each_pair do |key, type|
119
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
120
+ self.send("#{key}=", nil)
121
+ elsif type =~ /\AArray<(.*)>/i
122
+ # check to ensure the input is an array given that the attribute
123
+ # is documented as an array but the input is not
124
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
125
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
126
+ end
127
+ elsif !attributes[self.class.attribute_map[key]].nil?
128
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
129
+ end
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :Time
142
+ Time.parse(value)
143
+ when :Date
144
+ Date.parse(value)
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :Boolean
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else # model
172
+ # models (e.g. Pet) or oneOf
173
+ klass = Fastly.const_get(type)
174
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ if value.nil?
197
+ is_nullable = self.class.fastly_nullable.include?(attr)
198
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
199
+ end
200
+
201
+ hash[param] = _to_hash(value)
202
+ end
203
+ hash
204
+ end
205
+
206
+ # Outputs non-array value in the form of hash
207
+ # For object, use to_hash. Otherwise, just return the value
208
+ # @param [Object] value Any valid value
209
+ # @return [Hash] Returns the value in the form of hash
210
+ def _to_hash(value)
211
+ if value.is_a?(Array)
212
+ value.compact.map { |v| _to_hash(v) }
213
+ elsif value.is_a?(Hash)
214
+ {}.tap do |hash|
215
+ value.each { |k, v| hash[k] = _to_hash(v) }
216
+ end
217
+ elsif value.respond_to? :to_hash
218
+ value.to_hash
219
+ else
220
+ value
221
+ end
222
+ end
223
+
224
+ end
225
+
226
+ end
@@ -71,6 +71,9 @@ module Fastly
71
71
  # The total, actual amount of time used to process your requests, including active CPU time (in milliseconds).
72
72
  attr_accessor :compute_request_time_ms
73
73
 
74
+ # The total amount of request processing time you will be billed for, measured in 50 millisecond increments.
75
+ attr_accessor :compute_request_time_billed_ms
76
+
74
77
  # Number of requests from edge to the shield POP.
75
78
  attr_accessor :shield
76
79
 
@@ -608,17 +611,17 @@ module Fastly
608
611
  # Total published messages sent to end users.
609
612
  attr_accessor :fanout_send_publishes
610
613
 
611
- # The total number of class a operations for the object store.
612
- attr_accessor :object_store_class_a_operations
614
+ # The total number of class a operations for the KV store.
615
+ attr_accessor :kv_store_class_a_operations
613
616
 
614
- # The total number of class b operations for the object store.
615
- attr_accessor :object_store_class_b_operations
617
+ # The total number of class b operations for the KV store.
618
+ attr_accessor :kv_store_class_b_operations
616
619
 
617
- # Use object_store_class_b_operations.
618
- attr_accessor :object_store_read_requests
620
+ # Use kv_store_class_a_operations.
621
+ attr_accessor :object_store_class_a_operations
619
622
 
620
- # Use object_store_class_a_operations.
621
- attr_accessor :object_store_write_requests
623
+ # Use kv_store_class_b_operations.
624
+ attr_accessor :object_store_class_b_operations
622
625
 
623
626
  # Total header bytes received from end users over Fanout connections.
624
627
  attr_accessor :fanout_req_header_bytes
@@ -687,6 +690,7 @@ module Fastly
687
690
  :'compute_execution_time_ms' => :'compute_execution_time_ms',
688
691
  :'compute_ram_used' => :'compute_ram_used',
689
692
  :'compute_request_time_ms' => :'compute_request_time_ms',
693
+ :'compute_request_time_billed_ms' => :'compute_request_time_billed_ms',
690
694
  :'shield' => :'shield',
691
695
  :'ipv6' => :'ipv6',
692
696
  :'imgopto' => :'imgopto',
@@ -866,10 +870,10 @@ module Fastly
866
870
  :'websocket_resp_body_bytes' => :'websocket_resp_body_bytes',
867
871
  :'fanout_recv_publishes' => :'fanout_recv_publishes',
868
872
  :'fanout_send_publishes' => :'fanout_send_publishes',
873
+ :'kv_store_class_a_operations' => :'kv_store_class_a_operations',
874
+ :'kv_store_class_b_operations' => :'kv_store_class_b_operations',
869
875
  :'object_store_class_a_operations' => :'object_store_class_a_operations',
870
876
  :'object_store_class_b_operations' => :'object_store_class_b_operations',
871
- :'object_store_read_requests' => :'object_store_read_requests',
872
- :'object_store_write_requests' => :'object_store_write_requests',
873
877
  :'fanout_req_header_bytes' => :'fanout_req_header_bytes',
874
878
  :'fanout_req_body_bytes' => :'fanout_req_body_bytes',
875
879
  :'fanout_resp_header_bytes' => :'fanout_resp_header_bytes',
@@ -915,6 +919,7 @@ module Fastly
915
919
  :'compute_execution_time_ms' => :'Float',
916
920
  :'compute_ram_used' => :'Integer',
917
921
  :'compute_request_time_ms' => :'Float',
922
+ :'compute_request_time_billed_ms' => :'Float',
918
923
  :'shield' => :'Integer',
919
924
  :'ipv6' => :'Integer',
920
925
  :'imgopto' => :'Integer',
@@ -1094,10 +1099,10 @@ module Fastly
1094
1099
  :'websocket_resp_body_bytes' => :'Integer',
1095
1100
  :'fanout_recv_publishes' => :'Integer',
1096
1101
  :'fanout_send_publishes' => :'Integer',
1102
+ :'kv_store_class_a_operations' => :'Integer',
1103
+ :'kv_store_class_b_operations' => :'Integer',
1097
1104
  :'object_store_class_a_operations' => :'Integer',
1098
1105
  :'object_store_class_b_operations' => :'Integer',
1099
- :'object_store_read_requests' => :'Integer',
1100
- :'object_store_write_requests' => :'Integer',
1101
1106
  :'fanout_req_header_bytes' => :'Integer',
1102
1107
  :'fanout_req_body_bytes' => :'Integer',
1103
1108
  :'fanout_resp_header_bytes' => :'Integer',
@@ -1213,6 +1218,10 @@ module Fastly
1213
1218
  self.compute_request_time_ms = attributes[:'compute_request_time_ms']
1214
1219
  end
1215
1220
 
1221
+ if attributes.key?(:'compute_request_time_billed_ms')
1222
+ self.compute_request_time_billed_ms = attributes[:'compute_request_time_billed_ms']
1223
+ end
1224
+
1216
1225
  if attributes.key?(:'shield')
1217
1226
  self.shield = attributes[:'shield']
1218
1227
  end
@@ -1929,20 +1938,20 @@ module Fastly
1929
1938
  self.fanout_send_publishes = attributes[:'fanout_send_publishes']
1930
1939
  end
1931
1940
 
1932
- if attributes.key?(:'object_store_class_a_operations')
1933
- self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1941
+ if attributes.key?(:'kv_store_class_a_operations')
1942
+ self.kv_store_class_a_operations = attributes[:'kv_store_class_a_operations']
1934
1943
  end
1935
1944
 
1936
- if attributes.key?(:'object_store_class_b_operations')
1937
- self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1945
+ if attributes.key?(:'kv_store_class_b_operations')
1946
+ self.kv_store_class_b_operations = attributes[:'kv_store_class_b_operations']
1938
1947
  end
1939
1948
 
1940
- if attributes.key?(:'object_store_read_requests')
1941
- self.object_store_read_requests = attributes[:'object_store_read_requests']
1949
+ if attributes.key?(:'object_store_class_a_operations')
1950
+ self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1942
1951
  end
1943
1952
 
1944
- if attributes.key?(:'object_store_write_requests')
1945
- self.object_store_write_requests = attributes[:'object_store_write_requests']
1953
+ if attributes.key?(:'object_store_class_b_operations')
1954
+ self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1946
1955
  end
1947
1956
 
1948
1957
  if attributes.key?(:'fanout_req_header_bytes')
@@ -2043,6 +2052,7 @@ module Fastly
2043
2052
  compute_execution_time_ms == o.compute_execution_time_ms &&
2044
2053
  compute_ram_used == o.compute_ram_used &&
2045
2054
  compute_request_time_ms == o.compute_request_time_ms &&
2055
+ compute_request_time_billed_ms == o.compute_request_time_billed_ms &&
2046
2056
  shield == o.shield &&
2047
2057
  ipv6 == o.ipv6 &&
2048
2058
  imgopto == o.imgopto &&
@@ -2222,10 +2232,10 @@ module Fastly
2222
2232
  websocket_resp_body_bytes == o.websocket_resp_body_bytes &&
2223
2233
  fanout_recv_publishes == o.fanout_recv_publishes &&
2224
2234
  fanout_send_publishes == o.fanout_send_publishes &&
2235
+ kv_store_class_a_operations == o.kv_store_class_a_operations &&
2236
+ kv_store_class_b_operations == o.kv_store_class_b_operations &&
2225
2237
  object_store_class_a_operations == o.object_store_class_a_operations &&
2226
2238
  object_store_class_b_operations == o.object_store_class_b_operations &&
2227
- object_store_read_requests == o.object_store_read_requests &&
2228
- object_store_write_requests == o.object_store_write_requests &&
2229
2239
  fanout_req_header_bytes == o.fanout_req_header_bytes &&
2230
2240
  fanout_req_body_bytes == o.fanout_req_body_bytes &&
2231
2241
  fanout_resp_header_bytes == o.fanout_resp_header_bytes &&
@@ -2252,7 +2262,7 @@ module Fastly
2252
2262
  # Calculates hash code according to all attributes.
2253
2263
  # @return [Integer] Hash code
2254
2264
  def hash
2255
- [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, 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, object_store_class_a_operations, object_store_class_b_operations, object_store_read_requests, object_store_write_requests, 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
2265
+ [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
2256
2266
  end
2257
2267
 
2258
2268
  # Builds the object from hash
@@ -464,6 +464,9 @@ module Fastly
464
464
  # The total, actual amount of time used to process your requests, including active CPU time (in milliseconds).
465
465
  attr_accessor :compute_request_time_ms
466
466
 
467
+ # The total amount of request processing time you will be billed for, measured in 50 millisecond increments.
468
+ attr_accessor :compute_request_time_billed_ms
469
+
467
470
  # The amount of RAM used for your service by Fastly (in bytes).
468
471
  attr_accessor :compute_ram_used
469
472
 
@@ -602,17 +605,17 @@ module Fastly
602
605
  # Total published messages sent to end users.
603
606
  attr_accessor :fanout_send_publishes
604
607
 
605
- # The total number of class a operations for the object store.
606
- attr_accessor :object_store_class_a_operations
608
+ # The total number of class a operations for the KV store.
609
+ attr_accessor :kv_store_class_a_operations
607
610
 
608
- # The total number of class b operations for the object store.
609
- attr_accessor :object_store_class_b_operations
611
+ # The total number of class b operations for the KV store.
612
+ attr_accessor :kv_store_class_b_operations
610
613
 
611
- # Use object_store_class_b_operations.
612
- attr_accessor :object_store_read_requests
614
+ # Use kv_store_class_a_operations.
615
+ attr_accessor :object_store_class_a_operations
613
616
 
614
- # Use object_store_class_a_operations.
615
- attr_accessor :object_store_write_requests
617
+ # Use kv_store_class_b_operations.
618
+ attr_accessor :object_store_class_b_operations
616
619
 
617
620
  # Total header bytes received from end users over Fanout connections.
618
621
  attr_accessor :fanout_req_header_bytes
@@ -812,6 +815,7 @@ module Fastly
812
815
  :'segblock_shield_fetches' => :'segblock_shield_fetches',
813
816
  :'compute_requests' => :'compute_requests',
814
817
  :'compute_request_time_ms' => :'compute_request_time_ms',
818
+ :'compute_request_time_billed_ms' => :'compute_request_time_billed_ms',
815
819
  :'compute_ram_used' => :'compute_ram_used',
816
820
  :'compute_execution_time_ms' => :'compute_execution_time_ms',
817
821
  :'compute_req_header_bytes' => :'compute_req_header_bytes',
@@ -858,10 +862,10 @@ module Fastly
858
862
  :'websocket_conn_time_ms' => :'websocket_conn_time_ms',
859
863
  :'fanout_recv_publishes' => :'fanout_recv_publishes',
860
864
  :'fanout_send_publishes' => :'fanout_send_publishes',
865
+ :'kv_store_class_a_operations' => :'kv_store_class_a_operations',
866
+ :'kv_store_class_b_operations' => :'kv_store_class_b_operations',
861
867
  :'object_store_class_a_operations' => :'object_store_class_a_operations',
862
868
  :'object_store_class_b_operations' => :'object_store_class_b_operations',
863
- :'object_store_read_requests' => :'object_store_read_requests',
864
- :'object_store_write_requests' => :'object_store_write_requests',
865
869
  :'fanout_req_header_bytes' => :'fanout_req_header_bytes',
866
870
  :'fanout_req_body_bytes' => :'fanout_req_body_bytes',
867
871
  :'fanout_resp_header_bytes' => :'fanout_resp_header_bytes',
@@ -1038,6 +1042,7 @@ module Fastly
1038
1042
  :'segblock_shield_fetches' => :'Integer',
1039
1043
  :'compute_requests' => :'Integer',
1040
1044
  :'compute_request_time_ms' => :'Float',
1045
+ :'compute_request_time_billed_ms' => :'Float',
1041
1046
  :'compute_ram_used' => :'Integer',
1042
1047
  :'compute_execution_time_ms' => :'Float',
1043
1048
  :'compute_req_header_bytes' => :'Integer',
@@ -1084,10 +1089,10 @@ module Fastly
1084
1089
  :'websocket_conn_time_ms' => :'Integer',
1085
1090
  :'fanout_recv_publishes' => :'Integer',
1086
1091
  :'fanout_send_publishes' => :'Integer',
1092
+ :'kv_store_class_a_operations' => :'Integer',
1093
+ :'kv_store_class_b_operations' => :'Integer',
1087
1094
  :'object_store_class_a_operations' => :'Integer',
1088
1095
  :'object_store_class_b_operations' => :'Integer',
1089
- :'object_store_read_requests' => :'Integer',
1090
- :'object_store_write_requests' => :'Integer',
1091
1096
  :'fanout_req_header_bytes' => :'Integer',
1092
1097
  :'fanout_req_body_bytes' => :'Integer',
1093
1098
  :'fanout_resp_header_bytes' => :'Integer',
@@ -1728,6 +1733,10 @@ module Fastly
1728
1733
  self.compute_request_time_ms = attributes[:'compute_request_time_ms']
1729
1734
  end
1730
1735
 
1736
+ if attributes.key?(:'compute_request_time_billed_ms')
1737
+ self.compute_request_time_billed_ms = attributes[:'compute_request_time_billed_ms']
1738
+ end
1739
+
1731
1740
  if attributes.key?(:'compute_ram_used')
1732
1741
  self.compute_ram_used = attributes[:'compute_ram_used']
1733
1742
  end
@@ -1912,20 +1921,20 @@ module Fastly
1912
1921
  self.fanout_send_publishes = attributes[:'fanout_send_publishes']
1913
1922
  end
1914
1923
 
1915
- if attributes.key?(:'object_store_class_a_operations')
1916
- self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1924
+ if attributes.key?(:'kv_store_class_a_operations')
1925
+ self.kv_store_class_a_operations = attributes[:'kv_store_class_a_operations']
1917
1926
  end
1918
1927
 
1919
- if attributes.key?(:'object_store_class_b_operations')
1920
- self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1928
+ if attributes.key?(:'kv_store_class_b_operations')
1929
+ self.kv_store_class_b_operations = attributes[:'kv_store_class_b_operations']
1921
1930
  end
1922
1931
 
1923
- if attributes.key?(:'object_store_read_requests')
1924
- self.object_store_read_requests = attributes[:'object_store_read_requests']
1932
+ if attributes.key?(:'object_store_class_a_operations')
1933
+ self.object_store_class_a_operations = attributes[:'object_store_class_a_operations']
1925
1934
  end
1926
1935
 
1927
- if attributes.key?(:'object_store_write_requests')
1928
- self.object_store_write_requests = attributes[:'object_store_write_requests']
1936
+ if attributes.key?(:'object_store_class_b_operations')
1937
+ self.object_store_class_b_operations = attributes[:'object_store_class_b_operations']
1929
1938
  end
1930
1939
 
1931
1940
  if attributes.key?(:'fanout_req_header_bytes')
@@ -2157,6 +2166,7 @@ module Fastly
2157
2166
  segblock_shield_fetches == o.segblock_shield_fetches &&
2158
2167
  compute_requests == o.compute_requests &&
2159
2168
  compute_request_time_ms == o.compute_request_time_ms &&
2169
+ compute_request_time_billed_ms == o.compute_request_time_billed_ms &&
2160
2170
  compute_ram_used == o.compute_ram_used &&
2161
2171
  compute_execution_time_ms == o.compute_execution_time_ms &&
2162
2172
  compute_req_header_bytes == o.compute_req_header_bytes &&
@@ -2203,10 +2213,10 @@ module Fastly
2203
2213
  websocket_conn_time_ms == o.websocket_conn_time_ms &&
2204
2214
  fanout_recv_publishes == o.fanout_recv_publishes &&
2205
2215
  fanout_send_publishes == o.fanout_send_publishes &&
2216
+ kv_store_class_a_operations == o.kv_store_class_a_operations &&
2217
+ kv_store_class_b_operations == o.kv_store_class_b_operations &&
2206
2218
  object_store_class_a_operations == o.object_store_class_a_operations &&
2207
2219
  object_store_class_b_operations == o.object_store_class_b_operations &&
2208
- object_store_read_requests == o.object_store_read_requests &&
2209
- object_store_write_requests == o.object_store_write_requests &&
2210
2220
  fanout_req_header_bytes == o.fanout_req_header_bytes &&
2211
2221
  fanout_req_body_bytes == o.fanout_req_body_bytes &&
2212
2222
  fanout_resp_header_bytes == o.fanout_resp_header_bytes &&
@@ -2233,7 +2243,7 @@ module Fastly
2233
2243
  # Calculates hash code according to all attributes.
2234
2244
  # @return [Integer] Hash code
2235
2245
  def hash
2236
- [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_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, object_store_class_a_operations, object_store_class_b_operations, object_store_read_requests, object_store_write_requests, 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
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
2237
2247
  end
2238
2248
 
2239
2249
  # Builds the object from hash
@@ -9,5 +9,5 @@ Contact: oss@fastly.com
9
9
  =end
10
10
 
11
11
  module Fastly
12
- VERSION = '5.1.1'
12
+ VERSION = '5.2.0'
13
13
  end
data/lib/fastly.rb CHANGED
@@ -118,6 +118,8 @@ require 'fastly/models/historical_field_aggregate_response'
118
118
  require 'fastly/models/historical_field_aggregate_response_all_of'
119
119
  require 'fastly/models/historical_field_response'
120
120
  require 'fastly/models/historical_field_response_all_of'
121
+ require 'fastly/models/historical_field_results_attributes'
122
+ require 'fastly/models/historical_field_results_attributes_all_of'
121
123
  require 'fastly/models/historical_meta'
122
124
  require 'fastly/models/historical_regions_response'
123
125
  require 'fastly/models/historical_regions_response_all_of'
data/sig.json CHANGED
@@ -1 +1 @@
1
- {"G": "68da606c", "D": "3408edcc"}
1
+ {"G": "845b9d6b", "D": "303ffd8e"}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastly
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fastly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -182,6 +182,8 @@ files:
182
182
  - docs/HistoricalFieldAggregateResponseAllOf.md
183
183
  - docs/HistoricalFieldResponse.md
184
184
  - docs/HistoricalFieldResponseAllOf.md
185
+ - docs/HistoricalFieldResultsAttributes.md
186
+ - docs/HistoricalFieldResultsAttributesAllOf.md
185
187
  - docs/HistoricalMeta.md
186
188
  - docs/HistoricalRegionsResponse.md
187
189
  - docs/HistoricalRegionsResponseAllOf.md
@@ -956,6 +958,8 @@ files:
956
958
  - lib/fastly/models/historical_field_aggregate_response_all_of.rb
957
959
  - lib/fastly/models/historical_field_response.rb
958
960
  - lib/fastly/models/historical_field_response_all_of.rb
961
+ - lib/fastly/models/historical_field_results_attributes.rb
962
+ - lib/fastly/models/historical_field_results_attributes_all_of.rb
959
963
  - lib/fastly/models/historical_meta.rb
960
964
  - lib/fastly/models/historical_regions_response.rb
961
965
  - lib/fastly/models/historical_regions_response_all_of.rb