Class: Apcera::Log
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::Log
- Defined in:
- lib/apcera/models/log.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
-
#file ⇒ Object
Returns the value of attribute file.
-
#jobid ⇒ Object
Returns the value of attribute jobid.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Log
constructor
A new instance of Log.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ Log
Returns a new instance of Log.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/apcera/models/log.rb', line 31 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[:'channel'] self.channel = attributes[:'channel'] end if attributes[:'file'] self.file = attributes[:'file'] end if attributes[:'jobid'] self.jobid = attributes[:'jobid'] end end |
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel.
4 5 6 |
# File 'lib/apcera/models/log.rb', line 4 def channel @channel end |
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'lib/apcera/models/log.rb', line 4 def file @file end |
#jobid ⇒ Object
Returns the value of attribute jobid.
4 5 6 |
# File 'lib/apcera/models/log.rb', line 4 def jobid @jobid end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/apcera/models/log.rb', line 6 def self.attribute_map { # The name of the channel that the log should be published on. :'channel' => :'channel', # The path to the log file within the job's container that should be collected. :'file' => :'file', # UUID of the job generating the log. :'jobid' => :'jobid' } end |
.swagger_types ⇒ Object
attribute type
22 23 24 25 26 27 28 29 |
# File 'lib/apcera/models/log.rb', line 22 def self.swagger_types { :'channel' => :'String', :'file' => :'String', :'jobid' => :'String' } end |