fastly 13.0.0 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +43 -0
  3. data/Gemfile.lock +4 -4
  4. data/README.md +21 -6
  5. data/docs/AttackReport.md +19 -0
  6. data/docs/AttackSignal.md +12 -0
  7. data/docs/AttackSource.md +13 -0
  8. data/docs/Backend.md +6 -6
  9. data/docs/BackendApi.md +18 -18
  10. data/docs/BackendResponse.md +6 -6
  11. data/docs/DdosProtectionApi.md +40 -0
  12. data/docs/DdosProtectionAttributeStats.md +1 -1
  13. data/docs/DdosProtectionInvalidRequest.md +13 -0
  14. data/docs/DdosProtectionNotAuthorized.md +11 -0
  15. data/docs/DdosProtectionRule.md +1 -1
  16. data/docs/DdosProtectionRuleAllOf.md +1 -1
  17. data/docs/DdosProtectionRulePatch.md +10 -0
  18. data/docs/HistoricalApi.md +2 -0
  19. data/docs/Invitation.md +1 -1
  20. data/docs/InvitationCreateData.md +12 -0
  21. data/docs/InvitationCreateDataAllOf.md +10 -0
  22. data/docs/{InvitationResponse.md → InvitationCreateResponse.md} +1 -1
  23. data/docs/{InvitationResponseAllOf.md → InvitationCreateResponseAllOf.md} +1 -1
  24. data/docs/InvitationData.md +0 -1
  25. data/docs/InvitationResponseData.md +1 -1
  26. data/docs/InvitationsApi.md +2 -2
  27. data/docs/KvStoreApi.md +2 -0
  28. data/docs/ListAttackReport.md +11 -0
  29. data/docs/{DdosProtectionTrafficAttribute.md → ListAttackReportMeta.md} +2 -1
  30. data/docs/{DdosProtectionAction.md → ListSignalReport.md} +2 -1
  31. data/docs/LogExplorerApi.md +1 -1
  32. data/docs/LoggingAzureblobApi.md +8 -4
  33. data/docs/LoggingAzureblobResponse.md +2 -1
  34. data/docs/LoggingBigqueryAdditional.md +1 -1
  35. data/docs/LoggingBigqueryApi.md +8 -4
  36. data/docs/LoggingBigqueryResponse.md +2 -1
  37. data/docs/LoggingCloudfilesApi.md +8 -4
  38. data/docs/LoggingCloudfilesResponse.md +2 -1
  39. data/docs/LoggingCommon.md +2 -1
  40. data/docs/LoggingCommonResponse.md +2 -1
  41. data/docs/LoggingCommonResponseAllOf.md +2 -1
  42. data/docs/LoggingDatadogAdditional.md +1 -1
  43. data/docs/LoggingDatadogApi.md +8 -4
  44. data/docs/LoggingDatadogResponse.md +2 -1
  45. data/docs/LoggingDigitaloceanApi.md +8 -4
  46. data/docs/LoggingDigitaloceanResponse.md +2 -1
  47. data/docs/LoggingElasticsearchAdditional.md +1 -1
  48. data/docs/LoggingElasticsearchApi.md +8 -4
  49. data/docs/LoggingElasticsearchResponse.md +2 -1
  50. data/docs/LoggingFtpApi.md +8 -4
  51. data/docs/LoggingFtpResponse.md +2 -1
  52. data/docs/LoggingGcsApi.md +8 -4
  53. data/docs/LoggingGcsResponse.md +2 -1
  54. data/docs/LoggingGooglePubsubAdditional.md +1 -1
  55. data/docs/LoggingGooglePubsubResponse.md +2 -1
  56. data/docs/LoggingGrafanacloudlogsAdditional.md +1 -1
  57. data/docs/LoggingGrafanacloudlogsApi.md +8 -4
  58. data/docs/LoggingGrafanacloudlogsResponse.md +2 -1
  59. data/docs/LoggingHerokuApi.md +8 -4
  60. data/docs/LoggingHerokuResponse.md +2 -1
  61. data/docs/LoggingHoneycombAdditional.md +1 -1
  62. data/docs/LoggingHoneycombApi.md +8 -4
  63. data/docs/LoggingHoneycombResponse.md +2 -1
  64. data/docs/LoggingHttpsAdditional.md +1 -1
  65. data/docs/LoggingHttpsApi.md +8 -4
  66. data/docs/LoggingHttpsResponse.md +2 -1
  67. data/docs/LoggingKafkaApi.md +4 -2
  68. data/docs/LoggingKafkaResponse.md +2 -1
  69. data/docs/LoggingKafkaResponsePost.md +2 -1
  70. data/docs/LoggingKinesisAdditional.md +1 -1
  71. data/docs/LoggingKinesisApi.md +2 -2
  72. data/docs/LoggingKinesisResponse.md +1 -1
  73. data/docs/LoggingLogentriesApi.md +8 -4
  74. data/docs/LoggingLogentriesResponse.md +2 -1
  75. data/docs/LoggingLogglyApi.md +8 -4
  76. data/docs/LoggingLogglyResponse.md +2 -1
  77. data/docs/LoggingLogshuttleApi.md +8 -4
  78. data/docs/LoggingLogshuttleResponse.md +2 -1
  79. data/docs/LoggingNewrelicAdditional.md +1 -1
  80. data/docs/LoggingNewrelicApi.md +8 -4
  81. data/docs/LoggingNewrelicResponse.md +2 -1
  82. data/docs/LoggingNewrelicotlpAdditional.md +1 -1
  83. data/docs/LoggingNewrelicotlpApi.md +8 -4
  84. data/docs/LoggingNewrelicotlpResponse.md +2 -1
  85. data/docs/LoggingOpenstackApi.md +8 -4
  86. data/docs/LoggingOpenstackResponse.md +2 -1
  87. data/docs/LoggingPapertrailApi.md +8 -4
  88. data/docs/LoggingPapertrailResponse.md +2 -1
  89. data/docs/LoggingPubsubApi.md +8 -4
  90. data/docs/LoggingS3Api.md +8 -4
  91. data/docs/LoggingS3Response.md +2 -1
  92. data/docs/LoggingScalyrApi.md +8 -4
  93. data/docs/LoggingScalyrResponse.md +2 -1
  94. data/docs/LoggingSftpApi.md +8 -4
  95. data/docs/LoggingSftpResponse.md +2 -1
  96. data/docs/LoggingSplunkApi.md +8 -4
  97. data/docs/LoggingSplunkResponse.md +2 -1
  98. data/docs/LoggingSumologicApi.md +8 -4
  99. data/docs/LoggingSumologicResponse.md +2 -1
  100. data/docs/LoggingSyslogApi.md +8 -4
  101. data/docs/LoggingSyslogResponse.md +2 -1
  102. data/docs/NgwafReportsApi.md +99 -0
  103. data/docs/ObservabilityTimeseriesApi.md +67 -0
  104. data/docs/PoolAdditional.md +1 -1
  105. data/docs/PoolApi.md +8 -8
  106. data/docs/PoolResponse.md +2 -2
  107. data/docs/PoolResponseCommon.md +1 -1
  108. data/docs/PoolResponsePost.md +2 -2
  109. data/docs/PurgeApi.md +1 -1
  110. data/docs/SignalReport.md +13 -0
  111. data/docs/TimeseriesGetResponse.md +11 -0
  112. data/docs/TimeseriesMeta.md +13 -0
  113. data/docs/TimeseriesResult.md +11 -0
  114. data/docs/TlsCertificateDataAttributes.md +1 -0
  115. data/docs/TlsCsrData.md +0 -1
  116. data/docs/TlsCsrDataAttributes.md +1 -0
  117. data/docs/TlsSubscriptionsApi.md +0 -2
  118. data/docs/TopWorkspace.md +12 -0
  119. data/lib/fastly/api/backend_api.rb +24 -24
  120. data/lib/fastly/api/ddos_protection_api.rb +70 -0
  121. data/lib/fastly/api/historical_api.rb +3 -0
  122. data/lib/fastly/api/invitations_api.rb +3 -3
  123. data/lib/fastly/api/kv_store_api.rb +3 -0
  124. data/lib/fastly/api/logging_azureblob_api.rb +18 -4
  125. data/lib/fastly/api/logging_bigquery_api.rb +18 -4
  126. data/lib/fastly/api/logging_cloudfiles_api.rb +18 -4
  127. data/lib/fastly/api/logging_datadog_api.rb +18 -4
  128. data/lib/fastly/api/logging_digitalocean_api.rb +18 -4
  129. data/lib/fastly/api/logging_elasticsearch_api.rb +18 -4
  130. data/lib/fastly/api/logging_ftp_api.rb +18 -4
  131. data/lib/fastly/api/logging_gcs_api.rb +18 -4
  132. data/lib/fastly/api/logging_grafanacloudlogs_api.rb +18 -4
  133. data/lib/fastly/api/logging_heroku_api.rb +18 -4
  134. data/lib/fastly/api/logging_honeycomb_api.rb +18 -4
  135. data/lib/fastly/api/logging_https_api.rb +18 -4
  136. data/lib/fastly/api/logging_kafka_api.rb +9 -2
  137. data/lib/fastly/api/logging_kinesis_api.rb +2 -2
  138. data/lib/fastly/api/logging_logentries_api.rb +18 -4
  139. data/lib/fastly/api/logging_loggly_api.rb +18 -4
  140. data/lib/fastly/api/logging_logshuttle_api.rb +18 -4
  141. data/lib/fastly/api/logging_newrelic_api.rb +18 -4
  142. data/lib/fastly/api/logging_newrelicotlp_api.rb +18 -4
  143. data/lib/fastly/api/logging_openstack_api.rb +18 -4
  144. data/lib/fastly/api/logging_papertrail_api.rb +18 -4
  145. data/lib/fastly/api/logging_pubsub_api.rb +18 -4
  146. data/lib/fastly/api/logging_s3_api.rb +18 -4
  147. data/lib/fastly/api/logging_scalyr_api.rb +18 -4
  148. data/lib/fastly/api/logging_sftp_api.rb +18 -4
  149. data/lib/fastly/api/logging_splunk_api.rb +18 -4
  150. data/lib/fastly/api/logging_sumologic_api.rb +18 -4
  151. data/lib/fastly/api/logging_syslog_api.rb +18 -4
  152. data/lib/fastly/api/ngwaf_reports_api.rb +161 -0
  153. data/lib/fastly/api/{observability_timeseries_for_logs_api.rb → observability_timeseries_api.rb} +38 -43
  154. data/lib/fastly/api/pool_api.rb +8 -8
  155. data/lib/fastly/api/purge_api.rb +2 -2
  156. data/lib/fastly/api/tls_subscriptions_api.rb +0 -3
  157. data/lib/fastly/configuration.rb +19 -1
  158. data/lib/fastly/models/attack_report.rb +359 -0
  159. data/lib/fastly/models/attack_signal.rb +252 -0
  160. data/lib/fastly/models/attack_source.rb +267 -0
  161. data/lib/fastly/models/backend.rb +9 -4
  162. data/lib/fastly/models/backend_response.rb +9 -4
  163. data/lib/fastly/models/ddos_protection_attribute_stats.rb +2 -1
  164. data/lib/fastly/models/ddos_protection_invalid_request.rb +309 -0
  165. data/lib/fastly/models/{log_timeseries_filter_field_item.rb → ddos_protection_not_authorized.rb} +24 -36
  166. data/lib/fastly/models/ddos_protection_rule.rb +2 -1
  167. data/lib/fastly/models/ddos_protection_rule_all_of.rb +2 -1
  168. data/lib/fastly/models/{log_timeseries_get_response_meta_filters.rb → ddos_protection_rule_patch.rb} +13 -14
  169. data/lib/fastly/models/invitation.rb +1 -1
  170. data/lib/fastly/models/invitation_create_data.rb +244 -0
  171. data/lib/fastly/models/invitation_create_data_all_of.rb +216 -0
  172. data/lib/fastly/models/{invitation_response.rb → invitation_create_response.rb} +4 -4
  173. data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb} +3 -3
  174. data/lib/fastly/models/invitation_data.rb +4 -13
  175. data/lib/fastly/models/invitation_response_data.rb +13 -13
  176. data/lib/fastly/models/{log_timeseries_get_response.rb → list_attack_report.rb} +5 -5
  177. data/lib/fastly/models/list_attack_report_meta.rb +218 -0
  178. data/lib/fastly/models/{log_timeseries_result_dimensions.rb → list_signal_report.rb} +12 -10
  179. data/lib/fastly/models/logging_azureblob_response.rb +26 -2
  180. data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
  181. data/lib/fastly/models/logging_bigquery_response.rb +26 -2
  182. data/lib/fastly/models/logging_cloudfiles_response.rb +26 -2
  183. data/lib/fastly/models/logging_common.rb +29 -5
  184. data/lib/fastly/models/logging_common_response.rb +26 -2
  185. data/lib/fastly/models/logging_common_response_all_of.rb +29 -5
  186. data/lib/fastly/models/logging_datadog_additional.rb +1 -1
  187. data/lib/fastly/models/logging_datadog_response.rb +26 -2
  188. data/lib/fastly/models/logging_digitalocean_response.rb +26 -2
  189. data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
  190. data/lib/fastly/models/logging_elasticsearch_response.rb +26 -2
  191. data/lib/fastly/models/logging_ftp_response.rb +26 -2
  192. data/lib/fastly/models/logging_gcs_response.rb +26 -2
  193. data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
  194. data/lib/fastly/models/logging_google_pubsub_response.rb +26 -2
  195. data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
  196. data/lib/fastly/models/logging_grafanacloudlogs_response.rb +26 -2
  197. data/lib/fastly/models/logging_heroku_response.rb +26 -2
  198. data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
  199. data/lib/fastly/models/logging_honeycomb_response.rb +26 -2
  200. data/lib/fastly/models/logging_https_additional.rb +1 -1
  201. data/lib/fastly/models/logging_https_response.rb +26 -2
  202. data/lib/fastly/models/logging_kafka_response.rb +26 -2
  203. data/lib/fastly/models/logging_kafka_response_post.rb +26 -2
  204. data/lib/fastly/models/logging_kinesis_additional.rb +1 -1
  205. data/lib/fastly/models/logging_kinesis_response.rb +1 -1
  206. data/lib/fastly/models/logging_logentries_response.rb +26 -2
  207. data/lib/fastly/models/logging_loggly_response.rb +26 -2
  208. data/lib/fastly/models/logging_logshuttle_response.rb +26 -2
  209. data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
  210. data/lib/fastly/models/logging_newrelic_response.rb +26 -2
  211. data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
  212. data/lib/fastly/models/logging_newrelicotlp_response.rb +26 -2
  213. data/lib/fastly/models/logging_openstack_response.rb +26 -2
  214. data/lib/fastly/models/logging_papertrail_response.rb +26 -2
  215. data/lib/fastly/models/logging_s3_response.rb +26 -2
  216. data/lib/fastly/models/logging_scalyr_response.rb +26 -2
  217. data/lib/fastly/models/logging_sftp_response.rb +26 -2
  218. data/lib/fastly/models/logging_splunk_response.rb +26 -2
  219. data/lib/fastly/models/logging_sumologic_response.rb +26 -2
  220. data/lib/fastly/models/logging_syslog_response.rb +26 -2
  221. data/lib/fastly/models/pool_additional.rb +1 -1
  222. data/lib/fastly/models/pool_response.rb +2 -2
  223. data/lib/fastly/models/pool_response_common.rb +1 -1
  224. data/lib/fastly/models/pool_response_post.rb +2 -2
  225. data/lib/fastly/models/relationship_service_invitations.rb +1 -0
  226. data/lib/fastly/models/relationship_service_invitations_service_invitations.rb +1 -0
  227. data/lib/fastly/models/relationships_for_invitation.rb +1 -0
  228. data/lib/fastly/models/signal_report.rb +249 -0
  229. data/lib/fastly/models/timeseries_get_response.rb +227 -0
  230. data/lib/fastly/models/{log_timeseries_get_response_meta.rb → timeseries_meta.rb} +23 -32
  231. data/lib/fastly/models/{log_timeseries_result.rb → timeseries_result.rb} +9 -5
  232. data/lib/fastly/models/tls_certificate_data_attributes.rb +14 -4
  233. data/lib/fastly/models/tls_csr_data.rb +4 -13
  234. data/lib/fastly/models/tls_csr_data_attributes.rb +14 -4
  235. data/lib/fastly/models/top_workspace.rb +238 -0
  236. data/lib/fastly/version.rb +1 -1
  237. data/lib/fastly.rb +20 -12
  238. data/sig.json +1 -1
  239. metadata +42 -26
  240. data/docs/LogTimeseriesFilterFieldItem.md +0 -12
  241. data/docs/LogTimeseriesGetResponse.md +0 -11
  242. data/docs/LogTimeseriesGetResponseMeta.md +0 -14
  243. data/docs/LogTimeseriesGetResponseMetaFilters.md +0 -10
  244. data/docs/LogTimeseriesResult.md +0 -11
  245. data/docs/LogTimeseriesResultDimensions.md +0 -10
  246. data/docs/LogTimeseriesValueField.md +0 -59
  247. data/docs/ObservabilityTimeseriesForLogsApi.md +0 -67
  248. data/lib/fastly/models/ddos_protection_action.rb +0 -37
  249. data/lib/fastly/models/ddos_protection_traffic_attribute.rb +0 -40
  250. data/lib/fastly/models/log_timeseries_value_field.rb +0 -108
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
30
31
  # @option opts [String] :timestamp_format A timestamp format
