fastly 12.0.0 → 13.1.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 (194) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +30 -14
  5. data/docs/Backend.md +2 -2
  6. data/docs/BackendApi.md +8 -8
  7. data/docs/BackendResponse.md +2 -2
  8. data/docs/Invitation.md +1 -1
  9. data/docs/InvitationCreateData.md +12 -0
  10. data/docs/InvitationCreateDataAllOf.md +10 -0
  11. data/docs/{InvitationResponse.md → InvitationCreateResponse.md} +1 -1
  12. data/docs/{InvitationResponseAllOf.md → InvitationCreateResponseAllOf.md} +1 -1
  13. data/docs/InvitationData.md +0 -1
  14. data/docs/InvitationResponseData.md +1 -1
  15. data/docs/InvitationsApi.md +2 -2
  16. data/docs/LoggingAzureblobApi.md +8 -4
  17. data/docs/LoggingAzureblobResponse.md +2 -1
  18. data/docs/LoggingBigqueryAdditional.md +1 -1
  19. data/docs/LoggingBigqueryApi.md +8 -4
  20. data/docs/LoggingBigqueryResponse.md +2 -1
  21. data/docs/LoggingCloudfilesApi.md +8 -4
  22. data/docs/LoggingCloudfilesResponse.md +2 -1
  23. data/docs/LoggingCommon.md +2 -1
  24. data/docs/LoggingCommonResponse.md +2 -1
  25. data/docs/LoggingCommonResponseAllOf.md +2 -1
  26. data/docs/LoggingDatadogAdditional.md +1 -1
  27. data/docs/LoggingDatadogApi.md +8 -4
  28. data/docs/LoggingDatadogResponse.md +2 -1
  29. data/docs/LoggingDigitaloceanApi.md +8 -4
  30. data/docs/LoggingDigitaloceanResponse.md +2 -1
  31. data/docs/LoggingElasticsearchAdditional.md +1 -1
  32. data/docs/LoggingElasticsearchApi.md +8 -4
  33. data/docs/LoggingElasticsearchResponse.md +2 -1
  34. data/docs/LoggingFtpApi.md +8 -4
  35. data/docs/LoggingFtpResponse.md +2 -1
  36. data/docs/LoggingGcsApi.md +8 -4
  37. data/docs/LoggingGcsResponse.md +2 -1
  38. data/docs/LoggingGooglePubsubAdditional.md +1 -1
  39. data/docs/LoggingGooglePubsubResponse.md +2 -1
  40. data/docs/LoggingGrafanacloudlogsAdditional.md +1 -1
  41. data/docs/LoggingGrafanacloudlogsApi.md +8 -4
  42. data/docs/LoggingGrafanacloudlogsResponse.md +2 -1
  43. data/docs/LoggingHerokuApi.md +8 -4
  44. data/docs/LoggingHerokuResponse.md +2 -1
  45. data/docs/LoggingHoneycombAdditional.md +1 -1
  46. data/docs/LoggingHoneycombApi.md +8 -4
  47. data/docs/LoggingHoneycombResponse.md +2 -1
  48. data/docs/LoggingHttpsAdditional.md +1 -1
  49. data/docs/LoggingHttpsApi.md +8 -4
  50. data/docs/LoggingHttpsResponse.md +2 -1
  51. data/docs/LoggingKafkaApi.md +4 -2
  52. data/docs/LoggingKafkaResponse.md +2 -1
  53. data/docs/LoggingKafkaResponsePost.md +2 -1
  54. data/docs/LoggingKinesisAdditional.md +1 -1
  55. data/docs/LoggingKinesisApi.md +2 -2
  56. data/docs/LoggingKinesisResponse.md +1 -1
  57. data/docs/LoggingLogentriesApi.md +8 -4
  58. data/docs/LoggingLogentriesResponse.md +2 -1
  59. data/docs/LoggingLogglyApi.md +8 -4
  60. data/docs/LoggingLogglyResponse.md +2 -1
  61. data/docs/LoggingLogshuttleApi.md +8 -4
  62. data/docs/LoggingLogshuttleResponse.md +2 -1
  63. data/docs/LoggingNewrelicAdditional.md +1 -1
  64. data/docs/LoggingNewrelicApi.md +8 -4
  65. data/docs/LoggingNewrelicResponse.md +2 -1
  66. data/docs/LoggingNewrelicotlpAdditional.md +1 -1
  67. data/docs/LoggingNewrelicotlpApi.md +8 -4
  68. data/docs/LoggingNewrelicotlpResponse.md +2 -1
  69. data/docs/LoggingOpenstackApi.md +8 -4
  70. data/docs/LoggingOpenstackResponse.md +2 -1
  71. data/docs/LoggingPapertrailApi.md +8 -4
  72. data/docs/LoggingPapertrailResponse.md +2 -1
  73. data/docs/LoggingPubsubApi.md +8 -4
  74. data/docs/LoggingS3Api.md +8 -4
  75. data/docs/LoggingS3Response.md +2 -1
  76. data/docs/LoggingScalyrApi.md +8 -4
  77. data/docs/LoggingScalyrResponse.md +2 -1
  78. data/docs/LoggingSftpApi.md +8 -4
  79. data/docs/LoggingSftpResponse.md +2 -1
  80. data/docs/LoggingSplunkApi.md +8 -4
  81. data/docs/LoggingSplunkResponse.md +2 -1
  82. data/docs/LoggingSumologicApi.md +8 -4
  83. data/docs/LoggingSumologicResponse.md +2 -1
  84. data/docs/LoggingSyslogApi.md +8 -4
  85. data/docs/LoggingSyslogResponse.md +2 -1
  86. data/docs/PoolAdditional.md +1 -1
  87. data/docs/PoolApi.md +4 -4
  88. data/docs/PoolResponse.md +1 -1
  89. data/docs/PoolResponsePost.md +1 -1
  90. data/docs/PurgeApi.md +1 -1
  91. data/docs/Results.md +2 -2
  92. data/docs/ServiceApi.md +2 -0
  93. data/docs/TlsCertificateDataAttributes.md +1 -0
  94. data/docs/TlsCsrData.md +0 -1
  95. data/docs/TlsCsrDataAttributes.md +1 -0
  96. data/lib/fastly/api/backend_api.rb +8 -8
  97. data/lib/fastly/api/invitations_api.rb +3 -3
  98. data/lib/fastly/api/logging_azureblob_api.rb +20 -6
  99. data/lib/fastly/api/logging_bigquery_api.rb +20 -6
  100. data/lib/fastly/api/logging_cloudfiles_api.rb +20 -6
  101. data/lib/fastly/api/logging_datadog_api.rb +20 -6
  102. data/lib/fastly/api/logging_digitalocean_api.rb +20 -6
  103. data/lib/fastly/api/logging_elasticsearch_api.rb +20 -6
  104. data/lib/fastly/api/logging_ftp_api.rb +20 -6
  105. data/lib/fastly/api/logging_gcs_api.rb +20 -6
  106. data/lib/fastly/api/logging_grafanacloudlogs_api.rb +20 -6
  107. data/lib/fastly/api/logging_heroku_api.rb +20 -6
  108. data/lib/fastly/api/logging_honeycomb_api.rb +20 -6
  109. data/lib/fastly/api/logging_https_api.rb +20 -6
  110. data/lib/fastly/api/logging_kafka_api.rb +10 -3
  111. data/lib/fastly/api/logging_kinesis_api.rb +2 -2
  112. data/lib/fastly/api/logging_logentries_api.rb +20 -6
  113. data/lib/fastly/api/logging_loggly_api.rb +20 -6
  114. data/lib/fastly/api/logging_logshuttle_api.rb +20 -6
  115. data/lib/fastly/api/logging_newrelic_api.rb +20 -6
  116. data/lib/fastly/api/logging_newrelicotlp_api.rb +20 -6
  117. data/lib/fastly/api/logging_openstack_api.rb +20 -6
  118. data/lib/fastly/api/logging_papertrail_api.rb +20 -6
  119. data/lib/fastly/api/logging_pubsub_api.rb +20 -6
  120. data/lib/fastly/api/logging_s3_api.rb +20 -6
  121. data/lib/fastly/api/logging_scalyr_api.rb +20 -6
  122. data/lib/fastly/api/logging_sftp_api.rb +20 -6
  123. data/lib/fastly/api/logging_splunk_api.rb +20 -6
  124. data/lib/fastly/api/logging_sumologic_api.rb +20 -6
  125. data/lib/fastly/api/logging_syslog_api.rb +20 -6
  126. data/lib/fastly/api/pool_api.rb +4 -4
  127. data/lib/fastly/api/purge_api.rb +2 -2
  128. data/lib/fastly/api/service_api.rb +3 -0
  129. data/lib/fastly/models/backend.rb +2 -2
  130. data/lib/fastly/models/backend_response.rb +2 -2
  131. data/lib/fastly/models/invitation.rb +1 -1
  132. data/lib/fastly/models/invitation_create_data.rb +244 -0
  133. data/lib/fastly/models/invitation_create_data_all_of.rb +216 -0
  134. data/lib/fastly/models/{invitation_response.rb → invitation_create_response.rb} +4 -4
  135. data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb} +3 -3
  136. data/lib/fastly/models/invitation_data.rb +4 -13
  137. data/lib/fastly/models/invitation_response_data.rb +13 -13
  138. data/lib/fastly/models/logging_azureblob_response.rb +28 -4
  139. data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
  140. data/lib/fastly/models/logging_bigquery_response.rb +28 -4
  141. data/lib/fastly/models/logging_cloudfiles_response.rb +28 -4
  142. data/lib/fastly/models/logging_common.rb +31 -7
  143. data/lib/fastly/models/logging_common_response.rb +28 -4
  144. data/lib/fastly/models/logging_common_response_all_of.rb +31 -7
  145. data/lib/fastly/models/logging_datadog_additional.rb +1 -1
  146. data/lib/fastly/models/logging_datadog_response.rb +28 -4
  147. data/lib/fastly/models/logging_digitalocean_response.rb +28 -4
  148. data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
  149. data/lib/fastly/models/logging_elasticsearch_response.rb +28 -4
  150. data/lib/fastly/models/logging_ftp_response.rb +28 -4
  151. data/lib/fastly/models/logging_gcs_response.rb +28 -4
  152. data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
  153. data/lib/fastly/models/logging_google_pubsub_response.rb +28 -4
  154. data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
  155. data/lib/fastly/models/logging_grafanacloudlogs_response.rb +28 -4
  156. data/lib/fastly/models/logging_heroku_response.rb +28 -4
  157. data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
  158. data/lib/fastly/models/logging_honeycomb_response.rb +28 -4
  159. data/lib/fastly/models/logging_https_additional.rb +1 -1
  160. data/lib/fastly/models/logging_https_response.rb +28 -4
  161. data/lib/fastly/models/logging_kafka_response.rb +28 -4
  162. data/lib/fastly/models/logging_kafka_response_post.rb +28 -4
  163. data/lib/fastly/models/logging_kinesis_additional.rb +1 -1
  164. data/lib/fastly/models/logging_kinesis_response.rb +1 -1
  165. data/lib/fastly/models/logging_logentries_response.rb +28 -4
  166. data/lib/fastly/models/logging_loggly_response.rb +28 -4
  167. data/lib/fastly/models/logging_logshuttle_response.rb +28 -4
  168. data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
  169. data/lib/fastly/models/logging_newrelic_response.rb +28 -4
  170. data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
  171. data/lib/fastly/models/logging_newrelicotlp_response.rb +28 -4
  172. data/lib/fastly/models/logging_openstack_response.rb +28 -4
  173. data/lib/fastly/models/logging_papertrail_response.rb +28 -4
  174. data/lib/fastly/models/logging_placement.rb +0 -1
  175. data/lib/fastly/models/logging_s3_response.rb +28 -4
  176. data/lib/fastly/models/logging_scalyr_response.rb +28 -4
  177. data/lib/fastly/models/logging_sftp_response.rb +28 -4
  178. data/lib/fastly/models/logging_splunk_response.rb +28 -4
  179. data/lib/fastly/models/logging_sumologic_response.rb +28 -4
  180. data/lib/fastly/models/logging_syslog_response.rb +28 -4
  181. data/lib/fastly/models/pool_additional.rb +1 -1
  182. data/lib/fastly/models/pool_response.rb +1 -1
  183. data/lib/fastly/models/pool_response_post.rb +1 -1
  184. data/lib/fastly/models/relationship_service_invitations.rb +1 -0
  185. data/lib/fastly/models/relationship_service_invitations_service_invitations.rb +1 -0
  186. data/lib/fastly/models/relationships_for_invitation.rb +1 -0
  187. data/lib/fastly/models/results.rb +2 -2
  188. data/lib/fastly/models/tls_certificate_data_attributes.rb +14 -4
  189. data/lib/fastly/models/tls_csr_data.rb +4 -13
  190. data/lib/fastly/models/tls_csr_data_attributes.rb +14 -4
  191. data/lib/fastly/version.rb +1 -1
  192. data/lib/fastly.rb +4 -2
  193. data/sig.json +1 -1
  194. metadata +10 -6
