lib/fastly/models/logging_generic_common.rb in fastly-6.0.2 vs lib/fastly/models/logging_generic_common.rb in fastly-7.0.0
- old
+ new
@@ -17,16 +17,10 @@
attr_accessor :message_type
# A timestamp format
attr_accessor :timestamp_format
- # How frequently log files are finalized so they can be available for reading (in seconds).
- attr_accessor :period
-
- # The level of gzip encoding when sending logs (default `0`, no compression). Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
- attr_accessor :gzip_level
-
# The codec used for compressing your logs. Valid values are `zstd`, `snappy`, and `gzip`. Specifying both `compression_codec` and `gzip_level` in the same API request will result in an error.
attr_accessor :compression_codec
class EnumAttributeValidator
attr_reader :datatype
@@ -53,12 +47,10 @@
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'message_type' => :'message_type',
:'timestamp_format' => :'timestamp_format',
- :'period' => :'period',
- :'gzip_level' => :'gzip_level',
:'compression_codec' => :'compression_codec'
}
end
# Returns all the JSON keys this model knows about
@@ -69,12 +61,10 @@
# Attribute type mapping.
def self.fastly_types
{
:'message_type' => :'String',
:'timestamp_format' => :'String',
- :'period' => :'Integer',
- :'gzip_level' => :'Integer',
:'compression_codec' => :'String'
}
end
# List of attributes with nullable: true
@@ -107,22 +97,10 @@
if attributes.key?(:'timestamp_format')
self.timestamp_format = attributes[:'timestamp_format']
end
- if attributes.key?(:'period')
- self.period = attributes[:'period']
- else
- self.period = 3600
- end
-
- if attributes.key?(:'gzip_level')
- self.gzip_level = attributes[:'gzip_level']
- else
- self.gzip_level = 0
- end
-
if attributes.key?(:'compression_codec')
self.compression_codec = attributes[:'compression_codec']
end
end
@@ -168,12 +146,10 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
message_type == o.message_type &&
timestamp_format == o.timestamp_format &&
- period == o.period &&
- gzip_level == o.gzip_level &&
compression_codec == o.compression_codec
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -182,10 +158,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [message_type, timestamp_format, period, gzip_level, compression_codec].hash
+ [message_type, timestamp_format, compression_codec].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself