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
@@ -17,17 +17,17 @@ module Fastly
17
17
 
18
18
  attr_accessor :attributes
19
19
 
20
- attr_accessor :relationships
21
-
22
20
  attr_accessor :id
23
21
 
22
+ attr_accessor :relationships
23
+
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
27
  :'type' => :'type',
28
28
  :'attributes' => :'attributes',
29
- :'relationships' => :'relationships',
30
- :'id' => :'id'
29
+ :'id' => :'id',
30
+ :'relationships' => :'relationships'
31
31
  }
32
32
  end
33
33
 
@@ -41,8 +41,8 @@ module Fastly
41
41
  {
42
42
  :'type' => :'TypeInvitation',
43
43
  :'attributes' => :'Timestamps',
44
- :'relationships' => :'RelationshipsForInvitation',
45
- :'id' => :'String'
44
+ :'id' => :'String',
45
+ :'relationships' => :'RelationshipsForInvitation'
46
46
  }
47
47
  end
48
48
 
@@ -85,13 +85,13 @@ module Fastly
85
85
  self.attributes = attributes[:'attributes']
86
86
  end
87
87
 
88
- if attributes.key?(:'relationships')
89
- self.relationships = attributes[:'relationships']
90
- end
91
-
92
88
  if attributes.key?(:'id')
93
89
  self.id = attributes[:'id']
94
90
  end
91
+
92
+ if attributes.key?(:'relationships')
93
+ self.relationships = attributes[:'relationships']
94
+ end
95
95
  end
96
96
 
97
97
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -114,8 +114,8 @@ module Fastly
114
114
  self.class == o.class &&
115
115
  type == o.type &&
116
116
  attributes == o.attributes &&
117
- relationships == o.relationships &&
118
- id == o.id
117
+ id == o.id &&
118
+ relationships == o.relationships
119
119
  end
120
120
 
121
121
  # @see the `==` method
@@ -127,7 +127,7 @@ module Fastly
127
127
  # Calculates hash code according to all attributes.
128
128
  # @return [Integer] Hash code
129
129
  def hash
130
- [type, attributes, relationships, id].hash
130
+ [type, attributes, id, relationships].hash
131
131
  end
132
132
 
133
133
  # 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
@@ -310,6 +321,8 @@ module Fastly
310
321
  def valid?
311
322
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
312
323
  return false unless placement_validator.valid?(@placement)
324
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
325
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
313
326
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
314
327
  return false unless format_version_validator.valid?(@format_version)
315
328
  message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
@@ -330,6 +343,16 @@ module Fastly
330
343
  @placement = placement
331
344
  end
332
345
 
346
+ # Custom attribute writer method checking allowed values (enum).
347
+ # @param [Object] log_processing_region Object to be assigned
348
+ def log_processing_region=(log_processing_region)
349
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
350
+ unless validator.valid?(log_processing_region)
351
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
352
+ end
353
+ @log_processing_region = log_processing_region
354
+ end
355
+
333
356
  # Custom attribute writer method checking allowed values (enum).
334
357
  # @param [Object] format_version Object to be assigned
335
358
  def format_version=(format_version)
@@ -379,6 +402,7 @@ module Fastly
379
402
  placement == o.placement &&
380
403
  response_condition == o.response_condition &&
381
404
  format == o.format &&
405
+ log_processing_region == o.log_processing_region &&
382
406
  format_version == o.format_version &&
383
407
  message_type == o.message_type &&
384
408
  timestamp_format == o.timestamp_format &&
@@ -407,7 +431,7 @@ module Fastly
407
431
  # Calculates hash code according to all attributes.
408
432
  # @return [Integer] Hash code
409
433
  def hash
410
- [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, path, account_name, container, sas_token, public_key, file_max_bytes].hash
434
+ [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, path, account_name, container, sas_token, public_key, file_max_bytes].hash
411
435
  end
412
436
 
413
437
  # Builds the object from hash
@@ -16,7 +16,7 @@ module Fastly
16
16
  # The name of the BigQuery logging object. Used as a primary key for API access.
17
17
  attr_accessor :name
18
18
 
19
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce JSON that matches the schema of your BigQuery table.
19
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce JSON that matches the schema of your BigQuery table.
20
20
  attr_accessor :format
21
21
 
22
22
  # Your BigQuery dataset.
@@ -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 JSON that matches the schema of your BigQuery table.
25
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce JSON that matches the schema of your BigQuery table.
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
 
@@ -91,6 +94,7 @@ module Fastly
91
94
  :'placement' => :'placement',
92
95
  :'response_condition' => :'response_condition',
