fastly 6.0.2 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +1 -1
  5. data/docs/CacheSetting.md +2 -2
  6. data/docs/CacheSettingResponse.md +3 -3
  7. data/docs/CacheSettingsApi.md +8 -8
  8. data/docs/DomainApi.md +2 -2
  9. data/docs/GzipResponse.md +1 -1
  10. data/docs/Header.md +0 -2
  11. data/docs/HeaderApi.md +8 -8
  12. data/docs/HeaderResponse.md +3 -3
  13. data/docs/HeaderResponseAdditional.md +11 -0
  14. data/docs/{LoggingAzureblobAllOf.md → LoggingAzureblobAdditional.md} +1 -1
  15. data/docs/LoggingAzureblobApi.md +8 -8
  16. data/docs/LoggingAzureblobResponse.md +8 -8
  17. data/docs/{LoggingBigqueryAllOf.md → LoggingBigqueryAdditional.md} +1 -1
  18. data/docs/LoggingBigqueryApi.md +4 -4
  19. data/docs/LoggingBigqueryResponse.md +2 -2
  20. data/docs/{LoggingCloudfilesAllOf.md → LoggingCloudfilesAdditional.md} +1 -1
  21. data/docs/LoggingCloudfilesApi.md +8 -8
  22. data/docs/LoggingCloudfilesResponse.md +8 -8
  23. data/docs/LoggingCommon.md +0 -1
  24. data/docs/{LoggingPapertrail.md → LoggingCommonResponse.md} +2 -4
  25. data/docs/{LoggingLogshuttle.md → LoggingCommonResponseAllOf.md} +1 -4
  26. data/docs/LoggingCommonResponseAllOf1.md +10 -0
  27. data/docs/{LoggingDatadogAllOf.md → LoggingDatadogAdditional.md} +1 -1
  28. data/docs/LoggingDatadogApi.md +4 -4
  29. data/docs/LoggingDatadogResponse.md +2 -2
  30. data/docs/{LoggingDigitaloceanAllOf.md → LoggingDigitaloceanAdditional.md} +1 -1
  31. data/docs/LoggingDigitaloceanApi.md +8 -8
  32. data/docs/LoggingDigitaloceanResponse.md +8 -8
  33. data/docs/{LoggingElasticsearchAllOf.md → LoggingElasticsearchAdditional.md} +1 -1
  34. data/docs/LoggingElasticsearchApi.md +4 -4
  35. data/docs/LoggingElasticsearchResponse.md +2 -2
  36. data/docs/LoggingFormatVersionInteger.md +10 -0
  37. data/docs/LoggingFormatVersionString.md +10 -0
  38. data/docs/{LoggingFtpAllOf.md → LoggingFtpAdditional.md} +1 -2
  39. data/docs/LoggingFtpApi.md +12 -12
  40. data/docs/LoggingFtpResponse.md +9 -9
  41. data/docs/{LoggingFormatVersion.md → LoggingFtpResponseAllOf.md} +2 -1
  42. data/docs/{LoggingGcsAllOf.md → LoggingGcsAdditional.md} +1 -1
  43. data/docs/LoggingGcsApi.md +8 -8
  44. data/docs/LoggingGcsResponse.md +8 -8
  45. data/docs/LoggingGenericCommon.md +0 -2
  46. data/docs/LoggingGenericCommonResponse.md +14 -0
  47. data/docs/LoggingGenericCommonResponseAllOf.md +12 -0
  48. data/docs/LoggingGenericCommonResponseAllOf1.md +11 -0
  49. data/docs/{LoggingGooglePubsubAllOf.md → LoggingGooglePubsubAdditional.md} +1 -1
  50. data/docs/LoggingGooglePubsubResponse.md +2 -2
  51. data/docs/{LoggingHerokuAllOf.md → LoggingHerokuAdditional.md} +1 -1
  52. data/docs/LoggingHerokuApi.md +4 -4
  53. data/docs/LoggingHerokuResponse.md +2 -2
  54. data/docs/{LoggingHoneycombAllOf.md → LoggingHoneycombAdditional.md} +1 -1
  55. data/docs/LoggingHoneycombApi.md +8 -8
  56. data/docs/LoggingHoneycombResponse.md +2 -2
  57. data/docs/{LoggingHttpsAllOf.md → LoggingHttpsAdditional.md} +1 -1
  58. data/docs/LoggingHttpsApi.md +4 -4
  59. data/docs/LoggingHttpsResponse.md +2 -2
  60. data/docs/{LoggingKafkaAllOf.md → LoggingKafkaAdditional.md} +1 -1
  61. data/docs/LoggingKafkaApi.md +4 -4
  62. data/docs/LoggingKafkaResponse.md +6 -6
  63. data/docs/{LoggingKafka.md → LoggingKafkaResponsePost.md} +7 -2
  64. data/docs/{LoggingKinesis.md → LoggingKinesisAdditional.md} +1 -2
  65. data/docs/LoggingKinesisApi.md +2 -2
  66. data/docs/LoggingKinesisResponse.md +2 -2
  67. data/docs/{LoggingLogentriesAllOf.md → LoggingLogentriesAdditional.md} +1 -1
  68. data/docs/LoggingLogentriesApi.md +4 -4
  69. data/docs/LoggingLogentriesResponse.md +2 -2
  70. data/docs/{LoggingLogglyAllOf.md → LoggingLogglyAdditional.md} +1 -1
  71. data/docs/LoggingLogglyApi.md +4 -4
  72. data/docs/LoggingLogglyResponse.md +2 -2
  73. data/docs/{LoggingLogshuttleAllOf.md → LoggingLogshuttleAdditional.md} +1 -1
  74. data/docs/LoggingLogshuttleApi.md +4 -4
  75. data/docs/LoggingLogshuttleResponse.md +2 -2
  76. data/docs/{LoggingNewrelicAllOf.md → LoggingNewrelicAdditional.md} +1 -1
  77. data/docs/LoggingNewrelicApi.md +4 -4
  78. data/docs/LoggingNewrelicResponse.md +2 -2
  79. data/docs/{LoggingOpenstackAllOf.md → LoggingOpenstackAdditional.md} +1 -1
  80. data/docs/LoggingOpenstackApi.md +8 -8
  81. data/docs/LoggingOpenstackResponse.md +8 -8
  82. data/docs/LoggingPapertrailApi.md +4 -4
  83. data/docs/LoggingPapertrailResponse.md +2 -2
  84. data/docs/LoggingPubsubApi.md +4 -4
  85. data/docs/{LoggingS3AllOf.md → LoggingS3Additional.md} +1 -1
  86. data/docs/LoggingS3Api.md +8 -8
  87. data/docs/LoggingS3Response.md +8 -8
  88. data/docs/{LoggingScalyrAllOf.md → LoggingScalyrAdditional.md} +1 -1
  89. data/docs/LoggingScalyrApi.md +4 -4
  90. data/docs/LoggingScalyrResponse.md +2 -2
  91. data/docs/{LoggingSftpAllOf.md → LoggingSftpAdditional.md} +1 -2
  92. data/docs/LoggingSftpApi.md +8 -8
  93. data/docs/LoggingSftpResponse.md +10 -10
  94. data/docs/LoggingSftpResponseAllOf.md +13 -0
  95. data/docs/{LoggingSplunkAllOf.md → LoggingSplunkAdditional.md} +1 -1
  96. data/docs/LoggingSplunkApi.md +4 -4
  97. data/docs/LoggingSplunkResponse.md +2 -2
  98. data/docs/{LoggingSumologicAllOf.md → LoggingSumologicAdditional.md} +1 -1
  99. data/docs/LoggingSumologicApi.md +4 -4
  100. data/docs/LoggingSumologicResponse.md +2 -2
  101. data/docs/{LoggingSyslogAllOf.md → LoggingSyslogAdditional.md} +1 -1
  102. data/docs/LoggingSyslogApi.md +4 -4
  103. data/docs/LoggingSyslogResponse.md +2 -2
  104. data/docs/{PoolAllOf.md → PoolAdditional.md} +1 -6
  105. data/docs/PoolApi.md +46 -22
  106. data/docs/PoolResponse.md +12 -11
  107. data/docs/PoolResponseAllOf.md +1 -1
  108. data/docs/PoolResponseCommon.md +15 -0
  109. data/docs/{Pool.md → PoolResponsePost.md} +14 -7
  110. data/docs/PoolResponsePostAllOf.md +10 -0
  111. data/docs/RequestSettingsAdditional.md +15 -0
  112. data/docs/RequestSettingsApi.md +10 -10
  113. data/docs/RequestSettingsResponse.md +11 -11
  114. data/docs/RequestSettingsResponseAllOf.md +15 -0
  115. data/docs/ResponseObject.md +1 -1
  116. data/docs/ResponseObjectResponse.md +2 -2
  117. data/docs/ServiceIdAndVersionString.md +11 -0
  118. data/docs/TlsCommonResponse.md +14 -0
  119. data/docs/{TlsCommon.md → TlsCommonResponseAllOf.md} +1 -2
  120. data/docs/TlsCommonResponseAllOf1.md +10 -0
  121. data/lib/fastly/api/cache_settings_api.rb +8 -8
  122. data/lib/fastly/api/domain_api.rb +3 -3
  123. data/lib/fastly/api/header_api.rb +12 -12
  124. data/lib/fastly/api/logging_azureblob_api.rb +12 -12
  125. data/lib/fastly/api/logging_bigquery_api.rb +6 -6
  126. data/lib/fastly/api/logging_cloudfiles_api.rb +12 -12
  127. data/lib/fastly/api/logging_datadog_api.rb +6 -6
  128. data/lib/fastly/api/logging_digitalocean_api.rb +12 -12
  129. data/lib/fastly/api/logging_elasticsearch_api.rb +6 -6
  130. data/lib/fastly/api/logging_ftp_api.rb +18 -18
  131. data/lib/fastly/api/logging_gcs_api.rb +12 -12
  132. data/lib/fastly/api/logging_heroku_api.rb +6 -6
  133. data/lib/fastly/api/logging_honeycomb_api.rb +12 -12
  134. data/lib/fastly/api/logging_https_api.rb +6 -6
  135. data/lib/fastly/api/logging_kafka_api.rb +6 -6
  136. data/lib/fastly/api/logging_kinesis_api.rb +7 -3
  137. data/lib/fastly/api/logging_logentries_api.rb +6 -6
  138. data/lib/fastly/api/logging_loggly_api.rb +6 -6
  139. data/lib/fastly/api/logging_logshuttle_api.rb +6 -6
  140. data/lib/fastly/api/logging_newrelic_api.rb +6 -6
  141. data/lib/fastly/api/logging_openstack_api.rb +12 -12
  142. data/lib/fastly/api/logging_papertrail_api.rb +6 -6
  143. data/lib/fastly/api/logging_pubsub_api.rb +6 -6
  144. data/lib/fastly/api/logging_s3_api.rb +12 -12
  145. data/lib/fastly/api/logging_scalyr_api.rb +6 -6
  146. data/lib/fastly/api/logging_sftp_api.rb +12 -12
  147. data/lib/fastly/api/logging_splunk_api.rb +6 -6
  148. data/lib/fastly/api/logging_sumologic_api.rb +6 -6
  149. data/lib/fastly/api/logging_syslog_api.rb +6 -6
  150. data/lib/fastly/api/pool_api.rb +77 -41
  151. data/lib/fastly/api/request_settings_api.rb +15 -15
  152. data/lib/fastly/models/cache_setting.rb +2 -2
  153. data/lib/fastly/models/cache_setting_response.rb +4 -4
  154. data/lib/fastly/models/gzip_response.rb +2 -2
  155. data/lib/fastly/models/header.rb +1 -23
  156. data/lib/fastly/models/header_response.rb +26 -25
  157. data/lib/fastly/models/header_response_additional.rb +229 -0
  158. data/lib/fastly/models/{logging_azureblob_all_of.rb → logging_azureblob_additional.rb} +3 -3
  159. data/lib/fastly/models/logging_azureblob_response.rb +82 -80
  160. data/lib/fastly/models/{logging_bigquery_all_of.rb → logging_bigquery_additional.rb} +3 -3
  161. data/lib/fastly/models/logging_bigquery_response.rb +20 -18
  162. data/lib/fastly/models/{logging_cloudfiles_all_of.rb → logging_cloudfiles_additional.rb} +3 -3
  163. data/lib/fastly/models/logging_cloudfiles_response.rb +83 -81
  164. data/lib/fastly/models/logging_common.rb +1 -25
  165. data/lib/fastly/models/{logging_loggly.rb → logging_common_response.rb} +17 -27
  166. data/lib/fastly/models/{logging_logshuttle.rb → logging_common_response_all_of.rb} +7 -60
  167. data/lib/fastly/models/logging_common_response_all_of1.rb +253 -0
  168. data/lib/fastly/models/{logging_datadog_all_of.rb → logging_datadog_additional.rb} +3 -3
  169. data/lib/fastly/models/logging_datadog_response.rb +19 -18
  170. data/lib/fastly/models/{logging_digitalocean_all_of.rb → logging_digitalocean_additional.rb} +3 -3
  171. data/lib/fastly/models/logging_digitalocean_response.rb +82 -80
  172. data/lib/fastly/models/{logging_elasticsearch_all_of.rb → logging_elasticsearch_additional.rb} +3 -3
  173. data/lib/fastly/models/logging_elasticsearch_response.rb +21 -18
  174. data/lib/fastly/models/logging_format_version_integer.rb +253 -0
  175. data/lib/fastly/models/logging_format_version_string.rb +253 -0
  176. data/lib/fastly/models/{logging_ftp_all_of.rb → logging_ftp_additional.rb} +4 -16
  177. data/lib/fastly/models/logging_ftp_response.rb +88 -85
  178. data/lib/fastly/models/logging_ftp_response_all_of.rb +219 -0
  179. data/lib/fastly/models/{logging_gcs_all_of.rb → logging_gcs_additional.rb} +3 -3
  180. data/lib/fastly/models/logging_gcs_response.rb +80 -77
  181. data/lib/fastly/models/logging_generic_common.rb +1 -25
  182. data/lib/fastly/models/{logging_sumologic.rb → logging_generic_common_response.rb} +60 -80
  183. data/lib/fastly/models/logging_generic_common_response_all_of.rb +286 -0
  184. data/lib/fastly/models/logging_generic_common_response_all_of1.rb +231 -0
  185. data/lib/fastly/models/{logging_google_pubsub_all_of.rb → logging_google_pubsub_additional.rb} +3 -3
  186. data/lib/fastly/models/logging_google_pubsub_response.rb +20 -18
  187. data/lib/fastly/models/{logging_heroku_all_of.rb → logging_heroku_additional.rb} +3 -3
  188. data/lib/fastly/models/logging_heroku_response.rb +19 -18
  189. data/lib/fastly/models/{logging_honeycomb_all_of.rb → logging_honeycomb_additional.rb} +3 -3
  190. data/lib/fastly/models/logging_honeycomb_response.rb +19 -18
  191. data/lib/fastly/models/{logging_https_all_of.rb → logging_https_additional.rb} +3 -3
  192. data/lib/fastly/models/logging_https_response.rb +21 -18
  193. data/lib/fastly/models/{logging_kafka_all_of.rb → logging_kafka_additional.rb} +3 -3
  194. data/lib/fastly/models/logging_kafka_response.rb +71 -69
  195. data/lib/fastly/models/{logging_kafka.rb → logging_kafka_response_post.rb} +72 -18
  196. data/lib/fastly/models/{logging_kinesis.rb → logging_kinesis_additional.rb} +4 -15
  197. data/lib/fastly/models/logging_kinesis_response.rb +51 -15
  198. data/lib/fastly/models/{logging_logentries_all_of.rb → logging_logentries_additional.rb} +3 -3
  199. data/lib/fastly/models/logging_logentries_response.rb +19 -18
  200. data/lib/fastly/models/{logging_loggly_all_of.rb → logging_loggly_additional.rb} +3 -3
  201. data/lib/fastly/models/logging_loggly_response.rb +19 -18
  202. data/lib/fastly/models/{logging_logshuttle_all_of.rb → logging_logshuttle_additional.rb} +3 -3
  203. data/lib/fastly/models/logging_logshuttle_response.rb +19 -18
  204. data/lib/fastly/models/{logging_newrelic_all_of.rb → logging_newrelic_additional.rb} +3 -3
  205. data/lib/fastly/models/logging_newrelic_response.rb +19 -18
  206. data/lib/fastly/models/{logging_openstack_all_of.rb → logging_openstack_additional.rb} +3 -3
  207. data/lib/fastly/models/logging_openstack_response.rb +82 -80
  208. data/lib/fastly/models/logging_papertrail_response.rb +19 -18
  209. data/lib/fastly/models/{logging_s3_all_of.rb → logging_s3_additional.rb} +3 -3
  210. data/lib/fastly/models/logging_s3_response.rb +84 -82
  211. data/lib/fastly/models/{logging_scalyr_all_of.rb → logging_scalyr_additional.rb} +3 -3
  212. data/lib/fastly/models/logging_scalyr_response.rb +19 -18
  213. data/lib/fastly/models/{logging_sftp_all_of.rb → logging_sftp_additional.rb} +4 -16
  214. data/lib/fastly/models/logging_sftp_response.rb +97 -94
  215. data/lib/fastly/models/{domain_check_item.rb → logging_sftp_response_all_of.rb} +44 -40
  216. data/lib/fastly/models/{logging_splunk_all_of.rb → logging_splunk_additional.rb} +3 -3
  217. data/lib/fastly/models/logging_splunk_response.rb +21 -18
  218. data/lib/fastly/models/{logging_sumologic_all_of.rb → logging_sumologic_additional.rb} +3 -3
  219. data/lib/fastly/models/logging_sumologic_response.rb +19 -18
  220. data/lib/fastly/models/{logging_syslog_all_of.rb → logging_syslog_additional.rb} +3 -3
  221. data/lib/fastly/models/logging_syslog_response.rb +21 -18
  222. data/lib/fastly/models/{pool_all_of.rb → pool_additional.rb} +4 -83
  223. data/lib/fastly/models/pool_response.rb +113 -125
  224. data/lib/fastly/models/pool_response_all_of.rb +10 -7
  225. data/lib/fastly/models/pool_response_common.rb +269 -0
  226. data/lib/fastly/models/{pool.rb → pool_response_post.rb} +142 -92
  227. data/lib/fastly/models/pool_response_post_all_of.rb +219 -0
  228. data/lib/fastly/models/{request_settings.rb → request_settings_additional.rb} +4 -64
  229. data/lib/fastly/models/request_settings_response.rb +96 -95
  230. data/lib/fastly/models/request_settings_response_all_of.rb +267 -0
  231. data/lib/fastly/models/response_object.rb +2 -2
  232. data/lib/fastly/models/response_object_response.rb +4 -4
  233. data/lib/fastly/models/{tls_subscription_response_data_all_of.rb → service_id_and_version_string.rb} +16 -16
  234. data/lib/fastly/models/{tls_common.rb → tls_common_response.rb} +15 -7
  235. data/lib/fastly/models/tls_common_response_all_of.rb +259 -0
  236. data/lib/fastly/models/tls_common_response_all_of1.rb +253 -0
  237. data/lib/fastly/models/tls_subscription_response_data.rb +0 -7
  238. data/lib/fastly/version.rb +1 -1
  239. data/lib/fastly.rb +47 -57
  240. data/sig.json +1 -1
  241. metadata +96 -116
  242. data/docs/DomainCheckItem.md +0 -11
  243. data/docs/LoggingAzureblob.md +0 -25
  244. data/docs/LoggingBigquery.md +0 -21
  245. data/docs/LoggingCloudfiles.md +0 -25
  246. data/docs/LoggingDatadog.md +0 -16
  247. data/docs/LoggingDigitalocean.md +0 -25
  248. data/docs/LoggingElasticsearch.md +0 -25
  249. data/docs/LoggingFtp.md +0 -27
  250. data/docs/LoggingGcs.md +0 -26
  251. data/docs/LoggingGooglePubsub.md +0 -19
  252. data/docs/LoggingHeroku.md +0 -16
  253. data/docs/LoggingHoneycomb.md +0 -16
  254. data/docs/LoggingHttps.md +0 -27
  255. data/docs/LoggingLogentries.md +0 -18
  256. data/docs/LoggingLoggly.md +0 -15
  257. data/docs/LoggingNewrelic.md +0 -16
  258. data/docs/LoggingOpenstack.md +0 -25
  259. data/docs/LoggingS3.md +0 -30
  260. data/docs/LoggingScalyr.md +0 -17
  261. data/docs/LoggingSftp.md +0 -27
  262. data/docs/LoggingSplunk.md +0 -23
  263. data/docs/LoggingSumologic.md +0 -16
  264. data/docs/LoggingSyslog.md +0 -25
  265. data/docs/RequestSettings.md +0 -21
  266. data/docs/TlsSubscriptionResponseDataAllOf.md +0 -11
  267. data/lib/fastly/models/logging_azureblob.rb +0 -480
  268. data/lib/fastly/models/logging_bigquery.rb +0 -387
  269. data/lib/fastly/models/logging_cloudfiles.rb +0 -478
  270. data/lib/fastly/models/logging_datadog.rb +0 -351
  271. data/lib/fastly/models/logging_digitalocean.rb +0 -467
  272. data/lib/fastly/models/logging_elasticsearch.rb +0 -446
  273. data/lib/fastly/models/logging_format_version.rb +0 -35
  274. data/lib/fastly/models/logging_ftp.rb +0 -484
  275. data/lib/fastly/models/logging_gcs.rb +0 -474
  276. data/lib/fastly/models/logging_google_pubsub.rb +0 -368
  277. data/lib/fastly/models/logging_heroku.rb +0 -337
  278. data/lib/fastly/models/logging_honeycomb.rb +0 -335
  279. data/lib/fastly/models/logging_https.rb +0 -501
  280. data/lib/fastly/models/logging_logentries.rb +0 -372
  281. data/lib/fastly/models/logging_newrelic.rb +0 -351
  282. data/lib/fastly/models/logging_openstack.rb +0 -465
  283. data/lib/fastly/models/logging_papertrail.rb +0 -339
  284. data/lib/fastly/models/logging_s3.rb +0 -527
  285. data/lib/fastly/models/logging_scalyr.rb +0 -363
  286. data/lib/fastly/models/logging_sftp.rb +0 -491
  287. data/lib/fastly/models/logging_splunk.rb +0 -426
  288. data/lib/fastly/models/logging_syslog.rb +0 -449
