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,24 +12,21 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingLoggly
15
+ class LoggingCommonResponse
16
16
  # The name for the real-time logging configuration.
17
17
  attr_accessor :name
18
18
 
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
 
31
- # The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)).
32
- attr_accessor :token
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
33
30
 
34
31
  class EnumAttributeValidator
35
32
  attr_reader :datatype
@@ -58,10 +55,9 @@ module Fastly
58
55
  {
59
56
  :'name' => :'name',
60
57
  :'placement' => :'placement',
61
- :'format_version' => :'format_version',
62
58
  :'response_condition' => :'response_condition',
63
59
  :'format' => :'format',
64
- :'token' => :'token'
60
+ :'format_version' => :'format_version'
65
61
  }
66
62
  end
67
63
 
@@ -75,10 +71,9 @@ module Fastly
75
71
  {
76
72
  :'name' => :'String',
77
73
  :'placement' => :'String',
78
- :'format_version' => :'Integer',
79
74
  :'response_condition' => :'String',
80
75
  :'format' => :'String',
81
- :'token' => :'String'
76
+ :'format_version' => :'String'
82
77
  }
83
78
  end
84
79
 
@@ -93,8 +88,8 @@ module Fastly
93
88
  # List of class defined in allOf (OpenAPI v3)
94
89
  def self.fastly_all_of
95
90
  [
96
- :'LoggingCommon',
97
- :'LoggingLogglyAllOf'
91
+ :'LoggingCommonResponseAllOf',
92
+ :'LoggingCommonResponseAllOf1'
98
93
  ]
99
94
  end
100
95
 
@@ -102,13 +97,13 @@ module Fastly
102
97
  # @param [Hash] attributes Model attributes in the form of hash
103
98
  def initialize(attributes = {})
104
99
  if (!attributes.is_a?(Hash))
105
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLoggly` initialize method"
100
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingCommonResponse` initialize method"
106
101
  end
107
102
 
108
103
  # check to see if the attribute exists and convert string to symbol for hash key
109
104
  attributes = attributes.each_with_object({}) { |(k, v), h|
110
105
  if (!self.class.attribute_map.key?(k.to_sym))
111
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLoggly`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
106
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingCommonResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
112
107
  end
113
108
  h[k.to_sym] = v
114
109
  }
@@ -121,12 +116,6 @@ module Fastly
121
116
  self.placement = attributes[:'placement']
122
117
  end
123
118
 
124
- if attributes.key?(:'format_version')
125
- self.format_version = attributes[:'format_version']
126
- else
127
- self.format_version = FORMAT_VERSION::v2
128
- end
129
-
130
119
  if attributes.key?(:'response_condition')
131
120
  self.response_condition = attributes[:'response_condition']
132
121
  end
@@ -137,8 +126,10 @@ module Fastly
137
126
  self.format = '%h %l %u %t \"%r\" %>s %b'
138
127
  end
139
128
 
140
- if attributes.key?(:'token')
141
- self.token = attributes[:'token']
129
+ if attributes.key?(:'format_version')
130
+ self.format_version = attributes[:'format_version']
131
+ else
132
+ self.format_version = '2'
142
133
  end
143
134
  end
144
135
 
@@ -154,7 +145,7 @@ module Fastly
154
145
  def valid?
155
146
  placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
156
147
  return false unless placement_validator.valid?(@placement)
157
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
148
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
158
149
  return false unless format_version_validator.valid?(@format_version)
159
150
  true
160
151
  end
@@ -172,7 +163,7 @@ module Fastly
172
163
  # Custom attribute writer method checking allowed values (enum).
173
164
  # @param [Object] format_version Object to be assigned
174
165
  def format_version=(format_version)
175
- validator = EnumAttributeValidator.new('Integer', [1, 2])
166
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
176
167
  unless validator.valid?(format_version)
177
168
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
178
169
  end
@@ -186,10 +177,9 @@ module Fastly
186
177
  self.class == o.class &&
187
178
  name == o.name &&
188
179
  placement == o.placement &&
189
- format_version == o.format_version &&
190
180
  response_condition == o.response_condition &&
191
181
  format == o.format &&
192
- token == o.token
182
+ format_version == o.format_version
193
183
  end
194
184
 
195
185
  # @see the `==` method
@@ -201,7 +191,7 @@ module Fastly
201
191
  # Calculates hash code according to all attributes.
202
192
  # @return [Integer] Hash code
203
193
  def hash
204
- [name, placement, format_version, response_condition, format, token].hash
194
+ [name, placement, response_condition, format, format_version].hash
205
195
  end
206
196
 
207
197
  # Builds the object from hash
@@ -12,28 +12,19 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingLogshuttle
15
+ class LoggingCommonResponseAllOf
16
16
  # The name for the real-time logging configuration.
17
17
  attr_accessor :name
18
18
 
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
 
31
- # The data authentication token associated with this endpoint.
32
- attr_accessor :token
33
-
34
- # The URL to stream logs to.
35
- attr_accessor :url
36
-
37
28
  class EnumAttributeValidator
38
29
  attr_reader :datatype
39
30
  attr_reader :allowable_values
@@ -61,11 +52,8 @@ module Fastly
61
52
  {
62
53
  :'name' => :'name',
63
54
  :'placement' => :'placement',
64
- :'format_version' => :'format_version',
65
55
  :'response_condition' => :'response_condition',
66
- :'format' => :'format',
67
- :'token' => :'token',
68
- :'url' => :'url'
56
+ :'format' => :'format'
69
57
  }
70
58
  end
71
59
 
@@ -79,11 +67,8 @@ module Fastly
79
67
  {
80
68
  :'name' => :'String',
81
69
  :'placement' => :'String',
82
- :'format_version' => :'Integer',
83
70
  :'response_condition' => :'String',
84
- :'format' => :'String',
85
- :'token' => :'String',
86
- :'url' => :'String'
71
+ :'format' => :'String'
87
72
  }
88
73
  end
89
74
 
@@ -92,29 +77,20 @@ module Fastly
92
77
  Set.new([
93
78
  :'placement',
94
79
  :'response_condition',
95
- :'token',
96
80
  ])
97
81
  end
98
82
 
99
- # List of class defined in allOf (OpenAPI v3)
100
- def self.fastly_all_of
101
- [
102
- :'LoggingCommon',
103
- :'LoggingLogshuttleAllOf'
104
- ]
105
- end
106
-
107
83
  # Initializes the object
108
84
  # @param [Hash] attributes Model attributes in the form of hash
109
85
  def initialize(attributes = {})
110
86
  if (!attributes.is_a?(Hash))
111
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogshuttle` initialize method"
87
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingCommonResponseAllOf` initialize method"
112
88
  end
113
89
 
114
90
  # check to see if the attribute exists and convert string to symbol for hash key
115
91
  attributes = attributes.each_with_object({}) { |(k, v), h|
116
92
  if (!self.class.attribute_map.key?(k.to_sym))
117
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogshuttle`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingCommonResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
118
94
  end
119
95
  h[k.to_sym] = v
120
96
  }
