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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -3
- 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/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 +18 -4
- data/lib/fastly/api/logging_bigquery_api.rb +18 -4
- data/lib/fastly/api/logging_cloudfiles_api.rb +18 -4
- data/lib/fastly/api/logging_datadog_api.rb +18 -4
- data/lib/fastly/api/logging_digitalocean_api.rb +18 -4
- data/lib/fastly/api/logging_elasticsearch_api.rb +18 -4
- data/lib/fastly/api/logging_ftp_api.rb +18 -4
- data/lib/fastly/api/logging_gcs_api.rb +18 -4
- data/lib/fastly/api/logging_grafanacloudlogs_api.rb +18 -4
- data/lib/fastly/api/logging_heroku_api.rb +18 -4
- data/lib/fastly/api/logging_honeycomb_api.rb +18 -4
- data/lib/fastly/api/logging_https_api.rb +18 -4
- data/lib/fastly/api/logging_kafka_api.rb +9 -2
- data/lib/fastly/api/logging_kinesis_api.rb +2 -2
- data/lib/fastly/api/logging_logentries_api.rb +18 -4
- data/lib/fastly/api/logging_loggly_api.rb +18 -4
- data/lib/fastly/api/logging_logshuttle_api.rb +18 -4
- data/lib/fastly/api/logging_newrelic_api.rb +18 -4
- data/lib/fastly/api/logging_newrelicotlp_api.rb +18 -4
- data/lib/fastly/api/logging_openstack_api.rb +18 -4
- data/lib/fastly/api/logging_papertrail_api.rb +18 -4
- data/lib/fastly/api/logging_pubsub_api.rb +18 -4
- data/lib/fastly/api/logging_s3_api.rb +18 -4
- data/lib/fastly/api/logging_scalyr_api.rb +18 -4
- data/lib/fastly/api/logging_sftp_api.rb +18 -4
- data/lib/fastly/api/logging_splunk_api.rb +18 -4
- data/lib/fastly/api/logging_sumologic_api.rb +18 -4
- data/lib/fastly/api/logging_syslog_api.rb +18 -4
- data/lib/fastly/api/pool_api.rb +4 -4
- data/lib/fastly/api/purge_api.rb +2 -2
- data/lib/fastly/models/backend.rb +2 -3
- data/lib/fastly/models/backend_response.rb +2 -3
- 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 +26 -2
- data/lib/fastly/models/logging_bigquery_additional.rb +1 -1
- data/lib/fastly/models/logging_bigquery_response.rb +26 -2
- data/lib/fastly/models/logging_cloudfiles_response.rb +26 -2
- data/lib/fastly/models/logging_common.rb +29 -5
- data/lib/fastly/models/logging_common_response.rb +26 -2
- data/lib/fastly/models/logging_common_response_all_of.rb +29 -5
- data/lib/fastly/models/logging_datadog_additional.rb +1 -1
- data/lib/fastly/models/logging_datadog_response.rb +26 -2
- data/lib/fastly/models/logging_digitalocean_response.rb +26 -2
- data/lib/fastly/models/logging_elasticsearch_additional.rb +1 -1
- data/lib/fastly/models/logging_elasticsearch_response.rb +26 -2
- data/lib/fastly/models/logging_ftp_response.rb +26 -2
- data/lib/fastly/models/logging_gcs_response.rb +26 -2
- data/lib/fastly/models/logging_google_pubsub_additional.rb +1 -1
- data/lib/fastly/models/logging_google_pubsub_response.rb +26 -2
- data/lib/fastly/models/logging_grafanacloudlogs_additional.rb +1 -1
- data/lib/fastly/models/logging_grafanacloudlogs_response.rb +26 -2
- data/lib/fastly/models/logging_heroku_response.rb +26 -2
- data/lib/fastly/models/logging_honeycomb_additional.rb +1 -1
- data/lib/fastly/models/logging_honeycomb_response.rb +26 -2
- data/lib/fastly/models/logging_https_additional.rb +1 -1
- data/lib/fastly/models/logging_https_response.rb +26 -2
- data/lib/fastly/models/logging_kafka_response.rb +26 -2
- data/lib/fastly/models/logging_kafka_response_post.rb +26 -2
- 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 +26 -2
- data/lib/fastly/models/logging_loggly_response.rb +26 -2
- data/lib/fastly/models/logging_logshuttle_response.rb +26 -2
- data/lib/fastly/models/logging_newrelic_additional.rb +1 -1
- data/lib/fastly/models/logging_newrelic_response.rb +26 -2
- data/lib/fastly/models/logging_newrelicotlp_additional.rb +1 -1
- data/lib/fastly/models/logging_newrelicotlp_response.rb +26 -2
- data/lib/fastly/models/logging_openstack_response.rb +26 -2
- data/lib/fastly/models/logging_papertrail_response.rb +26 -2
- data/lib/fastly/models/logging_s3_response.rb +26 -2
- data/lib/fastly/models/logging_scalyr_response.rb +26 -2
- data/lib/fastly/models/logging_sftp_response.rb +26 -2
- data/lib/fastly/models/logging_splunk_response.rb +26 -2
- data/lib/fastly/models/logging_sumologic_response.rb +26 -2
- data/lib/fastly/models/logging_syslog_response.rb +26 -2
- 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/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/). 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
|
@@ -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", "US3", "US5", "EU (legacy, same as EU1)", "EU1", "AP1"])
|
@@ -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
|
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
|
@@ -308,6 +319,8 @@ module Fastly
|
|
308
319
|
def valid?
|
309
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"])
|
@@ -327,6 +340,16 @@ module Fastly
|
|
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.
|
@@ -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 Elasticsearch 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
|
|
@@ -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
|
:'tls_ca_cert' => :'tls_ca_cert',
|
108
112
|
:'tls_client_cert' => :'tls_client_cert',
|
@@ -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
|
:'tls_ca_cert' => :'String',
|
140
145
|
:'tls_client_cert' => :'String',
|
@@ -216,6 +221,12 @@ module Fastly
|
|
216
221
|
self.format = attributes[:'format']
|
217
222
|
end
|
218
223
|
|
224
|
+
if attributes.key?(:'log_processing_region')
|
225
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
226
|
+
else
|
227
|
+
self.log_processing_region = 'none'
|
228
|
+
end
|
229
|
+
|
219
230
|
if attributes.key?(:'format_version')
|
220
231
|
self.format_version = attributes[:'format_version']
|
221
232
|
else
|
@@ -311,6 +322,8 @@ module Fastly
|
|
311
322
|
def valid?
|
312
323
|
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
313
324
|
return false unless placement_validator.valid?(@placement)
|
325
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
326
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
314
327
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
315
328
|
return false unless format_version_validator.valid?(@format_version)
|
316
329
|
true
|
@@ -326,6 +339,16 @@ module Fastly
|
|
326
339
|
@placement = placement
|
327
340
|
end
|
328
341
|
|
342
|
+
# Custom attribute writer method checking allowed values (enum).
|
343
|
+
# @param [Object] log_processing_region Object to be assigned
|
344
|
+
def log_processing_region=(log_processing_region)
|
345
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
346
|
+
unless validator.valid?(log_processing_region)
|
347
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
348
|
+
end
|
349
|
+
@log_processing_region = log_processing_region
|
350
|
+
end
|
351
|
+
|
329
352
|
# Custom attribute writer method checking allowed values (enum).
|
330
353
|
# @param [Object] format_version Object to be assigned
|
331
354
|
def format_version=(format_version)
|
@@ -345,6 +368,7 @@ module Fastly
|
|
345
368
|
placement == o.placement &&
|
346
369
|
response_condition == o.response_condition &&
|
347
370
|
format == o.format &&
|
371
|
+
log_processing_region == o.log_processing_region &&
|
348
372
|
format_version == o.format_version &&
|
349
373
|
tls_ca_cert == o.tls_ca_cert &&
|
350
374
|
tls_client_cert == o.tls_client_cert &&
|
@@ -373,7 +397,7 @@ module Fastly
|
|
373
397
|
# Calculates hash code according to all attributes.
|
374
398
|
# @return [Integer] Hash code
|
375
399
|
def hash
|
376
|
-
[name, placement, response_condition, format, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, request_max_entries, request_max_bytes, index, url, pipeline, user, password, created_at, deleted_at, updated_at, service_id, version].hash
|
400
|
+
[name, placement, response_condition, format, log_processing_region, format_version, tls_ca_cert, tls_client_cert, tls_client_key, tls_hostname, request_max_entries, request_max_bytes, index, url, pipeline, user, password, created_at, deleted_at, updated_at, service_id, version].hash
|
377
401
|
end
|
378
402
|
|
379
403
|
# 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
|
|
@@ -109,6 +112,7 @@ module Fastly
|
|
109
112
|
:'placement' => :'placement',
|
110
113
|
:'response_condition' => :'response_condition',
|
111
114
|
:'format' => :'format',
|
115
|
+
:'log_processing_region' => :'log_processing_region',
|
112
116
|
:'format_version' => :'format_version',
|
113
117
|
:'message_type' => :'message_type',
|
114
118
|
:'timestamp_format' => :'timestamp_format',
|
@@ -143,6 +147,7 @@ module Fastly
|
|
143
147
|
:'placement' => :'String',
|
144
148
|
:'response_condition' => :'String',
|
145
149
|
:'format' => :'String',
|
150
|
+
:'log_processing_region' => :'String',
|
146
151
|
:'format_version' => :'String',
|
147
152
|
:'message_type' => :'String',
|
148
153
|
:'timestamp_format' => :'String',
|
@@ -223,6 +228,12 @@ module Fastly
|
|
223
228
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
224
229
|
end
|
225
230
|
|
231
|
+
if attributes.key?(:'log_processing_region')
|
232
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
233
|
+
else
|
234
|
+
self.log_processing_region = 'none'
|
235
|
+
end
|
236
|
+
|
226
237
|
if attributes.key?(:'format_version')
|
227
238
|
self.format_version = attributes[:'format_version']
|
228
239
|
else
|
@@ -324,6 +335,8 @@ module Fastly
|
|
324
335
|
def valid?
|
325
336
|
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
326
337
|
return false unless placement_validator.valid?(@placement)
|
338
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
339
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
327
340
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
328
341
|
return false unless format_version_validator.valid?(@format_version)
|
329
342
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
@@ -343,6 +356,16 @@ module Fastly
|
|
343
356
|
@placement = placement
|
344
357
|
end
|
345
358
|
|
359
|
+
# Custom attribute writer method checking allowed values (enum).
|
360
|
+
# @param [Object] log_processing_region Object to be assigned
|
361
|
+
def log_processing_region=(log_processing_region)
|
362
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
363
|
+
unless validator.valid?(log_processing_region)
|
364
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
365
|
+
end
|
366
|
+
@log_processing_region = log_processing_region
|
367
|
+
end
|
368
|
+
|
346
369
|
# Custom attribute writer method checking allowed values (enum).
|
347
370
|
# @param [Object] format_version Object to be assigned
|
348
371
|
def format_version=(format_version)
|
@@ -382,6 +405,7 @@ module Fastly
|
|
382
405
|
placement == o.placement &&
|
383
406
|
response_condition == o.response_condition &&
|
384
407
|
format == o.format &&
|
408
|
+
log_processing_region == o.log_processing_region &&
|
385
409
|
format_version == o.format_version &&
|
386
410
|
message_type == o.message_type &&
|
387
411
|
timestamp_format == o.timestamp_format &&
|
@@ -412,7 +436,7 @@ module Fastly
|
|
412
436
|
# Calculates hash code according to all attributes.
|
413
437
|
# @return [Integer] Hash code
|
414
438
|
def hash
|
415
|
-
[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, address, hostname, ipv4, password, path, public_key, user, port].hash
|
439
|
+
[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, address, hostname, ipv4, password, path, public_key, user, port].hash
|
416
440
|
end
|
417
441
|
|
418
442
|
# 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
|
|
@@ -105,6 +108,7 @@ module Fastly
|
|
105
108
|
:'placement' => :'placement',
|
106
109
|
:'response_condition' => :'response_condition',
|
107
110
|
:'format' => :'format',
|
111
|
+
:'log_processing_region' => :'log_processing_region',
|
108
112
|
:'format_version' => :'format_version',
|
109
113
|
:'message_type' => :'message_type',
|
110
114
|
:'timestamp_format' => :'timestamp_format',
|
@@ -138,6 +142,7 @@ module Fastly
|
|
138
142
|
:'placement' => :'String',
|
139
143
|
:'response_condition' => :'String',
|
140
144
|
:'format' => :'String',
|
145
|
+
:'log_processing_region' => :'String',
|
141
146
|
:'format_version' => :'String',
|
142
147
|
:'message_type' => :'String',
|
143
148
|
:'timestamp_format' => :'String',
|
@@ -217,6 +222,12 @@ module Fastly
|
|
217
222
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
218
223
|
end
|
219
224
|
|
225
|
+
if attributes.key?(:'log_processing_region')
|
226
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
227
|
+
else
|
228
|
+
self.log_processing_region = 'none'
|
229
|
+
end
|
230
|
+
|
220
231
|
if attributes.key?(:'format_version')
|
221
232
|
self.format_version = attributes[:'format_version']
|
222
233
|
else
|
@@ -314,6 +325,8 @@ module Fastly
|
|
314
325
|
def valid?
|
315
326
|
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
316
327
|
return false unless placement_validator.valid?(@placement)
|
328
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
329
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
317
330
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
318
331
|
return false unless format_version_validator.valid?(@format_version)
|
319
332
|
message_type_validator = EnumAttributeValidator.new('String', ["classic", "loggly", "logplex", "blank"])
|
@@ -333,6 +346,16 @@ module Fastly
|
|
333
346
|
@placement = placement
|
334
347
|
end
|
335
348
|
|
349
|
+
# Custom attribute writer method checking allowed values (enum).
|
350
|
+
# @param [Object] log_processing_region Object to be assigned
|
351
|
+
def log_processing_region=(log_processing_region)
|
352
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
353
|
+
unless validator.valid?(log_processing_region)
|
354
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
355
|
+
end
|
356
|
+
@log_processing_region = log_processing_region
|
357
|
+
end
|
358
|
+
|
336
359
|
# Custom attribute writer method checking allowed values (enum).
|
337
360
|
# @param [Object] format_version Object to be assigned
|
338
361
|
def format_version=(format_version)
|
@@ -372,6 +395,7 @@ module Fastly
|
|
372
395
|
placement == o.placement &&
|
373
396
|
response_condition == o.response_condition &&
|
374
397
|
format == o.format &&
|
398
|
+
log_processing_region == o.log_processing_region &&
|
375
399
|
format_version == o.format_version &&
|
376
400
|
message_type == o.message_type &&
|
377
401
|
timestamp_format == o.timestamp_format &&
|
@@ -401,7 +425,7 @@ module Fastly
|
|
401
425
|
# Calculates hash code according to all attributes.
|
402
426
|
# @return [Integer] Hash code
|
403
427
|
def hash
|
404
|
-
[name, placement, response_condition, format, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, user, secret_key, account_name, created_at, deleted_at, updated_at, service_id, version, bucket_name, path, public_key, project_id].hash
|
428
|
+
[name, placement, response_condition, format, log_processing_region, format_version, message_type, timestamp_format, compression_codec, period, gzip_level, user, secret_key, account_name, created_at, deleted_at, updated_at, service_id, version, bucket_name, path, public_key, project_id].hash
|
405
429
|
end
|
406
430
|
|
407
431
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ module Fastly
|
|
16
16
|
# The Google Cloud Pub/Sub topic to which logs will be published. Required.
|
17
17
|
attr_accessor :topic
|
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/).
|
20
20
|
attr_accessor :format
|
21
21
|
|
22
22
|
# Your Google Cloud Platform project ID. 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/).
|
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
|
|
@@ -85,6 +88,7 @@ module Fastly
|
|
85
88
|
:'placement' => :'placement',
|
86
89
|
:'response_condition' => :'response_condition',
|
87
90
|
:'format' => :'format',
|
91
|
+
:'log_processing_region' => :'log_processing_region',
|
88
92
|
:'format_version' => :'format_version',
|
89
93
|
:'user' => :'user',
|
90
94
|
:'secret_key' => :'secret_key',
|
@@ -111,6 +115,7 @@ module Fastly
|
|
111
115
|
:'placement' => :'String',
|
112
116
|
:'response_condition' => :'String',
|
113
117
|
:'format' => :'String',
|
118
|
+
:'log_processing_region' => :'String',
|
114
119
|
:'format_version' => :'String',
|
115
120
|
:'user' => :'String',
|
116
121
|
:'secret_key' => :'String',
|
@@ -180,6 +185,12 @@ module Fastly
|
|
180
185
|
self.format = '%h %l %u %t \"%r\" %>s %b'
|
181
186
|
end
|
182
187
|
|
188
|
+
if attributes.key?(:'log_processing_region')
|
189
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
190
|
+
else
|
191
|
+
self.log_processing_region = 'none'
|
192
|
+
end
|
193
|
+
|
183
194
|
if attributes.key?(:'format_version')
|
184
195
|
self.format_version = attributes[:'format_version']
|
185
196
|
else
|
@@ -239,6 +250,8 @@ module Fastly
|
|
239
250
|
def valid?
|
240
251
|
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
241
252
|
return false unless placement_validator.valid?(@placement)
|
253
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
254
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
242
255
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
243
256
|
return false unless format_version_validator.valid?(@format_version)
|
244
257
|
true
|
@@ -254,6 +267,16 @@ module Fastly
|
|
254
267
|
@placement = placement
|
255
268
|
end
|
256
269
|
|
270
|
+
# Custom attribute writer method checking allowed values (enum).
|
271
|
+
# @param [Object] log_processing_region Object to be assigned
|
272
|
+
def log_processing_region=(log_processing_region)
|
273
|
+
validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
274
|
+
unless validator.valid?(log_processing_region)
|
275
|
+
fail ArgumentError, "invalid value for \"log_processing_region\", must be one of #{validator.allowable_values}."
|
276
|
+
end
|
277
|
+
@log_processing_region = log_processing_region
|
278
|
+
end
|
279
|
+
|
257
280
|
# Custom attribute writer method checking allowed values (enum).
|
258
281
|
# @param [Object] format_version Object to be assigned
|
259
282
|
def format_version=(format_version)
|
@@ -273,6 +296,7 @@ module Fastly
|
|
273
296
|
placement == o.placement &&
|
274
297
|
response_condition == o.response_condition &&
|
275
298
|
format == o.format &&
|
299
|
+
log_processing_region == o.log_processing_region &&
|
276
300
|
format_version == o.format_version &&
|
277
301
|
user == o.user &&
|
278
302
|
secret_key == o.secret_key &&
|
@@ -295,7 +319,7 @@ module Fastly
|
|
295
319
|
# Calculates hash code according to all attributes.
|
296
320
|
# @return [Integer] Hash code
|
297
321
|
def hash
|
298
|
-
[name, placement, response_condition, format, format_version, user, secret_key, account_name, topic, project_id, created_at, deleted_at, updated_at, service_id, version].hash
|
322
|
+
[name, placement, response_condition, format, log_processing_region, format_version, user, secret_key, account_name, topic, project_id, created_at, deleted_at, updated_at, service_id, version].hash
|
299
323
|
end
|
300
324
|
|
301
325
|
# Builds the object from hash
|
@@ -13,7 +13,7 @@ require 'time'
|
|
13
13
|
|
14
14
|
module Fastly
|
15
15
|
class LoggingGrafanacloudlogsAdditional
|
16
|
-
# A Fastly [log format string](https://
|
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 Grafana Cloud Logs Dataset you want to log to.
|
@@ -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
|
|
@@ -82,6 +85,7 @@ module Fastly
|
|
82
85
|
:'placement' => :'placement',
|
83
86
|
:'response_condition' => :'response_condition',
|
84
87
|
:'format' => :'format',
|
88
|
+
:'log_processing_region' => :'log_processing_region',
|
85
89
|
:'format_version' => :'format_version',
|
86
90
|
:'user' => :'user',
|
87
91
|
:'url' => :'url',
|
@@ -107,6 +111,7 @@ module Fastly
|
|
107
111
|
:'placement' => :'String',
|
108
112
|
:'response_condition' => :'String',
|
109
113
|
:'format' => :'String',
|
114
|
+
:'log_processing_region' => :'String',
|
110
115
|
:'format_version' => :'String',
|
111
116
|
:'user' => :'String',
|
112
117
|
:'url' => :'String',
|
@@ -172,6 +177,12 @@ module Fastly
|
|
172
177
|
self.format = attributes[:'format']
|
173
178
|
end
|
174
179
|
|
180
|
+
if attributes.key?(:'log_processing_region')
|
181
|
+
self.log_processing_region = attributes[:'log_processing_region']
|
182
|
+
else
|
183
|
+
self.log_processing_region = 'none'
|
184
|
+
end
|
185
|
+
|
175
186
|
if attributes.key?(:'format_version')
|
176
187
|
self.format_version = attributes[:'format_version']
|
177
188
|
else
|
@@ -227,6 +238,8 @@ module Fastly
|
|
227
238
|
def valid?
|
228
239
|
placement_validator = EnumAttributeValidator.new('String', ["none", "null"])
|
229
240
|
return false unless placement_validator.valid?(@placement)
|
241
|
+
log_processing_region_validator = EnumAttributeValidator.new('String', ["none", "eu", "us"])
|
242
|
+
return false unless log_processing_region_validator.valid?(@log_processing_region)
|
230
243
|
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
231
244
|
return false unless format_version_validator.valid?(@format_version)
|
232
245
|
true
|
@@ -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)
|
@@ -261,6 +284,7 @@ module Fastly
|
|
261
284
|
placement == o.placement &&
|
262
285
|
response_condition == o.response_condition &&
|
263
286
|
format == o.format &&
|
287
|
+
log_processing_region == o.log_processing_region &&
|
264
288
|
format_version == o.format_version &&
|
265
289
|
user == o.user &&
|
266
290
|
url == o.url &&
|
@@ -282,7 +306,7 @@ module Fastly
|
|
282
306
|
# Calculates hash code according to all attributes.
|
283
307
|
# @return [Integer] Hash code
|
284
308
|
def hash
|
285
|
-
[name, placement, response_condition, format, format_version, user, url, token, index, created_at, deleted_at, updated_at, service_id, version].hash
|
309
|
+
[name, placement, response_condition, format, log_processing_region, format_version, user, url, token, index, created_at, deleted_at, updated_at, service_id, version].hash
|
286
310
|
end
|
287
311
|
|
288
312
|
# Builds the object from hash
|