@@ -13,54 +13,54 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class RequestSettingsResponse
16
- # Allows you to terminate request handling and immediately perform an action.
17
- attr_accessor :action
16
+ # Date and time in ISO 8601 format.
17
+ attr_accessor :created_at
18
18
 
19
- # Disable collapsed forwarding, so you don't wait for other objects to origin.
20
- attr_accessor :bypass_busy_wait
19
+ # Date and time in ISO 8601 format.
20
+ attr_accessor :deleted_at
21
21
 
22
- # Sets the host header.
23
- attr_accessor :default_host
22
+ # Date and time in ISO 8601 format.
23
+ attr_accessor :updated_at
24
24
 
25
- # Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.
26
- attr_accessor :force_miss
25
+ attr_accessor :service_id
27
26
 
28
- # Forces the request use SSL (redirects a non-SSL to SSL).
29
- attr_accessor :force_ssl
27
+ attr_accessor :version
30
28
 
31
- # Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.
32
- attr_accessor :geo_headers
29
+ # Allows you to terminate request handling and immediately perform an action.
30
+ attr_accessor :action
31
+
32
+ # Sets the host header.
33
+ attr_accessor :default_host
33
34
 
34
35
  # Comma separated list of varnish request object fields that should be in the hash key.
35
36
  attr_accessor :hash_keys
