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
@@ -18,8 +18,6 @@ module Fastly
18
18
 
19
19
  attr_accessor :placement
20
20
 
21
- attr_accessor :format_version
22
-
23
21
  # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Kinesis can ingest.
24
22
  attr_accessor :format
25
23
 
@@ -37,6 +35,9 @@ module Fastly
37
35
  # The ARN for an IAM role granting Fastly access to the target Amazon Kinesis stream. Not required if `access_key` and `secret_key` are provided.
38
36
  attr_accessor :iam_role
39
37
 
38
+ # 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`.
39
+ attr_accessor :format_version
40
+
40
41
  # Date and time in ISO 8601 format.
41
42
  attr_accessor :created_at
42
43
 
@@ -50,18 +51,40 @@ module Fastly
50
51
 
51
52
  attr_accessor :version
52
53
 
54
+ class EnumAttributeValidator
55
+ attr_reader :datatype
56
+ attr_reader :allowable_values
57
+
58
+ def initialize(datatype, allowable_values)
59
+ @allowable_values = allowable_values.map do |value|
60
+ case datatype.to_s
61
+ when /Integer/i
62
+ value.to_i
63
+ when /Float/i
64
+ value.to_f
65
+ else
66
+ value
67
+ end
68
+ end
69
+ end
70
+
71
+ def valid?(value)
72
+ !value || allowable_values.include?(value)
73
+ end
74
+ end
75
+
53
76
  # Attribute mapping from ruby-style variable name to JSON key.
54
77
  def self.attribute_map
