Class: Apcera::AuditLogItemOld
- Inherits:
-
BaseObject
- Object
- BaseObject
- Apcera::AuditLogItemOld
- Defined in:
- lib/apcera/models/audit_log_item_old.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#allowed ⇒ Object
Returns the value of attribute allowed.
-
#method ⇒ Object
Returns the value of attribute method.
-
#requester_addr ⇒ Object
Returns the value of attribute requester_addr.
-
#resp_msg ⇒ Object
Returns the value of attribute resp_msg.
-
#response_time ⇒ Object
Returns the value of attribute response_time.
-
#t ⇒ Object
Returns the value of attribute t.
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 = {}) ⇒ AuditLogItemOld
constructor
A new instance of AuditLogItemOld.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ AuditLogItemOld
Returns a new instance of AuditLogItemOld.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 47 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[:'action'] self.action = attributes[:'action'] end if attributes[:'allowed'] self.allowed = attributes[:'allowed'] end if attributes[:'method'] self.method = attributes[:'method'] end if attributes[:'requester_addr'] self.requester_addr = attributes[:'requester_addr'] end if attributes[:'resp_msg'] self.resp_msg = attributes[:'resp_msg'] end if attributes[:'response_time'] self.response_time = attributes[:'response_time'] end if attributes[:'t'] self.t = attributes[:'t'] end end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def action @action end |
#allowed ⇒ Object
Returns the value of attribute allowed.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def allowed @allowed end |
#method ⇒ Object
Returns the value of attribute method.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def method @method end |
#requester_addr ⇒ Object
Returns the value of attribute requester_addr.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def requester_addr @requester_addr end |
#resp_msg ⇒ Object
Returns the value of attribute resp_msg.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def resp_msg @resp_msg end |
#response_time ⇒ Object
Returns the value of attribute response_time.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def response_time @response_time end |
#t ⇒ Object
Returns the value of attribute t.
4 5 6 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 4 def t @t 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 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 6 def self.attribute_map { # URL endpoint of action. :'action' => :'action', # Indicates if action was allowed (true) or not (false). :'allowed' => :'allowed', # HTTP method. :'method' => :'method', # IP address of client that made request. :'requester_addr' => :'requester_addr', # Response message, if any. :'resp_msg' => :'resp_msg', # Time it took to respond to the request in milliseconds. :'response_time' => :'response_time', # Date-time stamp of request. :'t' => :'t' } end |
.swagger_types ⇒ Object
attribute type
34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/apcera/models/audit_log_item_old.rb', line 34 def self.swagger_types { :'action' => :'String', :'allowed' => :'BOOLEAN', :'method' => :'String', :'requester_addr' => :'String', :'resp_msg' => :'String', :'response_time' => :'Integer', :'t' => :'DateTime' } end |