@@ -127,12 +103,6 @@ module Fastly
127
103
  self.placement = attributes[:'placement']
128
104
  end
129
105
 
130
- if attributes.key?(:'format_version')
131
- self.format_version = attributes[:'format_version']
132
- else
133
- self.format_version = FORMAT_VERSION::v2
134
- end
135
-
136
106
  if attributes.key?(:'response_condition')
137
107
  self.response_condition = attributes[:'response_condition']
138
108
  end
@@ -142,14 +112,6 @@ module Fastly
142
112
  else
143
113
  self.format = '%h %l %u %t \"%r\" %>s %b'
144
114
  end
145
-
146
- if attributes.key?(:'token')
147
- self.token = attributes[:'token']
148
- end
149
-
150
- if attributes.key?(:'url')
151
- self.url = attributes[:'url']
152
- end
153
115
  end
154
116
 
155
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -164,8 +126,6 @@ module Fastly
164
126
  def valid?
165
127
  placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
166
128
  return false unless placement_validator.valid?(@placement)
167
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
168
- return false unless format_version_validator.valid?(@format_version)
169
129
  true
170
130
  end
171
131
 
@@ -179,16 +139,6 @@ module Fastly
179
139
  @placement = placement
180
140
  end
181
141
 
182
- # Custom attribute writer method checking allowed values (enum).
183
- # @param [Object] format_version Object to be assigned
184
- def format_version=(format_version)
185
- validator = EnumAttributeValidator.new('Integer', [1, 2])
186
- unless validator.valid?(format_version)
187
- fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
188
- end
189
- @format_version = format_version
190
- end
191
-
192
142
  # Checks equality by comparing each attribute.
193
143
  # @param [Object] Object to be compared
194
144
  def ==(o)
@@ -196,11 +146,8 @@ module Fastly
196
146
  self.class == o.class &&
197
147
  name == o.name &&
198
148
  placement == o.placement &&
199
- format_version == o.format_version &&
200
149
  response_condition == o.response_condition &&
201
- format == o.format &&
202
- token == o.token &&
203
- url == o.url
150
+ format == o.format
204
151
  end
205
152
 
206
153
  # @see the `==` method
@@ -212,7 +159,7 @@ module Fastly
212
159
  # Calculates hash code according to all attributes.
213
160
  # @return [Integer] Hash code
214
161
  def hash
215
- [name, placement, format_version, response_condition, format, token, url].hash
162
+ [name, placement, response_condition, format].hash
216
163
  end
217
164
 
218
165
  # Builds the object from hash