36
37
 
37
- # How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.
38
- attr_accessor :max_stale_age
39
-
40
38
  # Name for the request settings.
41
39
  attr_accessor :name
42
40
 
43
41
  # Condition which, if met, will select this configuration during a request. Optional.
44
42
  attr_accessor :request_condition
45
43
 
46
- # Injects the X-Timer info into the request for viewing origin fetch durations.
47
- attr_accessor :timer_support
48
-
49
44
  # Short for X-Forwarded-For.
50
45
  attr_accessor :xff
51
46
 
52
- attr_accessor :service_id
47
+ # Disable collapsed forwarding, so you don't wait for other objects to origin.
48
+ attr_accessor :bypass_busy_wait
53
49
 
54
- attr_accessor :version
50
+ # Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.
51
+ attr_accessor :force_miss
55
52
 
56
- # Date and time in ISO 8601 format.
57
- attr_accessor :created_at
53
+ # Forces the request use SSL (redirects a non-SSL to SSL).
54
+ attr_accessor :force_ssl
58
55
 
59
- # Date and time in ISO 8601 format.
60
- attr_accessor :deleted_at
56
+ # Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.
57
+ attr_accessor :geo_headers
61
58
 
62
- # Date and time in ISO 8601 format.
63
- attr_accessor :updated_at
59
+ # How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.
60
+ attr_accessor :max_stale_age
61
+
62
+ # Injects the X-Timer info into the request for viewing origin fetch durations.
63
+ attr_accessor :timer_support
64
64
 