@@ -52,7 +53,8 @@ module Fastly
52
53
  # @option opts [String] :name The name for the real-time logging configuration.
53
54
  # @option opts [String] :placement 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`.
54
55
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
55
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
56
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
57
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
56
58
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
57
59
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
58
60
  # @option opts [String] :timestamp_format A timestamp format
@@ -87,6 +89,10 @@ module Fastly
87
89
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
88
90
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
89
91
  end
92
+ allowable_values = ["none", "eu", "us"]
93
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
94
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
95
+ end
90
96
  allowable_values = [1, 2]
91
97
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
92
98
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -121,6 +127,7 @@ module Fastly
121
127
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
122
128
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
123
129
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
130
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
124
131
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
125
132
  form_params['message_type'] = opts[:'message_type'] if !opts[:'message_type'].nil?
126
133
  form_params['timestamp_format'] = opts[:'timestamp_format'] if !opts[:'timestamp_format'].nil?
@@ -394,7 +401,8 @@ module Fastly
394
401
  # @option opts [String] :name The name for the real-time logging configuration.
395
402
  # @option opts [String] :placement 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`.
396
403
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
397
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
404
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
405
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
398
406
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
399
407
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
400
408
  # @option opts [String] :timestamp_format A timestamp format
@@ -423,7 +431,8 @@ module Fastly
423
431
  # @option opts [String] :name The name for the real-time logging configuration.