@@ -22,9 +22,12 @@ module Fastly
22
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
23
23
  attr_accessor :response_condition
24
24
 
25
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
26
26
  attr_accessor :format
27
27
 
28
+ # The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
29
+ attr_accessor :log_processing_region
30
+
28
31
  # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
32
  attr_accessor :format_version
30
33
 
@@ -76,6 +79,7 @@ module Fastly
76
79
  :'placement' => :'placement',
77
80
  :'response_condition' => :'response_condition',
78
81
  :'format' => :'format',
82
+ :'log_processing_region' => :'log_processing_region',
79
83
  :'format_version' => :'format_version',
80
84
  :'token' => :'token',
81
85
  :'url' => :'url',
@@ -99,6 +103,7 @@ module Fastly
99
103
  :'placement' => :'String',
100
104
  :'response_condition' => :'String',
101
105
  :'format' => :'String',
106
+ :'log_processing_region' => :'String',
102
107
  :'format_version' => :'String',
103
108
  :'token' => :'String',
104
109
  :'url' => :'String',
@@ -165,6 +170,12 @@ module Fastly
165
170
  self.format = '%h %l %u %t \"%r\" %>s %b'
166
171
  end
167
172
 
173
+ if attributes.key?(:'log_processing_region')
174
+ self.log_processing_region = attributes[:'log_processing_region']
175
+ else
176
+ self.log_processing_region = 'none'
177
+ end
178
+
168
179
  if attributes.key?(:'format_version')
