fastly 6.0.2 → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -28,6 +28,19 @@ module Fastly
28
28
  # Whether to use TLS.
29
29
  attr_accessor :use_tls
30
30
 
31
+ # Date and time in ISO 8601 format.
32
+ attr_accessor :created_at
33
+
34
+ # Date and time in ISO 8601 format.
35
+ attr_accessor :deleted_at
36
+
37
+ # Date and time in ISO 8601 format.
38
+ attr_accessor :updated_at
39
+
40
+ attr_accessor :service_id
41
+
42
+ attr_accessor :version
43
+
31
44
  # Name for the Pool.
32
45
  attr_accessor :name
33
46
 
@@ -37,27 +50,12 @@ module Fastly
37
50
  # Condition which, if met, will select this configuration during a request. Optional.
38
51
  attr_accessor :request_condition
39
52
 
40
- # Maximum number of connections. Optional.
41
- attr_accessor :max_conn_default
42
-
43
- # How long to wait for a timeout in milliseconds. Optional.
44
- attr_accessor :connect_timeout
45
-
46
- # How long to wait for the first byte in milliseconds. Optional.
47
- attr_accessor :first_byte_timeout
48
-
49
- # Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.
50
- attr_accessor :quorum
51
-
52
53
  # List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
53
54
  attr_accessor :tls_ciphers
54
55
 
55
56
  # SNI hostname. Optional.
56
57
  attr_accessor :tls_sni_hostname
57
58
 
58
- # Be strict on checking TLS certs. Optional.
59
- attr_accessor :tls_check_cert
60
-
61
59
  # Minimum allowed TLS version on connections to this server. Optional.
62
60
  attr_accessor :min_tls_version
63
61
 
@@ -76,21 +74,26 @@ module Fastly
76
74
  # The hostname to [override the Host header](https://docs.fastly.com/en/guides/specifying-an-override-host). Defaults to `null` meaning no override of the Host header will occur. This setting can also be added to a Server definition. If the field is set on a Server definition it will override the Pool setting.
77
75
  attr_accessor :override_host
78
76
 
79
- # Date and time in ISO 8601 format.
80
- attr_accessor :created_at
77
+ # Maximum duration in milliseconds that Fastly will wait while receiving no data on a download from a backend. If exceeded, the response received so far will be considered complete and the fetch will end. May be set at runtime using `bereq.between_bytes_timeout`.
78
+ attr_accessor :between_bytes_timeout
81
79
 
82
- # Date and time in ISO 8601 format.
83
- attr_accessor :deleted_at
80
+ # How long to wait for a timeout in milliseconds.
81
+ attr_accessor :connect_timeout
84
82
 
85
- # Date and time in ISO 8601 format.
86
- attr_accessor :updated_at
83
+ # How long to wait for the first byte in milliseconds.
84
+ attr_accessor :first_byte_timeout
87
85
 
88
- attr_accessor :service_id
86
+ # Maximum number of connections.
87
+ attr_accessor :max_conn_default
89
88
 
90
- attr_accessor :version
89
+ # Be strict on checking TLS certs.
90
+ attr_accessor :tls_check_cert
91
91
 
92
92
  attr_accessor :id
93
93
 
94
+ # Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.
95
+ attr_accessor :quorum
96
+
94
97
  class EnumAttributeValidator
95
98
  attr_reader :datatype
96
99
  attr_reader :allowable_values
@@ -121,28 +124,29 @@ module Fastly
121
124
  :'tls_client_key' => :'tls_client_key',
122
125
  :'tls_cert_hostname' => :'tls_cert_hostname',
123
126
  :'use_tls' => :'use_tls',
127
+ :'created_at' => :'created_at',
128
+ :'deleted_at' => :'deleted_at',
129
+ :'updated_at' => :'updated_at',
130
+ :'service_id' => :'service_id',
131
+ :'version' => :'version',
124
132
  :'name' => :'name',
125
133
  :'shield' => :'shield',
126
134
  :'request_condition' => :'request_condition',