55
78
  {
56
79
  :'name' => :'name',
57
80
  :'placement' => :'placement',
58
- :'format_version' => :'format_version',
59
81
  :'format' => :'format',
60
82
  :'topic' => :'topic',
61
83
  :'region' => :'region',
62
84
  :'secret_key' => :'secret_key',
63
85
  :'access_key' => :'access_key',
64
86
  :'iam_role' => :'iam_role',
87
+ :'format_version' => :'format_version',
65
88
  :'created_at' => :'created_at',
66
89
  :'deleted_at' => :'deleted_at',
67
90
  :'updated_at' => :'updated_at',
@@ -80,18 +103,18 @@ module Fastly
80
103
  {
81
104
  :'name' => :'String',
82
105
  :'placement' => :'LoggingPlacement',
83
- :'format_version' => :'LoggingFormatVersion',
84
106
  :'format' => :'String',
85
107
  :'topic' => :'String',
86
108
  :'region' => :'AwsRegion',
87
109
  :'secret_key' => :'String',
88
110
  :'access_key' => :'String',
89
111
  :'iam_role' => :'String',
112
+ :'format_version' => :'String',
90
113
  :'created_at' => :'Time',
91
114
  :'deleted_at' => :'Time',
92
115
  :'updated_at' => :'Time',
93
116
  :'service_id' => :'String',
94
- :'version' => :'Integer'
117
+ :'version' => :'String'
95
118
  }
96
119
  end
97
120
 
@@ -111,8 +134,9 @@ module Fastly
111
134
  # List of class defined in allOf (OpenAPI v3)
112
135
  def self.fastly_all_of
113
136
  [
114
- :'LoggingKinesis',
115
- :'ServiceIdAndVersion',
137
+ :'LoggingFormatVersionString',
138
+ :'LoggingKinesisAdditional',
139
+ :'ServiceIdAndVersionString',
116
140
  :'Timestamps'
117
141
  ]
118
142
  end
@@ -140,12 +164,6 @@ module Fastly
140
164
  self.placement = attributes[:'placement']
141
165
  end
142
166
 
143
- if attributes.key?(:'format_version')
144
- self.format_version = attributes[:'format_version']
145
- else
146
- self.format_version = LoggingFormatVersion::v2
147
- end
148
-
149
167
  if attributes.key?(:'format')
150
168
  self.format = attributes[:'format']
151
169
  else
@@ -172,6 +190,12 @@ module Fastly
172
190
  self.iam_role = attributes[:'iam_role']
173
191
  end
174
192
 
193
+ if attributes.key?(:'format_version')
194
+ self.format_version = attributes[:'format_version']
195
+ else
196
+ self.format_version = '2'
197
+ end
198
+
175
199
  if attributes.key?(:'created_at')
176
200
  self.created_at = attributes[:'created_at']
177
201
  end
@@ -203,9 +227,21 @@ module Fastly
203
227
  # Check to see if the all the properties in the model are valid
204
228
  # @return true if the model is valid
205
229
  def valid?
230
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
231
+ return false unless format_version_validator.valid?(@format_version)
206
232
  true
207
233
  end
208
234
 
235
+ # Custom attribute writer method checking allowed values (enum).
236
+ # @param [Object] format_version Object to be assigned
237
+ def format_version=(format_version)
238
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
239
+ unless validator.valid?(format_version)
240
+ fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
241
+ end
242
+ @format_version = format_version
243
+ end
244
+
209
245
  # Checks equality by comparing each attribute.
210
246
  # @param [Object] Object to be compared
211
247
  def ==(o)
@@ -213,13 +249,13 @@ module Fastly
213
249
  self.class == o.class &&
214
250
  name == o.name &&
215
251
  placement == o.placement &&
216
- format_version == o.format_version &&
217
252
  format == o.format &&
218
253
  topic == o.topic &&
219
254
  region == o.region &&
220
255
  secret_key == o.secret_key &&
221
256
  access_key == o.access_key &&
222
257
  iam_role == o.iam_role &&
258
+ format_version == o.format_version &&
223
259
  created_at == o.created_at &&
224
260
  deleted_at == o.deleted_at &&
225
261
  updated_at == o.updated_at &&
@@ -236,7 +272,7 @@ module Fastly
236
272
  # Calculates hash code according to all attributes.
237
273
  # @return [Integer] Hash code
238
274
  def hash
239
- [name, placement, format_version, format, topic, region, secret_key, access_key, iam_role, created_at, deleted_at, updated_at, service_id, version].hash
275
+ [name, placement, format, topic, region, secret_key, access_key, iam_role, format_version, created_at, deleted_at, updated_at, service_id, version].hash
240
276
  end
241
277
 
242
278
  # Builds the object from hash
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingLogentriesAllOf
15
+ class LoggingLogentriesAdditional
16
16
  # The port number.
17
17
  attr_accessor :port
18
18
 
@@ -81,13 +81,13 @@ module Fastly
81
81
  # @param [Hash] attributes Model attributes in the form of hash
82
82
  def initialize(attributes = {})
83
83
  if (!attributes.is_a?(Hash))
84
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogentriesAllOf` initialize method"
84
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogentriesAdditional` initialize method"
85
85
  end
86
86
 
87
87
  # check to see if the attribute exists and convert string to symbol for hash key
88
88
  attributes = attributes.each_with_object({}) { |(k, v), h|
89
89
  if (!self.class.attribute_map.key?(k.to_sym))
90
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogentriesAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogentriesAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
91
91
  end
92
92
  h[k.to_sym] = v
93
93
  }
@@ -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
  # The port number.
32
32
  attr_accessor :port
33
33
 
@@ -79,9 +79,9 @@ module Fastly
79
79
  {
80
80
  :'name' => :'name',
81
81
  :'placement' => :'placement',
82
- :'format_version' => :'format_version',
83
82
  :'response_condition' => :'response_condition',
84
83
  :'format' => :'format',
84
+ :'format_version' => :'format_version',
85
85
  :'port' => :'port',
86
86
  :'token' => :'token',
87
87
  :'use_tls' => :'use_tls',
@@ -104,9 +104,9 @@ module Fastly
104
104
  {
105
105
  :'name' => :'String',
106
106
  :'placement' => :'String',
107
- :'format_version' => :'Integer',
108
107
  :'response_condition' => :'String',
109
108
  :'format' => :'String',
109
+ :'format_version' => :'String',
110
110
  :'port' => :'Integer',
111
111
  :'token' => :'String',
112
112
  :'use_tls' => :'LoggingUseTls',
@@ -115,7 +115,7 @@ module Fastly
115
115
  :'deleted_at' => :'Time',
116
116
  :'updated_at' => :'Time',
117
117
  :'service_id' => :'String',
118
- :'version' => :'Integer'
118
+ :'version' => :'String'
119
119
  }
120
120
  end
121
121
 
@@ -133,8 +133,9 @@ module Fastly
133
133
  # List of class defined in allOf (OpenAPI v3)
134
134
  def self.fastly_all_of
135
135
  [
136
- :'LoggingLogentries',
137
- :'ServiceIdAndVersion',
136
+ :'LoggingCommonResponse',
137
+ :'LoggingLogentriesAdditional',
138
+ :'ServiceIdAndVersionString',
138
139
  :'Timestamps'
139
140
  ]
140
141
  end
@@ -162,12 +163,6 @@ module Fastly
162
163
  self.placement = attributes[:'placement']
163
164
  end
164
165
 
165
- if attributes.key?(:'format_version')
166
- self.format_version = attributes[:'format_version']
167
- else
168
- self.format_version = FORMAT_VERSION::v2
169
- end
170
-
171
166
  if attributes.key?(:'response_condition')
172
167
  self.response_condition = attributes[:'response_condition']
173
168
  end
@@ -178,6 +173,12 @@ module Fastly
178
173
  self.format = '%h %l %u %t \"%r\" %>s %b'
179
174
  end
180
175
 
176
+ if attributes.key?(:'format_version')
177
+ self.format_version = attributes[:'format_version']
178
+ else
179
+ self.format_version = '2'
180
+ end
181
+
181
182
  if attributes.key?(:'port')
182
183
  self.port = attributes[:'port']
183
184
  else
@@ -231,7 +232,7 @@ module Fastly
231
232
  def valid?
232
233
  placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
233
234
  return false unless placement_validator.valid?(@placement)
234
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
235
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
235
236
  return false unless format_version_validator.valid?(@format_version)
236
237
  region_validator = EnumAttributeValidator.new('String', ["US", "US-2", "US-3", "EU", "CA", "AU", "AP"])
237
238
  return false unless region_validator.valid?(@region)
@@ -251,7 +252,7 @@ module Fastly
251
252
  # Custom attribute writer method checking allowed values (enum).
252
253
  # @param [Object] format_version Object to be assigned
253
254
  def format_version=(format_version)
254
- validator = EnumAttributeValidator.new('Integer', [1, 2])
255
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
255
256
  unless validator.valid?(format_version)
256
257
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
257
258
  end
@@ -275,9 +276,9 @@ module Fastly
275
276
  self.class == o.class &&
276
277
  name == o.name &&
277
278
  placement == o.placement &&
278
- format_version == o.format_version &&
279
279
  response_condition == o.response_condition &&
280
280
  format == o.format &&
281
+ format_version == o.format_version &&
281
282
  port == o.port &&
282
283
  token == o.token &&
283
284
  use_tls == o.use_tls &&
@@ -298,7 +299,7 @@ module Fastly
298
299
  # Calculates hash code according to all attributes.
299
300
  # @return [Integer] Hash code
300
301
  def hash
301
- [name, placement, format_version, response_condition, format, port, token, use_tls, region, created_at, deleted_at, updated_at, service_id, version].hash
302
+ [name, placement, response_condition, format, format_version, port, token, use_tls, region, created_at, deleted_at, updated_at, service_id, version].hash
302
303
  end
303
304
 
304
305
  # Builds the object from hash
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingLogglyAllOf
15
+ class LoggingLogglyAdditional
16
16
  # The token to use for authentication ([https://www.loggly.com/docs/customer-token-authentication-token/](https://www.loggly.com/docs/customer-token-authentication-token/)).
17
17
  attr_accessor :token
18
18
 
@@ -45,13 +45,13 @@ module Fastly
45
45
  # @param [Hash] attributes Model attributes in the form of hash
46
46
  def initialize(attributes = {})
47
47
  if (!attributes.is_a?(Hash))
48
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogglyAllOf` initialize method"
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogglyAdditional` initialize method"
49
49
  end
50
50
 
51
51
  # check to see if the attribute exists and convert string to symbol for hash key
52
52
  attributes = attributes.each_with_object({}) { |(k, v), h|
53
53
  if (!self.class.attribute_map.key?(k.to_sym))
54
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogglyAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogglyAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
55
  end
56
56
  h[k.to_sym] = v
57
57
  }
@@ -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
  # 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
32
  attr_accessor :token
33
33
 
@@ -71,9 +71,9 @@ module Fastly
71
71
  {
72
72
  :'name' => :'name',
73
73
  :'placement' => :'placement',
74
- :'format_version' => :'format_version',
75
74
  :'response_condition' => :'response_condition',
76
75
  :'format' => :'format',
76
+ :'format_version' => :'format_version',
77
77
  :'token' => :'token',
78
78
  :'created_at' => :'created_at',
79
79
  :'deleted_at' => :'deleted_at',
@@ -93,15 +93,15 @@ module Fastly
93
93
  {
94
94
  :'name' => :'String',
95
95
  :'placement' => :'String',
96
- :'format_version' => :'Integer',
97
96
  :'response_condition' => :'String',
98
97
  :'format' => :'String',
98
+ :'format_version' => :'String',
99
99
  :'token' => :'String',
100
100
  :'created_at' => :'Time',
101
101
  :'deleted_at' => :'Time',
102
102
  :'updated_at' => :'Time',
103
103
  :'service_id' => :'String',
104
- :'version' => :'Integer'
104
+ :'version' => :'String'
105
105
  }
106
106
  end
107
107
 
@@ -119,8 +119,9 @@ module Fastly
119
119
  # List of class defined in allOf (OpenAPI v3)
120
120
  def self.fastly_all_of
121
121
  [
122
- :'LoggingLoggly',
123
- :'ServiceIdAndVersion',
122
+ :'LoggingCommonResponse',
123
+ :'LoggingLogglyAdditional',
124
+ :'ServiceIdAndVersionString',
124
125
  :'Timestamps'
125
126
  ]
126
127
  end
@@ -148,12 +149,6 @@ module Fastly
148
149
  self.placement = attributes[:'placement']
149
150
  end
150
151
 
151
- if attributes.key?(:'format_version')
152
- self.format_version = attributes[:'format_version']
153
- else
154
- self.format_version = FORMAT_VERSION::v2
155
- end
156
-
157
152
  if attributes.key?(:'response_condition')
158
153
  self.response_condition = attributes[:'response_condition']
159
154
  end
@@ -164,6 +159,12 @@ module Fastly
164
159
  self.format = '%h %l %u %t \"%r\" %>s %b'
165
160
  end
166
161
 
162
+ if attributes.key?(:'format_version')
163
+ self.format_version = attributes[:'format_version']
164
+ else
165
+ self.format_version = '2'
166
+ end
167
+
167
168
  if attributes.key?(:'token')
168
169
  self.token = attributes[:'token']
169
170
  end
@@ -201,7 +202,7 @@ module Fastly
201
202
  def valid?
202
203
  placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
203
204
  return false unless placement_validator.valid?(@placement)
204
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
205
+ format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
205
206
  return false unless format_version_validator.valid?(@format_version)
206
207
  true
207
208
  end
@@ -219,7 +220,7 @@ module Fastly
219
220
  # Custom attribute writer method checking allowed values (enum).
220
221
  # @param [Object] format_version Object to be assigned
221
222
  def format_version=(format_version)
222
- validator = EnumAttributeValidator.new('Integer', [1, 2])
223
+ validator = EnumAttributeValidator.new('String', ["1", "2"])
223
224
  unless validator.valid?(format_version)
224
225
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
225
226
  end
@@ -233,9 +234,9 @@ module Fastly
233
234
  self.class == o.class &&
234
235
  name == o.name &&
235
236
  placement == o.placement &&
236
- format_version == o.format_version &&
237
237
  response_condition == o.response_condition &&
238
238
  format == o.format &&
239
+ format_version == o.format_version &&
239
240
  token == o.token &&
240
241
  created_at == o.created_at &&
241
242
  deleted_at == o.deleted_at &&
@@ -253,7 +254,7 @@ module Fastly
253
254
  # Calculates hash code according to all attributes.
254
255
  # @return [Integer] Hash code
255
256
  def hash
256
- [name, placement, format_version, response_condition, format, token, created_at, deleted_at, updated_at, service_id, version].hash
257
+ [name, placement, response_condition, format, format_version, token, created_at, deleted_at, updated_at, service_id, version].hash
257
258
  end
258
259
 
259
260
  # Builds the object from hash
@@ -12,7 +12,7 @@ require 'date'
12
12
  require 'time'
13
13
 
14
14
  module Fastly
15
- class LoggingLogshuttleAllOf
15
+ class LoggingLogshuttleAdditional
16
16
  # The data authentication token associated with this endpoint.
17
17
  attr_accessor :token
18
18
 
@@ -51,13 +51,13 @@ module Fastly
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogshuttleAllOf` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingLogshuttleAdditional` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  attributes = attributes.each_with_object({}) { |(k, v), h|
59
59
  if (!self.class.attribute_map.key?(k.to_sym))
60
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogshuttleAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
60
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingLogshuttleAdditional`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
61
61
  end
62
62
  h[k.to_sym] = v
63
63
  }
@@ -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
  # The data authentication token associated with this endpoint.
32
32
  attr_accessor :token
33
33
 
@@ -74,9 +74,9 @@ module Fastly
74
74
  {
75
75
  :'name' => :'name',
76
76
  :'placement' => :'placement',
77
- :'format_version' => :'format_version',
78
77
  :'response_condition' => :'response_condition',
79
78
  :'format' => :'format',
79
+ :'format_version' => :'format_version',
80
80
  :'token' => :'token',
81
81
  :'url' => :'url',
82
82
  :'created_at' => :'created_at',
@@ -97,16 +97,16 @@ module Fastly
97
97
  {
98
98
  :'name' => :'String',
99
99
  :'placement' => :'String',
100
- :'format_version' => :'Integer',
101
100
  :'response_condition' => :'String',
102
101
  :'format' => :'String',
102
+ :'format_version' => :'String',
103
103
  :'token' => :'String',
104
104
  :'url' => :'String',
105
105
  :'created_at' => :'Time',
106
106
  :'deleted_at' => :'Time',
107
107
  :'updated_at' => :'Time',
108
108
  :'service_id' => :'String',
109
- :'version' => :'Integer'
109
+ :'version' => :'String'
110
110
  }
111
111
  end
112
112
 
@@ -125,8 +125,9 @@ module Fastly
125
125
  # List of class defined in allOf (OpenAPI v3)
126
126
  def self.fastly_all_of
127
127
  [
128
- :'LoggingLogshuttle',
129
- :'ServiceIdAndVersion',
128
+ :'LoggingCommonResponse',
129
+ :'LoggingLogshuttleAdditional',
130
+ :'ServiceIdAndVersionString',
130
131
  :'Timestamps'
131
132
  ]
132
133
  end
@@ -154,12 +155,6 @@ module Fastly
154
155
  self.placement = attributes[:'placement']
155
156
  end
156
157
 
157
- if attributes.key?(:'format_version')
158
- self.format_version = attributes[:'format_version']
159
- else
160
- self.format_version = FORMAT_VERSION::v2
161
- end
162
-
163
158
  if attributes.key?(:'response_condition')
164
159
  self.response_condition = attributes[:'response_condition']
165
160
  end
@@ -170,6 +165,12 @@ module Fastly
170
165
  self.format = '%h %l %u %t \"%r\" %>s %b'
171
166
  end
172
167
 
168
+ if attributes.key?(:'format_version')
169
+ self.format_version = attributes[:'format_version']
170
+ else
171
+ self.format_version = '2'
172
+ end
173
+
173
174
  if attributes.key?(:'token')
174
175
  self.token = attributes[:'token']
175
176
  end
@@ -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
  token == o.token &&
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, token, url, created_at, deleted_at, updated_at, service_id, version].hash
268
+ [name, placement, response_condition, format, format_version, token, 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 LoggingNewrelicAllOf
15
+ class LoggingNewrelicAdditional
16
16
  # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest.
17
17
  attr_accessor :format
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::LoggingNewrelicAllOf` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingNewrelicAdditional` 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::LoggingNewrelicAllOf`. 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::LoggingNewrelicAdditional`. 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
  }