169
180
  self.format_version = attributes[:'format_version']
170
181
  else
@@ -210,8 +221,10 @@ module Fastly
210
221
  # Check to see if the all the properties in the model are valid
211
222
  # @return true if the model is valid
212
223
  def valid?
213
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
224
+ placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
214
225
  return false unless placement_validator.valid?(@placement)
226
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
227
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
215
228
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
216
229
  return false unless format_version_validator.valid?(@format_version)
217
230
  true
@@ -220,13 +233,23 @@ module Fastly
220
233
  # Custom attribute writer method checking allowed values (enum).
221
234
  # @param [Object] placement Object to be assigned
222
235
  def placement=(placement)
223
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
236
+ validator = EnumAttributeValidator.new('String', ["none", "null"])
224
237
  unless validator.valid?(placement)
225
238
  fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
226
239
  end
227
240
  @placement = placement
228
241
  end
229
242
 
243
+ # Custom attribute writer method checking allowed values (enum).
244
+ # @param [Object] log_processing_region Object to be assigned
245
+ def log_processing_region=(log_processing_region)
246
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
247
+ unless validator.valid?(log_processing_region)
248
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
249
+ end
250
+ @log_processing_region = log_processing_region
251
+ end
252
+
230
253
  # Custom attribute writer method checking allowed values (enum).
