fastly 5.3.1 → 6.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (200) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +55 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +85 -63
  5. data/docs/AclEntry.md +1 -1
  6. data/docs/AclEntryApi.md +176 -0
  7. data/docs/AclEntryResponse.md +1 -1
  8. data/docs/ApexRedirectApi.md +56 -0
  9. data/docs/BulkUpdateAclEntry.md +1 -1
  10. data/docs/ClientKey.md +12 -0
  11. data/docs/ContactApi.md +50 -0
  12. data/docs/Content.md +2 -2
  13. data/docs/ContentApi.md +52 -0
  14. data/docs/DirectorApi.md +42 -0
  15. data/docs/DomainInspector.md +12 -0
  16. data/docs/DomainInspectorEntry.md +11 -0
  17. data/docs/DomainInspectorEntryDimensions.md +12 -0
  18. data/docs/DomainInspectorHistoricalApi.md +72 -0
  19. data/docs/DomainInspectorMeasurements.md +71 -0
  20. data/docs/DomainInspectorRealtimeApi.md +132 -0
  21. data/docs/DomainInspectorRealtimeEntry.md +12 -0
  22. data/docs/EventAttributes.md +1 -1
  23. data/docs/{EventsResponseAllOf.md → EventData.md} +1 -1
  24. data/docs/HistoricalDomains.md +13 -0
  25. data/docs/HistoricalDomainsData.md +11 -0
  26. data/docs/HistoricalDomainsMeta.md +18 -0
  27. data/docs/HistoricalDomainsMetaFilters.md +12 -0
  28. data/docs/HistoricalDomainsResponse.md +13 -0
  29. data/docs/HistoricalDomainsResponseAllOf.md +10 -0
  30. data/docs/{HistoricalFieldResultsAttributesAllOf.md → HistoricalFieldResultsAttributesAdditional.md} +1 -1
  31. data/docs/HistoricalOriginsResponse.md +13 -0
  32. data/docs/HistoricalOriginsResponseAllOf.md +10 -0
  33. data/docs/IamRolesApi.md +157 -0
  34. data/docs/IamServiceGroupsApi.md +157 -0
  35. data/docs/IamUserGroupsApi.md +315 -0
  36. data/docs/InlineResponse2005.md +11 -0
  37. data/docs/InlineResponse2006.md +11 -0
  38. data/docs/InlineResponse2007.md +10 -0
  39. data/docs/InlineResponse400.md +10 -0
  40. data/docs/LegacyWafConfigurationSet.md +11 -0
  41. data/docs/LegacyWafConfigurationSetsApi.md +125 -0
  42. data/docs/LegacyWafFirewall.md +18 -0
  43. data/docs/LegacyWafFirewallApi.md +352 -0
  44. data/docs/LegacyWafOwasp.md +38 -0
  45. data/docs/LegacyWafOwaspApi.md +138 -0
  46. data/docs/LegacyWafRule.md +14 -0
  47. data/docs/LegacyWafRuleApi.md +184 -0
  48. data/docs/LegacyWafRuleStatus.md +12 -0
  49. data/docs/LegacyWafRuleStatusApi.md +202 -0
  50. data/docs/LegacyWafRuleset.md +11 -0
  51. data/docs/LegacyWafRulesetApi.md +136 -0
  52. data/docs/LegacyWafTag.md +10 -0
  53. data/docs/LegacyWafTagApi.md +58 -0
  54. data/docs/LegacyWafUpdateStatus.md +15 -0
  55. data/docs/LegacyWafUpdateStatusApi.md +102 -0
  56. data/docs/LoggingKafkaApi.md +42 -0
  57. data/docs/LoggingKinesisApi.md +42 -0
  58. data/docs/OriginInspector.md +12 -0
  59. data/docs/OriginInspectorDimensions.md +12 -0
  60. data/docs/OriginInspectorEntry.md +11 -0
  61. data/docs/OriginInspectorHistorical.md +13 -0
  62. data/docs/OriginInspectorHistoricalApi.md +72 -0
  63. data/docs/OriginInspectorHistoricalData.md +11 -0
  64. data/docs/OriginInspectorHistoricalMeta.md +18 -0
  65. data/docs/OriginInspectorHistoricalMetaFilters.md +12 -0
  66. data/docs/OriginInspectorMeasurements.md +161 -0
  67. data/docs/OriginInspectorRealtimeApi.md +132 -0
  68. data/docs/OriginInspectorRealtimeEntry.md +12 -0
  69. data/docs/OriginInspectorRealtimeEntryRecorded.md +9 -0
  70. data/docs/OriginInspectorSubsequentRequestTimestamp.md +9 -0
  71. data/docs/OriginInspectorValues.md +161 -0
  72. data/docs/PaginationCursorMeta.md +11 -0
  73. data/docs/ReadOnlyServiceId.md +9 -0
  74. data/docs/ReadOnlyVersion.md +9 -0
  75. data/docs/RealtimeEntry.md +2 -2
  76. data/docs/RealtimeEntryAggregated.md +227 -0
  77. data/docs/RealtimeEntryRecorded.md +9 -0
  78. data/docs/RealtimeMeasurements.md +1 -1
  79. data/docs/RecordedTimestamp.md +9 -0
  80. data/docs/RequestSettingsApi.md +40 -0
  81. data/docs/ResponseObjectApi.md +82 -0
  82. data/docs/Secret.md +12 -0
  83. data/docs/SecretResponse.md +13 -0
  84. data/docs/SecretStore.md +10 -0
  85. data/docs/SecretStoreApi.md +233 -0
  86. data/docs/SecretStoreItemApi.md +255 -0
  87. data/docs/SecretStoreResponse.md +12 -0
  88. data/docs/ServiceAuthorizationsApi.md +76 -0
  89. data/docs/SigningKey.md +10 -0
  90. data/docs/SnippetApi.md +42 -0
  91. data/docs/SubsequentRequestTimestamp.md +9 -0
  92. data/docs/SudoApi.md +52 -0
  93. data/docs/SudoGenericTokenError.md +10 -0
  94. data/docs/SudoRequest.md +12 -0
  95. data/docs/SudoResponse.md +10 -0
  96. data/docs/TokensApi.md +70 -0
  97. data/docs/Values.md +71 -0
  98. data/docs/WafActiveRulesApi.md +41 -0
  99. data/lib/fastly/api/acl_entry_api.rb +332 -0
  100. data/lib/fastly/api/apex_redirect_api.rb +111 -0
  101. data/lib/fastly/api/contact_api.rb +90 -0
  102. data/lib/fastly/api/content_api.rb +79 -0
  103. data/lib/fastly/api/director_api.rb +82 -0
  104. data/lib/fastly/api/domain_inspector_historical_api.rb +125 -0
  105. data/lib/fastly/api/domain_inspector_realtime_api.rb +223 -0
  106. data/lib/fastly/api/iam_roles_api.rb +271 -0
  107. data/lib/fastly/api/iam_service_groups_api.rb +271 -0
  108. data/lib/fastly/api/iam_user_groups_api.rb +547 -0
  109. data/lib/fastly/api/legacy_waf_configuration_sets_api.rb +209 -0
  110. data/lib/fastly/api/legacy_waf_firewall_api.rb +627 -0
  111. data/lib/fastly/api/legacy_waf_owasp_api.rb +244 -0
  112. data/lib/fastly/api/legacy_waf_rule_api.rb +307 -0
  113. data/lib/fastly/api/legacy_waf_rule_status_api.rb +366 -0
  114. data/lib/fastly/api/legacy_waf_ruleset_api.rb +237 -0
  115. data/lib/fastly/api/legacy_waf_tag_api.rb +96 -0
  116. data/lib/fastly/api/legacy_waf_update_status_api.rb +184 -0
  117. data/lib/fastly/api/logging_kafka_api.rb +82 -0
  118. data/lib/fastly/api/logging_kinesis_api.rb +82 -0
  119. data/lib/fastly/api/origin_inspector_historical_api.rb +125 -0
  120. data/lib/fastly/api/origin_inspector_realtime_api.rb +223 -0
  121. data/lib/fastly/api/request_settings_api.rb +75 -0
  122. data/lib/fastly/api/response_object_api.rb +157 -0
  123. data/lib/fastly/api/secret_store_api.rb +381 -0
  124. data/lib/fastly/api/secret_store_item_api.rb +437 -0
  125. data/lib/fastly/api/service_authorizations_api.rb +126 -0
  126. data/lib/fastly/api/snippet_api.rb +82 -0
  127. data/lib/fastly/api/sudo_api.rb +83 -0
  128. data/lib/fastly/api/tokens_api.rb +122 -0
  129. data/lib/fastly/api/waf_active_rules_api.rb +75 -0
  130. data/lib/fastly/configuration.rb +504 -0
  131. data/lib/fastly/models/acl_entry.rb +1 -1
  132. data/lib/fastly/models/acl_entry_response.rb +1 -1
  133. data/lib/fastly/models/bulk_update_acl_entry.rb +1 -1
  134. data/lib/fastly/models/client_key.rb +239 -0
  135. data/lib/fastly/models/content.rb +8 -4
  136. data/lib/fastly/models/domain.rb +1 -0
  137. data/lib/fastly/models/domain_inspector.rb +238 -0
  138. data/lib/fastly/models/domain_inspector_entry.rb +228 -0
  139. data/lib/fastly/models/domain_inspector_entry_dimensions.rb +238 -0
  140. data/lib/fastly/models/domain_inspector_measurements.rb +828 -0
  141. data/lib/fastly/models/domain_inspector_realtime_entry.rb +241 -0
  142. data/lib/fastly/models/event_attributes.rb +4 -2
  143. data/lib/fastly/models/{events_response_all_of.rb → event_data.rb} +3 -3
  144. data/lib/fastly/models/events_response.rb +1 -1
  145. data/lib/fastly/models/historical_domains.rb +249 -0
  146. data/lib/fastly/models/historical_domains_data.rb +228 -0
  147. data/lib/fastly/models/historical_domains_meta.rb +297 -0
  148. data/lib/fastly/models/historical_domains_meta_filters.rb +235 -0
  149. data/lib/fastly/models/historical_domains_response.rb +257 -0
  150. data/lib/fastly/models/historical_domains_response_all_of.rb +219 -0
  151. data/lib/fastly/models/historical_field_results_attributes.rb +1 -1
  152. data/lib/fastly/models/{historical_field_results_attributes_all_of.rb → historical_field_results_attributes_additional.rb} +3 -3
  153. data/lib/fastly/models/historical_origins_response.rb +257 -0
  154. data/lib/fastly/models/historical_origins_response_all_of.rb +219 -0
  155. data/lib/fastly/models/inline_response2005.rb +227 -0
  156. data/lib/fastly/models/inline_response2006.rb +227 -0
  157. data/lib/fastly/models/inline_response2007.rb +218 -0
  158. data/lib/fastly/models/inline_response400.rb +250 -0
  159. data/lib/fastly/models/legacy_waf_configuration_set.rb +227 -0
  160. data/lib/fastly/models/legacy_waf_firewall.rb +297 -0
  161. data/lib/fastly/models/legacy_waf_owasp.rb +527 -0
  162. data/lib/fastly/models/legacy_waf_rule.rb +257 -0
  163. data/lib/fastly/models/legacy_waf_rule_status.rb +237 -0
  164. data/lib/fastly/models/legacy_waf_ruleset.rb +227 -0
  165. data/lib/fastly/models/legacy_waf_tag.rb +217 -0
  166. data/lib/fastly/models/legacy_waf_update_status.rb +267 -0
  167. data/lib/fastly/models/origin_inspector.rb +238 -0
  168. data/lib/fastly/models/origin_inspector_dimensions.rb +238 -0
  169. data/lib/fastly/models/origin_inspector_entry.rb +228 -0
  170. data/lib/fastly/models/origin_inspector_historical.rb +249 -0
  171. data/lib/fastly/models/origin_inspector_historical_data.rb +225 -0
  172. data/lib/fastly/models/origin_inspector_historical_meta.rb +297 -0
  173. data/lib/fastly/models/origin_inspector_historical_meta_filters.rb +235 -0
  174. data/lib/fastly/models/origin_inspector_measurements.rb +1728 -0
  175. data/lib/fastly/models/origin_inspector_realtime_entry.rb +241 -0
  176. data/lib/fastly/models/origin_inspector_realtime_entry_recorded.rb +208 -0
  177. data/lib/fastly/models/origin_inspector_subsequent_request_timestamp.rb +208 -0
  178. data/lib/fastly/models/origin_inspector_values.rb +1728 -0
  179. data/lib/fastly/models/pagination_cursor_meta.rb +227 -0
  180. data/lib/fastly/models/read_only_service_id.rb +207 -0
  181. data/lib/fastly/models/read_only_version.rb +207 -0
  182. data/lib/fastly/models/realtime_entry.rb +2 -7
  183. data/lib/fastly/models/realtime_entry_aggregated.rb +2397 -0
  184. data/lib/fastly/models/realtime_entry_recorded.rb +208 -0
  185. data/lib/fastly/models/realtime_measurements.rb +4 -2
  186. data/lib/fastly/models/recorded_timestamp.rb +208 -0
  187. data/lib/fastly/models/secret.rb +238 -0
  188. data/lib/fastly/models/secret_response.rb +249 -0
  189. data/lib/fastly/models/secret_store.rb +217 -0
  190. data/lib/fastly/models/secret_store_response.rb +238 -0
  191. data/lib/fastly/models/signing_key.rb +218 -0
  192. data/lib/fastly/models/subsequent_request_timestamp.rb +208 -0
  193. data/lib/fastly/models/sudo_generic_token_error.rb +216 -0
  194. data/lib/fastly/models/sudo_request.rb +244 -0
  195. data/lib/fastly/models/sudo_response.rb +217 -0
  196. data/lib/fastly/models/values.rb +828 -0
  197. data/lib/fastly/version.rb +1 -1
  198. data/lib/fastly.rb +72 -2
  199. data/sig.json +1 -1
  200. metadata +146 -6
