lib/fastly/models/logging_newrelic_response.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/logging_newrelic_response.rb in fastly-4.0.0

- old
+ new

@@ -17,11 +17,11 @@ attr_accessor :name # Where in the generated VCL the logging call should be placed. If not set, endpoints with `format_version` of 2 are placed in `vcl_log` and those with `format_version` of 1 are placed in `vcl_deliver`. attr_accessor :placement - # 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`. + # 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`. attr_accessor :format_version # The name of an existing condition in the configured endpoint, or leave blank to always execute. attr_accessor :response_condition @@ -97,11 +97,11 @@ { :'name' => :'String', :'placement' => :'String', :'format_version' => :'Integer', :'response_condition' => :'String', - :'format' => :'Object', + :'format' => :'String', :'token' => :'String', :'region' => :'String', :'created_at' => :'Time', :'deleted_at' => :'Time', :'updated_at' => :'Time', @@ -113,16 +113,13 @@ # List of attributes with nullable: true def self.fastly_nullable Set.new([ :'placement', :'response_condition', - :'format', :'created_at', :'deleted_at', :'updated_at', - :'service_id', - :'version' ]) end # List of class defined in allOf (OpenAPI v3) def self.fastly_all_of @@ -166,9 +163,11 @@ self.response_condition = attributes[:'response_condition'] end if attributes.key?(:'format') self.format = attributes[:'format'] + else + self.format = '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}' end if attributes.key?(:'token') self.token = attributes[:'token'] end