231
254
  # @param [Object] format_version Object to be assigned
232
255
  def format_version=(format_version)
@@ -246,6 +269,7 @@ module Fastly
246
269
  placement == o.placement &&
247
270
  response_condition == o.response_condition &&
248
271
  format == o.format &&
272
+ log_processing_region == o.log_processing_region &&
249
273
  format_version == o.format_version &&
250
274
  token == o.token &&
251
275
  url == o.url &&
@@ -265,7 +289,7 @@ module Fastly
265
289
  # Calculates hash code according to all attributes.
266
290
  # @return [Integer] Hash code
267
291
  def hash
268
- [name, placement, response_condition, format, format_version, token, url, created_at, deleted_at, updated_at, service_id, version].hash
292
+ [name, placement, response_condition, format, log_processing_region, format_version, token, url, created_at, deleted_at, updated_at, service_id, version].hash
269
293
  end
270
294
 
271
295
  # Builds the object from hash
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class LoggingNewrelicAdditional
16
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest.
16
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that New Relic Logs can ingest.
17
17
  attr_accessor :format
18
18
 
19
19
  # The Insert API key from the Account page of your New Relic account. Required.
@@ -22,9 +22,12 @@ module Fastly
22
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
23
23
  attr_accessor :response_condition
24
24
 
25
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that New Relic Logs can ingest.
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that New Relic Logs can ingest.
26
26
  attr_accessor :format
27
27
 
28
+ # The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
29
+ attr_accessor :log_processing_region
30
+
28
31
  # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
32
  attr_accessor :format_version
30
33
 
@@ -76,6 +79,7 @@ module Fastly
76
79
  :'placement' => :'placement',
77
80
  :'response_condition' => :'response_condition',
78
81
  :'format' => :'format',
82
+ :'log_processing_region' => :'log_processing_region',
79
83
  :'format_version' => :'format_version',
80
84
  :'token' => :'token',
81
85
  :'region' => :'region',
@@ -99,6 +103,7 @@ module Fastly
99
103
  :'placement' => :'String',
100
104
  :'response_condition' => :'String',
101
105
  :'format' => :'String',
106
+ :'log_processing_region' => :'String',
102
107
  :'format_version' => :'String',
103
108
  :'token' => :'String',
104
109
  :'region' => :'String',
@@ -164,6 +169,12 @@ module Fastly
164
169
  self.format = '{\"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\"}'
165
170
  end
166
171
 