93
96
  :'format' => :'format',
97
+ :'log_processing_region' => :'log_processing_region',
94
98
  :'format_version' => :'format_version',
95
99
  :'user' => :'user',
96
100
  :'secret_key' => :'secret_key',
@@ -119,6 +123,7 @@ module Fastly
119
123
  :'placement' => :'String',
120
124
  :'response_condition' => :'String',
121
125
  :'format' => :'String',
126
+ :'log_processing_region' => :'String',
122
127
  :'format_version' => :'String',
123
128
  :'user' => :'String',
124
129
  :'secret_key' => :'String',
@@ -189,6 +194,12 @@ module Fastly
189
194
  self.format = attributes[:'format']
190
195
  end
191
196
 
197
+ if attributes.key?(:'log_processing_region')
198
+ self.log_processing_region = attributes[:'log_processing_region']
199
+ else
200
+ self.log_processing_region = 'none'
201
+ end
202
+
192
203
  if attributes.key?(:'format_version')
193
204
  self.format_version = attributes[:'format_version']
194
205
  else
@@ -256,6 +267,8 @@ module Fastly
256
267
  def valid?
257
268
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
258
269
  return false unless placement_validator.valid?(@placement)
270
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
271
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
259
272
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
260
273
  return false unless format_version_validator.valid?(@format_version)
261
274
  true
@@ -271,6 +284,16 @@ module Fastly
271
284
  @placement = placement
272
285
  end
273
286
 
287
+ # Custom attribute writer method checking allowed values (enum).
288
+ # @param [Object] log_processing_region Object to be assigned
289
+ def log_processing_region=(log_processing_region)
290
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
291
+ unless validator.valid?(log_processing_region)
292
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
293
+ end
294
+ @log_processing_region = log_processing_region
295
+ end
296
+
274
297
  # Custom attribute writer method checking allowed values (enum).
275
298
  # @param [Object] format_version Object to be assigned
276
299
  def format_version=(format_version)
@@ -290,6 +313,7 @@ module Fastly
290
313
  placement == o.placement &&
291
314
  response_condition == o.response_condition &&
292
315
  format == o.format &&
316
+ log_processing_region == o.log_processing_region &&
293
317
  format_version == o.format_version &&
294
318
  user == o.user &&
295
319
  secret_key == o.secret_key &&
@@ -314,7 +338,7 @@ module Fastly
314
338
  # Calculates hash code according to all attributes.
315
339
  # @return [Integer] Hash code
316
340
  def hash
317
- [name, placement, response_condition, format, format_version, user, secret_key, account_name, dataset, table, template_suffix, project_id, created_at, deleted_at, updated_at, service_id, version].hash
341
+ [name, placement, response_condition, format, log_processing_region, format_version, user, secret_key, account_name, dataset, table, template_suffix, project_id, created_at, deleted_at, updated_at, service_id, version].hash
318
342
  end
319
343
 
320
344
  # 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',
@@ -214,6 +219,12 @@ module Fastly
214
219
  self.format = '%h %l %u %t \"%r\" %>s %b'
215
220
  end
216
221
 
222
+ if attributes.key?(:'log_processing_region')
223
+ self.log_processing_region = attributes[:'log_processing_region']
224
+ else
225
+ self.log_processing_region = 'none'
226
+ end
227
+
217
228
  if attributes.key?(:'format_version')
218
229
  self.format_version = attributes[:'format_version']
219
230
  else
@@ -307,6 +318,8 @@ module Fastly
307
318
  def valid?
308
319
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
309
320
  return false unless placement_validator.valid?(@placement)
321
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
322
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
310
323
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
311
324
  return false unless format_version_validator.valid?(@format_version)
312
325
  message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
@@ -328,6 +341,16 @@ module Fastly
328
341
  @placement = placement
329
342
  end
330
343
 
344
+ # Custom attribute writer method checking allowed values (enum).
345
+ # @param [Object] log_processing_region Object to be assigned
346
+ def log_processing_region=(log_processing_region)
347
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
348
+ unless validator.valid?(log_processing_region)
349
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
350
+ end
351
+ @log_processing_region = log_processing_region
352
+ end
353
+
331
354
  # Custom attribute writer method checking allowed values (enum).
332
355
  # @param [Object] format_version Object to be assigned
333
356
  def format_version=(format_version)
@@ -377,6 +400,7 @@ module Fastly
377
400
  placement == o.placement &&
378
401
  response_condition == o.response_condition &&
379
402
  format == o.format &&
403
+ log_processing_region == o.log_processing_region &&
380
404
  format_version == o.format_version &&