424
432
  # @option opts [String] :placement 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`.
425
433
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
426
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
434
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
435
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
427
436
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
428
437
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
429
438
  # @option opts [String] :timestamp_format A timestamp format
@@ -463,6 +472,10 @@ module Fastly
463
472
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
464
473
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
465
474
  end
475
+ allowable_values = ["none", "eu", "us"]
476
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
477
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
478
+ end
466
479
  allowable_values = [1, 2]
467
480
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
468
481
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -497,6 +510,7 @@ module Fastly
497
510
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
498
511
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
499
512
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
513
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
500
514
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
501
515
  form_params['message_type'] = opts[:'message_type'] if !opts[:'message_type'].nil?
502
516
  form_params['timestamp_format'] = opts[:'timestamp_format'] if !opts[:'timestamp_format'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
30
31
  # @option opts [String] :timestamp_format A timestamp format
@@ -51,7 +52,8 @@ module Fastly
51
52
  # @option opts [String] :name The name for the real-time logging configuration.
52
53
  # @option opts [String] :placement 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`.
53
54
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
54
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
55
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
56
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
55
57
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
56
58
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
57
59
  # @option opts [String] :timestamp_format A timestamp format
@@ -85,6 +87,10 @@ module Fastly
85
87
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
86
88
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
87
89
  end
90
+ allowable_values = ["none", "eu", "us"]
91
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
92
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
93
+ end
88
94
  allowable_values = [1, 2]
89
95
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
90
96
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -119,6 +125,7 @@ module Fastly
119
125
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
120
126
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
121
127
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
128
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
122
129
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
123
130
  form_params['message_type'] = opts[:'message_type'] if !opts[:'message_type'].nil?
124
131
  form_params['timestamp_format'] = opts[:'timestamp_format'] if !opts[:'timestamp_format'].nil?
@@ -391,7 +398,8 @@ module Fastly
391
398
  # @option opts [String] :name The name for the real-time logging configuration.
392
399
  # @option opts [String] :placement 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`.
393
400
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
394
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
401
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
402
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
395
403
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
396
404
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
397
405
  # @option opts [String] :timestamp_format A timestamp format
@@ -419,7 +427,8 @@ module Fastly
419
427
  # @option opts [String] :name The name for the real-time logging configuration.
420
428
  # @option opts [String] :placement 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`.
421
429
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
422
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
430
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
431
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
423
432
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
424
433
  # @option opts [String] :message_type How the message should be formatted. (default to 'classic')
425
434
  # @option opts [String] :timestamp_format A timestamp format
@@ -458,6 +467,10 @@ module Fastly
458
467
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
459
468
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
460
469
  end
470
+ allowable_values = ["none", "eu", "us"]
471
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
472
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
473
+ end
461
474
  allowable_values = [1, 2]
462
475
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
463
476
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -492,6 +505,7 @@ module Fastly
492
505
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
493
506
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
494
507
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
508
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
495
509
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
496
510
  form_params['message_type'] = opts[:'message_type'] if !opts[:'message_type'].nil?
497
511
  form_params['timestamp_format'] = opts[:'timestamp_format'] if !opts[:'timestamp_format'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :user The Grafana Cloud Logs Dataset you want to log to.
30
31
  # @option opts [String] :url The URL of the Loki instance in your Grafana stack.
@@ -43,7 +44,8 @@ module Fastly
43
44
  # @option opts [String] :name The name for the real-time logging configuration.
44
45
  # @option opts [String] :placement 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`.
45
46
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
46
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
47
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
48
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
47
49
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
48
50
  # @option opts [String] :user The Grafana Cloud Logs Dataset you want to log to.
49
51
  # @option opts [String] :url The URL of the Loki instance in your Grafana stack.
@@ -69,6 +71,10 @@ module Fastly
69
71
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
70
72
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
71
73
  end
74
+ allowable_values = ["none", "eu", "us"]
75
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
76
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
77
+ end
72
78
  allowable_values = [1, 2]
73
79
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
74
80
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -95,6 +101,7 @@ module Fastly
95
101
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
96
102
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
97
103
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
104
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
98
105
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
99
106
  form_params['user'] = opts[:'user'] if !opts[:'user'].nil?
100
107
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
@@ -359,7 +366,8 @@ module Fastly
359
366
  # @option opts [String] :name The name for the real-time logging configuration.
360
367
  # @option opts [String] :placement 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`.
361
368
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
362
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
369
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
370
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
363
371
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
364
372
  # @option opts [String] :user The Grafana Cloud Logs Dataset you want to log to.
365
373
  # @option opts [String] :url The URL of the Loki instance in your Grafana stack.
@@ -379,7 +387,8 @@ module Fastly
379
387
  # @option opts [String] :name The name for the real-time logging configuration.
380
388
  # @option opts [String] :placement 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`.
381
389
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
382
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
390
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
391
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
383
392
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
384
393
  # @option opts [String] :user The Grafana Cloud Logs Dataset you want to log to.
385
394
  # @option opts [String] :url The URL of the Loki instance in your Grafana stack.
@@ -410,6 +419,10 @@ module Fastly
410
419
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
411
420
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
412
421
  end
422
+ allowable_values = ["none", "eu", "us"]
423
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
424
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
425
+ end
413
426
  allowable_values = [1, 2]
414
427
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
415
428
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -436,6 +449,7 @@ module Fastly
436
449
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
437
450
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
438
451
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
452
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
439
453
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
440
454
  form_params['user'] = opts[:'user'] if !opts[:'user'].nil?
441
455
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)).
30
31
  # @option opts [String] :url The URL to stream logs to.
