Class: Apcera::AuditLogItem

Inherits:
BaseObject show all
Defined in:
lib/apcera/models/audit_log_item.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ AuditLogItem

Returns a new instance of AuditLogItem.



63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# File 'lib/apcera/models/audit_log_item.rb', line 63

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[:'event_type']
    self.event_type = attributes[:'event_type']
  end
  
  if attributes[:'event_type_int']
    self.event_type_int = attributes[:'event_type_int']
  end
  
  if attributes[:'fqn']
    self.fqn = attributes[:'fqn']
  end
  
  if attributes[:'localname']
    self.localname = attributes[:'localname']
  end
  
  if attributes[:'namespace']
    self.namespace = attributes[:'namespace']
  end
  
  if attributes[:'on_behalf_of']
    self.on_behalf_of = attributes[:'on_behalf_of']
  end
  
  if attributes[:'payload']
    self.payload = attributes[:'payload']
  end
  
  if attributes[:'principal_name']
    self.principal_name = attributes[:'principal_name']
  end
  
  if attributes[:'resource_type']
    self.resource_type = attributes[:'resource_type']
  end
  
  if attributes[:'timestamp']
    self.timestamp = attributes[:'timestamp']
  end
  
  if attributes[:'uuid']
    self.uuid = attributes[:'uuid']
  end
  
end

Instance Attribute Details

#event_typeObject

Returns the value of attribute event_type.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def event_type
  @event_type
end

#event_type_intObject

Returns the value of attribute event_type_int.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def event_type_int
  @event_type_int
end

#fqnObject

Returns the value of attribute fqn.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def fqn
  @fqn
end

#localnameObject

Returns the value of attribute localname.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def localname
  @localname
end

#namespaceObject

Returns the value of attribute namespace.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def namespace
  @namespace
end

#on_behalf_ofObject

Returns the value of attribute on_behalf_of.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def on_behalf_of
  @on_behalf_of
end

#payloadObject

Returns the value of attribute payload.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def payload
  @payload
end

#principal_nameObject

Returns the value of attribute principal_name.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def principal_name
  @principal_name
end

#resource_typeObject

Returns the value of attribute resource_type.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def resource_type
  @resource_type
end

#timestampObject

Returns the value of attribute timestamp.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def timestamp
  @timestamp
end

#uuidObject

Returns the value of attribute uuid.



4
5
6
# File 'lib/apcera/models/audit_log_item.rb', line 4

def uuid
  @uuid
end

Class Method Details

.attribute_mapObject

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
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/apcera/models/audit_log_item.rb', line 6

def self.attribute_map
  {
    
    # Event type.
    :'event_type' => :'event_type',
    
    # Integer used as the index of an enumeration of human-readable event types (see `event_type`).
    :'event_type_int' => :'event_type_int',
    
    # Fully-qualified name of the resource on which the auditable action was attempted.
    :'fqn' => :'fqn',
    
    # Local name of the resource on which the auditable action was attempted.
    :'localname' => :'localname',
    
    # Namespace of the resource on which the auditable action was attempted.
    :'namespace' => :'namespace',
    
    # Username on whose behalf the auditable action was attempted by `principal_name`.
    :'on_behalf_of' => :'on_behalf_of',
    
    # Simple structured auditing data like JSON output.
    :'payload' => :'payload',
    
    # The actor (API Server or Health Manager, for example) or user that attempted the auditable action.
    :'principal_name' => :'principal_name',
    
    # The resource type on which the auditable action was attempted.
    :'resource_type' => :'resource_type',
    
    # UNIX timestamp that indicates when the event occurred.
    :'timestamp' => :'timestamp',
    
    # Unique identifier for the audit log entry.
    :'uuid' => :'uuid'
    
  }
end

.swagger_typesObject

attribute type



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/apcera/models/audit_log_item.rb', line 46

def self.swagger_types
  {
    :'event_type' => :'String',
    :'event_type_int' => :'Integer',
    :'fqn' => :'String',
    :'localname' => :'String',
    :'namespace' => :'String',
    :'on_behalf_of' => :'String',
    :'payload' => :'String',
    :'principal_name' => :'String',
    :'resource_type' => :'String',
    :'timestamp' => :'Float',
    :'uuid' => :'String'
    
  }
end