172
+ if attributes.key?(:'log_processing_region')
173
+ self.log_processing_region = attributes[:'log_processing_region']
174
+ else
175
+ self.log_processing_region = 'none'
176
+ end
177
+
167
178
  if attributes.key?(:'format_version')
168
179
  self.format_version = attributes[:'format_version']
169
180
  else
@@ -211,8 +222,10 @@ module Fastly
211
222
  # Check to see if the all the properties in the model are valid
212
223
  # @return true if the model is valid
213
224
  def valid?
214
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
225
+ placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
215
226
  return false unless placement_validator.valid?(@placement)
227
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
228
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
216
229
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
217
230
  return false unless format_version_validator.valid?(@format_version)
218
231
  region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
@@ -223,13 +236,23 @@ module Fastly
223
236
  # Custom attribute writer method checking allowed values (enum).
224
237
  # @param [Object] placement Object to be assigned
225
238
  def placement=(placement)
226
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
239
+ validator = EnumAttributeValidator.new('String', ["none", "null"])
227
240
  unless validator.valid?(placement)
228
241
  fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
229
242
  end
230
243
  @placement = placement
231
244
  end
232
245
 
246
+ # Custom attribute writer method checking allowed values (enum).
247
+ # @param [Object] log_processing_region Object to be assigned
248
+ def log_processing_region=(log_processing_region)
249
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
250
+ unless validator.valid?(log_processing_region)
251
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
252
+ end
253
+ @log_processing_region = log_processing_region
254
+ end
255
+
233
256
  # Custom attribute writer method checking allowed values (enum).
234
257
  # @param [Object] format_version Object to be assigned
235
258
  def format_version=(format_version)
@@ -259,6 +282,7 @@ module Fastly
259
282
  placement == o.placement &&
260
283
  response_condition == o.response_condition &&
261
284
  format == o.format &&
285
+ log_processing_region == o.log_processing_region &&
262
286
  format_version == o.format_version &&
263
287
  token == o.token &&
264
288
  region == o.region &&
@@ -278,7 +302,7 @@ module Fastly
278
302
  # Calculates hash code according to all attributes.
279
303
  # @return [Integer] Hash code
280
304
  def hash
281
- [name, placement, response_condition, format, format_version, token, region, created_at, deleted_at, updated_at, service_id, version].hash
305
+ [name, placement, response_condition, format, log_processing_region, format_version, token, region, created_at, deleted_at, updated_at, service_id, version].hash
282
306
  end
283
307
 
284
308
  # Builds the object from hash
@@ -13,7 +13,7 @@ require 'time'
13
13
 
14
14
  module Fastly
15
15
  class LoggingNewrelicotlpAdditional
16
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
16
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
17
17
  attr_accessor :format
18
18
 
19
19
  # The Insert API key from the Account page of your New Relic account. Required.
@@ -22,9 +22,12 @@ module Fastly
22
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
23
23
  attr_accessor :response_condition
24
24
 
25
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
26
26
  attr_accessor :format
27
27
 
28
+ # The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
29
+ attr_accessor :log_processing_region
30
+
28
31
  # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
32
  attr_accessor :format_version
30
33
 
@@ -79,6 +82,7 @@ module Fastly
79
82
  :'placement' => :'placement',
80
83
  :'response_condition' => :'response_condition',
81
84
  :'format' => :'format',
85
+ :'log_processing_region' => :'log_processing_region',
82
86
  :'format_version' => :'format_version',
83
87
  :'token' => :'token',
84
88
  :'region' => :'region',
@@ -103,6 +107,7 @@ module Fastly
103
107
  :'placement' => :'String',
104
108
  :'response_condition' => :'String',
105
109
  :'format' => :'String',
110
+ :'log_processing_region' => :'String',
106
111
  :'format_version' => :'String',
107
112
  :'token' => :'String',
108
113
  :'region' => :'String',
@@ -170,6 +175,12 @@ module Fastly
170
175
  self.format = '{\"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\"}'
171
176
  end
172
177
 
178
+ if attributes.key?(:'log_processing_region')
179
+ self.log_processing_region = attributes[:'log_processing_region']
180
+ else
181
+ self.log_processing_region = 'none'
182
+ end
183
+
173
184
  if attributes.key?(:'format_version')
174
185
  self.format_version = attributes[:'format_version']
175
186
  else
@@ -223,8 +234,10 @@ module Fastly
223
234
  # Check to see if the all the properties in the model are valid
224
235
  # @return true if the model is valid
225
236
  def valid?
226
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
237
+ placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
227
238
  return false unless placement_validator.valid?(@placement)
239
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
240
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
228
241
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
229
242
  return false unless format_version_validator.valid?(@format_version)
230
243
  region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