@@ -41,7 +42,8 @@ module Fastly
41
42
  # @option opts [String] :name The name for the real-time logging configuration.
42
43
  # @option opts [String] :placement 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`.
43
44
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
44
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
45
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
46
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
45
47
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
46
48
  # @option opts [String] :token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)).
47
49
  # @option opts [String] :url The URL to stream logs to.
@@ -65,6 +67,10 @@ module Fastly
65
67
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
66
68
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
67
69
  end
70
+ allowable_values = ["none", "eu", "us"]
71
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
72
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
73
+ end
68
74
  allowable_values = [1, 2]
69
75
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
70
76
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -91,6 +97,7 @@ module Fastly
91
97
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
92
98
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
93
99
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
100
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
94
101
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
95
102
  form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
96
103
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
@@ -353,7 +360,8 @@ module Fastly
353
360
  # @option opts [String] :name The name for the real-time logging configuration.
354
361
  # @option opts [String] :placement 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`.
355
362
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
356
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
363
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
364
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
357
365
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
358
366
  # @option opts [String] :token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)).
359
367
  # @option opts [String] :url The URL to stream logs to.
@@ -371,7 +379,8 @@ module Fastly
371
379
  # @option opts [String] :name The name for the real-time logging configuration.
372
380
  # @option opts [String] :placement 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`.