65
65
  class EnumAttributeValidator
66
66
  attr_reader :datatype
@@ -87,23 +87,23 @@ module Fastly
87
87
  # Attribute mapping from ruby-style variable name to JSON key.
88
88
  def self.attribute_map
89
89
  {
90
+ :'created_at' => :'created_at',
91
+ :'deleted_at' => :'deleted_at',
92
+ :'updated_at' => :'updated_at',
93
+ :'service_id' => :'service_id',
94
+ :'version' => :'version',
90
95
  :'action' => :'action',
91
- :'bypass_busy_wait' => :'bypass_busy_wait',
92
96
  :'default_host' => :'default_host',
93
- :'force_miss' => :'force_miss',
94
- :'force_ssl' => :'force_ssl',
95
- :'geo_headers' => :'geo_headers',
96
97
  :'hash_keys' => :'hash_keys',
97
- :'max_stale_age' => :'max_stale_age',
98
98
  :'name' => :'name',
99
99
  :'request_condition' => :'request_condition',
100
- :'timer_support' => :'timer_support',
101
100
  :'xff' => :'xff',
102
- :'service_id' => :'service_id',
103
- :'version' => :'version',
104
- :'created_at' => :'created_at',
105
- :'deleted_at' => :'deleted_at',
106
- :'updated_at' => :'updated_at'
101
+ :'bypass_busy_wait' => :'bypass_busy_wait',
102
+ :'force_miss' => :'force_miss',
103
+ :'force_ssl' => :'force_ssl',
104
+ :'geo_headers' => :'geo_headers',
105
+ :'max_stale_age' => :'max_stale_age',
106
+ :'timer_support' => :'timer_support'
107
107
  }
