Class: MicrosoftGraph::Models::AuditEvent
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/audit_event.rb
Overview
A class containing the properties for Audit Event.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#activity ⇒ Object
Gets the activity property value.
-
#activity=(value) ⇒ Object
Sets the activity property value.
-
#activity_date_time ⇒ Object
Gets the activityDateTime property value.
-
#activity_date_time=(value) ⇒ Object
Sets the activityDateTime property value.
-
#activity_operation_type ⇒ Object
Gets the activityOperationType property value.
-
#activity_operation_type=(value) ⇒ Object
Sets the activityOperationType property value.
-
#activity_result ⇒ Object
Gets the activityResult property value.
-
#activity_result=(value) ⇒ Object
Sets the activityResult property value.
-
#activity_type ⇒ Object
Gets the activityType property value.
-
#activity_type=(value) ⇒ Object
Sets the activityType property value.
-
#actor ⇒ Object
Gets the actor property value.
-
#actor=(value) ⇒ Object
Sets the actor property value.
-
#category ⇒ Object
Gets the category property value.
-
#category=(value) ⇒ Object
Sets the category property value.
-
#component_name ⇒ Object
Gets the componentName property value.
-
#component_name=(value) ⇒ Object
Sets the componentName property value.
-
#correlation_id ⇒ Object
Gets the correlationId property value.
-
#correlation_id=(value) ⇒ Object
Sets the correlationId property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new auditEvent and sets the default values.
-
#resources ⇒ Object
Gets the resources property value.
-
#resources=(value) ⇒ Object
Sets the resources property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new auditEvent and sets the default values.
169 170 171 |
# File 'lib/models/audit_event.rb', line 169 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
192 193 194 195 |
# File 'lib/models/audit_event.rb', line 192 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AuditEvent.new end |
Instance Method Details
#activity ⇒ Object
Gets the activity property value. Friendly name of the activity.
49 50 51 |
# File 'lib/models/audit_event.rb', line 49 def activity return @activity end |
#activity=(value) ⇒ Object
Sets the activity property value. Friendly name of the activity.
57 58 59 |
# File 'lib/models/audit_event.rb', line 57 def activity=(value) @activity = value end |
#activity_date_time ⇒ Object
Gets the activityDateTime property value. The date time in UTC when the activity was performed.
64 65 66 |
# File 'lib/models/audit_event.rb', line 64 def activity_date_time return @activity_date_time end |
#activity_date_time=(value) ⇒ Object
Sets the activityDateTime property value. The date time in UTC when the activity was performed.
72 73 74 |
# File 'lib/models/audit_event.rb', line 72 def activity_date_time=(value) @activity_date_time = value end |
#activity_operation_type ⇒ Object
Gets the activityOperationType property value. The HTTP operation type of the activity.
79 80 81 |
# File 'lib/models/audit_event.rb', line 79 def activity_operation_type return @activity_operation_type end |
#activity_operation_type=(value) ⇒ Object
Sets the activityOperationType property value. The HTTP operation type of the activity.
87 88 89 |
# File 'lib/models/audit_event.rb', line 87 def activity_operation_type=(value) @activity_operation_type = value end |
#activity_result ⇒ Object
Gets the activityResult property value. The result of the activity.
94 95 96 |
# File 'lib/models/audit_event.rb', line 94 def activity_result return @activity_result end |
#activity_result=(value) ⇒ Object
Sets the activityResult property value. The result of the activity.
102 103 104 |
# File 'lib/models/audit_event.rb', line 102 def activity_result=(value) @activity_result = value end |
#activity_type ⇒ Object
Gets the activityType property value. The type of activity that was being performed.
109 110 111 |
# File 'lib/models/audit_event.rb', line 109 def activity_type return @activity_type end |
#activity_type=(value) ⇒ Object
Sets the activityType property value. The type of activity that was being performed.
117 118 119 |
# File 'lib/models/audit_event.rb', line 117 def activity_type=(value) @activity_type = value end |
#actor ⇒ Object
Gets the actor property value. AAD user and application that are associated with the audit event.
124 125 126 |
# File 'lib/models/audit_event.rb', line 124 def actor return @actor end |
#actor=(value) ⇒ Object
Sets the actor property value. AAD user and application that are associated with the audit event.
132 133 134 |
# File 'lib/models/audit_event.rb', line 132 def actor=(value) @actor = value end |
#category ⇒ Object
Gets the category property value. Audit category.
139 140 141 |
# File 'lib/models/audit_event.rb', line 139 def category return @category end |
#category=(value) ⇒ Object
Sets the category property value. Audit category.
147 148 149 |
# File 'lib/models/audit_event.rb', line 147 def category=(value) @category = value end |
#component_name ⇒ Object
Gets the componentName property value. Component name.
154 155 156 |
# File 'lib/models/audit_event.rb', line 154 def component_name return @component_name end |
#component_name=(value) ⇒ Object
Sets the componentName property value. Component name.
162 163 164 |
# File 'lib/models/audit_event.rb', line 162 def component_name=(value) @component_name = value end |
#correlation_id ⇒ Object
Gets the correlationId property value. The client request Id that is used to correlate activity within the system.
176 177 178 |
# File 'lib/models/audit_event.rb', line 176 def correlation_id return @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the correlationId property value. The client request Id that is used to correlate activity within the system.
184 185 186 |
# File 'lib/models/audit_event.rb', line 184 def correlation_id=(value) @correlation_id = value end |
#display_name ⇒ Object
Gets the displayName property value. Event display name.
200 201 202 |
# File 'lib/models/audit_event.rb', line 200 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Event display name.
208 209 210 |
# File 'lib/models/audit_event.rb', line 208 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/models/audit_event.rb', line 215 def get_field_deserializers() return super.merge({ "activity" => lambda {|n| @activity = n.get_string_value() }, "activityDateTime" => lambda {|n| @activity_date_time = n.get_date_time_value() }, "activityOperationType" => lambda {|n| @activity_operation_type = n.get_string_value() }, "activityResult" => lambda {|n| @activity_result = n.get_string_value() }, "activityType" => lambda {|n| @activity_type = n.get_string_value() }, "actor" => lambda {|n| @actor = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AuditActor.create_from_discriminator_value(pn) }) }, "category" => lambda {|n| @category = n.get_string_value() }, "componentName" => lambda {|n| @component_name = n.get_string_value() }, "correlationId" => lambda {|n| @correlation_id = n.get_guid_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "resources" => lambda {|n| @resources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuditResource.create_from_discriminator_value(pn) }) }, }) end |
#resources ⇒ Object
Gets the resources property value. Resources being modified.
234 235 236 |
# File 'lib/models/audit_event.rb', line 234 def resources return @resources end |
#resources=(value) ⇒ Object
Sets the resources property value. Resources being modified.
242 243 244 |
# File 'lib/models/audit_event.rb', line 242 def resources=(value) @resources = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
# File 'lib/models/audit_event.rb', line 250 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("activity", @activity) writer.write_date_time_value("activityDateTime", @activity_date_time) writer.write_string_value("activityOperationType", @activity_operation_type) writer.write_string_value("activityResult", @activity_result) writer.write_string_value("activityType", @activity_type) writer.write_object_value("actor", @actor) writer.write_string_value("category", @category) writer.write_string_value("componentName", @component_name) writer.write_guid_value("correlationId", @correlation_id) writer.write_string_value("displayName", @display_name) writer.write_collection_of_object_values("resources", @resources) end |