373
381
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
374
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
382
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
383
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
375
384
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
376
385
  # @option opts [String] :token The token to use for authentication ([https://devcenter.heroku.com/articles/add-on-partner-log-integration](https://devcenter.heroku.com/articles/add-on-partner-log-integration)).
377
386
  # @option opts [String] :url The URL to stream logs to.
@@ -400,6 +409,10 @@ module Fastly
400
409
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
401
410
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
402
411
  end
412
+ allowable_values = ["none", "eu", "us"]
413
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
414
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
415
+ end
403
416
  allowable_values = [1, 2]
404
417
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
405
418
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -426,6 +439,7 @@ module Fastly
426
439
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
427
440
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
428
441
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
442
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
429
443
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
430
444
  form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
431
445
  form_params['url'] = opts[:'url'] if !opts[:'url'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that Honeycomb can ingest.
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :dataset The Honeycomb Dataset you want to log to.
30
31
  # @option opts [String] :token The Write Key from the Account page of your Honeycomb account.
@@ -41,7 +42,8 @@ module Fastly
41
42
  # @option opts [String] :name The name for the real-time logging configuration.
42
43
  # @option opts [String] :placement 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`.
43
44
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
44
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.
45
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that Honeycomb can ingest.
46
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
45
47
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
46
48
  # @option opts [String] :dataset The Honeycomb Dataset you want to log to.
47
49
  # @option opts [String] :token The Write Key from the Account page of your Honeycomb account.
@@ -65,6 +67,10 @@ module Fastly
65
67
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
66
68
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
67
69
  end
70
+ allowable_values = ["none", "eu", "us"]
71
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
72
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
73
+ end
68
74
  allowable_values = [1, 2]
69
75
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
70
76
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -91,6 +97,7 @@ module Fastly
91
97
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
92
98
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
93
99
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
100
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
94
101
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
95
102
  form_params['dataset'] = opts[:'dataset'] if !opts[:'dataset'].nil?
96
103
  form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
@@ -353,7 +360,8 @@ module Fastly
353
360
  # @option opts [String] :name The name for the real-time logging configuration.
354
361
  # @option opts [String] :placement 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`.
355
362
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
356
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.
363
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that Honeycomb can ingest.
364
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
357
365
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
358
366
  # @option opts [String] :dataset The Honeycomb Dataset you want to log to.
359
367
  # @option opts [String] :token The Write Key from the Account page of your Honeycomb account.
@@ -371,7 +379,8 @@ module Fastly
371
379
  # @option opts [String] :name The name for the real-time logging configuration.
372
380
  # @option opts [String] :placement 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`.
373
381
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
374
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Honeycomb can ingest.
382
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that Honeycomb can ingest.
383
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
375
384
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
376
385
  # @option opts [String] :dataset The Honeycomb Dataset you want to log to.
377
386
  # @option opts [String] :token The Write Key from the Account page of your Honeycomb account.
@@ -400,6 +409,10 @@ module Fastly
400
409
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
401
410
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
402
411
  end
412
+ allowable_values = ["none", "eu", "us"]
413
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
414
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
415
+ end
403
416
  allowable_values = [1, 2]
404
417
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
405
418
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -426,6 +439,7 @@ module Fastly
426
439
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
427
440
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
428
441
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
442
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
429
443
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
430
444
  form_params['dataset'] = opts[:'dataset'] if !opts[:'dataset'].nil?
431
445
  form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
30
31
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -52,7 +53,8 @@ module Fastly
52
53
  # @option opts [String] :name The name for the real-time logging configuration.
53
54
  # @option opts [String] :placement 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`.
54
55
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
55
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
56
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
57
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
56
58
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
57
59
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
58
60
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -87,6 +89,10 @@ module Fastly
87
89
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
88
90
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
89
91
  end
92
+ allowable_values = ["none", "eu", "us"]
93
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
94
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
95
+ end
90
96
  allowable_values = [1, 2]
91
97
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
92
98
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -121,6 +127,7 @@ module Fastly
121
127
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
122
128
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
123
129
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
130
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
124
131
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
125
132
  form_params['tls_ca_cert'] = opts[:'tls_ca_cert'] if !opts[:'tls_ca_cert'].nil?
126
133
  form_params['tls_client_cert'] = opts[:'tls_client_cert'] if !opts[:'tls_client_cert'].nil?
@@ -394,7 +401,8 @@ module Fastly
394
401
  # @option opts [String] :name The name for the real-time logging configuration.
395
402
  # @option opts [String] :placement 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`.
396
403
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
397
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
404
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
405
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
398
406
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
399
407
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
400
408
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -423,7 +431,8 @@ module Fastly
423
431
  # @option opts [String] :name The name for the real-time logging configuration.
424
432
  # @option opts [String] :placement 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`.
425
433
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
426
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
434
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
435
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
427
436
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
428
437
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
429
438
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -463,6 +472,10 @@ module Fastly
463
472
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
464
473
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
465
474
  end
475
+ allowable_values = ["none", "eu", "us"]
476
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
477
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
478
+ end
466
479
  allowable_values = [1, 2]
467
480
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
468
481
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -497,6 +510,7 @@ module Fastly
497
510
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
498
511
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
499
512
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
513
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
500
514
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
501
515
  form_params['tls_ca_cert'] = opts[:'tls_ca_cert'] if !opts[:'tls_ca_cert'].nil?
502
516
  form_params['tls_client_cert'] = opts[:'tls_client_cert'] if !opts[:'tls_client_cert'].nil?
@@ -24,7 +24,8 @@ module Fastly
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [String] :placement 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`.
26
26
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
27
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
27
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
28
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
28
29
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
29
30
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
30
31
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -53,7 +54,8 @@ module Fastly
53
54
  # @option opts [String] :name The name for the real-time logging configuration.
54
55
  # @option opts [String] :placement 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`.
55
56
  # @option opts [String] :response_condition The name of an existing condition in the configured endpoint, or leave blank to always execute.
56
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '%h %l %u %t \"%r\" %>s %b')
57
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '%h %l %u %t \"%r\" %>s %b')
58
+ # @option opts [String] :log_processing_region The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global. (default to 'none')
57
59
  # @option opts [Integer] :format_version 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`. (default to FORMAT_VERSION::v2)
