Class: MicrosoftGraph::Models::AuditEvent

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/audit_event.rb

Overview

A class containing the properties for Audit Event.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a audit_event

Raises:

  • (StandardError)


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

#activityObject

Gets the activity property value. Friendly name of the activity.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the activity property.

Returns:

  • a void



57
58
59
# File 'lib/models/audit_event.rb', line 57

def activity=(value)
    @activity = value
end

#activity_date_timeObject

Gets the activityDateTime property value. The date time in UTC when the activity was performed.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the activityDateTime property.

Returns:

  • a void



72
73
74
# File 'lib/models/audit_event.rb', line 72

def activity_date_time=(value)
    @activity_date_time = value
end

#activity_operation_typeObject

Gets the activityOperationType property value. The HTTP operation type of the activity.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the activityOperationType property.

Returns:

  • a void



87
88
89
# File 'lib/models/audit_event.rb', line 87

def activity_operation_type=(value)
    @activity_operation_type = value
end

#activity_resultObject

Gets the activityResult property value. The result of the activity.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the activityResult property.

Returns:

  • a void



102
103
104
# File 'lib/models/audit_event.rb', line 102

def activity_result=(value)
    @activity_result = value
end

#activity_typeObject

Gets the activityType property value. The type of activity that was being performed.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the activityType property.

Returns:

  • a void



117
118
119
# File 'lib/models/audit_event.rb', line 117

def activity_type=(value)
    @activity_type = value
end

#actorObject

Gets the actor property value. AAD user and application that are associated with the audit event.

Returns:

  • a audit_actor



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.

Parameters:

  • value

    Value to set for the actor property.

Returns:

  • a void



132
133
134
# File 'lib/models/audit_event.rb', line 132

def actor=(value)
    @actor = value
end

#categoryObject

Gets the category property value. Audit category.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the category property.

Returns:

  • a void



147
148
149
# File 'lib/models/audit_event.rb', line 147

def category=(value)
    @category = value
end

#component_nameObject

Gets the componentName property value. Component name.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the componentName property.

Returns:

  • a void



162
163
164
# File 'lib/models/audit_event.rb', line 162

def component_name=(value)
    @component_name = value
end

#correlation_idObject

Gets the correlationId property value. The client request Id that is used to correlate activity within the system.

Returns:

  • a guid



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.

Parameters:

  • value

    Value to set for the correlationId property.

Returns:

  • a void



184
185
186
# File 'lib/models/audit_event.rb', line 184

def correlation_id=(value)
    @correlation_id = value
end

#display_nameObject

Gets the displayName property value. Event display name.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



208
209
210
# File 'lib/models/audit_event.rb', line 208

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#resourcesObject

Gets the resources property value. Resources being modified.

Returns:

  • a audit_resource



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.

Parameters:

  • value

    Value to set for the resources property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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