108
108
  end
109
109
 
@@ -115,44 +115,45 @@ module Fastly
115
115
  # Attribute type mapping.
116
116
  def self.fastly_types
117
117
  {
118
+ :'created_at' => :'Time',
119
+ :'deleted_at' => :'Time',
120
+ :'updated_at' => :'Time',
121
+ :'service_id' => :'String',
122
+ :'version' => :'String',
118
123
  :'action' => :'String',
119
- :'bypass_busy_wait' => :'Integer',
120
124
  :'default_host' => :'String',
121
- :'force_miss' => :'Integer',
122
- :'force_ssl' => :'Integer',
123
- :'geo_headers' => :'Integer',
124
125
  :'hash_keys' => :'String',
125
- :'max_stale_age' => :'Integer',
126
126
  :'name' => :'String',
127
127
  :'request_condition' => :'String',
128
- :'timer_support' => :'Integer',
129
128
  :'xff' => :'String',
130
- :'service_id' => :'String',
131
- :'version' => :'Integer',
132
- :'created_at' => :'Time',
133
- :'deleted_at' => :'Time',
134
- :'updated_at' => :'Time'
129
+ :'bypass_busy_wait' => :'String',
130
+ :'force_miss' => :'String',
131
+ :'force_ssl' => :'String',
132
+ :'geo_headers' => :'String',
133
+ :'max_stale_age' => :'String',
134
+ :'timer_support' => :'String'
135
135
  }
