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
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingSumologicAllOf
15
+ class LoggingSumologicAdditional
16
16
  attr_accessor :message_type
17
17
 
18
18
  # The URL to post logs to.
@@ -49,13 +49,13 @@ module Fastly
49
49
  # @param [Hash] attributes Model attributes in the form of hash
50
50
  def initialize(attributes = {})
51
51
  if (!attributes.is_a?(Hash))
52
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingSumologicAllOf` initialize method"
52
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingSumologicAdditional` initialize method"
53
53
  end
54
54
 
55
55
  # check to see if the attribute exists and convert string to symbol for hash key
56
56
  attributes = attributes.each_with_object({}) { |(k, v), h|
57
57
  if (!self.class.attribute_map.key?(k.to_sym))
58
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingSumologicAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingSumologicAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
59
  end
60
60
  h[k.to_sym] = v
61
61
  }
@@ -19,15 +19,15 @@ module Fastly
19
19
  # Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
20
20
  attr_accessor :placement
21
21
 
22
- # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
23
- attr_accessor :format_version
24
-
25
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
26
23
  attr_accessor :response_condition
27
24
 
28
25
  # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
29
26
  attr_accessor :format
30
27
 
28
+ # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
+ attr_accessor :format_version
30
+
31
31
  attr_accessor :message_type
32
32
 
33
33
  # The URL to post logs to.