58
60
  # @option opts [String] :tls_ca_cert A secure certificate to authenticate a server with. Must be in PEM format. (default to 'null')
59
61
  # @option opts [String] :tls_client_cert The client certificate used to make authenticated requests. Must be in PEM format. (default to 'null')
@@ -89,6 +91,10 @@ module Fastly
89
91
  if @api_client.config.client_side_validation && opts[:'placement'] && !allowable_values.include?(opts[:'placement'])
90
92
  fail ArgumentError, "invalid value for \"placement\", must be one of #{allowable_values}"
91
93
  end
94
+ allowable_values = ["none", "eu", "us"]
95
+ if @api_client.config.client_side_validation && opts[:'log_processing_region'] && !allowable_values.include?(opts[:'log_processing_region'])
96
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{allowable_values}"
97
+ end
92
98
  allowable_values = [1, 2]
93
99
  if @api_client.config.client_side_validation && opts[:'format_version'] && !allowable_values.include?(opts[:'format_version'])
94
100
  fail ArgumentError, "invalid value for \"format_version\", must be one of #{allowable_values}"
@@ -127,6 +133,7 @@ module Fastly
127
133
  form_params['placement'] = opts[:'placement'] if !opts[:'placement'].nil?
128
134
  form_params['response_condition'] = opts[:'response_condition'] if !opts[:'response_condition'].nil?
