fastly 13.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 (189) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +6 -3
  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/TlsCertificateDataAttributes.md +1 -0
  92. data/docs/TlsCsrData.md +0 -1
  93. data/docs/TlsCsrDataAttributes.md +1 -0
  94. data/lib/fastly/api/backend_api.rb +8 -8
  95. data/lib/fastly/api/invitations_api.rb +3 -3
  96. data/lib/fastly/api/logging_azureblob_api.rb +18 -4
  97. data/lib/fastly/api/logging_bigquery_api.rb +18 -4
  98. data/lib/fastly/api/logging_cloudfiles_api.rb +18 -4
  99. data/lib/fastly/api/logging_datadog_api.rb +18 -4
  100. data/lib/fastly/api/logging_digitalocean_api.rb +18 -4
  101. data/lib/fastly/api/logging_elasticsearch_api.rb +18 -4
  102. data/lib/fastly/api/logging_ftp_api.rb +18 -4
  103. data/lib/fastly/api/logging_gcs_api.rb +18 -4
  104. data/lib/fastly/api/logging_grafanacloudlogs_api.rb +18 -4
  105. data/lib/fastly/api/logging_heroku_api.rb +18 -4
  106. data/lib/fastly/api/logging_honeycomb_api.rb +18 -4
  107. data/lib/fastly/api/logging_https_api.rb +18 -4
  108. data/lib/fastly/api/logging_kafka_api.rb +9 -2
  109. data/lib/fastly/api/logging_kinesis_api.rb +2 -2
  110. data/lib/fastly/api/logging_logentries_api.rb +18 -4
  111. data/lib/fastly/api/logging_loggly_api.rb +18 -4
  112. data/lib/fastly/api/logging_logshuttle_api.rb +18 -4
  113. data/lib/fastly/api/logging_newrelic_api.rb +18 -4
  114. data/lib/fastly/api/logging_newrelicotlp_api.rb +18 -4
  115. data/lib/fastly/api/logging_openstack_api.rb +18 -4
  116. data/lib/fastly/api/logging_papertrail_api.rb +18 -4
  117. data/lib/fastly/api/logging_pubsub_api.rb +18 -4
  118. data/lib/fastly/api/logging_s3_api.rb +18 -4
  119. data/lib/fastly/api/logging_scalyr_api.rb +18 -4
  120. data/lib/fastly/api/logging_sftp_api.rb +18 -4
  121. data/lib/fastly/api/logging_splunk_api.rb +18 -4
  122. data/lib/fastly/api/logging_sumologic_api.rb +18 -4
  123. data/lib/fastly/api/logging_syslog_api.rb +18 -4
  124. data/lib/fastly/api/pool_api.rb +4 -4
  125. data/lib/fastly/api/purge_api.rb +2 -2
  126. data/lib/fastly/models/backend.rb +2 -3
  127. data/lib/fastly/models/backend_response.rb +2 -3
  128. data/lib/fastly/models/invitation.rb +1 -1
  129. data/lib/fastly/models/invitation_create_data.rb +244 -0
  130. data/lib/fastly/models/invitation_create_data_all_of.rb +216 -0
  131. data/lib/fastly/models/{invitation_response.rb → invitation_create_response.rb} +4 -4
  132. data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb} +3 -3
  133. data/lib/fastly/models/invitation_data.rb +4 -13
  134. data/lib/fastly/models/invitation_response_data.rb +13 -13
  135. data/lib/fastly/models/logging_azureblob_response.rb +26 -2
  136. data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
  137. data/lib/fastly/models/logging_bigquery_response.rb +26 -2
  138. data/lib/fastly/models/logging_cloudfiles_response.rb +26 -2
  139. data/lib/fastly/models/logging_common.rb +29 -5
  140. data/lib/fastly/models/logging_common_response.rb +26 -2
  141. data/lib/fastly/models/logging_common_response_all_of.rb +29 -5
  142. data/lib/fastly/models/logging_datadog_additional.rb +1 -1
  143. data/lib/fastly/models/logging_datadog_response.rb +26 -2
  144. data/lib/fastly/models/logging_digitalocean_response.rb +26 -2
  145. data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
  146. data/lib/fastly/models/logging_elasticsearch_response.rb +26 -2
  147. data/lib/fastly/models/logging_ftp_response.rb +26 -2
  148. data/lib/fastly/models/logging_gcs_response.rb +26 -2
  149. data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
  150. data/lib/fastly/models/logging_google_pubsub_response.rb +26 -2
  151. data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
  152. data/lib/fastly/models/logging_grafanacloudlogs_response.rb +26 -2
  153. data/lib/fastly/models/logging_heroku_response.rb +26 -2
  154. data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
  155. data/lib/fastly/models/logging_honeycomb_response.rb +26 -2
  156. data/lib/fastly/models/logging_https_additional.rb +1 -1
  157. data/lib/fastly/models/logging_https_response.rb +26 -2
  158. data/lib/fastly/models/logging_kafka_response.rb +26 -2
  159. data/lib/fastly/models/logging_kafka_response_post.rb +26 -2
  160. data/lib/fastly/models/logging_kinesis_additional.rb +1 -1
  161. data/lib/fastly/models/logging_kinesis_response.rb +1 -1
  162. data/lib/fastly/models/logging_logentries_response.rb +26 -2
  163. data/lib/fastly/models/logging_loggly_response.rb +26 -2
  164. data/lib/fastly/models/logging_logshuttle_response.rb +26 -2
  165. data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
  166. data/lib/fastly/models/logging_newrelic_response.rb +26 -2
  167. data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
  168. data/lib/fastly/models/logging_newrelicotlp_response.rb +26 -2
  169. data/lib/fastly/models/logging_openstack_response.rb +26 -2
  170. data/lib/fastly/models/logging_papertrail_response.rb +26 -2
  171. data/lib/fastly/models/logging_s3_response.rb +26 -2
  172. data/lib/fastly/models/logging_scalyr_response.rb +26 -2
  173. data/lib/fastly/models/logging_sftp_response.rb +26 -2
  174. data/lib/fastly/models/logging_splunk_response.rb +26 -2
  175. data/lib/fastly/models/logging_sumologic_response.rb +26 -2
  176. data/lib/fastly/models/logging_syslog_response.rb +26 -2
  177. data/lib/fastly/models/pool_additional.rb +1 -1
  178. data/lib/fastly/models/pool_response.rb +1 -1
  179. data/lib/fastly/models/pool_response_post.rb +1 -1
  180. data/lib/fastly/models/relationship_service_invitations.rb +1 -0
  181. data/lib/fastly/models/relationship_service_invitations_service_invitations.rb +1 -0
  182. data/lib/fastly/models/relationships_for_invitation.rb +1 -0
  183. data/lib/fastly/models/tls_certificate_data_attributes.rb +14 -4
  184. data/lib/fastly/models/tls_csr_data.rb +4 -13
  185. data/lib/fastly/models/tls_csr_data_attributes.rb +14 -4
  186. data/lib/fastly/version.rb +1 -1
  187. data/lib/fastly.rb +4 -2
  188. data/sig.json +1 -1
  189. 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