@@ -235,13 +248,23 @@ module Fastly
235
248
  # Custom attribute writer method checking allowed values (enum).
236
249
  # @param [Object] placement Object to be assigned
237
250
  def placement=(placement)
238
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
251
+ validator = EnumAttributeValidator.new('String', ["none", "null"])
239
252
  unless validator.valid?(placement)
240
253
  fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
241
254
  end
242
255
  @placement = placement
243
256
  end
244
257
 
258
+ # Custom attribute writer method checking allowed values (enum).
259
+ # @param [Object] log_processing_region Object to be assigned
260
+ def log_processing_region=(log_processing_region)
261
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
262
+ unless validator.valid?(log_processing_region)
263
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
264
+ end
265
+ @log_processing_region = log_processing_region
266
+ end
267
+
245
268
  # Custom attribute writer method checking allowed values (enum).
246
269
  # @param [Object] format_version Object to be assigned
247
270
  def format_version=(format_version)
@@ -271,6 +294,7 @@ module Fastly
271
294
  placement == o.placement &&
272
295
  response_condition == o.response_condition &&
273
296
  format == o.format &&
297
+ log_processing_region == o.log_processing_region &&
274
298
  format_version == o.format_version &&
275
299
  token == o.token &&
276
300
  region == o.region &&
@@ -291,7 +315,7 @@ module Fastly
291
315
  # Calculates hash code according to all attributes.
292
316
  # @return [Integer] Hash code
293
317
  def hash
294
- [name, placement, response_condition, format, format_version, token, region, url, created_at, deleted_at, updated_at, service_id, version].hash
318
+ [name, placement, response_condition, format, log_processing_region, format_version, token, region, url, created_at, deleted_at, updated_at, service_id, version].hash
295
319
  end
296
320
 
297
321
  # Builds the object from hash
@@ -22,9 +22,12 @@ module Fastly
22
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
23
23
  attr_accessor :response_condition
24
24
 
25
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
26
26
  attr_accessor :format
27
27
 
28
+ # The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
29
+ attr_accessor :log_processing_region
30
+
28
31
  # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
32
  attr_accessor :format_version
30
33
 
@@ -103,6 +106,7 @@ module Fastly
103
106
  :'placement' => :'placement',
104
107
  :'response_condition' => :'response_condition',
105
108
  :'format' => :'format',
109
+ :'log_processing_region' => :'log_processing_region',
106
110
  :'format_version' => :'format_version',
107
111
  :'message_type' => :'message_type',
108
112
  :'timestamp_format' => :'timestamp_format',
@@ -135,6 +139,7 @@ module Fastly
135
139
  :'placement' => :'String',
136
140
  :'response_condition' => :'String',
137
141
  :'format' => :'String',
142
+ :'log_processing_region' => :'String',
138
143
  :'format_version' => :'String',
139
144
  :'message_type' => :'String',
140
145
  :'timestamp_format' => :'String',
@@ -213,6 +218,12 @@ module Fastly
213
218
  self.format = '%h %l %u %t \"%r\" %>s %b'
214
219
  end
215
220
 
221
+ if attributes.key?(:'log_processing_region')
222
+ self.log_processing_region = attributes[:'log_processing_region']
223
+ else
224
+ self.log_processing_region = 'none'
225
+ end
226
+
216
227
  if attributes.key?(:'format_version')
217
228
  self.format_version = attributes[:'format_version']
218
229
  else
@@ -304,8 +315,10 @@ module Fastly
304
315
  # Check to see if the all the properties in the model are valid
305
316
  # @return true if the model is valid
306
317
  def valid?
307
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
318
+ placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
308
319
  return false unless placement_validator.valid?(@placement)
320
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
321
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
309
322
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
310
323
  return false unless format_version_validator.valid?(@format_version)
311
324
  message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
@@ -318,13 +331,23 @@ module Fastly
318
331
  # Custom attribute writer method checking allowed values (enum).
319
332
  # @param [Object] placement Object to be assigned
320
333
  def placement=(placement)
321
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
334
+ validator = EnumAttributeValidator.new('String', ["none", "null"])
322
335
  unless validator.valid?(placement)
323
336
  fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
324
337
  end
325
338
  @placement = placement
326
339
  end
327
340
 
341
+ # Custom attribute writer method checking allowed values (enum).
342
+ # @param [Object] log_processing_region Object to be assigned
343
+ def log_processing_region=(log_processing_region)
344
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
345
+ unless validator.valid?(log_processing_region)
346
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
347
+ end
348
+ @log_processing_region = log_processing_region
349
+ end
350
+
328
351
  # Custom attribute writer method checking allowed values (enum).
329
352
  # @param [Object] format_version Object to be assigned