@@ -73,9 +73,9 @@ module Fastly
73
73
  {
74
74
  :'name' => :'name',
75
75
  :'placement' => :'placement',
76
- :'format_version' => :'format_version',
77
76
  :'response_condition' => :'response_condition',
78
77
  :'format' => :'format',
78
+ :'format_version' => :'format_version',
79
79
  :'message_type' => :'message_type',
80
80
  :'url' => :'url',
81
81
  :'created_at' => :'created_at',
@@ -96,16 +96,16 @@ module Fastly
96
96
  {
97
97
  :'name' => :'String',
98
98
  :'placement' => :'String',
99
- :'format_version' => :'Integer',
100
99
  :'response_condition' => :'String',
101
100
  :'format' => :'String',
101
+ :'format_version' => :'String',
102
102
  :'message_type' => :'LoggingMessageType',
103
103
  :'url' => :'String',
104
104
  :'created_at' => :'Time',
105
105
  :'deleted_at' => :'Time',
106
106
  :'updated_at' => :'Time',
107
107
  :'service_id' => :'String',
108
- :'version' => :'Integer'
108
+ :'version' => :'String'
109
109
  }
110
110
  end
111
111
 
@@ -123,8 +123,9 @@ module Fastly
123
123
  # List of class defined in allOf (OpenAPI v3)
124
124
  def self.fastly_all_of
125
125
  [
126
- :'LoggingSumologic',
127
- :'ServiceIdAndVersion',
126
+ :'LoggingCommonResponse',
127
+ :'LoggingSumologicAdditional',
128
+ :'ServiceIdAndVersionString',
128
129
  :'Timestamps'
129
130
  ]
130
131
  end
@@ -152,12 +153,6 @@ module Fastly
152
153
  self.placement = attributes[:'placement']
153
154
  end
154
155
 
155
- if attributes.key?(:'format_version')
156
- self.format_version = attributes[:'format_version']
157
- else
158
- self.format_version = FORMAT_VERSION::v2
159
- end
160
-
161
156
  if attributes.key?(:'response_condition')
162
157
  self.response_condition = attributes[:'response_condition']
163
158
  end
@@ -168,6 +163,12 @@ module Fastly
168
163
  self.format = '%h %l %u %t \"%r\" %>s %b'
169
164
  end
170
165
 
166
+ if attributes.key?(:'format_version')
167
+ self.format_version = attributes[:'format_version']
168
+ else
169
+ self.format_version = '2'
170
+ end
171
+
171
172
  if attributes.key?(:'message_type')
172
173
  self.message_type = attributes[:'message_type']
173
174
  else
@@ -211,7 +212,7 @@ module Fastly
211
212
  def valid?
212
213
  placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
213
214
  return false unless placement_validator.valid?(@placement)
214
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
215
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
215
216
  return false unless format_version_validator.valid?(@format_version)
216
217
  true
217
218
  end
@@ -229,7 +230,7 @@ module Fastly
229
230
  # Custom attribute writer method checking allowed values (enum).
230
231
  # @param [Object] format_version Object to be assigned
231
232
  def format_version=(format_version)
232
- validator = EnumAttributeValidator.new('Integer', [1, 2])
233
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
233
234
  unless validator.valid?(format_version)
234
235
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
235
236
  end
@@ -243,9 +244,9 @@ module Fastly
243
244
  self.class == o.class &&
244
245
  name == o.name &&
245
246
  placement == o.placement &&
246
- format_version == o.format_version &&
247
247
  response_condition == o.response_condition &&
248
248
  format == o.format &&
249
+ format_version == o.format_version &&
249
250
  message_type == o.message_type &&
250
251
  url == o.url &&
251
252
  created_at == o.created_at &&
@@ -264,7 +265,7 @@ module Fastly
264
265
  # Calculates hash code according to all attributes.
265
266
  # @return [Integer] Hash code
266
267
  def hash
267
- [name, placement, format_version, response_condition, format, message_type, url, created_at, deleted_at, updated_at, service_id, version].hash
268
+ [name, placement, response_condition, format, format_version, message_type, url, created_at, deleted_at, updated_at, service_id, version].hash
268
269
  end
269
270
 
270
271
  # Builds the object from hash
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingSyslogAllOf
15
+ class LoggingSyslogAdditional
16
16
  attr_accessor :message_type
17
17
 
18
18
  # The hostname used for the syslog endpoint.
@@ -65,13 +65,13 @@ module Fastly
65
65
  # @param [Hash] attributes Model attributes in the form of hash
66
66
  def initialize(attributes = {})
67
67
  if (!attributes.is_a?(Hash))
68
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingSyslogAllOf` initialize method"
68
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingSyslogAdditional` initialize method"
69
69
  end
70
70
 
71
71
  # check to see if the attribute exists and convert string to symbol for hash key
72
72
  attributes = attributes.each_with_object({}) { |(k, v), h|
73
73
  if (!self.class.attribute_map.key?(k.to_sym))
74
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingSyslogAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
74
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingSyslogAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
75
75
  end
76
76
  h[k.to_sym] = v
77
77
  }
@@ -19,15 +19,15 @@ module Fastly
19
19
  # Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`.
20
20
  attr_accessor :placement
21
21
 
22
- # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
23
- attr_accessor :format_version
24
-
25
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
26
23
  attr_accessor :response_condition
27
24
 
28
25
  # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
29
26
  attr_accessor :format
30
27
 
28
+ # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
+ attr_accessor :format_version
30
+
31
31
  # A secure certificate to authenticate a server with. Must be in PEM format.
32
32
  attr_accessor :tls_ca_cert
33
33
 
@@ -99,9 +99,9 @@ module Fastly
99
99
  {
100
100
  :'name' => :'name',
101
101
  :'placement' => :'placement',
102
- :'format_version' => :'format_version',
103
102
  :'response_condition' => :'response_condition',
104
103
  :'format' => :'format',
104
+ :'format_version' => :'format_version',
105
105
  :'tls_ca_cert' => :'tls_ca_cert',
106
106
  :'tls_client_cert' => :'tls_client_cert',
107
107
  :'tls_client_key' => :'tls_client_key',
@@ -131,9 +131,9 @@ module Fastly
131
131
  {
132
132
  :'name' => :'String',
133
133
  :'placement' => :'String',
134
- :'format_version' => :'Integer',
135
134
  :'response_condition' => :'String',
136
135
  :'format' => :'String',
136
+ :'format_version' => :'String',
137
137
  :'tls_ca_cert' => :'String',
138
138
  :'tls_client_cert' => :'String',
139
139
  :'tls_client_key' => :'String',
@@ -149,7 +149,7 @@ module Fastly
149
149
  :'deleted_at' => :'Time',
150
150
  :'updated_at' => :'Time',
151
151
  :'service_id' => :'String',
152
- :'version' => :'Integer'
152
+ :'version' => :'String'
153
153
  }
154
154
  end
155
155
 
@@ -173,8 +173,11 @@ module Fastly
173
173
  # List of class defined in allOf (OpenAPI v3)
174
174
  def self.fastly_all_of
175
175
  [
176
- :'LoggingSyslog',
177
- :'ServiceIdAndVersion',
176
+ :'LoggingAddressAndPort',
177
+ :'LoggingCommonResponse',
178
+ :'LoggingSyslogAdditional',
179
+ :'LoggingTlsCommon',
180
+ :'ServiceIdAndVersionString',
178
181
  :'Timestamps'
179
182
  ]
180
183
  end
@@ -202,12 +205,6 @@ module Fastly
202
205
  self.placement = attributes[:'placement']
203
206
  end
204
207
 
205
- if attributes.key?(:'format_version')
206
- self.format_version = attributes[:'format_version']
207
- else
208
- self.format_version = FORMAT_VERSION::v2
209
- end
210
-
211
208
  if attributes.key?(:'response_condition')
212
209
  self.response_condition = attributes[:'response_condition']
213
210
  end
@@ -218,6 +215,12 @@ module Fastly
218
215
  self.format = '%h %l %u %t \"%r\" %>s %b'
219
216
  end
220
217
 
218
+ if attributes.key?(:'format_version')
219
+ self.format_version = attributes[:'format_version']
220
+ else
221
+ self.format_version = '2'
222
+ end
223
+
221
224
  if attributes.key?(:'tls_ca_cert')
222
225
  self.tls_ca_cert = attributes[:'tls_ca_cert']
223
226
  else
@@ -311,7 +314,7 @@ module Fastly
311
314
  def valid?
312
315
  placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
313
316
  return false unless placement_validator.valid?(@placement)
314
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
317
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
315
318
  return false unless format_version_validator.valid?(@format_version)
316
319
  true
317
320
  end
@@ -329,7 +332,7 @@ module Fastly
329
332
  # Custom attribute writer method checking allowed values (enum).
330
333
  # @param [Object] format_version Object to be assigned
331
334
  def format_version=(format_version)
332
- validator = EnumAttributeValidator.new('Integer', [1, 2])
335
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
333
336
  unless validator.valid?(format_version)
334
337
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
335
338
  end
@@ -343,9 +346,9 @@ module Fastly
343
346
  self.class == o.class &&
344
347
  name == o.name &&
345
348
  placement == o.placement &&
346
- format_version == o.format_version &&
347
349
  response_condition == o.response_condition &&
348
350
  format == o.format &&
351
+ format_version == o.format_version &&
349
352
  tls_ca_cert == o.tls_ca_cert &&
350
353
  tls_client_cert == o.tls_client_cert &&
351
354
  tls_client_key == o.tls_client_key &&
@@ -373,7 +376,7 @@ module Fastly
373
376
  # Calculates hash code according to all attributes.
374
377
  # @return [Integer] Hash code
375
378
  def hash
376
- [name, placement, format_version, response_condition, format, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, address, port, message_type, hostname, ipv4, token, use_tls, created_at, deleted_at, updated_at, service_id, version].hash
379
+ [name, placement, response_condition, format, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, address, port, message_type, hostname, ipv4, token, use_tls, created_at, deleted_at, updated_at, service_id, version].hash
377
380
  end
378
381
 
379
382
  # Builds the object from hash
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class PoolAllOf
15
+ class PoolAdditional
16
16
  # Name for the Pool.
17
17
  attr_accessor :name
18
18
 
@@ -22,27 +22,12 @@ module Fastly
22
22
  # Condition which, if met, will select this configuration during a request. Optional.
23
23
  attr_accessor :request_condition
24
24
 
25
- # Maximum number of connections. Optional.
26
- attr_accessor :max_conn_default
27
-
28
- # How long to wait for a timeout in milliseconds. Optional.
29
- attr_accessor :connect_timeout
30
-
31
- # How long to wait for the first byte in milliseconds. Optional.
32
- attr_accessor :first_byte_timeout
33
-
34
- # Percentage of capacity (`0-100`) that needs to be operationally available for a pool to be considered up.
35
- attr_accessor :quorum
36
-
37
25
  # List of OpenSSL ciphers (see the [openssl.org manpages](https://www.openssl.org/docs/man1.1.1/man1/ciphers.html) for details). Optional.
38
26
  attr_accessor :tls_ciphers
39
27
 
40
28
  # SNI hostname. Optional.
41
29
  attr_accessor :tls_sni_hostname
42
30
 
43
- # Be strict on checking TLS certs. Optional.
44
- attr_accessor :tls_check_cert
45
-
46
31
  # Minimum allowed TLS version on connections to this server. Optional.
47
32
  attr_accessor :min_tls_version
48
33
 
@@ -89,13 +74,8 @@ module Fastly
89
74
  :'name' => :'name',
90
75
  :'shield' => :'shield',
91
76
  :'request_condition' => :'request_condition',
92
- :'max_conn_default' => :'max_conn_default',
93
- :'connect_timeout' => :'connect_timeout',
94
- :'first_byte_timeout' => :'first_byte_timeout',
95
- :'quorum' => :'quorum',
96
77
  :'tls_ciphers' => :'tls_ciphers',
97
78
  :'tls_sni_hostname' => :'tls_sni_hostname',
98
- :'tls_check_cert' => :'tls_check_cert',
99
79
  :'min_tls_version' => :'min_tls_version',
100
80
  :'max_tls_version' => :'max_tls_version',
101
81
  :'healthcheck' => :'healthcheck',
@@ -116,13 +96,8 @@ module Fastly
116
96
  :'name' => :'String',
117
97
  :'shield' => :'String',
118
98
  :'request_condition' => :'String',
119
- :'max_conn_default' => :'Integer',
120
- :'connect_timeout' => :'Integer',
121
- :'first_byte_timeout' => :'Integer',
122
- :'quorum' => :'Integer',
123
99
  :'tls_ciphers' => :'String',
124
100
  :'tls_sni_hostname' => :'String',
125
- :'tls_check_cert' => :'Integer',
126
101
  :'min_tls_version' => :'Integer',
127
102
  :'max_tls_version' => :'Integer',
128
103
  :'healthcheck' => :'String',
@@ -139,7 +114,6 @@ module Fastly
139
114
  :'request_condition',
140
115
  :'tls_ciphers',
141
116
  :'tls_sni_hostname',
142
- :'tls_check_cert',
143
117
  :'min_tls_version',
144
118
  :'max_tls_version',
145
119
  :'healthcheck',
@@ -152,13 +126,13 @@ module Fastly
152
126
  # @param [Hash] attributes Model attributes in the form of hash
153
127
  def initialize(attributes = {})
154
128
  if (!attributes.is_a?(Hash))
155
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::PoolAllOf` initialize method"
129
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::PoolAdditional` initialize method"
156
130
  end
157
131
 
158
132
  # check to see if the attribute exists and convert string to symbol for hash key
159
133
  attributes = attributes.each_with_object({}) { |(k, v), h|
160
134
  if (!self.class.attribute_map.key?(k.to_sym))
161
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::PoolAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
135
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::PoolAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
162
136
  end
163
137
  h[k.to_sym] = v
164
138
  }
@@ -177,26 +151,6 @@ module Fastly
177
151
  self.request_condition = attributes[:'request_condition']
178
152
  end
179
153
 
180
- if attributes.key?(:'max_conn_default')
181
- self.max_conn_default = attributes[:'max_conn_default']
182
- else
183
- self.max_conn_default = 200
184
- end
185
-
186
- if attributes.key?(:'connect_timeout')
187
- self.connect_timeout = attributes[:'connect_timeout']
188
- end
189
-
190
- if attributes.key?(:'first_byte_timeout')
191
- self.first_byte_timeout = attributes[:'first_byte_timeout']
192
- end
193
-
194
- if attributes.key?(:'quorum')
195
- self.quorum = attributes[:'quorum']
196
- else
197
- self.quorum = 75
198
- end
199
-
200
154
  if attributes.key?(:'tls_ciphers')
201
155
  self.tls_ciphers = attributes[:'tls_ciphers']
202
156
  end
@@ -205,10 +159,6 @@ module Fastly
205
159
  self.tls_sni_hostname = attributes[:'tls_sni_hostname']
206
160
  end
207
161
 
208
- if attributes.key?(:'tls_check_cert')
209
- self.tls_check_cert = attributes[:'tls_check_cert']
210
- end
211
-
212
162
  if attributes.key?(:'min_tls_version')
213
163
  self.min_tls_version = attributes[:'min_tls_version']
214
164
  end
@@ -240,41 +190,17 @@ module Fastly
240
190
  # @return Array for valid properties with the reasons
241
191
  def list_invalid_properties
242
192
  invalid_properties = Array.new
243
- if !@quorum.nil? && @quorum > 100
244
- invalid_properties.push('invalid value for "quorum", must be smaller than or equal to 100.')
245
- end
246
-
247
- if !@quorum.nil? && @quorum < 0
248
- invalid_properties.push('invalid value for "quorum", must be greater than or equal to 0.')
249
- end
250
-
251
193
  invalid_properties
252
194
  end
253
195
 
254
196
  # Check to see if the all the properties in the model are valid
255
197
  # @return true if the model is valid
256
198
  def valid?
257
- return false if !@quorum.nil? && @quorum > 100
258
- return false if !@quorum.nil? && @quorum < 0
259
199
  type_validator = EnumAttributeValidator.new('String', ["random", "hash", "client"])
260
200
  return false unless type_validator.valid?(@type)
261
201
  true
262
202
  end
263
203
 
264
- # Custom attribute writer method with validation
265
- # @param [Object] quorum Value to be assigned
266
- def quorum=(quorum)
267
- if !quorum.nil? && quorum > 100
268
- fail ArgumentError, 'invalid value for "quorum", must be smaller than or equal to 100.'
269
- end
270
-
271
- if !quorum.nil? && quorum < 0
272
- fail ArgumentError, 'invalid value for "quorum", must be greater than or equal to 0.'
273
- end
274
-
275
- @quorum = quorum
276
- end
277
-
278
204
  # Custom attribute writer method checking allowed values (enum).
279
205
  # @param [Object] type Object to be assigned
280
206
  def type=(type)
@@ -293,13 +219,8 @@ module Fastly
293
219
  name == o.name &&
294
220
  shield == o.shield &&
295
221
  request_condition == o.request_condition &&
296
- max_conn_default == o.max_conn_default &&
297
- connect_timeout == o.connect_timeout &&
298
- first_byte_timeout == o.first_byte_timeout &&
299
- quorum == o.quorum &&
300
222
  tls_ciphers == o.tls_ciphers &&
301
223
  tls_sni_hostname == o.tls_sni_hostname &&
302
- tls_check_cert == o.tls_check_cert &&
303
224
  min_tls_version == o.min_tls_version &&
304
225
  max_tls_version == o.max_tls_version &&
305
226
  healthcheck == o.healthcheck &&
@@ -317,7 +238,7 @@ module Fastly
317
238
  # Calculates hash code according to all attributes.
318
239
  # @return [Integer] Hash code
319
240
  def hash
320
- [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].hash
241
+ [name, shield, request_condition, tls_ciphers, tls_sni_hostname, min_tls_version, max_tls_version, healthcheck, comment, type, override_host].hash
321
242
  end
322
243
 
323
244
  # Builds the object from hash