@@ -212,6 +223,8 @@ module Fastly
212
223
  def valid?
213
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
@@ -227,6 +240,16 @@ module Fastly
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
@@ -213,6 +224,8 @@ module Fastly
213
224
  def valid?
214
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"])
@@ -230,6 +243,16 @@ module Fastly
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
@@ -225,6 +236,8 @@ module Fastly
225
236
  def valid?
226
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"])
@@ -242,6 +255,16 @@ module Fastly
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
@@ -306,6 +317,8 @@ module Fastly
306
317
  def valid?
307
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"])
@@ -325,6 +338,16 @@ module Fastly
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
@@ -213,6 +224,8 @@ module Fastly
213
224
  def valid?
214
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
@@ -228,6 +241,16 @@ module Fastly
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
@@ -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
@@ -376,6 +387,8 @@ module Fastly
376
387
  def valid?
377
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"])
@@ -396,6 +409,16 @@ module Fastly
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
@@ -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
  :'region' => :'region',
84
88
  :'token' => :'token',
@@ -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
  :'region' => :'String',
108
113
  :'token' => :'String',
@@ -169,6 +174,12 @@ module Fastly
169
174
  self.format = '%h %l %u %t \"%r\" %>s %b'
170
175
  end
171
176
 
177
+ if attributes.key?(:'log_processing_region')
178
+ self.log_processing_region = attributes[:'log_processing_region']
179
+ else
180
+ self.log_processing_region = 'none'
181
+ end
182
+
172
183
  if attributes.key?(:'format_version')
173
184
  self.format_version = attributes[:'format_version']
174
185
  else
@@ -224,6 +235,8 @@ module Fastly
224
235
  def valid?
225
236
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
226
237
  return false unless placement_validator.valid?(@placement)
238
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
239
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
227
240
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
228
241
  return false unless format_version_validator.valid?(@format_version)
229
242
  region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
@@ -241,6 +254,16 @@ module Fastly
241
254
  @placement = placement
242
255
  end
243
256
 
257
+ # Custom attribute writer method checking allowed values (enum).
258
+ # @param [Object] log_processing_region Object to be assigned
259
+ def log_processing_region=(log_processing_region)
260
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
261
+ unless validator.valid?(log_processing_region)
262
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
263
+ end
264
+ @log_processing_region = log_processing_region
265
+ end
266
+
244
267
  # Custom attribute writer method checking allowed values (enum).
245
268
  # @param [Object] format_version Object to be assigned
246
269
  def format_version=(format_version)
@@ -270,6 +293,7 @@ module Fastly
270
293
  placement == o.placement &&
271
294
  response_condition == o.response_condition &&
272
295
  format == o.format &&
296
+ log_processing_region == o.log_processing_region &&
273
297
  format_version == o.format_version &&
274
298
  region == o.region &&
275
299
  token == o.token &&
@@ -290,7 +314,7 @@ module Fastly
290
314
  # Calculates hash code according to all attributes.
291
315
  # @return [Integer] Hash code
292
316
  def hash
293
- [name, placement, response_condition, format, format_version, region, token, project_id, created_at, deleted_at, updated_at, service_id, version].hash
317
+ [name, placement, response_condition, format, log_processing_region, format_version, region, token, project_id, created_at, deleted_at, updated_at, service_id, version].hash
294
318
  end
295
319
 
296
320
  # Builds the object from hash