127
- :'max_conn_default' => :'max_conn_default',
128
- :'connect_timeout' => :'connect_timeout',
129
- :'first_byte_timeout' => :'first_byte_timeout',
130
- :'quorum' => :'quorum',
131
135
  :'tls_ciphers' => :'tls_ciphers',
132
136
  :'tls_sni_hostname' => :'tls_sni_hostname',
133
- :'tls_check_cert' => :'tls_check_cert',
134
137
  :'min_tls_version' => :'min_tls_version',
135
138
  :'max_tls_version' => :'max_tls_version',
136
139
  :'healthcheck' => :'healthcheck',
137
140
  :'comment' => :'comment',
138
141
  :'type' => :'type',
139
142
  :'override_host' => :'override_host',
140
- :'created_at' => :'created_at',
141
- :'deleted_at' => :'deleted_at',
142
- :'updated_at' => :'updated_at',
143
- :'service_id' => :'service_id',
144
- :'version' => :'version',
145
- :'id' => :'id'
143
+ :'between_bytes_timeout' => :'between_bytes_timeout',
144
+ :'connect_timeout' => :'connect_timeout',
145
+ :'first_byte_timeout' => :'first_byte_timeout',
146
+ :'max_conn_default' => :'max_conn_default',
147
+ :'tls_check_cert' => :'tls_check_cert',
148
+ :'id' => :'id',
149
+ :'quorum' => :'quorum'
146
150
  }
147
151
  end
148
152
 
@@ -158,29 +162,30 @@ module Fastly
158
162
  :'tls_client_cert' => :'String',
159
163
  :'tls_client_key' => :'String',
160
164
  :'tls_cert_hostname' => :'String',
161
- :'use_tls' => :'Integer',
165
+ :'use_tls' => :'String',
166
+ :'created_at' => :'Time',
167
+ :'deleted_at' => :'Time',
168
+ :'updated_at' => :'Time',
169
+ :'service_id' => :'String',
170
+ :'version' => :'String',
162
171
  :'name' => :'String',
163
172
  :'shield' => :'String',
164
173
  :'request_condition' => :'String',
165
- :'max_conn_default' => :'Integer',
166
- :'connect_timeout' => :'Integer',
167
- :'first_byte_timeout' => :'Integer',
168
- :'quorum' => :'Integer',
169
174
  :'tls_ciphers' => :'String',
170
175
  :'tls_sni_hostname' => :'String',
171
- :'tls_check_cert' => :'Integer',
172
176
  :'min_tls_version' => :'Integer',
173
177
  :'max_tls_version' => :'Integer',
174
178
  :'healthcheck' => :'String',
175
179
  :'comment' => :'String',
176
180
  :'type' => :'String',
177
181
  :'override_host' => :'String',
178
- :'created_at' => :'Time',
179
- :'deleted_at' => :'Time',
180
- :'updated_at' => :'Time',
181
- :'service_id' => :'String',
182
- :'version' => :'Integer',
183
- :'id' => :'String'
182
+ :'between_bytes_timeout' => :'String',
183
+ :'connect_timeout' => :'String',
184
+ :'first_byte_timeout' => :'String',
185
+ :'max_conn_default' => :'String',
186
+ :'tls_check_cert' => :'String',
187
+ :'id' => :'String',
188
+ :'quorum' => :'String'
184
189
  }
185
190
  end
186
191
 
@@ -191,29 +196,31 @@ module Fastly
191
196
  :'tls_client_cert',
192
197
  :'tls_client_key',
193
198
  :'tls_cert_hostname',
199
+ :'created_at',
200
+ :'deleted_at',
201
+ :'updated_at',
194
202
  :'shield',
195
203
  :'request_condition',
196
204
  :'tls_ciphers',
197
205
  :'tls_sni_hostname',
198
- :'tls_check_cert',
199
206
  :'min_tls_version',
200
207
  :'max_tls_version',
201
208
  :'healthcheck',
202
209
  :'comment',
203
210
  :'override_host',
204
- :'created_at',
205
- :'deleted_at',
206
- :'updated_at',
211
+ :'tls_check_cert',
207
212
  ])
208
213
  end
209
214
 
210
215
  # List of class defined in allOf (OpenAPI v3)
