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