fastly 7.0.0 → 7.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/Gemfile.lock +1 -1
- data/README.md +7 -2
- data/docs/Backend.md +1 -0
- data/docs/BackendApi.md +4 -0
- data/docs/BackendResponse.md +1 -0
- data/docs/EventsApi.md +8 -0
- data/docs/LoggingNewrelicotlpAdditional.md +13 -0
- data/docs/LoggingNewrelicotlpApi.md +252 -0
- data/docs/LoggingNewrelicotlpResponse.md +22 -0
- data/docs/SecretStoreApi.md +3 -3
- data/docs/TlsDomainsApi.md +2 -2
- data/docs/TlsSubscriptionsApi.md +4 -4
- data/lib/fastly/api/backend_api.rb +16 -0
- data/lib/fastly/api/events_api.rb +12 -0
- data/lib/fastly/api/logging_newrelicotlp_api.rb +473 -0
- data/lib/fastly/api/rate_limiter_api.rb +2 -2
- data/lib/fastly/api/secret_store_api.rb +2 -2
- data/lib/fastly/api/tls_domains_api.rb +2 -2
- data/lib/fastly/api/tls_subscriptions_api.rb +4 -4
- data/lib/fastly/configuration.rb +30 -0
- data/lib/fastly/models/backend.rb +29 -1
- data/lib/fastly/models/backend_response.rb +29 -1
- data/lib/fastly/models/logging_newrelicotlp_additional.rb +288 -0
- data/lib/fastly/models/logging_newrelicotlp_response.rb +417 -0
- data/lib/fastly/models/rate_limiter.rb +2 -2
- data/lib/fastly/models/rate_limiter_response.rb +2 -2
- data/lib/fastly/version.rb +1 -1
- data/lib/fastly.rb +3 -0
- data/sig.json +1 -1
- metadata +8 -2
@@ -0,0 +1,417 @@
|
|
1
|
+
=begin
|
2
|
+
#Fastly API
|
3
|
+
|
4
|
+
#Via the Fastly API you can perform any of the operations that are possible within the management console, including creating services, domains, and backends, configuring rules or uploading your own application code, as well as account operations such as user administration and billing reports. The API is organized into collections of endpoints that allow manipulation of objects related to Fastly services and accounts. For the most accurate and up-to-date API reference content, visit our [Developer Hub](https://developer.fastly.com/reference/api/)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: oss@fastly.com
|
8
|
+
|
9
|
+
=end
|
10
|
+
|
11
|
+
require 'date'
|
12
|
+
require 'time'
|
13
|
+
|
14
|
+
module Fastly
|
15
|
+
class LoggingNewrelicotlpResponse
|
16
|
+
# The name for the real-time logging configuration.
|
17
|
+
attr_accessor :name
|
18
|
+
|
19
|
+
# 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`.
|
20
|
+
attr_accessor :placement
|
21
|
+
|
22
|
+
# The name of an existing condition in the configured endpoint, or leave blank to always execute.
|
23
|
+
attr_accessor :response_condition
|
24
|
+
|
25
|
+
# A Fastly [log format string](https://docs.fastly.com/en/guides/custom-log-formats).
|
26
|
+
attr_accessor :format
|
27
|
+
|
28
|
+
# 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
|
+
attr_accessor :format_version
|
30
|
+
|
31
|
+
# The Insert API key from the Account page of your New Relic account. Required.
|
32
|
+
attr_accessor :token
|
33
|
+
|
34
|
+
# The region to which to stream logs.
|
35
|
+
attr_accessor :region
|
36
|
+
|
37
|
+
# (Optional) URL of the New Relic Trace Observer, if you are using New Relic Infinite Tracing.
|
38
|
+
attr_accessor :url
|
39
|
+
|
40
|
+
# Date and time in ISO 8601 format.
|
41
|
+
attr_accessor :created_at
|
42
|
+
|
43
|
+
# Date and time in ISO 8601 format.
|
44
|
+
attr_accessor :deleted_at
|
45
|
+
|
46
|
+
# Date and time in ISO 8601 format.
|
47
|
+
attr_accessor :updated_at
|
48
|
+
|
49
|
+
attr_accessor :service_id
|
50
|
+
|
51
|
+
attr_accessor :version
|
52
|
+
|
53
|
+
class EnumAttributeValidator
|
54
|
+
attr_reader :datatype
|
55
|
+
attr_reader :allowable_values
|
56
|
+
|
57
|
+
def initialize(datatype, allowable_values)
|
58
|
+
@allowable_values = allowable_values.map do |value|
|
59
|
+
case datatype.to_s
|
60
|
+
when /Integer/i
|
61
|
+
value.to_i
|
62
|
+
when /Float/i
|
63
|
+
value.to_f
|
64
|
+
else
|
65
|
+
value
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
def valid?(value)
|
71
|
+
!value || allowable_values.include?(value)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
76
|
+
def self.attribute_map
|
77
|
+
{
|
78
|
+
:'name' => :'name',
|
79
|
+
:'placement' => :'placement',
|
80
|
+
:'response_condition' => :'response_condition',
|
81
|
+
:'format' => :'format',
|
82
|
+
:'format_version' => :'format_version',
|
83
|
+
:'token' => :'token',
|
84
|
+
:'region' => :'region',
|
85
|
+
:'url' => :'url',
|
86
|
+
:'created_at' => :'created_at',
|
87
|
+
:'deleted_at' => :'deleted_at',
|
88
|
+
:'updated_at' => :'updated_at',
|
89
|
+
:'service_id' => :'service_id',
|
90
|
+
:'version' => :'version'
|
91
|
+
}
|
92
|
+
end
|
93
|
+
|
94
|
+
# Returns all the JSON keys this model knows about
|
95
|
+
def self.acceptable_attributes
|
96
|
+
attribute_map.values
|
97
|
+
end
|
98
|
+
|
99
|
+
# Attribute type mapping.
|
100
|
+
def self.fastly_types
|
101
|
+
{
|
102
|
+
:'name' => :'String',
|
103
|
+
:'placement' => :'String',
|
104
|
+
:'response_condition' => :'String',
|
105
|
+
:'format' => :'String',
|
106
|
+
:'format_version' => :'String',
|
107
|
+
:'token' => :'String',
|
108
|
+
:'region' => :'String',
|
109
|
+
:'url' => :'String',
|
110
|
+
:'created_at' => :'Time',
|
111
|
+
:'deleted_at' => :'Time',
|
112
|
+
:'updated_at' => :'Time',
|
113
|
+
:'service_id' => :'String',
|
114
|
+
:'version' => :'String'
|
115
|
+
}
|
116
|
+
end
|
117
|
+
|
118
|
+
# List of attributes with nullable: true
|
119
|
+
def self.fastly_nullable
|
120
|
+
Set.new([
|
121
|
+
:'placement',
|
122
|
+
:'response_condition',
|
123
|
+
:'url',
|
124
|
+
:'created_at',
|
125
|
+
:'deleted_at',
|
126
|
+
:'updated_at',
|
127
|
+
])
|
128
|
+
end
|
129
|
+
|
130
|
+
# List of class defined in allOf (OpenAPI v3)
|
131
|
+
def self.fastly_all_of
|
132
|
+
[
|
133
|
+
:'LoggingCommonResponse',
|
134
|
+
:'LoggingNewrelicotlpAdditional',
|
135
|
+
:'ServiceIdAndVersionString',
|
136
|
+
:'Timestamps'
|
137
|
+
]
|
138
|
+
end
|
139
|
+
|
140
|
+
# Initializes the object
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
def initialize(attributes = {})
|
143
|
+
if (!attributes.is_a?(Hash))
|
144
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Fastly::LoggingNewrelicotlpResponse` initialize method"
|
145
|
+
end
|
146
|
+
|
147
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
148
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
149
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
150
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::LoggingNewrelicotlpResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
151
|
+
end
|
152
|
+
h[k.to_sym] = v
|
153
|
+
}
|
154
|
+
|
155
|
+
if attributes.key?(:'name')
|
156
|
+
self.name = attributes[:'name']
|
157
|
+
end
|
158
|
+
|
159
|
+
if attributes.key?(:'placement')
|
160
|
+
self.placement = attributes[:'placement']
|
161
|
+
end
|
162
|
+
|
163
|
+
if attributes.key?(:'response_condition')
|
164
|
+
self.response_condition = attributes[:'response_condition']
|
165
|
+
end
|
166
|
+
|
167
|
+
if attributes.key?(:'format')
|
168
|
+
self.format = attributes[:'format']
|
169
|
+
else
|
170
|
+
self.format = '{\"timestamp\":\"%{begin:%Y-%m-%dT%H:%M:%S}t\",\"time_elapsed\":\"%{time.elapsed.usec}V\",\"is_tls\":\"%{if(req.is_ssl, \\\"true\\\", \\\"false\\\")}V\",\"client_ip\":\"%{req.http.Fastly-Client-IP}V\",\"geo_city\":\"%{client.geo.city}V\",\"geo_country_code\":\"%{client.geo.country_code}V\",\"request\":\"%{req.request}V\",\"host\":\"%{req.http.Fastly-Orig-Host}V\",\"url\":\"%{json.escape(req.url)}V\",\"request_referer\":\"%{json.escape(req.http.Referer)}V\",\"request_user_agent\":\"%{json.escape(req.http.User-Agent)}V\",\"request_accept_language\":\"%{json.escape(req.http.Accept-Language)}V\",\"request_accept_charset\":\"%{json.escape(req.http.Accept-Charset)}V\",\"cache_status\":\"%{regsub(fastly_info.state, \\\"^(HIT-(SYNTH)|(HITPASS|HIT|MISS|PASS|ERROR|PIPE)).*\\\", \\\"\\\\2\\\\3\\\") }V\"}'
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.key?(:'format_version')
|
174
|
+
self.format_version = attributes[:'format_version']
|
175
|
+
else
|
176
|
+
self.format_version = '2'
|
177
|
+
end
|
178
|
+
|
179
|
+
if attributes.key?(:'token')
|
180
|
+
self.token = attributes[:'token']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.key?(:'region')
|
184
|
+
self.region = attributes[:'region']
|
185
|
+
else
|
186
|
+
self.region = 'US'
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.key?(:'url')
|
190
|
+
self.url = attributes[:'url']
|
191
|
+
else
|
192
|
+
self.url = 'null'
|
193
|
+
end
|
194
|
+
|
195
|
+
if attributes.key?(:'created_at')
|
196
|
+
self.created_at = attributes[:'created_at']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.key?(:'deleted_at')
|
200
|
+
self.deleted_at = attributes[:'deleted_at']
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'updated_at')
|
204
|
+
self.updated_at = attributes[:'updated_at']
|
205
|
+
end
|
206
|
+
|
207
|
+
if attributes.key?(:'service_id')
|
208
|
+
self.service_id = attributes[:'service_id']
|
209
|
+
end
|
210
|
+
|
211
|
+
if attributes.key?(:'version')
|
212
|
+
self.version = attributes[:'version']
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
217
|
+
# @return Array for valid properties with the reasons
|
218
|
+
def list_invalid_properties
|
219
|
+
invalid_properties = Array.new
|
220
|
+
invalid_properties
|
221
|
+
end
|
222
|
+
|
223
|
+
# Check to see if the all the properties in the model are valid
|
224
|
+
# @return true if the model is valid
|
225
|
+
def valid?
|
226
|
+
placement_validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
227
|
+
return false unless placement_validator.valid?(@placement)
|
228
|
+
format_version_validator = EnumAttributeValidator.new('String', ["1", "2"])
|
229
|
+
return false unless format_version_validator.valid?(@format_version)
|
230
|
+
region_validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
231
|
+
return false unless region_validator.valid?(@region)
|
232
|
+
true
|
233
|
+
end
|
234
|
+
|
235
|
+
# Custom attribute writer method checking allowed values (enum).
|
236
|
+
# @param [Object] placement Object to be assigned
|
237
|
+
def placement=(placement)
|
238
|
+
validator = EnumAttributeValidator.new('String', ["none", "waf_debug", "null"])
|
239
|
+
unless validator.valid?(placement)
|
240
|
+
fail ArgumentError, "invalid value for \"placement\", must be one of #{validator.allowable_values}."
|
241
|
+
end
|
242
|
+
@placement = placement
|
243
|
+
end
|
244
|
+
|
245
|
+
# Custom attribute writer method checking allowed values (enum).
|
246
|
+
# @param [Object] format_version Object to be assigned
|
247
|
+
def format_version=(format_version)
|
248
|
+
validator = EnumAttributeValidator.new('String', ["1", "2"])
|
249
|
+
unless validator.valid?(format_version)
|
250
|
+
fail ArgumentError, "invalid value for \"format_version\", must be one of #{validator.allowable_values}."
|
251
|
+
end
|
252
|
+
@format_version = format_version
|
253
|
+
end
|
254
|
+
|
255
|
+
# Custom attribute writer method checking allowed values (enum).
|
256
|
+
# @param [Object] region Object to be assigned
|
257
|
+
def region=(region)
|
258
|
+
validator = EnumAttributeValidator.new('String', ["US", "EU"])
|
259
|
+
unless validator.valid?(region)
|
260
|
+
fail ArgumentError, "invalid value for \"region\", must be one of #{validator.allowable_values}."
|
261
|
+
end
|
262
|
+
@region = region
|
263
|
+
end
|
264
|
+
|
265
|
+
# Checks equality by comparing each attribute.
|
266
|
+
# @param [Object] Object to be compared
|
267
|
+
def ==(o)
|
268
|
+
return true if self.equal?(o)
|
269
|
+
self.class == o.class &&
|
270
|
+
name == o.name &&
|
271
|
+
placement == o.placement &&
|
272
|
+
response_condition == o.response_condition &&
|
273
|
+
format == o.format &&
|
274
|
+
format_version == o.format_version &&
|
275
|
+
token == o.token &&
|
276
|
+
region == o.region &&
|
277
|
+
url == o.url &&
|
278
|
+
created_at == o.created_at &&
|
279
|
+
deleted_at == o.deleted_at &&
|
280
|
+
updated_at == o.updated_at &&
|
281
|
+
service_id == o.service_id &&
|
282
|
+
version == o.version
|
283
|
+
end
|
284
|
+
|
285
|
+
# @see the `==` method
|
286
|
+
# @param [Object] Object to be compared
|
287
|
+
def eql?(o)
|
288
|
+
self == o
|
289
|
+
end
|
290
|
+
|
291
|
+
# Calculates hash code according to all attributes.
|
292
|
+
# @return [Integer] Hash code
|
293
|
+
def hash
|
294
|
+
[name, placement, response_condition, format, format_version, token, region, url, created_at, deleted_at, updated_at, service_id, version].hash
|
295
|
+
end
|
296
|
+
|
297
|
+
# Builds the object from hash
|
298
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
299
|
+
# @return [Object] Returns the model itself
|
300
|
+
def self.build_from_hash(attributes)
|
301
|
+
new.build_from_hash(attributes)
|
302
|
+
end
|
303
|
+
|
304
|
+
# Builds the object from hash
|
305
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
306
|
+
# @return [Object] Returns the model itself
|
307
|
+
def build_from_hash(attributes)
|
308
|
+
return nil unless attributes.is_a?(Hash)
|
309
|
+
self.class.fastly_types.each_pair do |key, type|
|
310
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.fastly_nullable.include?(key)
|
311
|
+
self.send("#{key}=", nil)
|
312
|
+
elsif type =~ /\AArray<(.*)>/i
|
313
|
+
# check to ensure the input is an array given that the attribute
|
314
|
+
# is documented as an array but the input is not
|
315
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
316
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
317
|
+
end
|
318
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
319
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
323
|
+
self
|
324
|
+
end
|
325
|
+
|
326
|
+
# Deserializes the data based on type
|
327
|
+
# @param string type Data type
|
328
|
+
# @param string value Value to be deserialized
|
329
|
+
# @return [Object] Deserialized data
|
330
|
+
def _deserialize(type, value)
|
331
|
+
case type.to_sym
|
332
|
+
when :Time
|
333
|
+
Time.parse(value)
|
334
|
+
when :Date
|
335
|
+
Date.parse(value)
|
336
|
+
when :String
|
337
|
+
value.to_s
|
338
|
+
when :Integer
|
339
|
+
value.to_i
|
340
|
+
when :Float
|
341
|
+
value.to_f
|
342
|
+
when :Boolean
|
343
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
344
|
+
true
|
345
|
+
else
|
346
|
+
false
|
347
|
+
end
|
348
|
+
when :Object
|
349
|
+
# generic object (usually a Hash), return directly
|
350
|
+
value
|
351
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
352
|
+
inner_type = Regexp.last_match[:inner_type]
|
353
|
+
value.map { |v| _deserialize(inner_type, v) }
|
354
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
355
|
+
k_type = Regexp.last_match[:k_type]
|
356
|
+
v_type = Regexp.last_match[:v_type]
|
357
|
+
{}.tap do |hash|
|
358
|
+
value.each do |k, v|
|
359
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
360
|
+
end
|
361
|
+
end
|
362
|
+
else # model
|
363
|
+
# models (e.g. Pet) or oneOf
|
364
|
+
klass = Fastly.const_get(type)
|
365
|
+
klass.respond_to?(:fastly_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
366
|
+
end
|
367
|
+
end
|
368
|
+
|
369
|
+
# Returns the string representation of the object
|
370
|
+
# @return [String] String presentation of the object
|
371
|
+
def to_s
|
372
|
+
to_hash.to_s
|
373
|
+
end
|
374
|
+
|
375
|
+
# to_body is an alias to to_hash (backward compatibility)
|
376
|
+
# @return [Hash] Returns the object in the form of hash
|
377
|
+
def to_body
|
378
|
+
to_hash
|
379
|
+
end
|
380
|
+
|
381
|
+
# Returns the object in the form of hash
|
382
|
+
# @return [Hash] Returns the object in the form of hash
|
383
|
+
def to_hash
|
384
|
+
hash = {}
|
385
|
+
self.class.attribute_map.each_pair do |attr, param|
|
386
|
+
value = self.send(attr)
|
387
|
+
if value.nil?
|
388
|
+
is_nullable = self.class.fastly_nullable.include?(attr)
|
389
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
390
|
+
end
|
391
|
+
|
392
|
+
hash[param] = _to_hash(value)
|
393
|
+
end
|
394
|
+
hash
|
395
|
+
end
|
396
|
+
|
397
|
+
# Outputs non-array value in the form of hash
|
398
|
+
# For object, use to_hash. Otherwise, just return the value
|
399
|
+
# @param [Object] value Any valid value
|
400
|
+
# @return [Hash] Returns the value in the form of hash
|
401
|
+
def _to_hash(value)
|
402
|
+
if value.is_a?(Array)
|
403
|
+
value.compact.map { |v| _to_hash(v) }
|
404
|
+
elsif value.is_a?(Hash)
|
405
|
+
{}.tap do |hash|
|
406
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
407
|
+
end
|
408
|
+
elsif value.respond_to? :to_hash
|
409
|
+
value.to_hash
|
410
|
+
else
|
411
|
+
value
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
end
|
416
|
+
|
417
|
+
end
|
@@ -270,7 +270,7 @@ module Fastly
|
|
270
270
|
return false if !@action.nil? && @action.to_s.length < 1
|
271
271
|
return false if !@response_object_name.nil? && @response_object_name.to_s.length > 255
|
272
272
|
return false if !@response_object_name.nil? && @response_object_name.to_s.length < 1
|
273
|
-
logger_type_validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
273
|
+
logger_type_validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "newrelicotlp", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
274
274
|
return false unless logger_type_validator.valid?(@logger_type)
|
275
275
|
true
|
276
276
|
end
|
@@ -378,7 +378,7 @@ module Fastly
|
|
378
378
|
# Custom attribute writer method checking allowed values (enum).
|
379
379
|
# @param [Object] logger_type Object to be assigned
|
380
380
|
def logger_type=(logger_type)
|
381
|
-
validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
381
|
+
validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "newrelicotlp", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
382
382
|
unless validator.valid?(logger_type)
|
383
383
|
fail ArgumentError, "invalid value for \"logger_type\", must be one of #{validator.allowable_values}."
|
384
384
|
end
|
@@ -335,7 +335,7 @@ module Fastly
|
|
335
335
|
return false if !@action.nil? && @action.to_s.length < 1
|
336
336
|
return false if !@response_object_name.nil? && @response_object_name.to_s.length > 255
|
337
337
|
return false if !@response_object_name.nil? && @response_object_name.to_s.length < 1
|
338
|
-
logger_type_validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
338
|
+
logger_type_validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "newrelicotlp", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
339
339
|
return false unless logger_type_validator.valid?(@logger_type)
|
340
340
|
true
|
341
341
|
end
|
@@ -443,7 +443,7 @@ module Fastly
|
|
443
443
|
# Custom attribute writer method checking allowed values (enum).
|
444
444
|
# @param [Object] logger_type Object to be assigned
|
445
445
|
def logger_type=(logger_type)
|
446
|
-
validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
446
|
+
validator = EnumAttributeValidator.new('String', ["azureblob", "bigquery", "cloudfiles", "datadog", "digitalocean", "elasticsearch", "ftp", "gcs", "googleanalytics", "heroku", "honeycomb", "http", "https", "kafka", "kinesis", "logentries", "loggly", "logshuttle", "newrelic", "newrelicotlp", "openstack", "papertrail", "pubsub", "s3", "scalyr", "sftp", "splunk", "stackdriver", "sumologic", "syslog"])
|
447
447
|
unless validator.valid?(logger_type)
|
448
448
|
fail ArgumentError, "invalid value for \"logger_type\", must be one of #{validator.allowable_values}."
|
449
449
|
end
|
data/lib/fastly/version.rb
CHANGED
data/lib/fastly.rb
CHANGED
@@ -246,6 +246,8 @@ require 'fastly/models/logging_logshuttle_response'
|
|
246
246
|
require 'fastly/models/logging_message_type'
|
247
247
|
require 'fastly/models/logging_newrelic_additional'
|
248
248
|
require 'fastly/models/logging_newrelic_response'
|
249
|
+
require 'fastly/models/logging_newrelicotlp_additional'
|
250
|
+
require 'fastly/models/logging_newrelicotlp_response'
|
249
251
|
require 'fastly/models/logging_openstack_additional'
|
250
252
|
require 'fastly/models/logging_openstack_response'
|
251
253
|
require 'fastly/models/logging_papertrail_response'
|
@@ -737,6 +739,7 @@ require 'fastly/api/logging_logentries_api'
|
|
737
739
|
require 'fastly/api/logging_loggly_api'
|
738
740
|
require 'fastly/api/logging_logshuttle_api'
|
739
741
|
require 'fastly/api/logging_newrelic_api'
|
742
|
+
require 'fastly/api/logging_newrelicotlp_api'
|
740
743
|
require 'fastly/api/logging_openstack_api'
|
741
744
|
require 'fastly/api/logging_papertrail_api'
|
742
745
|
require 'fastly/api/logging_pubsub_api'
|
data/sig.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"G": "
|
1
|
+
{"G": "95706192", "D": "691cfbf5"}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fastly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -346,6 +346,9 @@ files:
|
|
346
346
|
- docs/LoggingNewrelicAdditional.md
|
347
347
|
- docs/LoggingNewrelicApi.md
|
348
348
|
- docs/LoggingNewrelicResponse.md
|
349
|
+
- docs/LoggingNewrelicotlpAdditional.md
|
350
|
+
- docs/LoggingNewrelicotlpApi.md
|
351
|
+
- docs/LoggingNewrelicotlpResponse.md
|
349
352
|
- docs/LoggingOpenstackAdditional.md
|
350
353
|
- docs/LoggingOpenstackApi.md
|
351
354
|
- docs/LoggingOpenstackResponse.md
|
@@ -889,6 +892,7 @@ files:
|
|
889
892
|
- lib/fastly/api/logging_loggly_api.rb
|
890
893
|
- lib/fastly/api/logging_logshuttle_api.rb
|
891
894
|
- lib/fastly/api/logging_newrelic_api.rb
|
895
|
+
- lib/fastly/api/logging_newrelicotlp_api.rb
|
892
896
|
- lib/fastly/api/logging_openstack_api.rb
|
893
897
|
- lib/fastly/api/logging_papertrail_api.rb
|
894
898
|
- lib/fastly/api/logging_pubsub_api.rb
|
@@ -1175,6 +1179,8 @@ files:
|
|
1175
1179
|
- lib/fastly/models/logging_message_type.rb
|
1176
1180
|
- lib/fastly/models/logging_newrelic_additional.rb
|
1177
1181
|
- lib/fastly/models/logging_newrelic_response.rb
|
1182
|
+
- lib/fastly/models/logging_newrelicotlp_additional.rb
|
1183
|
+
- lib/fastly/models/logging_newrelicotlp_response.rb
|
1178
1184
|
- lib/fastly/models/logging_openstack_additional.rb
|
1179
1185
|
- lib/fastly/models/logging_openstack_response.rb
|
1180
1186
|
- lib/fastly/models/logging_papertrail_response.rb
|