211
216
  def self.fastly_all_of
212
217
  [
213
- :'Pool',
218
+ :'PoolAdditional',
214
219
  :'PoolResponseAllOf',
215
- :'ServiceIdAndVersion',
216
- :'Timestamps'
220
+ :'PoolResponseCommon',
221
+ :'ServiceIdAndVersionString',
222
+ :'Timestamps',
223
+ :'TlsCommonResponse'
217
224
  ]
218
225
  end
219
226
 
@@ -259,41 +266,41 @@ module Fastly
259
266
  if attributes.key?(:'use_tls')
260
267
  self.use_tls = attributes[:'use_tls']
261
268
  else
262
- self.use_tls = USE_TLS::no_tls
269
+ self.use_tls = '0'
263
270
  end
264
271
 
265
- if attributes.key?(:'name')
266
- self.name = attributes[:'name']
272
+ if attributes.key?(:'created_at')
273
+ self.created_at = attributes[:'created_at']
267
274
  end
268
275
 
269
- if attributes.key?(:'shield')
270
- self.shield = attributes[:'shield']
271
- else
272
- self.shield = 'null'
276
+ if attributes.key?(:'deleted_at')
277
+ self.deleted_at = attributes[:'deleted_at']
273
278
  end
274
279
 
275
- if attributes.key?(:'request_condition')
276
- self.request_condition = attributes[:'request_condition']
280
+ if attributes.key?(:'updated_at')
281
+ self.updated_at = attributes[:'updated_at']
277
282
  end
278
283
 
279
- if attributes.key?(:'max_conn_default')
280
- self.max_conn_default = attributes[:'max_conn_default']
281
- else
282
- self.max_conn_default = 200
284
+ if attributes.key?(:'service_id')
285
+ self.service_id = attributes[:'service_id']
283
286
  end
284
287
 
285
- if attributes.key?(:'connect_timeout')
286
- self.connect_timeout = attributes[:'connect_timeout']
288
+ if attributes.key?(:'version')
289
+ self.version = attributes[:'version']
287
290
  end
288
291
 
289
- if attributes.key?(:'first_byte_timeout')
290
- self.first_byte_timeout = attributes[:'first_byte_timeout']
292
+ if attributes.key?(:'name')
293
+ self.name = attributes[:'name']
291
294
  end
292
295
 
293
- if attributes.key?(:'quorum')
294
- self.quorum = attributes[:'quorum']
296
+ if attributes.key?(:'shield')
297
+ self.shield = attributes[:'shield']
295
298
  else
296
- self.quorum = 75
299
+ self.shield = 'null'
300
+ end
301
+
302
+ if attributes.key?(:'request_condition')
303
+ self.request_condition = attributes[:'request_condition']
297
304
  end
298
305
 
299
306
  if attributes.key?(:'tls_ciphers')
@@ -304,10 +311,6 @@ module Fastly
304
311
  self.tls_sni_hostname = attributes[:'tls_sni_hostname']
305
312
  end
306
313
 
307
- if attributes.key?(:'tls_check_cert')
308
- self.tls_check_cert = attributes[:'tls_check_cert']
309
- end
310
-
311
314
  if attributes.key?(:'min_tls_version')
312
315
  self.min_tls_version = attributes[:'min_tls_version']
313
316
  end
@@ -334,53 +337,51 @@ module Fastly
334
337
  self.override_host = 'null'
335
338
  end
336
339
 
337
- if attributes.key?(:'created_at')
338
- self.created_at = attributes[:'created_at']
340
+ if attributes.key?(:'between_bytes_timeout')
341
+ self.between_bytes_timeout = attributes[:'between_bytes_timeout']
339
342
  end
340
343
 
341
- if attributes.key?(:'deleted_at')
342
- self.deleted_at = attributes[:'deleted_at']
344
+ if attributes.key?(:'connect_timeout')
345
+ self.connect_timeout = attributes[:'connect_timeout']
343
346
  end
344
347
 
345
- if attributes.key?(:'updated_at')
346
- self.updated_at = attributes[:'updated_at']
348
+ if attributes.key?(:'first_byte_timeout')
349
+ self.first_byte_timeout = attributes[:'first_byte_timeout']
347
350
  end