@@ -0,0 +1,1728 @@
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
+ # A measurements object provides a count of the total number of `responses` received by Fastly from your origin servers in the reported time period, for the relevant POP and backend name as specified in the [entry](#entry-data-model). It also includes the number of responses for specific HTTP response status codes and for status code ranges. This dataset is sparse: only the keys with non-zero values will be included in the record. Where a specific status code does not have a field in this model (e.g., `429 Too Many Requests`), any responses with that code will be counted as part of the range count (`4xx` in this case) but will not be separately identified in the data.
16
+ class OriginInspectorMeasurements
17
+ # Number of responses from origin.
18
+ attr_accessor :responses
19
+
20
+ # Number of header bytes from origin.
21
+ attr_accessor :resp_header_bytes
22
+
23
+ # Number of body bytes from origin.
24
+ attr_accessor :resp_body_bytes
25
+
26
+ # Number of 1xx \"Informational\" status codes delivered from origin.
27
+ attr_accessor :status_1xx
28
+
29
+ # Number of 2xx \"Success\" status codes delivered from origin.
30
+ attr_accessor :status_2xx
31
+
32
+ # Number of 3xx \"Redirection\" codes delivered from origin.
33
+ attr_accessor :status_3xx
34
+
35
+ # Number of 4xx \"Client Error\" codes delivered from origin.
36
+ attr_accessor :status_4xx
37
+
38
+ # Number of 5xx \"Server Error\" codes delivered from origin.
39
+ attr_accessor :status_5xx
40
+
41
+ # Number of responses received with status code 200 (Success) from origin.
42
+ attr_accessor :status_200
43
+
44
+ # Number of responses received with status code 204 (No Content) from origin.
45
+ attr_accessor :status_204
46
+
47
+ # Number of responses received with status code 206 (Partial Content) from origin.
48
+ attr_accessor :status_206
49
+
50
+ # Number of responses received with status code 301 (Moved Permanently) from origin.
51
+ attr_accessor :status_301
52
+
53
+ # Number of responses received with status code 302 (Found) from origin.
54
+ attr_accessor :status_302
55
+
56
+ # Number of responses received with status code 304 (Not Modified) from origin.
57
+ attr_accessor :status_304
58
+
59
+ # Number of responses received with status code 400 (Bad Request) from origin.
60
+ attr_accessor :status_400
61
+
62
+ # Number of responses received with status code 401 (Unauthorized) from origin.
63
+ attr_accessor :status_401
64
+
65
+ # Number of responses received with status code 403 (Forbidden) from origin.
66
+ attr_accessor :status_403
67
+
68
+ # Number of responses received with status code 404 (Not Found) from origin.
69
+ attr_accessor :status_404
70
+
71
+ # Number of responses received with status code 416 (Range Not Satisfiable) from origin.
72
+ attr_accessor :status_416
73
+
74
+ # Number of responses received with status code 429 (Too Many Requests) from origin.
75
+ attr_accessor :status_429
76
+
77
+ # Number of responses received with status code 500 (Internal Server Error) from origin.
78
+ attr_accessor :status_500
79
+
80
+ # Number of responses received with status code 501 (Not Implemented) from origin.
81
+ attr_accessor :status_501
82
+
83
+ # Number of responses received with status code 502 (Bad Gateway) from origin.
84
+ attr_accessor :status_502
85
+
86
+ # Number of responses received with status code 503 (Service Unavailable) from origin.
87
+ attr_accessor :status_503
88
+
89
+ # Number of responses received with status code 504 (Gateway Timeout) from origin.
90
+ attr_accessor :status_504
91
+
92
+ # Number of responses received with status code 505 (HTTP Version Not Supported) from origin.
93
+ attr_accessor :status_505
94
+
95
+ # Number of responses from origin with latency between 0 and 1 millisecond.
96
+ attr_accessor :latency_0_to_1ms
97
+
98
+ # Number of responses from origin with latency between 1 and 5 milliseconds.
99
+ attr_accessor :latency_1_to_5ms
100
+
101
+ # Number of responses from origin with latency between 5 and 10 milliseconds.
102
+ attr_accessor :latency_5_to_10ms
103
+
104
+ # Number of responses from origin with latency between 10 and 50 milliseconds.
105
+ attr_accessor :latency_10_to_50ms
106
+
107
+ # Number of responses from origin with latency between 50 and 100 milliseconds.
108
+ attr_accessor :latency_50_to_100ms
109
+
110
+ # Number of responses from origin with latency between 100 and 250 milliseconds.
111
+ attr_accessor :latency_100_to_250ms
112
+
113
+ # Number of responses from origin with latency between 250 and 500 milliseconds.
114
+ attr_accessor :latency_250_to_500ms
115
+
116
+ # Number of responses from origin with latency between 500 and 1,000 milliseconds.
117
+ attr_accessor :latency_500_to_1000ms
118
+
119
+ # Number of responses from origin with latency between 1,000 and 5,000 milliseconds.
120
+ attr_accessor :latency_1000_to_5000ms
121
+
122
+ # Number of responses from origin with latency between 5,000 and 10,000 milliseconds.
123
+ attr_accessor :latency_5000_to_10000ms
124
+
125
+ # Number of responses from origin with latency between 10,000 and 60,000 milliseconds.
126
+ attr_accessor :latency_10000_to_60000ms
127
+
128
+ # Number of responses from origin with latency of 60,000 milliseconds and above.
129
+ attr_accessor :latency_60000ms
130
+
131
+ # Number of responses received for origin requests made by the Fastly WAF.
132
+ attr_accessor :waf_responses
133
+
134
+ # Number of header bytes received for origin requests made by the Fastly WAF.
135
+ attr_accessor :waf_resp_header_bytes
136
+
137
+ # Number of body bytes received for origin requests made by the Fastly WAF.
138
+ attr_accessor :waf_resp_body_bytes
139
+
140
+ # Number of 1xx \"Informational\" status codes received for origin requests made by the Fastly WAF.
141
+ attr_accessor :waf_status_1xx
142
+
143
+ # Number of 2xx \"Success\" status codes received for origin requests made by the Fastly WAF.
144
+ attr_accessor :waf_status_2xx
145
+
146
+ # Number of 3xx \"Redirection\" codes received for origin requests made by the Fastly WAF.
147
+ attr_accessor :waf_status_3xx
148
+
149
+ # Number of 4xx \"Client Error\" codes received for origin requests made by the Fastly WAF.
150
+ attr_accessor :waf_status_4xx
151
+
152
+ # Number of 5xx \"Server Error\" codes received for origin requests made by the Fastly WAF.
153
+ attr_accessor :waf_status_5xx
154
+
155
+ # Number of responses received with status code 200 (Success) received for origin requests made by the Fastly WAF.
156
+ attr_accessor :waf_status_200
157
+
158
+ # Number of responses received with status code 204 (No Content) received for origin requests made by the Fastly WAF.
159
+ attr_accessor :waf_status_204
160
+
161
+ # Number of responses received with status code 206 (Partial Content) received for origin requests made by the Fastly WAF.
162
+ attr_accessor :waf_status_206
163
+
164
+ # Number of responses received with status code 301 (Moved Permanently) received for origin requests made by the Fastly WAF.
165
+ attr_accessor :waf_status_301
166
+
167
+ # Number of responses received with status code 302 (Found) received for origin requests made by the Fastly WAF.
168
+ attr_accessor :waf_status_302
169
+
170
+ # Number of responses received with status code 304 (Not Modified) received for origin requests made by the Fastly WAF.
171
+ attr_accessor :waf_status_304
172
+
173
+ # Number of responses received with status code 400 (Bad Request) received for origin requests made by the Fastly WAF.
174
+ attr_accessor :waf_status_400
175
+
176
+ # Number of responses received with status code 401 (Unauthorized) received for origin requests made by the Fastly WAF.
177
+ attr_accessor :waf_status_401
178
+
179
+ # Number of responses received with status code 403 (Forbidden) received for origin requests made by the Fastly WAF.
180
+ attr_accessor :waf_status_403
181
+
182
+ # Number of responses received with status code 404 (Not Found) received for origin requests made by the Fastly WAF.
183
+ attr_accessor :waf_status_404
184
+
185
+ # Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by the Fastly WAF.
186
+ attr_accessor :waf_status_416
187
+
188
+ # Number of responses received with status code 429 (Too Many Requests) received for origin requests made by the Fastly WAF.
189
+ attr_accessor :waf_status_429
190
+
191
+ # Number of responses received with status code 500 (Internal Server Error) received for origin requests made by the Fastly WAF.
192
+ attr_accessor :waf_status_500
193
+
194
+ # Number of responses received with status code 501 (Not Implemented) received for origin requests made by the Fastly WAF.
195
+ attr_accessor :waf_status_501
196
+
197
+ # Number of responses received with status code 502 (Bad Gateway) received for origin requests made by the Fastly WAF.
198
+ attr_accessor :waf_status_502
199
+
200
+ # Number of responses received with status code 503 (Service Unavailable) received for origin requests made by the Fastly WAF.
201
+ attr_accessor :waf_status_503
202
+
203
+ # Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by the Fastly WAF.
204
+ attr_accessor :waf_status_504
205
+
206
+ # Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by the Fastly WAF.
207
+ attr_accessor :waf_status_505
208
+
209
+ # Number of responses with latency between 0 and 1 millisecond received for origin requests made by the Fastly WAF.
210
+ attr_accessor :waf_latency_0_to_1ms
211
+
212
+ # Number of responses with latency between 1 and 5 milliseconds received for origin requests made by the Fastly WAF.
213
+ attr_accessor :waf_latency_1_to_5ms
214
+
215
+ # Number of responses with latency between 5 and 10 milliseconds received for origin requests made by the Fastly WAF.
216
+ attr_accessor :waf_latency_5_to_10ms
217
+
218
+ # Number of responses with latency between 10 and 50 milliseconds received for origin requests made by the Fastly WAF.
219
+ attr_accessor :waf_latency_10_to_50ms
220
+
221
+ # Number of responses with latency between 50 and 100 milliseconds received for origin requests made by the Fastly WAF.
222
+ attr_accessor :waf_latency_50_to_100ms
223
+
224
+ # Number of responses with latency between 100 and 250 milliseconds received for origin requests made by the Fastly WAF.
225
+ attr_accessor :waf_latency_100_to_250ms
226
+
227
+ # Number of responses with latency between 250 and 500 milliseconds received for origin requests made by the Fastly WAF.
228
+ attr_accessor :waf_latency_250_to_500ms
229
+
230
+ # Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by the Fastly WAF.
231
+ attr_accessor :waf_latency_500_to_1000ms
232
+
233
+ # Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by the Fastly WAF.
234
+ attr_accessor :waf_latency_1000_to_5000ms
235
+
236
+ # Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by the Fastly WAF.
237
+ attr_accessor :waf_latency_5000_to_10000ms
238
+
239
+ # Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by the Fastly WAF.
240
+ attr_accessor :waf_latency_10000_to_60000ms
241
+
242
+ # Number of responses with latency of 60,000 milliseconds and above received for origin requests made by the Fastly WAF.
243
+ attr_accessor :waf_latency_60000ms
244
+
245
+ # Number of responses for origin received by Compute@Edge.
246
+ attr_accessor :compute_responses
247
+
248
+ # Number of header bytes for origin received by Compute@Edge.
249
+ attr_accessor :compute_resp_header_bytes
250
+
251
+ # Number of body bytes for origin received by Compute@Edge.
252
+ attr_accessor :compute_resp_body_bytes
253
+
254
+ # Number of 1xx \"Informational\" status codes for origin received by Compute@Edge.
255
+ attr_accessor :compute_status_1xx
256
+
257
+ # Number of 2xx \"Success\" status codes for origin received by Compute@Edge.
258
+ attr_accessor :compute_status_2xx
259
+
260
+ # Number of 3xx \"Redirection\" codes for origin received by Compute@Edge.
261
+ attr_accessor :compute_status_3xx
262
+
263
+ # Number of 4xx \"Client Error\" codes for origin received by Compute@Edge.
264
+ attr_accessor :compute_status_4xx
265
+
266
+ # Number of 5xx \"Server Error\" codes for origin received by Compute@Edge.
267
+ attr_accessor :compute_status_5xx
268
+
269
+ # Number of responses received with status code 200 (Success) for origin received by Compute@Edge.
270
+ attr_accessor :compute_status_200
271
+
272
+ # Number of responses received with status code 204 (No Content) for origin received by Compute@Edge.
273
+ attr_accessor :compute_status_204
274
+
275
+ # Number of responses received with status code 206 (Partial Content) for origin received by Compute@Edge.
276
+ attr_accessor :compute_status_206
277
+
278
+ # Number of responses received with status code 301 (Moved Permanently) for origin received by Compute@Edge.
279
+ attr_accessor :compute_status_301
280
+
281
+ # Number of responses received with status code 302 (Found) for origin received by Compute@Edge.
282
+ attr_accessor :compute_status_302
283
+
284
+ # Number of responses received with status code 304 (Not Modified) for origin received by Compute@Edge.
285
+ attr_accessor :compute_status_304
286
+
287
+ # Number of responses received with status code 400 (Bad Request) for origin received by Compute@Edge.
288
+ attr_accessor :compute_status_400
289
+
290
+ # Number of responses received with status code 401 (Unauthorized) for origin received by Compute@Edge.
291
+ attr_accessor :compute_status_401
292
+
293
+ # Number of responses received with status code 403 (Forbidden) for origin received by Compute@Edge.
294
+ attr_accessor :compute_status_403
295
+
296
+ # Number of responses received with status code 404 (Not Found) for origin received by Compute@Edge.
297
+ attr_accessor :compute_status_404
298
+
299
+ # Number of responses received with status code 416 (Range Not Satisfiable) for origin received by Compute@Edge.
300
+ attr_accessor :compute_status_416
301
+
302
+ # Number of responses received with status code 429 (Too Many Requests) for origin received by Compute@Edge.
303
+ attr_accessor :compute_status_429
304
+
305
+ # Number of responses received with status code 500 (Internal Server Error) for origin received by Compute@Edge.
306
+ attr_accessor :compute_status_500
307
+
308
+ # Number of responses received with status code 501 (Not Implemented) for origin received by Compute@Edge.
309
+ attr_accessor :compute_status_501
310
+
311
+ # Number of responses received with status code 502 (Bad Gateway) for origin received by Compute@Edge.
312
+ attr_accessor :compute_status_502
313
+
314
+ # Number of responses received with status code 503 (Service Unavailable) for origin received by Compute@Edge.
315
+ attr_accessor :compute_status_503
316
+
317
+ # Number of responses received with status code 504 (Gateway Timeout) for origin received by Compute@Edge.
318
+ attr_accessor :compute_status_504
319
+
320
+ # Number of responses received with status code 505 (HTTP Version Not Supported) for origin received by Compute@Edge.
321
+ attr_accessor :compute_status_505
322
+
323
+ # Number of responses with latency between 0 and 1 millisecond for origin received by Compute@Edge.
324
+ attr_accessor :compute_latency_0_to_1ms
325
+
326
+ # Number of responses with latency between 1 and 5 milliseconds for origin received by Compute@Edge.
327
+ attr_accessor :compute_latency_1_to_5ms
328
+
329
+ # Number of responses with latency between 5 and 10 milliseconds for origin received by Compute@Edge.
330
+ attr_accessor :compute_latency_5_to_10ms
331
+
332
+ # Number of responses with latency between 10 and 50 milliseconds for origin received by Compute@Edge.
333
+ attr_accessor :compute_latency_10_to_50ms
334
+
335
+ # Number of responses with latency between 50 and 100 milliseconds for origin received by Compute@Edge.
336
+ attr_accessor :compute_latency_50_to_100ms
337
+
338
+ # Number of responses with latency between 100 and 250 milliseconds for origin received by Compute@Edge.
339
+ attr_accessor :compute_latency_100_to_250ms
340
+
341
+ # Number of responses with latency between 250 and 500 milliseconds for origin received by Compute@Edge.
342
+ attr_accessor :compute_latency_250_to_500ms
343
+
344
+ # Number of responses with latency between 500 and 1,000 milliseconds for origin received by Compute@Edge.
345
+ attr_accessor :compute_latency_500_to_1000ms
346
+
347
+ # Number of responses with latency between 1,000 and 5,000 milliseconds for origin received by Compute@Edge.
348
+ attr_accessor :compute_latency_1000_to_5000ms
349
+
350
+ # Number of responses with latency between 5,000 and 10,000 milliseconds for origin received by Compute@Edge.
351
+ attr_accessor :compute_latency_5000_to_10000ms
352
+
353
+ # Number of responses with latency between 10,000 and 60,000 milliseconds for origin received by Compute@Edge.
354
+ attr_accessor :compute_latency_10000_to_60000ms
355
+
356
+ # Number of responses with latency of 60,000 milliseconds and above for origin received by Compute@Edge.
357
+ attr_accessor :compute_latency_60000ms
358
+
359
+ # Number of responses received for origin requests made by all sources.
360
+ attr_accessor :all_responses
361
+
362
+ # Number of header bytes received for origin requests made by all sources.
363
+ attr_accessor :all_resp_header_bytes
364
+
365
+ # Number of body bytes received for origin requests made by all sources.
366
+ attr_accessor :all_resp_body_bytes
367
+
368
+ # Number of 1xx \"Informational\" category status codes delivered received for origin requests made by all sources.
369
+ attr_accessor :all_status_1xx
370
+
371
+ # Number of 2xx \"Success\" status codes received for origin requests made by all sources.
372
+ attr_accessor :all_status_2xx
373
+
374
+ # Number of 3xx \"Redirection\" codes received for origin requests made by all sources.
375
+ attr_accessor :all_status_3xx
376
+
377
+ # Number of 4xx \"Client Error\" codes received for origin requests made by all sources.
378
+ attr_accessor :all_status_4xx
379
+
380
+ # Number of 5xx \"Server Error\" codes received for origin requests made by all sources.
381
+ attr_accessor :all_status_5xx
382
+
383
+ # Number of responses received with status code 200 (Success) received for origin requests made by all sources.
384
+ attr_accessor :all_status_200
385
+
386
+ # Number of responses received with status code 204 (No Content) received for origin requests made by all sources.
387
+ attr_accessor :all_status_204
388
+
389
+ # Number of responses received with status code 206 (Partial Content) received for origin requests made by all sources.
390
+ attr_accessor :all_status_206
391
+
392
+ # Number of responses received with status code 301 (Moved Permanently) received for origin requests made by all sources.
393
+ attr_accessor :all_status_301
394
+
395
+ # Number of responses received with status code 302 (Found) received for origin requests made by all sources.
396
+ attr_accessor :all_status_302
397
+
398
+ # Number of responses received with status code 304 (Not Modified) received for origin requests made by all sources.
399
+ attr_accessor :all_status_304
400
+
401
+ # Number of responses received with status code 400 (Bad Request) received for origin requests made by all sources.
402
+ attr_accessor :all_status_400
403
+
404
+ # Number of responses received with status code 401 (Unauthorized) received for origin requests made by all sources.
405
+ attr_accessor :all_status_401
406
+
407
+ # Number of responses received with status code 403 (Forbidden) received for origin requests made by all sources.
408
+ attr_accessor :all_status_403
409
+
410
+ # Number of responses received with status code 404 (Not Found) received for origin requests made by all sources.
411
+ attr_accessor :all_status_404
412
+
413
+ # Number of responses received with status code 416 (Range Not Satisfiable) received for origin requests made by all sources.
414
+ attr_accessor :all_status_416
415
+
416
+ # Number of responses received with status code 429 (Too Many Requests) received for origin requests made by all sources.
417
+ attr_accessor :all_status_429
418
+
419
+ # Number of responses received with status code 500 (Internal Server Error) received for origin requests made by all sources.
420
+ attr_accessor :all_status_500
421
+
422
+ # Number of responses received with status code 501 (Not Implemented) received for origin requests made by all sources.
423
+ attr_accessor :all_status_501
424
+
425
+ # Number of responses received with status code 502 (Bad Gateway) received for origin requests made by all sources.
426
+ attr_accessor :all_status_502
427
+
428
+ # Number of responses received with status code 503 (Service Unavailable) received for origin requests made by all sources.
429
+ attr_accessor :all_status_503
430
+
431
+ # Number of responses received with status code 504 (Gateway Timeout) received for origin requests made by all sources.
432
+ attr_accessor :all_status_504
433
+
434
+ # Number of responses received with status code 505 (HTTP Version Not Supported) received for origin requests made by all sources.
435
+ attr_accessor :all_status_505
436
+
437
+ # Number of responses with latency between 0 and 1 millisecond received for origin requests made by all sources.
438
+ attr_accessor :all_latency_0_to_1ms
439
+
440
+ # Number of responses with latency between 1 and 5 milliseconds received for origin requests made by all sources.
441
+ attr_accessor :all_latency_1_to_5ms
442
+
443
+ # Number of responses with latency between 5 and 10 milliseconds received for origin requests made by all sources.
444
+ attr_accessor :all_latency_5_to_10ms
445
+
446
+ # Number of responses with latency between 10 and 50 milliseconds received for origin requests made by all sources.
447
+ attr_accessor :all_latency_10_to_50ms
448
+
449
+ # Number of responses with latency between 50 and 100 milliseconds received for origin requests made by all sources.
450
+ attr_accessor :all_latency_50_to_100ms
451
+
452
+ # Number of responses with latency between 100 and 250 milliseconds received for origin requests made by all sources.
453
+ attr_accessor :all_latency_100_to_250ms
454
+
455
+ # Number of responses with latency between 250 and 500 milliseconds received for origin requests made by all sources.
456
+ attr_accessor :all_latency_250_to_500ms
457
+
458
+ # Number of responses with latency between 500 and 1,000 milliseconds received for origin requests made by all sources.
459
+ attr_accessor :all_latency_500_to_1000ms
460
+
461
+ # Number of responses with latency between 1,000 and 5,000 milliseconds received for origin requests made by all sources.
462
+ attr_accessor :all_latency_1000_to_5000ms
463
+
464
+ # Number of responses with latency between 5,000 and 10,000 milliseconds received for origin requests made by all sources.
465
+ attr_accessor :all_latency_5000_to_10000ms
466
+
467
+ # Number of responses with latency between 10,000 and 60,000 milliseconds received for origin requests made by all sources.
468
+ attr_accessor :all_latency_10000_to_60000ms
469
+
470
+ # Number of responses with latency of 60,000 milliseconds and above received for origin requests made by all sources.
471
+ attr_accessor :all_latency_60000ms
472
+
473
+ # Attribute mapping from ruby-style variable name to JSON key.
474
+ def self.attribute_map
475
+ {
476
+ :'responses' => :'responses',
477
+ :'resp_header_bytes' => :'resp_header_bytes',
478
+ :'resp_body_bytes' => :'resp_body_bytes',
479
+ :'status_1xx' => :'status_1xx',
480
+ :'status_2xx' => :'status_2xx',
481
+ :'status_3xx' => :'status_3xx',
482
+ :'status_4xx' => :'status_4xx',
483
+ :'status_5xx' => :'status_5xx',
484
+ :'status_200' => :'status_200',
485
+ :'status_204' => :'status_204',
486
+ :'status_206' => :'status_206',
487
+ :'status_301' => :'status_301',
488
+ :'status_302' => :'status_302',
489
+ :'status_304' => :'status_304',
490
+ :'status_400' => :'status_400',
491
+ :'status_401' => :'status_401',
492
+ :'status_403' => :'status_403',
493
+ :'status_404' => :'status_404',
494
+ :'status_416' => :'status_416',
495
+ :'status_429' => :'status_429',
496
+ :'status_500' => :'status_500',
497
+ :'status_501' => :'status_501',
498
+ :'status_502' => :'status_502',
499
+ :'status_503' => :'status_503',
500
+ :'status_504' => :'status_504',
501
+ :'status_505' => :'status_505',
502
+ :'latency_0_to_1ms' => :'latency_0_to_1ms',
503
+ :'latency_1_to_5ms' => :'latency_1_to_5ms',
504
+ :'latency_5_to_10ms' => :'latency_5_to_10ms',
505
+ :'latency_10_to_50ms' => :'latency_10_to_50ms',
506
+ :'latency_50_to_100ms' => :'latency_50_to_100ms',
507
+ :'latency_100_to_250ms' => :'latency_100_to_250ms',
508
+ :'latency_250_to_500ms' => :'latency_250_to_500ms',
509
+ :'latency_500_to_1000ms' => :'latency_500_to_1000ms',
510
+ :'latency_1000_to_5000ms' => :'latency_1000_to_5000ms',
511
+ :'latency_5000_to_10000ms' => :'latency_5000_to_10000ms',
512
+ :'latency_10000_to_60000ms' => :'latency_10000_to_60000ms',
513
+ :'latency_60000ms' => :'latency_60000ms',
514
+ :'waf_responses' => :'waf_responses',
515
+ :'waf_resp_header_bytes' => :'waf_resp_header_bytes',
516
+ :'waf_resp_body_bytes' => :'waf_resp_body_bytes',
517
+ :'waf_status_1xx' => :'waf_status_1xx',
518
+ :'waf_status_2xx' => :'waf_status_2xx',
519
+ :'waf_status_3xx' => :'waf_status_3xx',
520
+ :'waf_status_4xx' => :'waf_status_4xx',
521
+ :'waf_status_5xx' => :'waf_status_5xx',
522
+ :'waf_status_200' => :'waf_status_200',
523
+ :'waf_status_204' => :'waf_status_204',
524
+ :'waf_status_206' => :'waf_status_206',
525
+ :'waf_status_301' => :'waf_status_301',
526
+ :'waf_status_302' => :'waf_status_302',
527
+ :'waf_status_304' => :'waf_status_304',
528
+ :'waf_status_400' => :'waf_status_400',
529
+ :'waf_status_401' => :'waf_status_401',
530
+ :'waf_status_403' => :'waf_status_403',
531
+ :'waf_status_404' => :'waf_status_404',
532
+ :'waf_status_416' => :'waf_status_416',
533
+ :'waf_status_429' => :'waf_status_429',
534
+ :'waf_status_500' => :'waf_status_500',
535
+ :'waf_status_501' => :'waf_status_501',
536
+ :'waf_status_502' => :'waf_status_502',
537
+ :'waf_status_503' => :'waf_status_503',
538
+ :'waf_status_504' => :'waf_status_504',
539
+ :'waf_status_505' => :'waf_status_505',
540
+ :'waf_latency_0_to_1ms' => :'waf_latency_0_to_1ms',
541
+ :'waf_latency_1_to_5ms' => :'waf_latency_1_to_5ms',
542
+ :'waf_latency_5_to_10ms' => :'waf_latency_5_to_10ms',
543
+ :'waf_latency_10_to_50ms' => :'waf_latency_10_to_50ms',
544
+ :'waf_latency_50_to_100ms' => :'waf_latency_50_to_100ms',
545
+ :'waf_latency_100_to_250ms' => :'waf_latency_100_to_250ms',
546
+ :'waf_latency_250_to_500ms' => :'waf_latency_250_to_500ms',
547
+ :'waf_latency_500_to_1000ms' => :'waf_latency_500_to_1000ms',
548
+ :'waf_latency_1000_to_5000ms' => :'waf_latency_1000_to_5000ms',
549
+ :'waf_latency_5000_to_10000ms' => :'waf_latency_5000_to_10000ms',
550
+ :'waf_latency_10000_to_60000ms' => :'waf_latency_10000_to_60000ms',
551
+ :'waf_latency_60000ms' => :'waf_latency_60000ms',
552
+ :'compute_responses' => :'compute_responses',
553
+ :'compute_resp_header_bytes' => :'compute_resp_header_bytes',
554
+ :'compute_resp_body_bytes' => :'compute_resp_body_bytes',
555
+ :'compute_status_1xx' => :'compute_status_1xx',
556
+ :'compute_status_2xx' => :'compute_status_2xx',
557
+ :'compute_status_3xx' => :'compute_status_3xx',
558
+ :'compute_status_4xx' => :'compute_status_4xx',
559
+ :'compute_status_5xx' => :'compute_status_5xx',
560
+ :'compute_status_200' => :'compute_status_200',
561
+ :'compute_status_204' => :'compute_status_204',
562
+ :'compute_status_206' => :'compute_status_206',
563
+ :'compute_status_301' => :'compute_status_301',
564
+ :'compute_status_302' => :'compute_status_302',
565
+ :'compute_status_304' => :'compute_status_304',
566
+ :'compute_status_400' => :'compute_status_400',
567
+ :'compute_status_401' => :'compute_status_401',
568
+ :'compute_status_403' => :'compute_status_403',
569
+ :'compute_status_404' => :'compute_status_404',
570
+ :'compute_status_416' => :'compute_status_416',
571
+ :'compute_status_429' => :'compute_status_429',
572
+ :'compute_status_500' => :'compute_status_500',
573
+ :'compute_status_501' => :'compute_status_501',
574
+ :'compute_status_502' => :'compute_status_502',
575
+ :'compute_status_503' => :'compute_status_503',
576
+ :'compute_status_504' => :'compute_status_504',
577
+ :'compute_status_505' => :'compute_status_505',
578
+ :'compute_latency_0_to_1ms' => :'compute_latency_0_to_1ms',
579
+ :'compute_latency_1_to_5ms' => :'compute_latency_1_to_5ms',
580
+ :'compute_latency_5_to_10ms' => :'compute_latency_5_to_10ms',
581
+ :'compute_latency_10_to_50ms' => :'compute_latency_10_to_50ms',
582
+ :'compute_latency_50_to_100ms' => :'compute_latency_50_to_100ms',
583
+ :'compute_latency_100_to_250ms' => :'compute_latency_100_to_250ms',
584
+ :'compute_latency_250_to_500ms' => :'compute_latency_250_to_500ms',
585
+ :'compute_latency_500_to_1000ms' => :'compute_latency_500_to_1000ms',
586
+ :'compute_latency_1000_to_5000ms' => :'compute_latency_1000_to_5000ms',
587
+ :'compute_latency_5000_to_10000ms' => :'compute_latency_5000_to_10000ms',
588
+ :'compute_latency_10000_to_60000ms' => :'compute_latency_10000_to_60000ms',
589
+ :'compute_latency_60000ms' => :'compute_latency_60000ms',
590
+ :'all_responses' => :'all_responses',
591
+ :'all_resp_header_bytes' => :'all_resp_header_bytes',
592
+ :'all_resp_body_bytes' => :'all_resp_body_bytes',
593
+ :'all_status_1xx' => :'all_status_1xx',
594
+ :'all_status_2xx' => :'all_status_2xx',
595
+ :'all_status_3xx' => :'all_status_3xx',
596
+ :'all_status_4xx' => :'all_status_4xx',
597
+ :'all_status_5xx' => :'all_status_5xx',
598
+ :'all_status_200' => :'all_status_200',
599
+ :'all_status_204' => :'all_status_204',
600
+ :'all_status_206' => :'all_status_206',
601
+ :'all_status_301' => :'all_status_301',
602
+ :'all_status_302' => :'all_status_302',
603
+ :'all_status_304' => :'all_status_304',
604
+ :'all_status_400' => :'all_status_400',
605
+ :'all_status_401' => :'all_status_401',
606
+ :'all_status_403' => :'all_status_403',
607
+ :'all_status_404' => :'all_status_404',
608
+ :'all_status_416' => :'all_status_416',
609
+ :'all_status_429' => :'all_status_429',
610
+ :'all_status_500' => :'all_status_500',
611
+ :'all_status_501' => :'all_status_501',
612
+ :'all_status_502' => :'all_status_502',
613
+ :'all_status_503' => :'all_status_503',
614
+ :'all_status_504' => :'all_status_504',
615
+ :'all_status_505' => :'all_status_505',
616
+ :'all_latency_0_to_1ms' => :'all_latency_0_to_1ms',
617
+ :'all_latency_1_to_5ms' => :'all_latency_1_to_5ms',
618
+ :'all_latency_5_to_10ms' => :'all_latency_5_to_10ms',
619
+ :'all_latency_10_to_50ms' => :'all_latency_10_to_50ms',
620
+ :'all_latency_50_to_100ms' => :'all_latency_50_to_100ms',
621
+ :'all_latency_100_to_250ms' => :'all_latency_100_to_250ms',
622
+ :'all_latency_250_to_500ms' => :'all_latency_250_to_500ms',
623
+ :'all_latency_500_to_1000ms' => :'all_latency_500_to_1000ms',
624
+ :'all_latency_1000_to_5000ms' => :'all_latency_1000_to_5000ms',
625
+ :'all_latency_5000_to_10000ms' => :'all_latency_5000_to_10000ms',
626
+ :'all_latency_10000_to_60000ms' => :'all_latency_10000_to_60000ms',
627
+ :'all_latency_60000ms' => :'all_latency_60000ms'
628
+ }
629
+ end
630
+
631
+ # Returns all the JSON keys this model knows about
632
+ def self.acceptable_attributes
633
+ attribute_map.values
634
+ end
635
+
636
+ # Attribute type mapping.
637
+ def self.fastly_types
638
+ {
639
+ :'responses' => :'Integer',
640
+ :'resp_header_bytes' => :'Integer',
641
+ :'resp_body_bytes' => :'Integer',
642
+ :'status_1xx' => :'Integer',
643
+ :'status_2xx' => :'Integer',
644
+ :'status_3xx' => :'Integer',
645
+ :'status_4xx' => :'Integer',
646
+ :'status_5xx' => :'Integer',
647
+ :'status_200' => :'Integer',
648
+ :'status_204' => :'Integer',
649
+ :'status_206' => :'Integer',
650
+ :'status_301' => :'Integer',
651
+ :'status_302' => :'Integer',
652
+ :'status_304' => :'Integer',
653
+ :'status_400' => :'Integer',
654
+ :'status_401' => :'Integer',
655
+ :'status_403' => :'Integer',
656
+ :'status_404' => :'Integer',
657
+ :'status_416' => :'Integer',
658
+ :'status_429' => :'Integer',
659
+ :'status_500' => :'Integer',
660
+ :'status_501' => :'Integer',
661
+ :'status_502' => :'Integer',
662
+ :'status_503' => :'Integer',
663
+ :'status_504' => :'Integer',
664
+ :'status_505' => :'Integer',
665
+ :'latency_0_to_1ms' => :'Integer',
666
+ :'latency_1_to_5ms' => :'Integer',
667
+ :'latency_5_to_10ms' => :'Integer',
668
+ :'latency_10_to_50ms' => :'Integer',
669
+ :'latency_50_to_100ms' => :'Integer',
670
+ :'latency_100_to_250ms' => :'Integer',
671
+ :'latency_250_to_500ms' => :'Integer',
672
+ :'latency_500_to_1000ms' => :'Integer',
673
+ :'latency_1000_to_5000ms' => :'Integer',
674
+ :'latency_5000_to_10000ms' => :'Integer',
675
+ :'latency_10000_to_60000ms' => :'Integer',
676
+ :'latency_60000ms' => :'Integer',
677
+ :'waf_responses' => :'Integer',
678
+ :'waf_resp_header_bytes' => :'Integer',
679
+ :'waf_resp_body_bytes' => :'Integer',
680
+ :'waf_status_1xx' => :'Integer',
681
+ :'waf_status_2xx' => :'Integer',
682
+ :'waf_status_3xx' => :'Integer',
683
+ :'waf_status_4xx' => :'Integer',
684
+ :'waf_status_5xx' => :'Integer',
685
+ :'waf_status_200' => :'Integer',
686
+ :'waf_status_204' => :'Integer',
687
+ :'waf_status_206' => :'Integer',
688
+ :'waf_status_301' => :'Integer',
689
+ :'waf_status_302' => :'Integer',
690
+ :'waf_status_304' => :'Integer',
691
+ :'waf_status_400' => :'Integer',
692
+ :'waf_status_401' => :'Integer',
693
+ :'waf_status_403' => :'Integer',
694
+ :'waf_status_404' => :'Integer',
695
+ :'waf_status_416' => :'Integer',
696
+ :'waf_status_429' => :'Integer',
697
+ :'waf_status_500' => :'Integer',
698
+ :'waf_status_501' => :'Integer',
699
+ :'waf_status_502' => :'Integer',
700
+ :'waf_status_503' => :'Integer',
701
+ :'waf_status_504' => :'Integer',
702
+ :'waf_status_505' => :'Integer',
703
+ :'waf_latency_0_to_1ms' => :'Integer',
704
+ :'waf_latency_1_to_5ms' => :'Integer',
705
+ :'waf_latency_5_to_10ms' => :'Integer',
706
+ :'waf_latency_10_to_50ms' => :'Integer',
707
+ :'waf_latency_50_to_100ms' => :'Integer',
708
+ :'waf_latency_100_to_250ms' => :'Integer',
709
+ :'waf_latency_250_to_500ms' => :'Integer',
710
+ :'waf_latency_500_to_1000ms' => :'Integer',
711
+ :'waf_latency_1000_to_5000ms' => :'Integer',
712
+ :'waf_latency_5000_to_10000ms' => :'Integer',
713
+ :'waf_latency_10000_to_60000ms' => :'Integer',
714
+ :'waf_latency_60000ms' => :'Integer',
715
+ :'compute_responses' => :'Integer',
716
+ :'compute_resp_header_bytes' => :'Integer',
717
+ :'compute_resp_body_bytes' => :'Integer',
718
+ :'compute_status_1xx' => :'Integer',
719
+ :'compute_status_2xx' => :'Integer',
720
+ :'compute_status_3xx' => :'Integer',
721
+ :'compute_status_4xx' => :'Integer',
722
+ :'compute_status_5xx' => :'Integer',
723
+ :'compute_status_200' => :'Integer',
724
+ :'compute_status_204' => :'Integer',
725
+ :'compute_status_206' => :'Integer',
726
+ :'compute_status_301' => :'Integer',
727
+ :'compute_status_302' => :'Integer',
728
+ :'compute_status_304' => :'Integer',
729
+ :'compute_status_400' => :'Integer',
730
+ :'compute_status_401' => :'Integer',
731
+ :'compute_status_403' => :'Integer',
732
+ :'compute_status_404' => :'Integer',
733
+ :'compute_status_416' => :'Integer',
734
+ :'compute_status_429' => :'Integer',
735
+ :'compute_status_500' => :'Integer',
736
+ :'compute_status_501' => :'Integer',
737
+ :'compute_status_502' => :'Integer',
738
+ :'compute_status_503' => :'Integer',
739
+ :'compute_status_504' => :'Integer',
740
+ :'compute_status_505' => :'Integer',
741
+ :'compute_latency_0_to_1ms' => :'Integer',
742
+ :'compute_latency_1_to_5ms' => :'Integer',
743
+ :'compute_latency_5_to_10ms' => :'Integer',
744
+ :'compute_latency_10_to_50ms' => :'Integer',
745
+ :'compute_latency_50_to_100ms' => :'Integer',
746
+ :'compute_latency_100_to_250ms' => :'Integer',
747
+ :'compute_latency_250_to_500ms' => :'Integer',
748
+ :'compute_latency_500_to_1000ms' => :'Integer',
749
+ :'compute_latency_1000_to_5000ms' => :'Integer',
750
+ :'compute_latency_5000_to_10000ms' => :'Integer',
751
+ :'compute_latency_10000_to_60000ms' => :'Integer',
752
+ :'compute_latency_60000ms' => :'Integer',
753
+ :'all_responses' => :'Integer',
754
+ :'all_resp_header_bytes' => :'Integer',
755
+ :'all_resp_body_bytes' => :'Integer',
756
+ :'all_status_1xx' => :'Integer',
757
+ :'all_status_2xx' => :'Integer',
758
+ :'all_status_3xx' => :'Integer',
759
+ :'all_status_4xx' => :'Integer',
760
+ :'all_status_5xx' => :'Integer',
761
+ :'all_status_200' => :'Integer',
762
+ :'all_status_204' => :'Integer',
763
+ :'all_status_206' => :'Integer',
764
+ :'all_status_301' => :'Integer',
765
+ :'all_status_302' => :'Integer',
766
+ :'all_status_304' => :'Integer',
767
+ :'all_status_400' => :'Integer',
768
+ :'all_status_401' => :'Integer',
769
+ :'all_status_403' => :'Integer',
770
+ :'all_status_404' => :'Integer',
771
+ :'all_status_416' => :'Integer',
772
+ :'all_status_429' => :'Integer',
773
+ :'all_status_500' => :'Integer',
774
+ :'all_status_501' => :'Integer',
775
+ :'all_status_502' => :'Integer',
776
+ :'all_status_503' => :'Integer',
777
+ :'all_status_504' => :'Integer',
778
+ :'all_status_505' => :'Integer',
779
+ :'all_latency_0_to_1ms' => :'Integer',
780
+ :'all_latency_1_to_5ms' => :'Integer',
781
+ :'all_latency_5_to_10ms' => :'Integer',
782
+ :'all_latency_10_to_50ms' => :'Integer',
783
+ :'all_latency_50_to_100ms' => :'Integer',
784
+ :'all_latency_100_to_250ms' => :'Integer',
785
+ :'all_latency_250_to_500ms' => :'Integer',
786
+ :'all_latency_500_to_1000ms' => :'Integer',
787
+ :'all_latency_1000_to_5000ms' => :'Integer',
788
+ :'all_latency_5000_to_10000ms' => :'Integer',
789
+ :'all_latency_10000_to_60000ms' => :'Integer',
790
+ :'all_latency_60000ms' => :'Integer'
791
+ }
792
+ end
793
+
794
+ # List of attributes with nullable: true
795
+ def self.fastly_nullable
796
+ Set.new([
797
+ ])
798
+ end
799
+
800
+ # Initializes the object
801
+ # @param [Hash] attributes Model attributes in the form of hash
802
+ def initialize(attributes = {})
803
+ if (!attributes.is_a?(Hash))
804
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::OriginInspectorMeasurements` initialize method"
805
+ end
806
+
807
+ # check to see if the attribute exists and convert string to symbol for hash key
808
+ attributes = attributes.each_with_object({}) { |(k, v), h|
809
+ if (!self.class.attribute_map.key?(k.to_sym))
810
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::OriginInspectorMeasurements`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
811
+ end
812
+ h[k.to_sym] = v
813
+ }
814
+
815
+ if attributes.key?(:'responses')
816
+ self.responses = attributes[:'responses']
817
+ end
818
+
819
+ if attributes.key?(:'resp_header_bytes')
820
+ self.resp_header_bytes = attributes[:'resp_header_bytes']
821
+ end
822
+
823
+ if attributes.key?(:'resp_body_bytes')
824
+ self.resp_body_bytes = attributes[:'resp_body_bytes']
825
+ end
826
+
827
+ if attributes.key?(:'status_1xx')
828
+ self.status_1xx = attributes[:'status_1xx']
829
+ end
830
+
831
+ if attributes.key?(:'status_2xx')
832
+ self.status_2xx = attributes[:'status_2xx']
833
+ end
834
+
835
+ if attributes.key?(:'status_3xx')
836
+ self.status_3xx = attributes[:'status_3xx']
837
+ end
838
+
839
+ if attributes.key?(:'status_4xx')
840
+ self.status_4xx = attributes[:'status_4xx']
841
+ end
842
+
843
+ if attributes.key?(:'status_5xx')
844
+ self.status_5xx = attributes[:'status_5xx']
845
+ end
846
+
847
+ if attributes.key?(:'status_200')
848
+ self.status_200 = attributes[:'status_200']
849
+ end
850
+
851
+ if attributes.key?(:'status_204')
852
+ self.status_204 = attributes[:'status_204']
853
+ end
854
+
855
+ if attributes.key?(:'status_206')
856
+ self.status_206 = attributes[:'status_206']
857
+ end
858
+
859
+ if attributes.key?(:'status_301')
860
+ self.status_301 = attributes[:'status_301']
861
+ end
862
+
863
+ if attributes.key?(:'status_302')
864
+ self.status_302 = attributes[:'status_302']
865
+ end
866
+
867
+ if attributes.key?(:'status_304')
868
+ self.status_304 = attributes[:'status_304']
869
+ end
870
+
871
+ if attributes.key?(:'status_400')
872
+ self.status_400 = attributes[:'status_400']
873
+ end
874
+
875
+ if attributes.key?(:'status_401')
876
+ self.status_401 = attributes[:'status_401']
877
+ end
878
+
879
+ if attributes.key?(:'status_403')
880
+ self.status_403 = attributes[:'status_403']
881
+ end
882
+
883
+ if attributes.key?(:'status_404')
884
+ self.status_404 = attributes[:'status_404']
885
+ end
886
+
887
+ if attributes.key?(:'status_416')
888
+ self.status_416 = attributes[:'status_416']
889
+ end
890
+
891
+ if attributes.key?(:'status_429')
892
+ self.status_429 = attributes[:'status_429']
893
+ end
894
+
895
+ if attributes.key?(:'status_500')
896
+ self.status_500 = attributes[:'status_500']
897
+ end
898
+
899
+ if attributes.key?(:'status_501')
900
+ self.status_501 = attributes[:'status_501']
901
+ end
902
+
903
+ if attributes.key?(:'status_502')
904
+ self.status_502 = attributes[:'status_502']
905
+ end
906
+
907
+ if attributes.key?(:'status_503')
908
+ self.status_503 = attributes[:'status_503']
909
+ end
910
+
911
+ if attributes.key?(:'status_504')
912
+ self.status_504 = attributes[:'status_504']
913
+ end
914
+
915
+ if attributes.key?(:'status_505')
916
+ self.status_505 = attributes[:'status_505']
917
+ end
918
+
919
+ if attributes.key?(:'latency_0_to_1ms')
920
+ self.latency_0_to_1ms = attributes[:'latency_0_to_1ms']
921
+ end
922
+
923
+ if attributes.key?(:'latency_1_to_5ms')
924
+ self.latency_1_to_5ms = attributes[:'latency_1_to_5ms']
925
+ end
926
+
927
+ if attributes.key?(:'latency_5_to_10ms')
928
+ self.latency_5_to_10ms = attributes[:'latency_5_to_10ms']
929
+ end
930
+
931
+ if attributes.key?(:'latency_10_to_50ms')
932
+ self.latency_10_to_50ms = attributes[:'latency_10_to_50ms']
933
+ end
934
+
935
+ if attributes.key?(:'latency_50_to_100ms')
936
+ self.latency_50_to_100ms = attributes[:'latency_50_to_100ms']
937
+ end
938
+
939
+ if attributes.key?(:'latency_100_to_250ms')
940
+ self.latency_100_to_250ms = attributes[:'latency_100_to_250ms']
941
+ end
942
+
943
+ if attributes.key?(:'latency_250_to_500ms')
944
+ self.latency_250_to_500ms = attributes[:'latency_250_to_500ms']
945
+ end
946
+
947
+ if attributes.key?(:'latency_500_to_1000ms')
948
+ self.latency_500_to_1000ms = attributes[:'latency_500_to_1000ms']
949
+ end
950
+
951
+ if attributes.key?(:'latency_1000_to_5000ms')
952
+ self.latency_1000_to_5000ms = attributes[:'latency_1000_to_5000ms']
953
+ end
954
+
955
+ if attributes.key?(:'latency_5000_to_10000ms')
956
+ self.latency_5000_to_10000ms = attributes[:'latency_5000_to_10000ms']
957
+ end
958
+
959
+ if attributes.key?(:'latency_10000_to_60000ms')
960
+ self.latency_10000_to_60000ms = attributes[:'latency_10000_to_60000ms']
961
+ end
962
+
963
+ if attributes.key?(:'latency_60000ms')
964
+ self.latency_60000ms = attributes[:'latency_60000ms']
965
+ end
966
+
967
+ if attributes.key?(:'waf_responses')
968
+ self.waf_responses = attributes[:'waf_responses']
969
+ end
970
+
971
+ if attributes.key?(:'waf_resp_header_bytes')
972
+ self.waf_resp_header_bytes = attributes[:'waf_resp_header_bytes']
973
+ end
974
+
975
+ if attributes.key?(:'waf_resp_body_bytes')
976
+ self.waf_resp_body_bytes = attributes[:'waf_resp_body_bytes']
977
+ end
978
+
979
+ if attributes.key?(:'waf_status_1xx')
980
+ self.waf_status_1xx = attributes[:'waf_status_1xx']
981
+ end
982
+
983
+ if attributes.key?(:'waf_status_2xx')
984
+ self.waf_status_2xx = attributes[:'waf_status_2xx']
985
+ end
986
+
987
+ if attributes.key?(:'waf_status_3xx')
988
+ self.waf_status_3xx = attributes[:'waf_status_3xx']
989
+ end
990
+
991
+ if attributes.key?(:'waf_status_4xx')
992
+ self.waf_status_4xx = attributes[:'waf_status_4xx']
993
+ end
994
+
995
+ if attributes.key?(:'waf_status_5xx')
996
+ self.waf_status_5xx = attributes[:'waf_status_5xx']
997
+ end
998
+
999
+ if attributes.key?(:'waf_status_200')
1000
+ self.waf_status_200 = attributes[:'waf_status_200']
1001
+ end
1002
+
1003
+ if attributes.key?(:'waf_status_204')
1004
+ self.waf_status_204 = attributes[:'waf_status_204']
1005
+ end
1006
+
1007
+ if attributes.key?(:'waf_status_206')
1008
+ self.waf_status_206 = attributes[:'waf_status_206']
1009
+ end
1010
+
1011
+ if attributes.key?(:'waf_status_301')
1012
+ self.waf_status_301 = attributes[:'waf_status_301']
1013
+ end
1014
+
1015
+ if attributes.key?(:'waf_status_302')
1016
+ self.waf_status_302 = attributes[:'waf_status_302']
1017
+ end
1018
+
1019
+ if attributes.key?(:'waf_status_304')
1020
+ self.waf_status_304 = attributes[:'waf_status_304']
1021
+ end
1022
+
1023
+ if attributes.key?(:'waf_status_400')
1024
+ self.waf_status_400 = attributes[:'waf_status_400']
1025
+ end
1026
+
1027
+ if attributes.key?(:'waf_status_401')
1028
+ self.waf_status_401 = attributes[:'waf_status_401']
1029
+ end
1030
+
1031
+ if attributes.key?(:'waf_status_403')
1032
+ self.waf_status_403 = attributes[:'waf_status_403']
1033
+ end
1034
+
1035
+ if attributes.key?(:'waf_status_404')
1036
+ self.waf_status_404 = attributes[:'waf_status_404']
1037
+ end
1038
+
1039
+ if attributes.key?(:'waf_status_416')
1040
+ self.waf_status_416 = attributes[:'waf_status_416']
1041
+ end
1042
+
1043
+ if attributes.key?(:'waf_status_429')
1044
+ self.waf_status_429 = attributes[:'waf_status_429']
1045
+ end
1046
+
1047
+ if attributes.key?(:'waf_status_500')
1048
+ self.waf_status_500 = attributes[:'waf_status_500']
1049
+ end
1050
+
1051
+ if attributes.key?(:'waf_status_501')
1052
+ self.waf_status_501 = attributes[:'waf_status_501']
1053
+ end
1054
+
1055
+ if attributes.key?(:'waf_status_502')
1056
+ self.waf_status_502 = attributes[:'waf_status_502']
1057
+ end
1058
+
1059
+ if attributes.key?(:'waf_status_503')
1060
+ self.waf_status_503 = attributes[:'waf_status_503']
1061
+ end
1062
+
1063
+ if attributes.key?(:'waf_status_504')
1064
+ self.waf_status_504 = attributes[:'waf_status_504']
1065
+ end
1066
+
1067
+ if attributes.key?(:'waf_status_505')
1068
+ self.waf_status_505 = attributes[:'waf_status_505']
1069
+ end
1070
+
1071
+ if attributes.key?(:'waf_latency_0_to_1ms')
1072
+ self.waf_latency_0_to_1ms = attributes[:'waf_latency_0_to_1ms']
1073
+ end
1074
+
1075
+ if attributes.key?(:'waf_latency_1_to_5ms')
1076
+ self.waf_latency_1_to_5ms = attributes[:'waf_latency_1_to_5ms']
1077
+ end
1078
+
1079
+ if attributes.key?(:'waf_latency_5_to_10ms')
1080
+ self.waf_latency_5_to_10ms = attributes[:'waf_latency_5_to_10ms']
1081
+ end
1082
+
1083
+ if attributes.key?(:'waf_latency_10_to_50ms')
1084
+ self.waf_latency_10_to_50ms = attributes[:'waf_latency_10_to_50ms']
1085
+ end
1086
+
1087
+ if attributes.key?(:'waf_latency_50_to_100ms')
1088
+ self.waf_latency_50_to_100ms = attributes[:'waf_latency_50_to_100ms']
1089
+ end
1090
+
1091
+ if attributes.key?(:'waf_latency_100_to_250ms')
1092
+ self.waf_latency_100_to_250ms = attributes[:'waf_latency_100_to_250ms']
1093
+ end
1094
+
1095
+ if attributes.key?(:'waf_latency_250_to_500ms')
1096
+ self.waf_latency_250_to_500ms = attributes[:'waf_latency_250_to_500ms']
1097
+ end
1098
+
1099
+ if attributes.key?(:'waf_latency_500_to_1000ms')
1100
+ self.waf_latency_500_to_1000ms = attributes[:'waf_latency_500_to_1000ms']
1101
+ end
1102
+
1103
+ if attributes.key?(:'waf_latency_1000_to_5000ms')
1104
+ self.waf_latency_1000_to_5000ms = attributes[:'waf_latency_1000_to_5000ms']
1105
+ end
1106
+
1107
+ if attributes.key?(:'waf_latency_5000_to_10000ms')
1108
+ self.waf_latency_5000_to_10000ms = attributes[:'waf_latency_5000_to_10000ms']
1109
+ end
1110
+
1111
+ if attributes.key?(:'waf_latency_10000_to_60000ms')
1112
+ self.waf_latency_10000_to_60000ms = attributes[:'waf_latency_10000_to_60000ms']
1113
+ end
1114
+
1115
+ if attributes.key?(:'waf_latency_60000ms')
1116
+ self.waf_latency_60000ms = attributes[:'waf_latency_60000ms']
1117
+ end
1118
+
1119
+ if attributes.key?(:'compute_responses')
1120
+ self.compute_responses = attributes[:'compute_responses']
1121
+ end
1122
+
1123
+ if attributes.key?(:'compute_resp_header_bytes')
1124
+ self.compute_resp_header_bytes = attributes[:'compute_resp_header_bytes']
1125
+ end
1126
+
1127
+ if attributes.key?(:'compute_resp_body_bytes')
1128
+ self.compute_resp_body_bytes = attributes[:'compute_resp_body_bytes']
1129
+ end
1130
+
1131
+ if attributes.key?(:'compute_status_1xx')
1132
+ self.compute_status_1xx = attributes[:'compute_status_1xx']
1133
+ end
1134
+
1135
+ if attributes.key?(:'compute_status_2xx')
1136
+ self.compute_status_2xx = attributes[:'compute_status_2xx']
1137
+ end
1138
+
1139
+ if attributes.key?(:'compute_status_3xx')
1140
+ self.compute_status_3xx = attributes[:'compute_status_3xx']
1141
+ end
1142
+
1143
+ if attributes.key?(:'compute_status_4xx')
1144
+ self.compute_status_4xx = attributes[:'compute_status_4xx']
1145
+ end
1146
+
1147
+ if attributes.key?(:'compute_status_5xx')
1148
+ self.compute_status_5xx = attributes[:'compute_status_5xx']
1149
+ end
1150
+
1151
+ if attributes.key?(:'compute_status_200')
1152
+ self.compute_status_200 = attributes[:'compute_status_200']
1153
+ end
1154
+
1155
+ if attributes.key?(:'compute_status_204')
1156
+ self.compute_status_204 = attributes[:'compute_status_204']
1157
+ end
1158
+
1159
+ if attributes.key?(:'compute_status_206')
1160
+ self.compute_status_206 = attributes[:'compute_status_206']
1161
+ end
1162
+
1163
+ if attributes.key?(:'compute_status_301')
1164
+ self.compute_status_301 = attributes[:'compute_status_301']
1165
+ end
1166
+
1167
+ if attributes.key?(:'compute_status_302')
1168
+ self.compute_status_302 = attributes[:'compute_status_302']
1169
+ end
1170
+
1171
+ if attributes.key?(:'compute_status_304')
1172
+ self.compute_status_304 = attributes[:'compute_status_304']
1173
+ end
1174
+
1175
+ if attributes.key?(:'compute_status_400')
1176
+ self.compute_status_400 = attributes[:'compute_status_400']
1177
+ end
1178
+
1179
+ if attributes.key?(:'compute_status_401')
1180
+ self.compute_status_401 = attributes[:'compute_status_401']
1181
+ end
1182
+
1183
+ if attributes.key?(:'compute_status_403')
1184
+ self.compute_status_403 = attributes[:'compute_status_403']
1185
+ end
1186
+
1187
+ if attributes.key?(:'compute_status_404')
1188
+ self.compute_status_404 = attributes[:'compute_status_404']
1189
+ end
1190
+
1191
+ if attributes.key?(:'compute_status_416')
1192
+ self.compute_status_416 = attributes[:'compute_status_416']
1193
+ end
1194
+
1195
+ if attributes.key?(:'compute_status_429')
1196
+ self.compute_status_429 = attributes[:'compute_status_429']
1197
+ end
1198
+
1199
+ if attributes.key?(:'compute_status_500')
1200
+ self.compute_status_500 = attributes[:'compute_status_500']
1201
+ end
1202
+
1203
+ if attributes.key?(:'compute_status_501')
1204
+ self.compute_status_501 = attributes[:'compute_status_501']
1205
+ end
1206
+
1207
+ if attributes.key?(:'compute_status_502')
1208
+ self.compute_status_502 = attributes[:'compute_status_502']
1209
+ end
1210
+
1211
+ if attributes.key?(:'compute_status_503')
1212
+ self.compute_status_503 = attributes[:'compute_status_503']
1213
+ end
1214
+
1215
+ if attributes.key?(:'compute_status_504')
1216
+ self.compute_status_504 = attributes[:'compute_status_504']
1217
+ end
1218
+
1219
+ if attributes.key?(:'compute_status_505')
1220
+ self.compute_status_505 = attributes[:'compute_status_505']
1221
+ end
1222
+
1223
+ if attributes.key?(:'compute_latency_0_to_1ms')
1224
+ self.compute_latency_0_to_1ms = attributes[:'compute_latency_0_to_1ms']
1225
+ end
1226
+
1227
+ if attributes.key?(:'compute_latency_1_to_5ms')
1228
+ self.compute_latency_1_to_5ms = attributes[:'compute_latency_1_to_5ms']
1229
+ end
1230
+
1231
+ if attributes.key?(:'compute_latency_5_to_10ms')
1232
+ self.compute_latency_5_to_10ms = attributes[:'compute_latency_5_to_10ms']
1233
+ end
1234
+
1235
+ if attributes.key?(:'compute_latency_10_to_50ms')
1236
+ self.compute_latency_10_to_50ms = attributes[:'compute_latency_10_to_50ms']
1237
+ end
1238
+
1239
+ if attributes.key?(:'compute_latency_50_to_100ms')
1240
+ self.compute_latency_50_to_100ms = attributes[:'compute_latency_50_to_100ms']
1241
+ end
1242
+
1243
+ if attributes.key?(:'compute_latency_100_to_250ms')
1244
+ self.compute_latency_100_to_250ms = attributes[:'compute_latency_100_to_250ms']
1245
+ end
1246
+
1247
+ if attributes.key?(:'compute_latency_250_to_500ms')
1248
+ self.compute_latency_250_to_500ms = attributes[:'compute_latency_250_to_500ms']
1249
+ end
1250
+
1251
+ if attributes.key?(:'compute_latency_500_to_1000ms')
1252
+ self.compute_latency_500_to_1000ms = attributes[:'compute_latency_500_to_1000ms']
1253
+ end
1254
+
1255
+ if attributes.key?(:'compute_latency_1000_to_5000ms')
1256
+ self.compute_latency_1000_to_5000ms = attributes[:'compute_latency_1000_to_5000ms']
1257
+ end
1258
+
1259
+ if attributes.key?(:'compute_latency_5000_to_10000ms')
1260
+ self.compute_latency_5000_to_10000ms = attributes[:'compute_latency_5000_to_10000ms']
1261
+ end
1262
+
1263
+ if attributes.key?(:'compute_latency_10000_to_60000ms')
1264
+ self.compute_latency_10000_to_60000ms = attributes[:'compute_latency_10000_to_60000ms']
1265
+ end
1266
+
1267
+ if attributes.key?(:'compute_latency_60000ms')
1268
+ self.compute_latency_60000ms = attributes[:'compute_latency_60000ms']
1269
+ end
1270
+
1271
+ if attributes.key?(:'all_responses')
1272
+ self.all_responses = attributes[:'all_responses']
1273
+ end
1274
+
1275
+ if attributes.key?(:'all_resp_header_bytes')
1276
+ self.all_resp_header_bytes = attributes[:'all_resp_header_bytes']
1277
+ end
1278
+
1279
+ if attributes.key?(:'all_resp_body_bytes')
1280
+ self.all_resp_body_bytes = attributes[:'all_resp_body_bytes']
1281
+ end
1282
+
1283
+ if attributes.key?(:'all_status_1xx')
1284
+ self.all_status_1xx = attributes[:'all_status_1xx']
1285
+ end
1286
+
1287
+ if attributes.key?(:'all_status_2xx')
1288
+ self.all_status_2xx = attributes[:'all_status_2xx']
1289
+ end
1290
+
1291
+ if attributes.key?(:'all_status_3xx')
1292
+ self.all_status_3xx = attributes[:'all_status_3xx']
1293
+ end
1294
+
1295
+ if attributes.key?(:'all_status_4xx')
1296
+ self.all_status_4xx = attributes[:'all_status_4xx']
1297
+ end
1298
+
1299
+ if attributes.key?(:'all_status_5xx')
1300
+ self.all_status_5xx = attributes[:'all_status_5xx']
1301
+ end
1302
+
1303
+ if attributes.key?(:'all_status_200')
1304
+ self.all_status_200 = attributes[:'all_status_200']
1305
+ end
1306
+
1307
+ if attributes.key?(:'all_status_204')
1308
+ self.all_status_204 = attributes[:'all_status_204']
1309
+ end
1310
+
1311
+ if attributes.key?(:'all_status_206')
1312
+ self.all_status_206 = attributes[:'all_status_206']
1313
+ end
1314
+
1315
+ if attributes.key?(:'all_status_301')
1316
+ self.all_status_301 = attributes[:'all_status_301']
1317
+ end
1318
+
1319
+ if attributes.key?(:'all_status_302')
1320
+ self.all_status_302 = attributes[:'all_status_302']
1321
+ end
1322
+
1323
+ if attributes.key?(:'all_status_304')
1324
+ self.all_status_304 = attributes[:'all_status_304']
1325
+ end
1326
+
1327
+ if attributes.key?(:'all_status_400')
1328
+ self.all_status_400 = attributes[:'all_status_400']
1329
+ end
1330
+
1331
+ if attributes.key?(:'all_status_401')
1332
+ self.all_status_401 = attributes[:'all_status_401']
1333
+ end
1334
+
1335
+ if attributes.key?(:'all_status_403')
1336
+ self.all_status_403 = attributes[:'all_status_403']
1337
+ end
1338
+
1339
+ if attributes.key?(:'all_status_404')
1340
+ self.all_status_404 = attributes[:'all_status_404']
1341
+ end
1342
+
1343
+ if attributes.key?(:'all_status_416')
1344
+ self.all_status_416 = attributes[:'all_status_416']
1345
+ end
1346
+
1347
+ if attributes.key?(:'all_status_429')
1348
+ self.all_status_429 = attributes[:'all_status_429']
1349
+ end
1350
+
1351
+ if attributes.key?(:'all_status_500')
1352
+ self.all_status_500 = attributes[:'all_status_500']
1353
+ end
1354
+
1355
+ if attributes.key?(:'all_status_501')
1356
+ self.all_status_501 = attributes[:'all_status_501']
1357
+ end
1358
+
1359
+ if attributes.key?(:'all_status_502')
1360
+ self.all_status_502 = attributes[:'all_status_502']
1361
+ end
1362
+
1363
+ if attributes.key?(:'all_status_503')
1364
+ self.all_status_503 = attributes[:'all_status_503']
1365
+ end
1366
+
1367
+ if attributes.key?(:'all_status_504')
1368
+ self.all_status_504 = attributes[:'all_status_504']
1369
+ end
1370
+
1371
+ if attributes.key?(:'all_status_505')
1372
+ self.all_status_505 = attributes[:'all_status_505']
1373
+ end
1374
+
1375
+ if attributes.key?(:'all_latency_0_to_1ms')
1376
+ self.all_latency_0_to_1ms = attributes[:'all_latency_0_to_1ms']
1377
+ end
1378
+
1379
+ if attributes.key?(:'all_latency_1_to_5ms')
1380
+ self.all_latency_1_to_5ms = attributes[:'all_latency_1_to_5ms']
1381
+ end
1382
+
1383
+ if attributes.key?(:'all_latency_5_to_10ms')
1384
+ self.all_latency_5_to_10ms = attributes[:'all_latency_5_to_10ms']
1385
+ end
1386
+
1387
+ if attributes.key?(:'all_latency_10_to_50ms')
1388
+ self.all_latency_10_to_50ms = attributes[:'all_latency_10_to_50ms']
1389
+ end
1390
+
1391
+ if attributes.key?(:'all_latency_50_to_100ms')
1392
+ self.all_latency_50_to_100ms = attributes[:'all_latency_50_to_100ms']
1393
+ end
1394
+
1395
+ if attributes.key?(:'all_latency_100_to_250ms')
1396
+ self.all_latency_100_to_250ms = attributes[:'all_latency_100_to_250ms']
1397
+ end
1398
+
1399
+ if attributes.key?(:'all_latency_250_to_500ms')
1400
+ self.all_latency_250_to_500ms = attributes[:'all_latency_250_to_500ms']
1401
+ end
1402
+
1403
+ if attributes.key?(:'all_latency_500_to_1000ms')
1404
+ self.all_latency_500_to_1000ms = attributes[:'all_latency_500_to_1000ms']
1405
+ end
1406
+
1407
+ if attributes.key?(:'all_latency_1000_to_5000ms')
1408
+ self.all_latency_1000_to_5000ms = attributes[:'all_latency_1000_to_5000ms']
1409
+ end
1410
+
1411
+ if attributes.key?(:'all_latency_5000_to_10000ms')
1412
+ self.all_latency_5000_to_10000ms = attributes[:'all_latency_5000_to_10000ms']
1413
+ end
1414
+
1415
+ if attributes.key?(:'all_latency_10000_to_60000ms')
1416
+ self.all_latency_10000_to_60000ms = attributes[:'all_latency_10000_to_60000ms']
1417
+ end
1418
+
1419
+ if attributes.key?(:'all_latency_60000ms')
1420
+ self.all_latency_60000ms = attributes[:'all_latency_60000ms']
1421
+ end
1422
+ end
1423
+
1424
+ # Show invalid properties with the reasons. Usually used together with valid?
1425
+ # @return Array for valid properties with the reasons
1426
+ def list_invalid_properties
1427
+ invalid_properties = Array.new
1428
+ invalid_properties
1429
+ end
1430
+
1431
+ # Check to see if the all the properties in the model are valid
1432
+ # @return true if the model is valid
1433
+ def valid?
1434
+ true
1435
+ end
1436
+
1437
+ # Checks equality by comparing each attribute.
1438
+ # @param [Object] Object to be compared
1439
+ def ==(o)
1440
+ return true if self.equal?(o)
1441
+ self.class == o.class &&
1442
+ responses == o.responses &&
1443
+ resp_header_bytes == o.resp_header_bytes &&
1444
+ resp_body_bytes == o.resp_body_bytes &&
1445
+ status_1xx == o.status_1xx &&
1446
+ status_2xx == o.status_2xx &&
1447
+ status_3xx == o.status_3xx &&
1448
+ status_4xx == o.status_4xx &&
1449
+ status_5xx == o.status_5xx &&
1450
+ status_200 == o.status_200 &&
1451
+ status_204 == o.status_204 &&
1452
+ status_206 == o.status_206 &&
1453
+ status_301 == o.status_301 &&
1454
+ status_302 == o.status_302 &&
1455
+ status_304 == o.status_304 &&
1456
+ status_400 == o.status_400 &&
1457
+ status_401 == o.status_401 &&
1458
+ status_403 == o.status_403 &&
1459
+ status_404 == o.status_404 &&
1460
+ status_416 == o.status_416 &&
1461
+ status_429 == o.status_429 &&
1462
+ status_500 == o.status_500 &&
1463
+ status_501 == o.status_501 &&
1464
+ status_502 == o.status_502 &&
1465
+ status_503 == o.status_503 &&
1466
+ status_504 == o.status_504 &&
1467
+ status_505 == o.status_505 &&
1468
+ latency_0_to_1ms == o.latency_0_to_1ms &&
1469
+ latency_1_to_5ms == o.latency_1_to_5ms &&
1470
+ latency_5_to_10ms == o.latency_5_to_10ms &&
1471
+ latency_10_to_50ms == o.latency_10_to_50ms &&
1472
+ latency_50_to_100ms == o.latency_50_to_100ms &&
1473
+ latency_100_to_250ms == o.latency_100_to_250ms &&
1474
+ latency_250_to_500ms == o.latency_250_to_500ms &&
1475
+ latency_500_to_1000ms == o.latency_500_to_1000ms &&
1476
+ latency_1000_to_5000ms == o.latency_1000_to_5000ms &&
1477
+ latency_5000_to_10000ms == o.latency_5000_to_10000ms &&
1478
+ latency_10000_to_60000ms == o.latency_10000_to_60000ms &&
1479
+ latency_60000ms == o.latency_60000ms &&
1480
+ waf_responses == o.waf_responses &&
1481
+ waf_resp_header_bytes == o.waf_resp_header_bytes &&
1482
+ waf_resp_body_bytes == o.waf_resp_body_bytes &&
1483
+ waf_status_1xx == o.waf_status_1xx &&
1484
+ waf_status_2xx == o.waf_status_2xx &&
1485
+ waf_status_3xx == o.waf_status_3xx &&
1486
+ waf_status_4xx == o.waf_status_4xx &&
1487
+ waf_status_5xx == o.waf_status_5xx &&
1488
+ waf_status_200 == o.waf_status_200 &&
1489
+ waf_status_204 == o.waf_status_204 &&
1490
+ waf_status_206 == o.waf_status_206 &&
1491
+ waf_status_301 == o.waf_status_301 &&
1492
+ waf_status_302 == o.waf_status_302 &&
1493
+ waf_status_304 == o.waf_status_304 &&
1494
+ waf_status_400 == o.waf_status_400 &&
1495
+ waf_status_401 == o.waf_status_401 &&
1496
+ waf_status_403 == o.waf_status_403 &&
1497
+ waf_status_404 == o.waf_status_404 &&
1498
+ waf_status_416 == o.waf_status_416 &&
1499
+ waf_status_429 == o.waf_status_429 &&
1500
+ waf_status_500 == o.waf_status_500 &&
1501
+ waf_status_501 == o.waf_status_501 &&
1502
+ waf_status_502 == o.waf_status_502 &&
1503
+ waf_status_503 == o.waf_status_503 &&
1504
+ waf_status_504 == o.waf_status_504 &&
1505
+ waf_status_505 == o.waf_status_505 &&
1506
+ waf_latency_0_to_1ms == o.waf_latency_0_to_1ms &&
1507
+ waf_latency_1_to_5ms == o.waf_latency_1_to_5ms &&
1508
+ waf_latency_5_to_10ms == o.waf_latency_5_to_10ms &&
1509
+ waf_latency_10_to_50ms == o.waf_latency_10_to_50ms &&
1510
+ waf_latency_50_to_100ms == o.waf_latency_50_to_100ms &&
1511
+ waf_latency_100_to_250ms == o.waf_latency_100_to_250ms &&
1512
+ waf_latency_250_to_500ms == o.waf_latency_250_to_500ms &&
1513
+ waf_latency_500_to_1000ms == o.waf_latency_500_to_1000ms &&
1514
+ waf_latency_1000_to_5000ms == o.waf_latency_1000_to_5000ms &&
1515
+ waf_latency_5000_to_10000ms == o.waf_latency_5000_to_10000ms &&
1516
+ waf_latency_10000_to_60000ms == o.waf_latency_10000_to_60000ms &&
1517
+ waf_latency_60000ms == o.waf_latency_60000ms &&
1518
+ compute_responses == o.compute_responses &&
1519
+ compute_resp_header_bytes == o.compute_resp_header_bytes &&
1520
+ compute_resp_body_bytes == o.compute_resp_body_bytes &&
1521
+ compute_status_1xx == o.compute_status_1xx &&
1522
+ compute_status_2xx == o.compute_status_2xx &&
1523
+ compute_status_3xx == o.compute_status_3xx &&
1524
+ compute_status_4xx == o.compute_status_4xx &&
1525
+ compute_status_5xx == o.compute_status_5xx &&
1526
+ compute_status_200 == o.compute_status_200 &&
1527
+ compute_status_204 == o.compute_status_204 &&
1528
+ compute_status_206 == o.compute_status_206 &&
1529
+ compute_status_301 == o.compute_status_301 &&
1530
+ compute_status_302 == o.compute_status_302 &&
1531
+ compute_status_304 == o.compute_status_304 &&
1532
+ compute_status_400 == o.compute_status_400 &&
1533
+ compute_status_401 == o.compute_status_401 &&
1534
+ compute_status_403 == o.compute_status_403 &&
1535
+ compute_status_404 == o.compute_status_404 &&
1536
+ compute_status_416 == o.compute_status_416 &&
1537
+ compute_status_429 == o.compute_status_429 &&
1538
+ compute_status_500 == o.compute_status_500 &&
1539
+ compute_status_501 == o.compute_status_501 &&
1540
+ compute_status_502 == o.compute_status_502 &&
1541
+ compute_status_503 == o.compute_status_503 &&
1542
+ compute_status_504 == o.compute_status_504 &&
1543
+ compute_status_505 == o.compute_status_505 &&
1544
+ compute_latency_0_to_1ms == o.compute_latency_0_to_1ms &&
1545
+ compute_latency_1_to_5ms == o.compute_latency_1_to_5ms &&
1546
+ compute_latency_5_to_10ms == o.compute_latency_5_to_10ms &&
1547
+ compute_latency_10_to_50ms == o.compute_latency_10_to_50ms &&
1548
+ compute_latency_50_to_100ms == o.compute_latency_50_to_100ms &&
1549
+ compute_latency_100_to_250ms == o.compute_latency_100_to_250ms &&
1550
+ compute_latency_250_to_500ms == o.compute_latency_250_to_500ms &&
1551
+ compute_latency_500_to_1000ms == o.compute_latency_500_to_1000ms &&
1552
+ compute_latency_1000_to_5000ms == o.compute_latency_1000_to_5000ms &&
1553
+ compute_latency_5000_to_10000ms == o.compute_latency_5000_to_10000ms &&
1554
+ compute_latency_10000_to_60000ms == o.compute_latency_10000_to_60000ms &&
1555
+ compute_latency_60000ms == o.compute_latency_60000ms &&
1556
+ all_responses == o.all_responses &&
1557
+ all_resp_header_bytes == o.all_resp_header_bytes &&
1558
+ all_resp_body_bytes == o.all_resp_body_bytes &&
1559
+ all_status_1xx == o.all_status_1xx &&
1560
+ all_status_2xx == o.all_status_2xx &&
1561
+ all_status_3xx == o.all_status_3xx &&
1562
+ all_status_4xx == o.all_status_4xx &&
1563
+ all_status_5xx == o.all_status_5xx &&
1564
+ all_status_200 == o.all_status_200 &&
1565
+ all_status_204 == o.all_status_204 &&
1566
+ all_status_206 == o.all_status_206 &&
1567
+ all_status_301 == o.all_status_301 &&
1568
+ all_status_302 == o.all_status_302 &&
1569
+ all_status_304 == o.all_status_304 &&
1570
+ all_status_400 == o.all_status_400 &&
1571
+ all_status_401 == o.all_status_401 &&
1572
+ all_status_403 == o.all_status_403 &&
1573
+ all_status_404 == o.all_status_404 &&
1574
+ all_status_416 == o.all_status_416 &&
1575
+ all_status_429 == o.all_status_429 &&
1576
+ all_status_500 == o.all_status_500 &&
1577
+ all_status_501 == o.all_status_501 &&
1578
+ all_status_502 == o.all_status_502 &&
1579
+ all_status_503 == o.all_status_503 &&
1580
+ all_status_504 == o.all_status_504 &&
1581
+ all_status_505 == o.all_status_505 &&
1582
+ all_latency_0_to_1ms == o.all_latency_0_to_1ms &&
1583
+ all_latency_1_to_5ms == o.all_latency_1_to_5ms &&
1584
+ all_latency_5_to_10ms == o.all_latency_5_to_10ms &&
1585
+ all_latency_10_to_50ms == o.all_latency_10_to_50ms &&
1586
+ all_latency_50_to_100ms == o.all_latency_50_to_100ms &&
1587
+ all_latency_100_to_250ms == o.all_latency_100_to_250ms &&
1588
+ all_latency_250_to_500ms == o.all_latency_250_to_500ms &&
1589
+ all_latency_500_to_1000ms == o.all_latency_500_to_1000ms &&
1590
+ all_latency_1000_to_5000ms == o.all_latency_1000_to_5000ms &&
1591
+ all_latency_5000_to_10000ms == o.all_latency_5000_to_10000ms &&
1592
+ all_latency_10000_to_60000ms == o.all_latency_10000_to_60000ms &&
1593
+ all_latency_60000ms == o.all_latency_60000ms
1594
+ end
1595
+
1596
+ # @see the `==` method
1597
+ # @param [Object] Object to be compared
1598
+ def eql?(o)
1599
+ self == o
1600
+ end
1601
+
1602
+ # Calculates hash code according to all attributes.
1603
+ # @return [Integer] Hash code
1604
+ def hash
1605
+ [responses, resp_header_bytes, resp_body_bytes, status_1xx, status_2xx, status_3xx, status_4xx, status_5xx, status_200, status_204, status_206, status_301, status_302, status_304, status_400, status_401, status_403, status_404, status_416, status_429, status_500, status_501, status_502, status_503, status_504, status_505, latency_0_to_1ms, latency_1_to_5ms, latency_5_to_10ms, latency_10_to_50ms, latency_50_to_100ms, latency_100_to_250ms, latency_250_to_500ms, latency_500_to_1000ms, latency_1000_to_5000ms, latency_5000_to_10000ms, latency_10000_to_60000ms, latency_60000ms, waf_responses, waf_resp_header_bytes, waf_resp_body_bytes, waf_status_1xx, waf_status_2xx, waf_status_3xx, waf_status_4xx, waf_status_5xx, waf_status_200, waf_status_204, waf_status_206, waf_status_301, waf_status_302, waf_status_304, waf_status_400, waf_status_401, waf_status_403, waf_status_404, waf_status_416, waf_status_429, waf_status_500, waf_status_501, waf_status_502, waf_status_503, waf_status_504, waf_status_505, waf_latency_0_to_1ms, waf_latency_1_to_5ms, waf_latency_5_to_10ms, waf_latency_10_to_50ms, waf_latency_50_to_100ms, waf_latency_100_to_250ms, waf_latency_250_to_500ms, waf_latency_500_to_1000ms, waf_latency_1000_to_5000ms, waf_latency_5000_to_10000ms, waf_latency_10000_to_60000ms, waf_latency_60000ms, compute_responses, compute_resp_header_bytes, compute_resp_body_bytes, compute_status_1xx, compute_status_2xx, compute_status_3xx, compute_status_4xx, compute_status_5xx, compute_status_200, compute_status_204, compute_status_206, compute_status_301, compute_status_302, compute_status_304, compute_status_400, compute_status_401, compute_status_403, compute_status_404, compute_status_416, compute_status_429, compute_status_500, compute_status_501, compute_status_502, compute_status_503, compute_status_504, compute_status_505, compute_latency_0_to_1ms, compute_latency_1_to_5ms, compute_latency_5_to_10ms, compute_latency_10_to_50ms, compute_latency_50_to_100ms, compute_latency_100_to_250ms, compute_latency_250_to_500ms, compute_latency_500_to_1000ms, compute_latency_1000_to_5000ms, compute_latency_5000_to_10000ms, compute_latency_10000_to_60000ms, compute_latency_60000ms, all_responses, all_resp_header_bytes, all_resp_body_bytes, all_status_1xx, all_status_2xx, all_status_3xx, all_status_4xx, all_status_5xx, all_status_200, all_status_204, all_status_206, all_status_301, all_status_302, all_status_304, all_status_400, all_status_401, all_status_403, all_status_404, all_status_416, all_status_429, all_status_500, all_status_501, all_status_502, all_status_503, all_status_504, all_status_505, all_latency_0_to_1ms, all_latency_1_to_5ms, all_latency_5_to_10ms, all_latency_10_to_50ms, all_latency_50_to_100ms, all_latency_100_to_250ms, all_latency_250_to_500ms, all_latency_500_to_1000ms, all_latency_1000_to_5000ms, all_latency_5000_to_10000ms, all_latency_10000_to_60000ms, all_latency_60000ms].hash
1606
+ end
1607
+
1608
+ # Builds the object from hash
1609
+ # @param [Hash] attributes Model attributes in the form of hash
1610
+ # @return [Object] Returns the model itself
1611
+ def self.build_from_hash(attributes)
1612
+ new.build_from_hash(attributes)
1613
+ end
1614
+
1615
+ # Builds the object from hash
1616
+ # @param [Hash] attributes Model attributes in the form of hash
1617
+ # @return [Object] Returns the model itself
1618
+ def build_from_hash(attributes)
1619
+ return nil unless attributes.is_a?(Hash)
1620
+ self.class.fastly_types.each_pair do |key, type|
1621
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
1622
+ self.send("#{key}=", nil)
1623
+ elsif type =~ /\AArray<(.*)>/i
1624
+ # check to ensure the input is an array given that the attribute
1625
+ # is documented as an array but the input is not
1626
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
1627
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
1628
+ end
1629
+ elsif !attributes[self.class.attribute_map[key]].nil?
1630
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
1631
+ end
1632
+ end
1633
+
1634
+ self
1635
+ end
1636
+
1637
+ # Deserializes the data based on type
1638
+ # @param string type Data type
1639
+ # @param string value Value to be deserialized
1640
+ # @return [Object] Deserialized data
1641
+ def _deserialize(type, value)
1642
+ case type.to_sym
1643
+ when :Time
1644
+ Time.parse(value)
1645
+ when :Date
1646
+ Date.parse(value)
1647
+ when :String
1648
+ value.to_s
1649
+ when :Integer
1650
+ value.to_i
1651
+ when :Float
1652
+ value.to_f
1653
+ when :Boolean
1654
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1655
+ true
1656
+ else
1657
+ false
1658
+ end
1659
+ when :Object
1660
+ # generic object (usually a Hash), return directly
1661
+ value
1662
+ when /\AArray<(?<inner_type>.+)>\z/
1663
+ inner_type = Regexp.last_match[:inner_type]
1664
+ value.map { |v| _deserialize(inner_type, v) }
1665
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1666
+ k_type = Regexp.last_match[:k_type]
1667
+ v_type = Regexp.last_match[:v_type]
1668
+ {}.tap do |hash|
1669
+ value.each do |k, v|
1670
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1671
+ end
1672
+ end
1673
+ else # model
1674
+ # models (e.g. Pet) or oneOf
1675
+ klass = Fastly.const_get(type)
1676
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
1677
+ end
1678
+ end
1679
+
1680
+ # Returns the string representation of the object
1681
+ # @return [String] String presentation of the object
1682
+ def to_s
1683
+ to_hash.to_s
1684
+ end
1685
+
1686
+ # to_body is an alias to to_hash (backward compatibility)
1687
+ # @return [Hash] Returns the object in the form of hash
1688
+ def to_body
1689
+ to_hash
1690
+ end
1691
+
1692
+ # Returns the object in the form of hash
1693
+ # @return [Hash] Returns the object in the form of hash
1694
+ def to_hash
1695
+ hash = {}
1696
+ self.class.attribute_map.each_pair do |attr, param|
1697
+ value = self.send(attr)
1698
+ if value.nil?
1699
+ is_nullable = self.class.fastly_nullable.include?(attr)
1700
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
1701
+ end
1702
+
1703
+ hash[param] = _to_hash(value)
1704
+ end
1705
+ hash
1706
+ end
1707
+
1708
+ # Outputs non-array value in the form of hash
1709
+ # For object, use to_hash. Otherwise, just return the value
1710
+ # @param [Object] value Any valid value
1711
+ # @return [Hash] Returns the value in the form of hash
1712
+ def _to_hash(value)
1713
+ if value.is_a?(Array)
1714
+ value.compact.map { |v| _to_hash(v) }
1715
+ elsif value.is_a?(Hash)
1716
+ {}.tap do |hash|
1717
+ value.each { |k, v| hash[k] = _to_hash(v) }
1718
+ end
1719
+ elsif value.respond_to? :to_hash
1720
+ value.to_hash
1721
+ else
1722
+ value
1723
+ end
1724
+ end
1725
+
1726
+ end
1727
+
1728
+ end