136
136
  end
137
137
 
138
138
  # List of attributes with nullable: true
139
139
  def self.fastly_nullable
140
140
  Set.new([
141
+ :'created_at',
142
+ :'deleted_at',
143
+ :'updated_at',
141
144
  :'action',
142
145
  :'default_host',
143
146
  :'hash_keys',
144
147
  :'request_condition',
145
- :'created_at',
146
- :'deleted_at',
147
- :'updated_at'
148
148
  ])
149
149
  end
150
150
 
151
151
  # List of class defined in allOf (OpenAPI v3)
152
152
  def self.fastly_all_of
153
153
  [
154
- :'RequestSettings',
155
- :'ServiceIdAndVersion',
154
+ :'RequestSettingsAdditional',
155
+ :'RequestSettingsResponseAllOf',
156
+ :'ServiceIdAndVersionString',
156
157
  :'Timestamps'
157
158
  ]
158
159
  end
@@ -172,36 +173,36 @@ module Fastly
172
173
  h[k.to_sym] = v
173
174
  }
174
175
 
175
- if attributes.key?(:'action')
176
- self.action = attributes[:'action']
176
+ if attributes.key?(:'created_at')
177
+ self.created_at = attributes[:'created_at']
177
178
  end
178
179
 
179
- if attributes.key?(:'bypass_busy_wait')
180
- self.bypass_busy_wait = attributes[:'bypass_busy_wait']
180
+ if attributes.key?(:'deleted_at')
181
+ self.deleted_at = attributes[:'deleted_at']
181
182
  end
182
183
 
183
- if attributes.key?(:'default_host')
184
- self.default_host = attributes[:'default_host']
184
+ if attributes.key?(:'updated_at')
185
+ self.updated_at = attributes[:'updated_at']
185
186
  end
186
187
 
187
- if attributes.key?(:'force_miss')
188
- self.force_miss = attributes[:'force_miss']
188
+ if attributes.key?(:'service_id')
189
+ self.service_id = attributes[:'service_id']
189
190
  end
190
191
 
191
- if attributes.key?(:'force_ssl')
192
- self.force_ssl = attributes[:'force_ssl']
192
+ if attributes.key?(:'version')
193
+ self.version = attributes[:'version']
193
194
  end
194
195
 
195
- if attributes.key?(:'geo_headers')
196
- self.geo_headers = attributes[:'geo_headers']
196
+ if attributes.key?(:'action')
197
+ self.action = attributes[:'action']
197
198
  end
198
199
 
199
- if attributes.key?(:'hash_keys')
200
- self.hash_keys = attributes[:'hash_keys']
200
+ if attributes.key?(:'default_host')
201
+ self.default_host = attributes[:'default_host']
201
202
  end
202
203
 
203
- if attributes.key?(:'max_stale_age')
204
- self.max_stale_age = attributes[:'max_stale_age']
204
+ if attributes.key?(:'hash_keys')
205
+ self.hash_keys = attributes[:'hash_keys']
205
206
  end
206
207
 
207
208
  if attributes.key?(:'name')
@@ -212,32 +213,32 @@ module Fastly
212
213
  self.request_condition = attributes[:'request_condition']
213
214
  end
214
215
 
215
- if attributes.key?(:'timer_support')
216
- self.timer_support = attributes[:'timer_support']
217
- end
218
-
219
216
  if attributes.key?(:'xff')
220
217
  self.xff = attributes[:'xff']
221
218
  end
222
219
 
223
- if attributes.key?(:'service_id')
224
- self.service_id = attributes[:'service_id']
220
+ if attributes.key?(:'bypass_busy_wait')
221
+ self.bypass_busy_wait = attributes[:'bypass_busy_wait']
225
222
  end
226
223
 
227
- if attributes.key?(:'version')
228
- self.version = attributes[:'version']
224
+ if attributes.key?(:'force_miss')
225
+ self.force_miss = attributes[:'force_miss']
229
226
  end
230
227
 
231
- if attributes.key?(:'created_at')
232
- self.created_at = attributes[:'created_at']
228
+ if attributes.key?(:'force_ssl')
229
+ self.force_ssl = attributes[:'force_ssl']
233
230
  end
234
231
 
235
- if attributes.key?(:'deleted_at')
236
- self.deleted_at = attributes[:'deleted_at']
232
+ if attributes.key?(:'geo_headers')
233
+ self.geo_headers = attributes[:'geo_headers']
237
234
  end
238
235
 
239
- if attributes.key?(:'updated_at')
240
- self.updated_at = attributes[:'updated_at']
236
+ if attributes.key?(:'max_stale_age')
237
+ self.max_stale_age = attributes[:'max_stale_age']
238
+ end
239
+
240
+ if attributes.key?(:'timer_support')
241
+ self.timer_support = attributes[:'timer_support']
241
242
  end
242
243
  end
243
244
 
@@ -283,23 +284,23 @@ module Fastly
283
284
  def ==(o)