@@ -0,0 +1,253 @@
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 LoggingCommonResponseAllOf1
16
+ # 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`.
17
+ attr_accessor :format_version
18
+
19
+ class EnumAttributeValidator
20
+ attr_reader :datatype
21
+ attr_reader :allowable_values
22
+
23
+ def initialize(datatype, allowable_values)
24
+ @allowable_values = allowable_values.map do |value|
25
+ case datatype.to_s
26
+ when /Integer/i
27
+ value.to_i
28
+ when /Float/i
29
+ value.to_f
30
+ else
31
+ value
32
+ end
33
+ end
34
+ end
35
+
36
+ def valid?(value)
37
+ !value || allowable_values.include?(value)
38
+ end
39
+ end
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'format_version' => :'format_version'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.fastly_types
55
+ {
56
+ :'format_version' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.fastly_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingCommonResponseAllOf1` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ attributes = attributes.each_with_object({}) { |(k, v), h|
75
+ if (!self.class.attribute_map.key?(k.to_sym))
76
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingCommonResponseAllOf1`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
77
+ end
78
+ h[k.to_sym] = v
79
+ }
80
+
81
+ if attributes.key?(:'format_version')
82
+ self.format_version = attributes[:'format_version']
83
+ else
84
+ self.format_version = '2'
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properties with the reasons
90
+ def list_invalid_properties
91
+ invalid_properties = Array.new
92
+ invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
99
+ return false unless format_version_validator.valid?(@format_version)
100
+ true
101
+ end
102
+
103
+ # Custom attribute writer method checking allowed values (enum).
104
+ # @param [Object] format_version Object to be assigned
105
+ def format_version=(format_version)
106
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
107
+ unless validator.valid?(format_version)
108
+ fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
109
+ end
110
+ @format_version = format_version
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ format_version == o.format_version
119
+ end
120
+
121
+ # @see the `==` method
122
+ # @param [Object] Object to be compared
123
+ def eql?(o)
124
+ self == o
125
+ end
126
+
127
+ # Calculates hash code according to all attributes.
128
+ # @return [Integer] Hash code
129
+ def hash
130
+ [format_version].hash
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def self.build_from_hash(attributes)
137
+ new.build_from_hash(attributes)
138
+ end
139
+
140
+ # Builds the object from hash
141
+ # @param [Hash] attributes Model attributes in the form of hash
142
+ # @return [Object] Returns the model itself
143
+ def build_from_hash(attributes)
144
+ return nil unless attributes.is_a?(Hash)
145
+ self.class.fastly_types.each_pair do |key, type|
146
+ if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
147
+ self.send("#{key}=", nil)
148
+ elsif type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
152
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
153
+ end
154
+ elsif !attributes[self.class.attribute_map[key]].nil?
155
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
+ end
157
+ end
158
+
159
+ self
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :Time
169
+ Time.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :Boolean
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ # models (e.g. Pet) or oneOf
200
+ klass = Fastly.const_get(type)
201
+ klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
202
+ end
203
+ end
204
+
205
+ # Returns the string representation of the object
206
+ # @return [String] String presentation of the object
207
+ def to_s
208
+ to_hash.to_s
209
+ end
210
+
211
+ # to_body is an alias to to_hash (backward compatibility)
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_body
214
+ to_hash
215
+ end
216
+
217
+ # Returns the object in the form of hash
218
+ # @return [Hash] Returns the object in the form of hash
219
+ def to_hash
220
+ hash = {}
221
+ self.class.attribute_map.each_pair do |attr, param|
222
+ value = self.send(attr)
223
+ if value.nil?
224
+ is_nullable = self.class.fastly_nullable.include?(attr)
225
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
226
+ end
227
+
228
+ hash[param] = _to_hash(value)
229
+ end
230
+ hash
231
+ end
232
+
233
+ # Outputs non-array value in the form of hash
234
+ # For object, use to_hash. Otherwise, just return the value
235
+ # @param [Object] value Any valid value
236
+ # @return [Hash] Returns the value in the form of hash
237
+ def _to_hash(value)
238
+ if value.is_a?(Array)
239
+ value.compact.map { |v| _to_hash(v) }
240
+ elsif value.is_a?(Hash)
241
+ {}.tap do |hash|
242
+ value.each { |k, v| hash[k] = _to_hash(v) }
243
+ end
244
+ elsif value.respond_to? :to_hash
245
+ value.to_hash
246
+ else
247
+ value
248
+ end
249
+ end
250
+
251
+ end
252
+
253
+ end
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingDatadogAllOf
15
+ class LoggingDatadogAdditional
16
16
  # The region that log data will be sent to.
17
17
  attr_accessor :region
18
18
 
@@ -77,13 +77,13 @@ module Fastly
77
77
  # @param [Hash] attributes Model attributes in the form of hash
78
78
  def initialize(attributes = {})
79
79
  if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingDatadogAllOf` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingDatadogAdditional` initialize method"
81
81
  end
82
82
 
83
83
  # check to see if the attribute exists and convert string to symbol for hash key
84
84
  attributes = attributes.each_with_object({}) { |(k, v), h|
85
85
  if (!self.class.attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingDatadogAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingDatadogAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
87
  end
88
88
  h[k.to_sym] = v
89
89
  }