381
405
  message_type == o.message_type &&
382
406
  timestamp_format == o.timestamp_format &&
@@ -405,7 +429,7 @@ module Fastly
405
429
  # Calculates hash code according to all attributes.
406
430
  # @return [Integer] Hash code
407
431
  def hash
408
- [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, region, public_key, user].hash
432
+ [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, region, public_key, user].hash
409
433
  end
410
434
 
411
435
  # 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
  class EnumAttributeValidator
29
32
  attr_reader :datatype
30
33
  attr_reader :allowable_values
@@ -53,7 +56,8 @@ module Fastly
53
56
  :'name' => :'name',
54
57
  :'placement' => :'placement',
55
58
  :'response_condition' => :'response_condition',
56
- :'format' => :'format'
59
+ :'format' => :'format',
60
+ :'log_processing_region' => :'log_processing_region'
57
61
  }
58
62
  end
59
63
 
@@ -68,7 +72,8 @@ module Fastly
68
72
  :'name' => :'String',
69
73
  :'placement' => :'String',
70
74
  :'response_condition' => :'String',
71
- :'format' => :'String'
75
+ :'format' => :'String',
76
+ :'log_processing_region' => :'String'
72
77
  }
73
78
  end
74
79
 
@@ -112,6 +117,12 @@ module Fastly
112
117
  else
113
118
  self.format = '%h %l %u %t \"%r\" %>s %b'
114
119
  end
120
+
121
+ if attributes.key?(:'log_processing_region')
122
+ self.log_processing_region = attributes[:'log_processing_region']
123
+ else
124
+ self.log_processing_region = 'none'
125
+ end
115
126
  end
116
127
 
117
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,6 +137,8 @@ module Fastly
126
137
  def valid?
127
138
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
128
139
  return false unless placement_validator.valid?(@placement)
140
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
141
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
129
142
  true
130
143
  end
131
144
 
@@ -139,6 +152,16 @@ module Fastly
139
152
  @placement = placement
140
153
  end
141
154
 
155
+ # Custom attribute writer method checking allowed values (enum).
156
+ # @param [Object] log_processing_region Object to be assigned
157
+ def log_processing_region=(log_processing_region)
158
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
159
+ unless validator.valid?(log_processing_region)
160
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
161
+ end
162
+ @log_processing_region = log_processing_region
163
+ end
164
+
142
165
  # Checks equality by comparing each attribute.
143
166
  # @param [Object] Object to be compared
144
167
  def ==(o)
@@ -147,7 +170,8 @@ module Fastly
147
170
  name == o.name &&
148
171
  placement == o.placement &&
149
172
  response_condition == o.response_condition &&
150
- format == o.format
173
+ format == o.format &&
174
+ log_processing_region == o.log_processing_region
151
175
  end
152
176
 
153
177
  # @see the `==` method
@@ -159,7 +183,7 @@ module Fastly
159
183
  # Calculates hash code according to all attributes.
160
184
  # @return [Integer] Hash code
161
185
  def hash
162
- [name, placement, response_condition, format].hash
186
+ [name, placement, response_condition, format, log_processing_region].hash
163
187
  end
164
188
 
165
189
  # 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
 
@@ -57,6 +60,7 @@ module Fastly
57
60
  :'placement' => :'placement',
58
61
  :'response_condition' => :'response_condition',
59
62
  :'format' => :'format',
63
+ :'log_processing_region' => :'log_processing_region',
60
64
  :'format_version' => :'format_version'
61
65
  }
62
66
  end
@@ -73,6 +77,7 @@ module Fastly
73
77
  :'placement' => :'String',
74
78
  :'response_condition' => :'String',
75
79
  :'format' => :'String',
80
+ :'log_processing_region' => :'String',
76
81
  :'format_version' => :'String'
77
82
  }
78
83
  end
@@ -126,6 +131,12 @@ module Fastly
126
131
  self.format = '%h %l %u %t \"%r\" %>s %b'
127
132
  end
128
133
 
134
+ if attributes.key?(:'log_processing_region')
135
+ self.log_processing_region = attributes[:'log_processing_region']
136
+ else
137
+ self.log_processing_region = 'none'
138
+ end
139
+
129
140
  if attributes.key?(:'format_version')
130
141
  self.format_version = attributes[:'format_version']
131
142
  else
@@ -145,6 +156,8 @@ module Fastly
145
156
  def valid?
146
157
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
147
158
  return false unless placement_validator.valid?(@placement)
159
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
160
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
148
161
  format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
149
162
  return false unless format_version_validator.valid?(@format_version)