284
285
  return true if self.equal?(o)
285
286
  self.class == o.class &&
287
+ created_at == o.created_at &&
288
+ deleted_at == o.deleted_at &&
289
+ updated_at == o.updated_at &&
290
+ service_id == o.service_id &&
291
+ version == o.version &&
286
292
  action == o.action &&
287
- bypass_busy_wait == o.bypass_busy_wait &&
288
293
  default_host == o.default_host &&
289
- force_miss == o.force_miss &&
290
- force_ssl == o.force_ssl &&
291
- geo_headers == o.geo_headers &&
292
294
  hash_keys == o.hash_keys &&
293
- max_stale_age == o.max_stale_age &&
294
295
  name == o.name &&
295
296
  request_condition == o.request_condition &&
296
- timer_support == o.timer_support &&
297
297
  xff == o.xff &&
298
- service_id == o.service_id &&
299
- version == o.version &&
300
- created_at == o.created_at &&
301
- deleted_at == o.deleted_at &&
302
- updated_at == o.updated_at
298
+ bypass_busy_wait == o.bypass_busy_wait &&
299
+ force_miss == o.force_miss &&
300
+ force_ssl == o.force_ssl &&
301
+ geo_headers == o.geo_headers &&
302
+ max_stale_age == o.max_stale_age &&
303
+ timer_support == o.timer_support
303
304
  end
304
305
 
305
306
  # @see the `==` method
@@ -311,7 +312,7 @@ module Fastly
311
312
  # Calculates hash code according to all attributes.
312
313
  # @return [Integer] Hash code
313
314
  def hash
314
- [action, bypass_busy_wait, default_host, force_miss, force_ssl, geo_headers, hash_keys, max_stale_age, name, request_condition, timer_support, xff, service_id, version, created_at, deleted_at, updated_at].hash
315
+ [created_at, deleted_at, updated_at, service_id, version, action, default_host, hash_keys, name, request_condition, xff, bypass_busy_wait, force_miss, force_ssl, geo_headers, max_stale_age, timer_support].hash
315
316
  end
316
317
 
317
318
  # Builds the object from hash
