class Apcera::Drain
Attributes
conf[RW]
max_size[RW]
url[RW]
uuid[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# File lib/apcera/models/drain.rb, line 6 def self.attribute_map { # Drain configuration object. :'conf' => :'conf', # Maximum bytes per log line to send. Defaults to 2048 bytes. :'max_size' => :'max_size', # A syslog URL in the form of syslog://hostname:port. :'url' => :'url', # UUID of the drain object. :'uuid' => :'uuid' } end
new(attributes = {})
click to toggle source
# File lib/apcera/models/drain.rb, line 35 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'conf'] self.conf = attributes[:'conf'] end if attributes[:'max_size'] self.max_size = attributes[:'max_size'] end if attributes[:'url'] self.url = attributes[:'url'] end if attributes[:'uuid'] self.uuid = attributes[:'uuid'] end end
swagger_types()
click to toggle source
attribute type
# File lib/apcera/models/drain.rb, line 25 def self.swagger_types { :'conf' => :'DrainConfig', :'max_size' => :'Integer', :'url' => :'String', :'uuid' => :'String' } end