330
353
  def format_version=(format_version)
@@ -364,6 +387,7 @@ module Fastly
364
387
  placement == o.placement &&
365
388
  response_condition == o.response_condition &&
366
389
  format == o.format &&
390
+ log_processing_region == o.log_processing_region &&
367
391
  format_version == o.format_version &&
368
392
  message_type == o.message_type &&
369
393
  timestamp_format == o.timestamp_format &&
@@ -392,7 +416,7 @@ module Fastly
392
416
  # Calculates hash code according to all attributes.
393
417
  # @return [Integer] Hash code
394
418
  def hash
395
- [name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, access_key, bucket_name, path, public_key, url, user].hash
419
+ [name, placement, response_condition, format, log_processing_region, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, access_key, bucket_name, path, public_key, url, user].hash
396
420
  end
397
421
 
398
422
  # Builds the object from hash
@@ -22,9 +22,12 @@ module Fastly
22
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
23
23
  attr_accessor :response_condition
24
24
 
25
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
26
26
  attr_accessor :format
27
27
 
28
+ # The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
29
+ attr_accessor :log_processing_region
30
+
28
31
  # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
32
  attr_accessor :format_version
30
33
 
@@ -76,6 +79,7 @@ module Fastly
76
79
  :'placement' => :'placement',
77
80
  :'response_condition' => :'response_condition',
78
81
  :'format' => :'format',
82
+ :'log_processing_region' => :'log_processing_region',
79
83
  :'format_version' => :'format_version',
80
84
  :'address' => :'address',
81
85
  :'port' => :'port',
@@ -99,6 +103,7 @@ module Fastly
99
103
  :'placement' => :'String',
100
104
  :'response_condition' => :'String',
101
105
  :'format' => :'String',
106
+ :'log_processing_region' => :'String',
102
107
  :'format_version' => :'String',
103
108
  :'address' => :'String',
104
109
  :'port' => :'Integer',
@@ -164,6 +169,12 @@ module Fastly
164
169
  self.format = '%h %l %u %t \"%r\" %>s %b'
165
170
  end
166
171
 
172
+ if attributes.key?(:'log_processing_region')
173
+ self.log_processing_region = attributes[:'log_processing_region']
174
+ else
175
+ self.log_processing_region = 'none'
176
+ end
177
+
167
178
  if attributes.key?(:'format_version')
168
179
  self.format_version = attributes[:'format_version']
169
180
  else
@@ -211,8 +222,10 @@ module Fastly
211
222
  # Check to see if the all the properties in the model are valid
212
223
  # @return true if the model is valid
213
224
  def valid?
214
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
225
+ placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
215
226
  return false unless placement_validator.valid?(@placement)
227
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
228
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
216
229
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
217
230
  return false unless format_version_validator.valid?(@format_version)
218
231
  true
@@ -221,13 +234,23 @@ module Fastly
221
234
  # Custom attribute writer method checking allowed values (enum).
222
235
  # @param [Object] placement Object to be assigned
223
236
  def placement=(placement)
224
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
237
+ validator = EnumAttributeValidator.new('String', ["none", "null"])
225
238
  unless validator.valid?(placement)
226
239
  fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
227
240
  end
228
241
  @placement = placement
229
242
  end
230
243
 
244
+ # Custom attribute writer method checking allowed values (enum).
245
+ # @param [Object] log_processing_region Object to be assigned
246
+ def log_processing_region=(log_processing_region)
247
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
248
+ unless validator.valid?(log_processing_region)
249
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
250
+ end
251
+ @log_processing_region = log_processing_region
252
+ end
253
+
231
254
  # Custom attribute writer method checking allowed values (enum).
232
255
  # @param [Object] format_version Object to be assigned
233
256
  def format_version=(format_version)
@@ -247,6 +270,7 @@ module Fastly
247
270
  placement == o.placement &&
248
271
  response_condition == o.response_condition &&
249
272
  format == o.format &&
273
+ log_processing_region == o.log_processing_region &&
250
274
  format_version == o.format_version &&
251
275
  address == o.address &&
252
276
  port == o.port &&
@@ -266,7 +290,7 @@ module Fastly
266
290
  # Calculates hash code according to all attributes.
267
291
  # @return [Integer] Hash code
268
292
  def hash
269
- [name, placement, response_condition, format, format_version, address, port, created_at, deleted_at, updated_at, service_id, version].hash
293
+ [name, placement, response_condition, format, log_processing_region, format_version, address, port, created_at, deleted_at, updated_at, service_id, version].hash
270
294
  end
271
295
 
272
296
  # Builds the object from hash
@@ -14,7 +14,6 @@ require 'time'
14
14
  module Fastly