@@ -0,0 +1,267 @@
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 RequestSettingsResponseAllOf
16
+ # Disable collapsed forwarding, so you don't wait for other objects to origin.
17
+ attr_accessor :bypass_busy_wait
18
+
19
+ # Allows you to force a cache miss for the request. Replaces the item in the cache if the content is cacheable.
20
+ attr_accessor :force_miss
21
+
22
+ # Forces the request use SSL (redirects a non-SSL to SSL).
23
+ attr_accessor :force_ssl
24
+
25
+ # Injects Fastly-Geo-Country, Fastly-Geo-City, and Fastly-Geo-Region into the request headers.
26
+ attr_accessor :geo_headers
27
+
28
+ # How old an object is allowed to be to serve stale-if-error or stale-while-revalidate.
29
+ attr_accessor :max_stale_age
30
+
31
+ # Injects the X-Timer info into the request for viewing origin fetch durations.
32
+ attr_accessor :timer_support
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'bypass_busy_wait' => :'bypass_busy_wait',
38
+ :'force_miss' => :'force_miss',
39
+ :'force_ssl' => :'force_ssl',
40
+ :'geo_headers' => :'geo_headers',
41
+ :'max_stale_age' => :'max_stale_age',
42
+ :'timer_support' => :'timer_support'
43
+ }
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.fastly_types
53
+ {
54
+ :'bypass_busy_wait' => :'String',
55
+ :'force_miss' => :'String',
56
+ :'force_ssl' => :'String',
57
+ :'geo_headers' => :'String',
58
+ :'max_stale_age' => :'String',
59
+ :'timer_support' => :'String'
60
+ }
61
+ end
62
+
63
+ # List of attributes with nullable: true
64
+ def self.fastly_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::RequestSettingsResponseAllOf` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::RequestSettingsResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'bypass_busy_wait')
85
+ self.bypass_busy_wait = attributes[:'bypass_busy_wait']
86
+ end
87
+
88
+ if attributes.key?(:'force_miss')
89
+ self.force_miss = attributes[:'force_miss']
90
+ end
91
+
92
+ if attributes.key?(:'force_ssl')
93
+ self.force_ssl = attributes[:'force_ssl']
94
+ end
95
+
96
+ if attributes.key?(:'geo_headers')
97
+ self.geo_headers = attributes[:'geo_headers']
98
+ end
99
+
100
+ if attributes.key?(:'max_stale_age')
101
+ self.max_stale_age = attributes[:'max_stale_age']
102
+ end
103
+
104
+ if attributes.key?(:'timer_support')
105
+ self.timer_support = attributes[:'timer_support']
106
+ end
107
+ end
108
+
109
+ # Show invalid properties with the reasons. Usually used together with valid?
110
+ # @return Array for valid properties with the reasons
111
+ def list_invalid_properties
112
+ invalid_properties = Array.new
113
+ invalid_properties
114
+ end
115
+
116
+ # Check to see if the all the properties in the model are valid
117
+ # @return true if the model is valid
118
+ def valid?
119
+ true
120
+ end
121
+
122
+ # Checks equality by comparing each attribute.
123
+ # @param [Object] Object to be compared
124
+ def ==(o)
125
+ return true if self.equal?(o)
126
+ self.class == o.class &&
127
+ bypass_busy_wait == o.bypass_busy_wait &&
128
+ force_miss == o.force_miss &&
129
+ force_ssl == o.force_ssl &&
130
+ geo_headers == o.geo_headers &&
131
+ max_stale_age == o.max_stale_age &&
132
+ timer_support == o.timer_support
133
+ end
134
+
135
+ # @see the `==` method
136
+ # @param [Object] Object to be compared
137
+ def eql?(o)
138
+ self == o
139
+ end
140
+
141
+ # Calculates hash code according to all attributes.
142
+ # @return [Integer] Hash code
143
+ def hash
144
+ [bypass_busy_wait, force_miss, force_ssl, geo_headers, max_stale_age, timer_support].hash
145
+ end
146
+
147
+ # Builds the object from hash
148
+ # @param [Hash] attributes Model attributes in the form of hash
149
+ # @return [Object] Returns the model itself
150
+ def self.build_from_hash(attributes)
151
+ new.build_from_hash(attributes)
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.fastly_types.each_pair do |key, type|
160
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
161
+ self.send("#{key}=", nil)
162
+ elsif type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the attribute
164
+ # is documented as an array but the input is not
165
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
166
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
167
+ end
168
+ elsif !attributes[self.class.attribute_map[key]].nil?
169
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
170
+ end
171
+ end
172
+
173
+ self
174
+ end
175
+
176
+ # Deserializes the data based on type
177
+ # @param string type Data type
178
+ # @param string value Value to be deserialized
179
+ # @return [Object] Deserialized data
180
+ def _deserialize(type, value)
181
+ case type.to_sym
182
+ when :Time
183
+ Time.parse(value)
184
+ when :Date
185
+ Date.parse(value)
186
+ when :String
187
+ value.to_s
188
+ when :Integer
189
+ value.to_i
190
+ when :Float
191
+ value.to_f
192
+ when :Boolean
193
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
194
+ true
195
+ else
196
+ false
197
+ end
198
+ when :Object
199
+ # generic object (usually a Hash), return directly
200
+ value
201
+ when /\AArray<(?<inner_type>.+)>\z/
202
+ inner_type = Regexp.last_match[:inner_type]
203
+ value.map { |v| _deserialize(inner_type, v) }
204
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
205
+ k_type = Regexp.last_match[:k_type]
206
+ v_type = Regexp.last_match[:v_type]
207
+ {}.tap do |hash|
208
+ value.each do |k, v|
209
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
210
+ end
211
+ end
212
+ else # model
213
+ # models (e.g. Pet) or oneOf
214
+ klass = Fastly.const_get(type)
215
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
216
+ end
217
+ end
218
+
219
+ # Returns the string representation of the object
220
+ # @return [String] String presentation of the object
221
+ def to_s
222
+ to_hash.to_s
223
+ end
224
+
225
+ # to_body is an alias to to_hash (backward compatibility)
226
+ # @return [Hash] Returns the object in the form of hash
227
+ def to_body
228
+ to_hash
229
+ end
230
+
231
+ # Returns the object in the form of hash
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_hash
234
+ hash = {}
235
+ self.class.attribute_map.each_pair do |attr, param|
236
+ value = self.send(attr)
237
+ if value.nil?
238
+ is_nullable = self.class.fastly_nullable.include?(attr)
239
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
240
+ end
241
+
242
+ hash[param] = _to_hash(value)
243
+ end
244
+ hash
245
+ end
246
+
247
+ # Outputs non-array value in the form of hash
248
+ # For object, use to_hash. Otherwise, just return the value
249
+ # @param [Object] value Any valid value
250
+ # @return [Hash] Returns the value in the form of hash
251
+ def _to_hash(value)
252
+ if value.is_a?(Array)
253
+ value.compact.map { |v| _to_hash(v) }
254
+ elsif value.is_a?(Hash)
255
+ {}.tap do |hash|
256
+ value.each { |k, v| hash[k] = _to_hash(v) }
257
+ end
258
+ elsif value.respond_to? :to_hash
259
+ value.to_hash
260
+ else
261
+ value
262
+ end
263
+ end
264
+
265
+ end
266
+
267
+ end
@@ -59,7 +59,7 @@ module Fastly
59
59
  :'content' => :'String',
60
60
  :'content_type' => :'String',
61
61
  :'name' => :'String',
62
- :'status' => :'Integer',
62
+ :'status' => :'String',
63
63
  :'response' => :'String',
64
64
  :'request_condition' => :'String'
65
65
  }
@@ -108,7 +108,7 @@ module Fastly
108
108
  if attributes.key?(:'status')
109
109
  self.status = attributes[:'status']
110
110
  else
111
- self.status = 200
111
+ self.status = '200'
112
112
  end
113
113
 
114
114
  if attributes.key?(:'response')
@@ -77,11 +77,11 @@ module Fastly
77
77
  :'content' => :'String',
78
78
  :'content_type' => :'String',
79
79
  :'name' => :'String',
80
- :'status' => :'Integer',
80
+ :'status' => :'String',
81
81
  :'response' => :'String',
82
82
  :'request_condition' => :'String',
83
83
  :'service_id' => :'String',
84
- :'version' => :'Integer',
84
+ :'version' => :'String',
85
85
  :'created_at' => :'Time',
86
86
  :'deleted_at' => :'Time',
87
87
  :'updated_at' => :'Time'
@@ -104,7 +104,7 @@ module Fastly
104
104
  def self.fastly_all_of
105
105
  [
106
106
  :'ResponseObject',
107
- :'ServiceIdAndVersion',
107
+ :'ServiceIdAndVersionString',
108
108
  :'Timestamps'
109
109
  ]
110
110
  end
@@ -143,7 +143,7 @@ module Fastly
143
143
  if attributes.key?(:'status')
144
144
  self.status = attributes[:'status']
145
145
  else
146
- self.status = 200
146
+ self.status = '200'
147
147
  end
148
148
 
149
149
  if attributes.key?(:'response')