fastly 6.0.2 → 7.1.0

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