150
163
  true
@@ -160,6 +173,16 @@ module Fastly
160
173
  @placement = placement
161
174
  end
162
175
 
176
+ # Custom attribute writer method checking allowed values (enum).
177
+ # @param [Object] log_processing_region Object to be assigned
178
+ def log_processing_region=(log_processing_region)
179
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
180
+ unless validator.valid?(log_processing_region)
181
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
182
+ end
183
+ @log_processing_region = log_processing_region
184
+ end
185
+
163
186
  # Custom attribute writer method checking allowed values (enum).
164
187
  # @param [Object] format_version Object to be assigned
165
188
  def format_version=(format_version)
@@ -179,6 +202,7 @@ module Fastly
179
202
  placement == o.placement &&
180
203
  response_condition == o.response_condition &&
181
204
  format == o.format &&
205
+ log_processing_region == o.log_processing_region &&
182
206
  format_version == o.format_version
183
207
  end
184
208
 
@@ -191,7 +215,7 @@ module Fastly
191
215
  # Calculates hash code according to all attributes.
192
216
  # @return [Integer] Hash code
193
217
  def hash
194
- [name, placement, response_condition, format, format_version].hash
218
+ [name, placement, response_condition, format, log_processing_region, format_version].hash
195
219
  end
196
220
 
197
221
  # 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
  class EnumAttributeValidator
29
32
  attr_reader :datatype
30
33
  attr_reader :allowable_values
@@ -53,7 +56,8 @@ module Fastly
53
56
  :'name' => :'name',
54
57
  :'placement' => :'placement',
55
58
  :'response_condition' => :'response_condition',
56
- :'format' => :'format'
59
+ :'format' => :'format',
60
+ :'log_processing_region' => :'log_processing_region'
57
61
  }
58
62
  end
59
63
 
@@ -68,7 +72,8 @@ module Fastly
68
72
  :'name' => :'String',
69
73
  :'placement' => :'String',
70
74
  :'response_condition' => :'String',
71
- :'format' => :'String'
75
+ :'format' => :'String',
76
+ :'log_processing_region' => :'String'
72
77
  }
73
78
  end
74
79
 
@@ -112,6 +117,12 @@ module Fastly
112
117
  else
113
118
  self.format = '%h %l %u %t \"%r\" %>s %b'
114
119
  end
120
+
121
+ if attributes.key?(:'log_processing_region')
122
+ self.log_processing_region = attributes[:'log_processing_region']
123
+ else
124
+ self.log_processing_region = 'none'
125
+ end
115
126
  end
116
127
 
117
128
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -126,6 +137,8 @@ module Fastly
126
137
  def valid?
127
138
  placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
128
139
  return false unless placement_validator.valid?(@placement)
140
+ log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
141
+ return false unless log_processing_region_validator.valid?(@log_processing_region)
129
142
  true
130
143
  end
131
144
 
@@ -139,6 +152,16 @@ module Fastly
139
152
  @placement = placement
140
153
  end
141
154
 
155
+ # Custom attribute writer method checking allowed values (enum).
156
+ # @param [Object] log_processing_region Object to be assigned
157
+ def log_processing_region=(log_processing_region)
158
+ validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
159
+ unless validator.valid?(log_processing_region)
160
+ fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
161
+ end
162
+ @log_processing_region = log_processing_region
163
+ end
164
+
142
165
  # Checks equality by comparing each attribute.
143
166
  # @param [Object] Object to be compared
144
167
  def ==(o)
@@ -147,7 +170,8 @@ module Fastly
147
170
  name == o.name &&
148
171
  placement == o.placement &&
149
172
  response_condition == o.response_condition &&
150
- format == o.format
173
+ format == o.format &&
174
+ log_processing_region == o.log_processing_region
151
175
  end
152
176
 
153
177
  # @see the `==` method
@@ -159,7 +183,7 @@ module Fastly
159
183
  # Calculates hash code according to all attributes.
160
184
  # @return [Integer] Hash code
161
185
  def hash
162
- [name, placement, response_condition, format].hash
186
+ [name, placement, response_condition, format, log_processing_region].hash
163
187
  end
164
188
 
165
189
  # Builds the object from hash
@@ -16,7 +16,7 @@ module Fastly
16
16
  # The region that log data will be sent to.
17
17
  attr_accessor :region
18
18
 
19
- # A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats). Must produce valid JSON that Datadog can ingest.
19
+ # A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that Datadog can ingest.
20
20
  attr_accessor :format
21
21
 
22
22
  # The API key from your Datadog account. Required.