129
135
  form_params['format'] = opts[:'format'] if !opts[:'format'].nil?
136
+ form_params['log_processing_region'] = opts[:'log_processing_region'] if !opts[:'log_processing_region'].nil?
130
137
  form_params['format_version'] = opts[:'format_version'] if !opts[:'format_version'].nil?
131
138
  form_params['tls_ca_cert'] = opts[:'tls_ca_cert'] if !opts[:'tls_ca_cert'].nil?
132
139
  form_params['tls_client_cert'] = opts[:'tls_client_cert'] if !opts[:'tls_client_cert'].nil?
@@ -23,7 +23,7 @@ module Fastly
23
23
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
24
24
  # @option opts [String] :name The name for the real-time logging configuration.
25
25
  # @option opts [LoggingPlacement] :placement
26
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}')
26
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}')
27
27
  # @option opts [String] :topic The Amazon Kinesis stream to send logs to. Required.
28
28
  # @option opts [AwsRegion] :region
29
29
  # @option opts [String] :secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.
@@ -42,7 +42,7 @@ module Fastly
42
42
  # @option opts [Integer] :version_id Integer identifying a service version. (required)
43
43
  # @option opts [String] :name The name for the real-time logging configuration.
44
44
  # @option opts [LoggingPlacement] :placement
45
- # @option opts [String] :format A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). (default to '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}')
45
+ # @option opts [String] :format A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). (default to '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}')
46
46
  # @option opts [String] :topic The Amazon Kinesis stream to send logs to. Required.
47
47
  # @option opts [AwsRegion] :region
48
48
  # @option opts [String] :secret_key The secret key associated with the target Amazon Kinesis stream. Not required if `iam_role` is specified.