15
15
  class LoggingPlacement
16
16
  NONE = "none".freeze
17
- WAF_DEBUG = "waf_debug".freeze
18
17
  NULL = "null".freeze
19
18
 
20
19
  # Builds the enum from string
@@ -22,9 +22,12 @@ module Fastly
22
22
  # The name of an existing condition in the configured endpoint, or leave blank to always execute.
23
23
  attr_accessor :response_condition
24
24
 
25
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/).
26
26
  attr_accessor :format
27
27
 
28
+ # The geographic region where the logs will be processed before streaming. Valid values are `us`, `eu`, and `none` for global.
29
+ attr_accessor :log_processing_region
30
+
28
31
  # The version of the custom logging format used for the configured endpoint. The logging call gets placed by default in `vcl_log` if `format_version` is set to `2` and in `vcl_deliver` if `format_version` is set to `1`.
29
32
  attr_accessor :format_version
30
33
 
@@ -121,6 +124,7 @@ module Fastly
121
124
  :'placement' => :'placement',
122
125
  :'response_condition' => :'response_condition',
123
126
  :'format' => :'format',
127
+ :'log_processing_region' => :'log_processing_region',
124
128
  :'format_version' => :'format_version',
125
129
  :'message_type' => :'message_type',
126
130
  :'timestamp_format' => :'timestamp_format',
@@ -159,6 +163,7 @@ module Fastly
159
163
  :'placement' => :'String',
160
164
  :'response_condition' => :'String',
161
165
  :'format' => :'String',
166
+ :'log_processing_region' => :'String',
162
167
  :'format_version' => :'String',
163
168
  :'message_type' => :'String',
164
169
  :'timestamp_format' => :'String',
@@ -249,6 +254,12 @@ module Fastly
249
254
  self.format = '%h %l %u %t \"%r\" %>s %b'
250
255
  end
251
256
 
257
+ if attributes.key?(:'log_processing_region')
258
+ self.log_processing_region = attributes[:'log_processing_region']
259
+ else
260
+ self.log_processing_region = 'none'
261
+ end
262
+
252
263
  if attributes.key?(:'format_version')
253
264
  self.format_version = attributes[:'format_version']
254
265
  else
@@ -374,8 +385,10 @@ module Fastly
374
385
  # Check to see if the all the properties in the model are valid
375
386
  # @return true if the model is valid
376
387
  def valid?
377
- placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
388
+ placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
378
389
  return false unless placement_validator.valid?(@placement)
390
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
391
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
379
392
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
380
393
  return false unless format_version_validator.valid?(@format_version)
381
394
  message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
@@ -389,13 +402,23 @@ module Fastly
389
402
  # Custom attribute writer method checking allowed values (enum).
390
403
  # @param [Object] placement Object to be assigned
391
404
  def placement=(placement)
392
- validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
405
+ validator = EnumAttributeValidator.new('String', ["none", "null"])
393
406
  unless validator.valid?(placement)
394
407
  fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
395
408
  end
396
409
  @placement = placement
397
410
  end
398
411
 
412
+ # Custom attribute writer method checking allowed values (enum).
413
+ # @param [Object] log_processing_region Object to be assigned
414
+ def log_processing_region=(log_processing_region)
415
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
416
+ unless validator.valid?(log_processing_region)
417
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
418
+ end
419
+ @log_processing_region = log_processing_region
420
+ end
421
+
399
422
  # Custom attribute writer method checking allowed values (enum).
400
423
  # @param [Object] format_version Object to be assigned
401
424
  def format_version=(format_version)
@@ -445,6 +468,7 @@ module Fastly
445
468
  placement == o.placement &&
446
469
  response_condition == o.response_condition &&
447
470
  format == o.format &&
471
+ log_processing_region == o.log_processing_region &&
448
472
  format_version == o.format_version &&
449
473
  message_type == o.message_type &&
450
474
  timestamp_format == o.timestamp_format &&
@@ -479,7 +503,7 @@ module Fastly
479
503
  # Calculates hash code according to all attributes.
480
504
  # @return [Integer] Hash code
481
505
  def hash
482
- [name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, access_key, acl, bucket_name, domain, iam_role, path, public_key, redundancy, secret_key, server_side_encryption_kms_key_id, server_side_encryption, file_max_bytes].hash
506
+ [name, placement, response_condition, format, log_processing_region, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, created_at, deleted_at, updated_at, service_id, version, access_key, acl, bucket_name, domain, iam_role, path, public_key, redundancy, secret_key, server_side_encryption_kms_key_id, server_side_encryption, file_max_bytes].hash
483
507
  end
484
508
 
485
509
  # Builds the object from hash