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
@@ -1,474 +0,0 @@
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 LoggingGcs
16
- # The name for the real-time logging configuration.
17
- attr_accessor :name
18
-
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
- attr_accessor :placement
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
- # The name of an existing condition in the configured endpoint, or leave blank to always execute.
26
- attr_accessor :response_condition
27
-
28
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
29
- attr_accessor :format
30
-
31
- # How the message should be formatted.
32
- attr_accessor :message_type
33
-
34
- # A timestamp format
35
- attr_accessor :timestamp_format
36
-
37
- # How frequently log files are finalized so they can be available for reading (in seconds).
38
- attr_accessor :period
39
-
40
- # The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
41
- attr_accessor :gzip_level
42
-
43
- # The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
44
- attr_accessor :compression_codec
45
-
46
- # Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. Not required if `account_name` is specified.
47
- attr_accessor :user
48
-
49
- # Your Google Cloud Platform account secret key. The `private_key` field in your service account authentication JSON. Not required if `account_name` is specified.
50
- attr_accessor :secret_key
51
-
52
- # The name of the Google Cloud Platform service account associated with the target log collection service. Not required if `user` and `secret_key` are provided.
53
- attr_accessor :account_name
54
-
55
- # The name of the GCS bucket.
56
- attr_accessor :bucket_name
57
-
58
- attr_accessor :path
59
-
60
- # A PGP public key that Fastly will use to encrypt your log files before writing them to disk.
61
- attr_accessor :public_key
62
-
63
- # Your Google Cloud Platform project ID. Required
64
- attr_accessor :project_id
65
-
66
- class EnumAttributeValidator
67
- attr_reader :datatype
68
- attr_reader :allowable_values
69
-
70
- def initialize(datatype, allowable_values)
71
- @allowable_values = allowable_values.map do |value|
72
- case datatype.to_s
73
- when /Integer/i
74
- value.to_i
75
- when /Float/i
76
- value.to_f
77
- else
78
- value
79
- end
80
- end
81
- end
82
-
83
- def valid?(value)
84
- !value || allowable_values.include?(value)
85
- end
86
- end
87
-
88
- # Attribute mapping from ruby-style variable name to JSON key.
89
- def self.attribute_map
90
- {
91
- :'name' => :'name',
92
- :'placement' => :'placement',
93
- :'format_version' => :'format_version',
94
- :'response_condition' => :'response_condition',
95
- :'format' => :'format',
96
- :'message_type' => :'message_type',
97
- :'timestamp_format' => :'timestamp_format',
98
- :'period' => :'period',
99
- :'gzip_level' => :'gzip_level',
100
- :'compression_codec' => :'compression_codec',
101
- :'user' => :'user',
102
- :'secret_key' => :'secret_key',
103
- :'account_name' => :'account_name',
104
- :'bucket_name' => :'bucket_name',
105
- :'path' => :'path',
106
- :'public_key' => :'public_key',
107
- :'project_id' => :'project_id'
108
- }
109
- end
110
-
111
- # Returns all the JSON keys this model knows about
112
- def self.acceptable_attributes
113
- attribute_map.values
114
- end
115
-
116
- # Attribute type mapping.
117
- def self.fastly_types
118
- {
119
- :'name' => :'String',
120
- :'placement' => :'String',
121
- :'format_version' => :'Integer',
122
- :'response_condition' => :'String',
123
- :'format' => :'String',
124
- :'message_type' => :'String',
125
- :'timestamp_format' => :'String',
126
- :'period' => :'Integer',
127
- :'gzip_level' => :'Integer',
128
- :'compression_codec' => :'String',
129
- :'user' => :'String',
130
- :'secret_key' => :'String',
131
- :'account_name' => :'String',
132
- :'bucket_name' => :'String',
133
- :'path' => :'String',
134
- :'public_key' => :'String',
135
- :'project_id' => :'String'
136
- }
137
- end
138
-
139
- # List of attributes with nullable: true
140
- def self.fastly_nullable
141
- Set.new([
142
- :'placement',
143
- :'response_condition',
144
- :'timestamp_format',
145
- :'public_key',
146
- ])
147
- end
148
-
149
- # List of class defined in allOf (OpenAPI v3)
150
- def self.fastly_all_of
151
- [
152
- :'LoggingCommon',
153
- :'LoggingGcsAllOf',
154
- :'LoggingGcsCommon',
155
- :'LoggingGenericCommon'
156
- ]
157
- end
158
-
159
- # Initializes the object
160
- # @param [Hash] attributes Model attributes in the form of hash
161
- def initialize(attributes = {})
162
- if (!attributes.is_a?(Hash))
163
- fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingGcs` initialize method"
164
- end
165
-
166
- # check to see if the attribute exists and convert string to symbol for hash key
167
- attributes = attributes.each_with_object({}) { |(k, v), h|
168
- if (!self.class.attribute_map.key?(k.to_sym))
169
- fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingGcs`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
170
- end
171
- h[k.to_sym] = v
172
- }
173
-
174
- if attributes.key?(:'name')
175
- self.name = attributes[:'name']
176
- end
177
-
178
- if attributes.key?(:'placement')
179
- self.placement = attributes[:'placement']
180
- end
181
-
182
- if attributes.key?(:'format_version')
183
- self.format_version = attributes[:'format_version']
184
- else
185
- self.format_version = FORMAT_VERSION::v2
186
- end
187
-
188
- if attributes.key?(:'response_condition')
189
- self.response_condition = attributes[:'response_condition']
190
- end
191
-
192
- if attributes.key?(:'format')
193
- self.format = attributes[:'format']
194
- else
195
- self.format = '%h %l %u %t \"%r\" %>s %b'
196
- end
197
-
198
- if attributes.key?(:'message_type')
199
- self.message_type = attributes[:'message_type']
200
- else
201
- self.message_type = 'classic'
202
- end
203
-
204
- if attributes.key?(:'timestamp_format')
205
- self.timestamp_format = attributes[:'timestamp_format']
206
- end
207
-
208
- if attributes.key?(:'period')
209
- self.period = attributes[:'period']
210
- else
211
- self.period = 3600
212
- end
213
-
214
- if attributes.key?(:'gzip_level')
215
- self.gzip_level = attributes[:'gzip_level']
216
- else
217
- self.gzip_level = 0
218
- end
219
-
220
- if attributes.key?(:'compression_codec')
221
- self.compression_codec = attributes[:'compression_codec']
222
- end
223
-
224
- if attributes.key?(:'user')
225
- self.user = attributes[:'user']
226
- end
227
-
228
- if attributes.key?(:'secret_key')
229
- self.secret_key = attributes[:'secret_key']
230
- end
231
-
232
- if attributes.key?(:'account_name')
233
- self.account_name = attributes[:'account_name']
234
- end
235
-
236
- if attributes.key?(:'bucket_name')
237
- self.bucket_name = attributes[:'bucket_name']
238
- end
239
-
240
- if attributes.key?(:'path')
241
- self.path = attributes[:'path']
242
- else
243
- self.path = '/'
244
- end
245
-
246
- if attributes.key?(:'public_key')
247
- self.public_key = attributes[:'public_key']
248
- else
249
- self.public_key = 'null'
250
- end
251
-
252
- if attributes.key?(:'project_id')
253
- self.project_id = attributes[:'project_id']
254
- end
255
- end
256
-
257
- # Show invalid properties with the reasons. Usually used together with valid?
258
- # @return Array for valid properties with the reasons
259
- def list_invalid_properties
260
- invalid_properties = Array.new
261
- invalid_properties
262
- end
263
-
264
- # Check to see if the all the properties in the model are valid
265
- # @return true if the model is valid
266
- def valid?
267
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
268
- return false unless placement_validator.valid?(@placement)
269
- format_version_validator = EnumAttributeValidator.new('Integer', [1, 2])
270
- return false unless format_version_validator.valid?(@format_version)
271
- message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
272
- return false unless message_type_validator.valid?(@message_type)
273
- compression_codec_validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
274
- return false unless compression_codec_validator.valid?(@compression_codec)
275
- true
276
- end
277
-
278
- # Custom attribute writer method checking allowed values (enum).
279
- # @param [Object] placement Object to be assigned
280
- def placement=(placement)
281
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
282
- unless validator.valid?(placement)
283
- fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
284
- end
285
- @placement = placement
286
- end
287
-
288
- # Custom attribute writer method checking allowed values (enum).
289
- # @param [Object] format_version Object to be assigned
290
- def format_version=(format_version)
291
- validator = EnumAttributeValidator.new('Integer', [1, 2])
292
- unless validator.valid?(format_version)
293
- fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
294
- end
295
- @format_version = format_version
296
- end
297
-
298
- # Custom attribute writer method checking allowed values (enum).
299
- # @param [Object] message_type Object to be assigned
300
- def message_type=(message_type)
301
- validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
302
- unless validator.valid?(message_type)
303
- fail ArgumentError, "invalid value for \"message_type\", must be one of #{validator.allowable_values}."
304
- end
305
- @message_type = message_type
306
- end
307
-
308
- # Custom attribute writer method checking allowed values (enum).
309
- # @param [Object] compression_codec Object to be assigned
310
- def compression_codec=(compression_codec)
311
- validator = EnumAttributeValidator.new('String', ["zstd", "snappy", "gzip"])
312
- unless validator.valid?(compression_codec)
313
- fail ArgumentError, "invalid value for \"compression_codec\", must be one of #{validator.allowable_values}."
314
- end
315
- @compression_codec = compression_codec
316
- end
317
-
318
- # Checks equality by comparing each attribute.
319
- # @param [Object] Object to be compared
320
- def ==(o)
321
- return true if self.equal?(o)
322
- self.class == o.class &&
323
- name == o.name &&
324
- placement == o.placement &&
325
- format_version == o.format_version &&
326
- response_condition == o.response_condition &&
327
- format == o.format &&
328
- message_type == o.message_type &&
329
- timestamp_format == o.timestamp_format &&
330
- period == o.period &&
331
- gzip_level == o.gzip_level &&
332
- compression_codec == o.compression_codec &&
333
- user == o.user &&
334
- secret_key == o.secret_key &&
335
- account_name == o.account_name &&
336
- bucket_name == o.bucket_name &&
337
- path == o.path &&
338
- public_key == o.public_key &&
339
- project_id == o.project_id
340
- end
341
-
342
- # @see the `==` method
343
- # @param [Object] Object to be compared
344
- def eql?(o)
345
- self == o
346
- end
347
-
348
- # Calculates hash code according to all attributes.
349
- # @return [Integer] Hash code
350
- def hash
351
- [name, placement, format_version, response_condition, format, message_type, timestamp_format, period, gzip_level, compression_codec, user, secret_key, account_name, bucket_name, path, public_key, project_id].hash
352
- end
353
-
354
- # Builds the object from hash
355
- # @param [Hash] attributes Model attributes in the form of hash
356
- # @return [Object] Returns the model itself
357
- def self.build_from_hash(attributes)
358
- new.build_from_hash(attributes)
359
- end
360
-
361
- # Builds the object from hash
362
- # @param [Hash] attributes Model attributes in the form of hash
363
- # @return [Object] Returns the model itself
364
- def build_from_hash(attributes)
365
- return nil unless attributes.is_a?(Hash)
366
- self.class.fastly_types.each_pair do |key, type|
367
- if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
368
- self.send("#{key}=", nil)
369
- elsif type =~ /\AArray<(.*)>/i
370
- # check to ensure the input is an array given that the attribute
371
- # is documented as an array but the input is not
372
- if attributes[self.class.attribute_map[key]].is_a?(Array)
373
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
374
- end
375
- elsif !attributes[self.class.attribute_map[key]].nil?
376
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
377
- end
378
- end
379
-
380
- self
381
- end
382
-
383
- # Deserializes the data based on type
384
- # @param string type Data type
385
- # @param string value Value to be deserialized
386
- # @return [Object] Deserialized data
387
- def _deserialize(type, value)
388
- case type.to_sym
389
- when :Time
390
- Time.parse(value)
391
- when :Date
392
- Date.parse(value)
393
- when :String
394
- value.to_s
395
- when :Integer
396
- value.to_i
397
- when :Float
398
- value.to_f
399
- when :Boolean
400
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
401
- true
402
- else
403
- false
404
- end
405
- when :Object
406
- # generic object (usually a Hash), return directly
407
- value
408
- when /\AArray<(?<inner_type>.+)>\z/
409
- inner_type = Regexp.last_match[:inner_type]
410
- value.map { |v| _deserialize(inner_type, v) }
411
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
412
- k_type = Regexp.last_match[:k_type]
413
- v_type = Regexp.last_match[:v_type]
414
- {}.tap do |hash|
415
- value.each do |k, v|
416
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
417
- end
418
- end
419
- else # model
420
- # models (e.g. Pet) or oneOf
421
- klass = Fastly.const_get(type)
422
- klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
423
- end
424
- end
425
-
426
- # Returns the string representation of the object
427
- # @return [String] String presentation of the object
428
- def to_s
429
- to_hash.to_s
430
- end
431
-
432
- # to_body is an alias to to_hash (backward compatibility)
433
- # @return [Hash] Returns the object in the form of hash
434
- def to_body
435
- to_hash
436
- end
437
-
438
- # Returns the object in the form of hash
439
- # @return [Hash] Returns the object in the form of hash
440
- def to_hash
441
- hash = {}
442
- self.class.attribute_map.each_pair do |attr, param|
443
- value = self.send(attr)
444
- if value.nil?
445
- is_nullable = self.class.fastly_nullable.include?(attr)
446
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
447
- end
448
-
449
- hash[param] = _to_hash(value)
450
- end
451
- hash
452
- end
453
-
454
- # Outputs non-array value in the form of hash
455
- # For object, use to_hash. Otherwise, just return the value
456
- # @param [Object] value Any valid value
457
- # @return [Hash] Returns the value in the form of hash
458
- def _to_hash(value)
459
- if value.is_a?(Array)
460
- value.compact.map { |v| _to_hash(v) }
461
- elsif value.is_a?(Hash)
462
- {}.tap do |hash|
463
- value.each { |k, v| hash[k] = _to_hash(v) }
464
- end
465
- elsif value.respond_to? :to_hash
466
- value.to_hash
467
- else
468
- value
469
- end
470
- end
471
-
472
- end
473
-
474
- end