348
351
 
349
- if attributes.key?(:'service_id')
350
- self.service_id = attributes[:'service_id']
352
+ if attributes.key?(:'max_conn_default')
353
+ self.max_conn_default = attributes[:'max_conn_default']
354
+ else
355
+ self.max_conn_default = '200'
351
356
  end
352
357
 
353
- if attributes.key?(:'version')
354
- self.version = attributes[:'version']
358
+ if attributes.key?(:'tls_check_cert')
359
+ self.tls_check_cert = attributes[:'tls_check_cert']
355
360
  end
356
361
 
357
362
  if attributes.key?(:'id')
358
363
  self.id = attributes[:'id']
359
364
  end
365
+
366
+ if attributes.key?(:'quorum')
367
+ self.quorum = attributes[:'quorum']
368
+ else
369
+ self.quorum = '75'
370
+ end
360
371
  end
361
372
 
362
373
  # Show invalid properties with the reasons. Usually used together with valid?
363
374
  # @return Array for valid properties with the reasons
364
375
  def list_invalid_properties
365
376
  invalid_properties = Array.new
366
- if !@quorum.nil? && @quorum > 100
367
- invalid_properties.push('invalid value for "quorum", must be smaller than or equal to 100.')
368
- end
369
-
370
- if !@quorum.nil? && @quorum < 0
371
- invalid_properties.push('invalid value for "quorum", must be greater than or equal to 0.')
372
- end
373
-
374
377
  invalid_properties
375
378
  end
376
379
 
377
380
  # Check to see if the all the properties in the model are valid
378
381
  # @return true if the model is valid
379
382
  def valid?
380
- use_tls_validator = EnumAttributeValidator.new('Integer', [0, 1])
383
+ use_tls_validator = EnumAttributeValidator.new('String', ["0", "1"])
381
384
  return false unless use_tls_validator.valid?(@use_tls)
382
- return false if !@quorum.nil? && @quorum > 100
383
- return false if !@quorum.nil? && @quorum < 0
384
385
  type_validator = EnumAttributeValidator.new('String', ["random", "hash", "client"])
385
386
  return false unless type_validator.valid?(@type)
386
387
  true
@@ -389,27 +390,13 @@ module Fastly
389
390
  # Custom attribute writer method checking allowed values (enum).
390
391
  # @param [Object] use_tls Object to be assigned
391
392
  def use_tls=(use_tls)
392
- validator = EnumAttributeValidator.new('Integer', [0, 1])
393
+ validator = EnumAttributeValidator.new('String', ["0", "1"])
393
394
  unless validator.valid?(use_tls)
394
395
  fail ArgumentError, "invalid value for \"use_tls\", must be one of #{validator.allowable_values}."
395
396
  end
396
397
  @use_tls = use_tls
397
398
  end
398
399
 
399
- # Custom attribute writer method with validation
400
- # @param [Object] quorum Value to be assigned
401
- def quorum=(quorum)
402
- if !quorum.nil? && quorum > 100
403
- fail ArgumentError, 'invalid value for "quorum", must be smaller than or equal to 100.'
404
- end
405
-
406
- if !quorum.nil? && quorum < 0
407
- fail ArgumentError, 'invalid value for "quorum", must be greater than or equal to 0.'
408
- end
409
-
410
- @quorum = quorum
411
- end
412
-
413
400
  # Custom attribute writer method checking allowed values (enum).
414
401
  # @param [Object] type Object to be assigned
415
402
  def type=(type)
@@ -430,28 +417,29 @@ module Fastly
430
417
  tls_client_key == o.tls_client_key &&
431
418
  tls_cert_hostname == o.tls_cert_hostname &&
432
419
  use_tls == o.use_tls &&
420
+ created_at == o.created_at &&
421
+ deleted_at == o.deleted_at &&
422
+ updated_at == o.updated_at &&
423
+ service_id == o.service_id &&
424
+ version == o.version &&
433
425
  name == o.name &&
434
426
  shield == o.shield &&
435
427
  request_condition == o.request_condition &&
