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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +46 -0
- data/Gemfile.lock +1 -1
- data/README.md +30 -14
- data/docs/Backend.md +2 -2
- data/docs/BackendApi.md +8 -8
- data/docs/BackendResponse.md +2 -2
- data/docs/Invitation.md +1 -1
- data/docs/InvitationCreateData.md +12 -0
- data/docs/InvitationCreateDataAllOf.md +10 -0
- data/docs/{InvitationResponse.md → InvitationCreateResponse.md} +1 -1
- data/docs/{InvitationResponseAllOf.md → InvitationCreateResponseAllOf.md} +1 -1
- data/docs/InvitationData.md +0 -1
- data/docs/InvitationResponseData.md +1 -1
- data/docs/InvitationsApi.md +2 -2
- data/docs/LoggingAzureblobApi.md +8 -4
- data/docs/LoggingAzureblobResponse.md +2 -1
- data/docs/LoggingBigqueryAdditional.md +1 -1
- data/docs/LoggingBigqueryApi.md +8 -4
- data/docs/LoggingBigqueryResponse.md +2 -1
- data/docs/LoggingCloudfilesApi.md +8 -4
- data/docs/LoggingCloudfilesResponse.md +2 -1
- data/docs/LoggingCommon.md +2 -1
- data/docs/LoggingCommonResponse.md +2 -1
- data/docs/LoggingCommonResponseAllOf.md +2 -1
- data/docs/LoggingDatadogAdditional.md +1 -1
- data/docs/LoggingDatadogApi.md +8 -4
- data/docs/LoggingDatadogResponse.md +2 -1
- data/docs/LoggingDigitaloceanApi.md +8 -4
- data/docs/LoggingDigitaloceanResponse.md +2 -1
- data/docs/LoggingElasticsearchAdditional.md +1 -1
- data/docs/LoggingElasticsearchApi.md +8 -4
- data/docs/LoggingElasticsearchResponse.md +2 -1
- data/docs/LoggingFtpApi.md +8 -4
- data/docs/LoggingFtpResponse.md +2 -1
- data/docs/LoggingGcsApi.md +8 -4
- data/docs/LoggingGcsResponse.md +2 -1
- data/docs/LoggingGooglePubsubAdditional.md +1 -1
- data/docs/LoggingGooglePubsubResponse.md +2 -1
- data/docs/LoggingGrafanacloudlogsAdditional.md +1 -1
- data/docs/LoggingGrafanacloudlogsApi.md +8 -4
- data/docs/LoggingGrafanacloudlogsResponse.md +2 -1
- data/docs/LoggingHerokuApi.md +8 -4
- data/docs/LoggingHerokuResponse.md +2 -1
- data/docs/LoggingHoneycombAdditional.md +1 -1
- data/docs/LoggingHoneycombApi.md +8 -4
- data/docs/LoggingHoneycombResponse.md +2 -1
- data/docs/LoggingHttpsAdditional.md +1 -1
- data/docs/LoggingHttpsApi.md +8 -4
- data/docs/LoggingHttpsResponse.md +2 -1
- data/docs/LoggingKafkaApi.md +4 -2
- data/docs/LoggingKafkaResponse.md +2 -1
- data/docs/LoggingKafkaResponsePost.md +2 -1
- data/docs/LoggingKinesisAdditional.md +1 -1
- data/docs/LoggingKinesisApi.md +2 -2
- data/docs/LoggingKinesisResponse.md +1 -1
- data/docs/LoggingLogentriesApi.md +8 -4
- data/docs/LoggingLogentriesResponse.md +2 -1
- data/docs/LoggingLogglyApi.md +8 -4
- data/docs/LoggingLogglyResponse.md +2 -1
- data/docs/LoggingLogshuttleApi.md +8 -4
- data/docs/LoggingLogshuttleResponse.md +2 -1
- data/docs/LoggingNewrelicAdditional.md +1 -1
- data/docs/LoggingNewrelicApi.md +8 -4
- data/docs/LoggingNewrelicResponse.md +2 -1
- data/docs/LoggingNewrelicotlpAdditional.md +1 -1
- data/docs/LoggingNewrelicotlpApi.md +8 -4
- data/docs/LoggingNewrelicotlpResponse.md +2 -1
- data/docs/LoggingOpenstackApi.md +8 -4
- data/docs/LoggingOpenstackResponse.md +2 -1
- data/docs/LoggingPapertrailApi.md +8 -4
- data/docs/LoggingPapertrailResponse.md +2 -1
- data/docs/LoggingPubsubApi.md +8 -4
- data/docs/LoggingS3Api.md +8 -4
- data/docs/LoggingS3Response.md +2 -1
- data/docs/LoggingScalyrApi.md +8 -4
- data/docs/LoggingScalyrResponse.md +2 -1
- data/docs/LoggingSftpApi.md +8 -4
- data/docs/LoggingSftpResponse.md +2 -1
- data/docs/LoggingSplunkApi.md +8 -4
- data/docs/LoggingSplunkResponse.md +2 -1
- data/docs/LoggingSumologicApi.md +8 -4
- data/docs/LoggingSumologicResponse.md +2 -1
- data/docs/LoggingSyslogApi.md +8 -4
- data/docs/LoggingSyslogResponse.md +2 -1
- data/docs/PoolAdditional.md +1 -1
- data/docs/PoolApi.md +4 -4
- data/docs/PoolResponse.md +1 -1
- data/docs/PoolResponsePost.md +1 -1
- data/docs/PurgeApi.md +1 -1
- data/docs/Results.md +2 -2
- data/docs/ServiceApi.md +2 -0
- data/docs/TlsCertificateDataAttributes.md +1 -0
- data/docs/TlsCsrData.md +0 -1
- data/docs/TlsCsrDataAttributes.md +1 -0
- data/lib/fastly/api/backend_api.rb +8 -8
- data/lib/fastly/api/invitations_api.rb +3 -3
- data/lib/fastly/api/logging_azureblob_api.rb +20 -6
- data/lib/fastly/api/logging_bigquery_api.rb +20 -6
- data/lib/fastly/api/logging_cloudfiles_api.rb +20 -6
- data/lib/fastly/api/logging_datadog_api.rb +20 -6
- data/lib/fastly/api/logging_digitalocean_api.rb +20 -6
- data/lib/fastly/api/logging_elasticsearch_api.rb +20 -6
- data/lib/fastly/api/logging_ftp_api.rb +20 -6
- data/lib/fastly/api/logging_gcs_api.rb +20 -6
- data/lib/fastly/api/logging_grafanacloudlogs_api.rb +20 -6
- data/lib/fastly/api/logging_heroku_api.rb +20 -6
- data/lib/fastly/api/logging_honeycomb_api.rb +20 -6
- data/lib/fastly/api/logging_https_api.rb +20 -6
- data/lib/fastly/api/logging_kafka_api.rb +10 -3
- data/lib/fastly/api/logging_kinesis_api.rb +2 -2
- data/lib/fastly/api/logging_logentries_api.rb +20 -6
- data/lib/fastly/api/logging_loggly_api.rb +20 -6
- data/lib/fastly/api/logging_logshuttle_api.rb +20 -6
- data/lib/fastly/api/logging_newrelic_api.rb +20 -6
- data/lib/fastly/api/logging_newrelicotlp_api.rb +20 -6
- data/lib/fastly/api/logging_openstack_api.rb +20 -6
- data/lib/fastly/api/logging_papertrail_api.rb +20 -6
- data/lib/fastly/api/logging_pubsub_api.rb +20 -6
- data/lib/fastly/api/logging_s3_api.rb +20 -6
- data/lib/fastly/api/logging_scalyr_api.rb +20 -6
- data/lib/fastly/api/logging_sftp_api.rb +20 -6
- data/lib/fastly/api/logging_splunk_api.rb +20 -6
- data/lib/fastly/api/logging_sumologic_api.rb +20 -6
- data/lib/fastly/api/logging_syslog_api.rb +20 -6
- data/lib/fastly/api/pool_api.rb +4 -4
- data/lib/fastly/api/purge_api.rb +2 -2
- data/lib/fastly/api/service_api.rb +3 -0
- data/lib/fastly/models/backend.rb +2 -2
- data/lib/fastly/models/backend_response.rb +2 -2
- data/lib/fastly/models/invitation.rb +1 -1
- data/lib/fastly/models/invitation_create_data.rb +244 -0
- data/lib/fastly/models/invitation_create_data_all_of.rb +216 -0
- data/lib/fastly/models/{invitation_response.rb → invitation_create_response.rb} +4 -4
- data/lib/fastly/models/{invitation_response_all_of.rb → invitation_create_response_all_of.rb} +3 -3
- data/lib/fastly/models/invitation_data.rb +4 -13
- data/lib/fastly/models/invitation_response_data.rb +13 -13
- data/lib/fastly/models/logging_azureblob_response.rb +28 -4
- data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
- data/lib/fastly/models/logging_bigquery_response.rb +28 -4
- data/lib/fastly/models/logging_cloudfiles_response.rb +28 -4
- data/lib/fastly/models/logging_common.rb +31 -7
- data/lib/fastly/models/logging_common_response.rb +28 -4
- data/lib/fastly/models/logging_common_response_all_of.rb +31 -7
- data/lib/fastly/models/logging_datadog_additional.rb +1 -1
- data/lib/fastly/models/logging_datadog_response.rb +28 -4
- data/lib/fastly/models/logging_digitalocean_response.rb +28 -4
- data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
- data/lib/fastly/models/logging_elasticsearch_response.rb +28 -4
- data/lib/fastly/models/logging_ftp_response.rb +28 -4
- data/lib/fastly/models/logging_gcs_response.rb +28 -4
- data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
- data/lib/fastly/models/logging_google_pubsub_response.rb +28 -4
- data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
- data/lib/fastly/models/logging_grafanacloudlogs_response.rb +28 -4
- data/lib/fastly/models/logging_heroku_response.rb +28 -4
- data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
- data/lib/fastly/models/logging_honeycomb_response.rb +28 -4
- data/lib/fastly/models/logging_https_additional.rb +1 -1
- data/lib/fastly/models/logging_https_response.rb +28 -4
- data/lib/fastly/models/logging_kafka_response.rb +28 -4
- data/lib/fastly/models/logging_kafka_response_post.rb +28 -4
- data/lib/fastly/models/logging_kinesis_additional.rb +1 -1
- data/lib/fastly/models/logging_kinesis_response.rb +1 -1
- data/lib/fastly/models/logging_logentries_response.rb +28 -4
- data/lib/fastly/models/logging_loggly_response.rb +28 -4
- data/lib/fastly/models/logging_logshuttle_response.rb +28 -4
- data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
- data/lib/fastly/models/logging_newrelic_response.rb +28 -4
- data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
- data/lib/fastly/models/logging_newrelicotlp_response.rb +28 -4
- data/lib/fastly/models/logging_openstack_response.rb +28 -4
- data/lib/fastly/models/logging_papertrail_response.rb +28 -4
- data/lib/fastly/models/logging_placement.rb +0 -1
- data/lib/fastly/models/logging_s3_response.rb +28 -4
- data/lib/fastly/models/logging_scalyr_response.rb +28 -4
- data/lib/fastly/models/logging_sftp_response.rb +28 -4
- data/lib/fastly/models/logging_splunk_response.rb +28 -4
- data/lib/fastly/models/logging_sumologic_response.rb +28 -4
- data/lib/fastly/models/logging_syslog_response.rb +28 -4
- data/lib/fastly/models/pool_additional.rb +1 -1
- data/lib/fastly/models/pool_response.rb +1 -1
- data/lib/fastly/models/pool_response_post.rb +1 -1
- data/lib/fastly/models/relationship_service_invitations.rb +1 -0
- data/lib/fastly/models/relationship_service_invitations_service_invitations.rb +1 -0
- data/lib/fastly/models/relationships_for_invitation.rb +1 -0
- data/lib/fastly/models/results.rb +2 -2
- data/lib/fastly/models/tls_certificate_data_attributes.rb +14 -4
- data/lib/fastly/models/tls_csr_data.rb +4 -13
- data/lib/fastly/models/tls_csr_data_attributes.rb +14 -4
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +4 -2
- data/sig.json +1 -1
- 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://
|
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
|
@@ -305,8 +316,10 @@ module Fastly
|
|
305
316
|
# Check to see if the all the properties in the model are valid
|
306
317
|
# @return true if the model is valid
|
307
318
|
def valid?
|
308
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
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"])
|
@@ -321,13 +334,23 @@ module Fastly
|
|
321
334
|
# Custom attribute writer method checking allowed values (enum).
|
322
335
|
# @param [Object] placement Object to be assigned
|
323
336
|
def placement=(placement)
|
324
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
337
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
325
338
|
unless validator.valid?(placement)
|
326
339
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
327
340
|
end
|
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://
|
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?
|
@@ -124,21 +135,33 @@ module Fastly
|
|
124
135
|
# Check to see if the all the properties in the model are valid
|
125
136
|
# @return true if the model is valid
|
126
137
|
def valid?
|
127
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
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
|
|
132
145
|
# Custom attribute writer method checking allowed values (enum).
|
133
146
|
# @param [Object] placement Object to be assigned
|
134
147
|
def placement=(placement)
|
135
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
148
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
136
149
|
unless validator.valid?(placement)
|
137
150
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
138
151
|
end
|
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://
|
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
|
@@ -143,8 +154,10 @@ module Fastly
|
|
143
154
|
# Check to see if the all the properties in the model are valid
|
144
155
|
# @return true if the model is valid
|
145
156
|
def valid?
|
146
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
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
|
@@ -153,13 +166,23 @@ module Fastly
|
|
153
166
|
# Custom attribute writer method checking allowed values (enum).
|
154
167
|
# @param [Object] placement Object to be assigned
|
155
168
|
def placement=(placement)
|
156
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
169
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
157
170
|
unless validator.valid?(placement)
|
158
171
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
159
172
|
end
|
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://
|
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?
|
@@ -124,21 +135,33 @@ module Fastly
|
|
124
135
|
# Check to see if the all the properties in the model are valid
|
125
136
|
# @return true if the model is valid
|
126
137
|
def valid?
|
127
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
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
|
|
132
145
|
# Custom attribute writer method checking allowed values (enum).
|
133
146
|
# @param [Object] placement Object to be assigned
|
134
147
|
def placement=(placement)
|
135
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
148
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
136
149
|
unless validator.valid?(placement)
|
137
150
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
138
151
|
end
|
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://
|
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.
|
@@ -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://
|
25
|
+
# 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.
|
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
|
:'region' => :'region',
|
81
85
|
:'token' => :'token',
|
@@ -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
|
:'region' => :'String',
|
104
109
|
:'token' => :'String',
|
@@ -164,6 +169,12 @@ module Fastly
|
|
164
169
|
self.format = '{\"ddsource\":\"fastly\",\"service\":\"%{req.service_id}V\",\"date\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_start\":\"%{begin:%Y-%m-%dT%H:%M:%S%Z}t\",\"time_end\":\"%{end:%Y-%m-%dT%H:%M:%S%Z}t\",\"http\":{\"request_time_ms\":\"%D\",\"method\":\"%m\",\"url\":\"%{json.escape(req.url)}V\",\"useragent\":\"%{User-Agent}i\",\"referer\":\"%{Referer}i\",\"protocol\":\"%H\",\"request_x_forwarded_for\":\"%{X-Forwarded-For}i\",\"status_code\":\"%s\"},\"network\":{\"client\":{\"ip\":\"%h\",\"name\":\"%{client.as.name}V\",\"number\":\"%{client.as.number}V\",\"connection_speed\":\"%{client.geo.conn_speed}V\"},\"destination\":{\"ip\":\"%A\"},\"geoip\":{\"geo_city\":\"%{client.geo.city.utf8}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"geo_continent_code\":\"%{client.geo.continent_code}V\",\"geo_region\":\"%{client.geo.region}V\"},\"bytes_written\":\"%B\",\"bytes_read\":\"%{req.body_bytes_read}V\"},\"host\":\"%{Fastly-Orig-Host}i\",\"origin_host\":\"%v\",\"is_ipv6\":\"%{if(req.is_ipv6, \\\"true\\\", \\\"false\\\")}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"tls_client_protocol\":\"%{json.escape(tls.client.protocol)}V\",\"tls_client_servername\":\"%{json.escape(tls.client.servername)}V\",\"tls_client_cipher\":\"%{json.escape(tls.client.cipher)}V\",\"tls_client_cipher_sha\":\"%{json.escape(tls.client.ciphers_sha)}V\",\"tls_client_tlsexts_sha\":\"%{json.escape(tls.client.tlsexts_sha)}V\",\"is_h2\":\"%{if(fastly_info.is_h2, \\\"true\\\", \\\"false\\\")}V\",\"is_h2_push\":\"%{if(fastly_info.h2.is_push, \\\"true\\\", \\\"false\\\")}V\",\"h2_stream_id\":\"%{fastly_info.h2.stream_id}V\",\"request_accept_content\":\"%{Accept}i\",\"request_accept_language\":\"%{Accept-Language}i\",\"request_accept_encoding\":\"%{Accept-Encoding}i\",\"request_accept_charset\":\"%{Accept-Charset}i\",\"request_connection\":\"%{Connection}i\",\"request_dnt\":\"%{DNT}i\",\"request_forwarded\":\"%{Forwarded}i\",\"request_via\":\"%{Via}i\",\"request_cache_control\":\"%{Cache-Control}i\",\"request_x_requested_with\":\"%{X-Requested-With}i\",\"request_x_att_device_id\":\"%{X-ATT-Device-Id}i\",\"content_type\":\"%{Content-Type}o\",\"is_cacheable\":\"%{if(fastly_info.state~\\\"^(HIT|MISS)$\\\", \\\"true\\\", \\\"false\\\")}V\",\"response_age\":\"%{Age}o\",\"response_cache_control\":\"%{Cache-Control}o\",\"response_expires\":\"%{Expires}o\",\"response_last_modified\":\"%{Last-Modified}o\",\"response_tsv\":\"%{TSV}o\",\"server_datacenter\":\"%{server.datacenter}V\",\"req_header_size\":\"%{req.header_bytes_read}V\",\"resp_header_size\":\"%{resp.header_bytes_written}V\",\"socket_cwnd\":\"%{client.socket.cwnd}V\",\"socket_nexthop\":\"%{client.socket.nexthop}V\",\"socket_tcpi_rcv_mss\":\"%{client.socket.tcpi_rcv_mss}V\",\"socket_tcpi_snd_mss\":\"%{client.socket.tcpi_snd_mss}V\",\"socket_tcpi_rtt\":\"%{client.socket.tcpi_rtt}V\",\"socket_tcpi_rttvar\":\"%{client.socket.tcpi_rttvar}V\",\"socket_tcpi_rcv_rtt\":\"%{client.socket.tcpi_rcv_rtt}V\",\"socket_tcpi_rcv_space\":\"%{client.socket.tcpi_rcv_space}V\",\"socket_tcpi_last_data_sent\":\"%{client.socket.tcpi_last_data_sent}V\",\"socket_tcpi_total_retrans\":\"%{client.socket.tcpi_total_retrans}V\",\"socket_tcpi_delta_retrans\":\"%{client.socket.tcpi_delta_retrans}V\",\"socket_ploss\":\"%{client.socket.ploss}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", "
|
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", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
@@ -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", "
|
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
|
region == o.region &&
|
264
288
|
token == o.token &&
|
@@ -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, region, token, created_at, deleted_at, updated_at, service_id, version].hash
|
305
|
+
[name, placement, response_condition, format, log_processing_region, format_version, region, token, created_at, deleted_at, updated_at, service_id, version].hash
|
282
306
|
end
|
283
307
|
|
284
308
|
# 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://
|
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,8 +317,10 @@ module Fastly
|
|
306
317
|
# Check to see if the all the properties in the model are valid
|
307
318
|
# @return true if the model is valid
|
308
319
|
def valid?
|
309
|
-
placement_validator = EnumAttributeValidator.new('String', ["none", "
|
320
|
+
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
310
321
|
return false unless placement_validator.valid?(@placement)
|
322
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
323
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
311
324
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
312
325
|
return false unless format_version_validator.valid?(@format_version)
|
313
326
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
@@ -320,13 +333,23 @@ module Fastly
|
|
320
333
|
# Custom attribute writer method checking allowed values (enum).
|
321
334
|
# @param [Object] placement Object to be assigned
|
322
335
|
def placement=(placement)
|
323
|
-
validator = EnumAttributeValidator.new('String', ["none", "
|
336
|
+
validator = EnumAttributeValidator.new('String', ["none", "null"])
|
324
337
|
unless validator.valid?(placement)
|
325
338
|
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
326
339
|
end
|
327
340
|
@placement = placement
|
328
341
|
end
|
329
342
|
|
343
|
+
# Custom attribute writer method checking allowed values (enum).
|
344
|
+
# @param [Object] log_processing_region Object to be assigned
|
345
|
+
def log_processing_region=(log_processing_region)
|
346
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
347
|
+
unless validator.valid?(log_processing_region)
|
348
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
349
|
+
end
|
350
|
+
@log_processing_region = log_processing_region
|
351
|
+
end
|
352
|
+
|
330
353
|
# Custom attribute writer method checking allowed values (enum).
|
331
354
|
# @param [Object] format_version Object to be assigned
|
332
355
|
def format_version=(format_version)
|
@@ -366,6 +389,7 @@ module Fastly
|
|
366
389
|
placement == o.placement &&
|
367
390
|
response_condition == o.response_condition &&
|
368
391
|
format == o.format &&
|
392
|
+
log_processing_region == o.log_processing_region &&
|
369
393
|
format_version == o.format_version &&
|
370
394
|
message_type == o.message_type &&
|
371
395
|
timestamp_format == o.timestamp_format &&
|
@@ -394,7 +418,7 @@ module Fastly
|
|
394
418
|
# Calculates hash code according to all attributes.
|
395
419
|
# @return [Integer] Hash code
|
396
420
|
def hash
|
397
|
-
[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, bucket_name, access_key, secret_key, domain, path, public_key].hash
|
421
|
+
[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, bucket_name, access_key, secret_key, domain, path, public_key].hash
|
398
422
|
end
|
399
423
|
|
400
424
|
# Builds the object from hash
|
@@ -28,7 +28,7 @@ module Fastly
|
|
28
28
|
# Basic Auth password.
|
29
29
|
attr_accessor :password
|
30
30
|
|
31
|
-
# A Fastly [log format string](https://
|
31
|
+
# A Fastly [log format string](https://www.fastly.com/documentation/guides/integrations/streaming-logs/custom-log-formats/). Must produce valid JSON that Elasticsearch can ingest.
|
32
32
|
attr_accessor :format
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|