436
- max_conn_default == o.max_conn_default &&
437
- connect_timeout == o.connect_timeout &&
438
- first_byte_timeout == o.first_byte_timeout &&
439
- quorum == o.quorum &&
440
428
  tls_ciphers == o.tls_ciphers &&
441
429
  tls_sni_hostname == o.tls_sni_hostname &&
442
- tls_check_cert == o.tls_check_cert &&
443
430
  min_tls_version == o.min_tls_version &&
444
431
  max_tls_version == o.max_tls_version &&
445
432
  healthcheck == o.healthcheck &&
446
433
  comment == o.comment &&
447
434
  type == o.type &&
448
435
  override_host == o.override_host &&
449
- created_at == o.created_at &&
450
- deleted_at == o.deleted_at &&
451
- updated_at == o.updated_at &&
452
- service_id == o.service_id &&
453
- version == o.version &&
454
- id == o.id
436
+ between_bytes_timeout == o.between_bytes_timeout &&
437
+ connect_timeout == o.connect_timeout &&
438
+ first_byte_timeout == o.first_byte_timeout &&
439
+ max_conn_default == o.max_conn_default &&
440
+ tls_check_cert == o.tls_check_cert &&
441
+ id == o.id &&
442
+ quorum == o.quorum
455
443
  end
456
444
 
457
445
  # @see the `==` method
@@ -463,7 +451,7 @@ module Fastly
463
451
  # Calculates hash code according to all attributes.
464
452
  # @return [Integer] Hash code
465
453
  def hash
466
- [tls_ca_cert, tls_client_cert, tls_client_key, tls_cert_hostname, use_tls, name, shield, request_condition, max_conn_default, connect_timeout, first_byte_timeout, quorum, tls_ciphers, tls_sni_hostname, tls_check_cert, min_tls_version, max_tls_version, healthcheck, comment, type, override_host, created_at, deleted_at, updated_at, service_id, version, id].hash
454
+ [tls_ca_cert, tls_client_cert, tls_client_key, tls_cert_hostname, use_tls, created_at, deleted_at, updated_at, service_id, version, name, shield, request_condition, tls_ciphers, tls_sni_hostname, min_tls_version, max_tls_version, healthcheck, comment, type, override_host, between_bytes_timeout, connect_timeout, first_byte_timeout, max_conn_default, tls_check_cert, id, quorum].hash
467
455
  end
468
456
 
469
457
  # Builds the object from hash
@@ -13,12 +13,13 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class PoolResponseAllOf
16
- attr_accessor :id
16
+ # Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.
17
+ attr_accessor :quorum
17
18
 
18
19
  # Attribute mapping from ruby-style variable name to JSON key.
19
20
  def self.attribute_map
20
21
  {
21
- :'id' => :'id'
22
+ :'quorum' => :'quorum'
22
23
  }
23
24
  end
24
25
 
@@ -30,7 +31,7 @@ module Fastly
30
31
  # Attribute type mapping.
31
32
  def self.fastly_types
32
33
  {
33
- :'id' => :'String'
34
+ :'quorum' => :'String'
34
35
  }
35
36
  end
36
37
 
@@ -55,8 +56,10 @@ module Fastly
55
56
  h[k.to_sym] = v
56
57
  }
57
58
 
58
- if attributes.key?(:'id')
59
- self.id = attributes[:'id']
59
+ if attributes.key?(:'quorum')
60
+ self.quorum = attributes[:'quorum']
61
+ else
62
+ self.quorum = '75'
60
63
  end
61
64
  end
62
65
 
@@ -78,7 +81,7 @@ module Fastly
78
81
  def ==(o)
79
82
  return true if self.equal?(o)
80
83
  self.class == o.class &&
81
- id == o.id
84
+ quorum == o.quorum
82
85
  end
83
86
 
84
87
  # @see the `==` method
@@ -90,7 +93,7 @@ module Fastly
90
93
  # Calculates hash code according to all attributes.
91
94
  # @return [Integer] Hash code
92
95
  def hash
93
- [id].hash
96
+ [quorum].hash
94
97
  end
95
98
 
96
99
  # Builds the object from hash