Class: MicrosoftGraph::Models::AuditActor

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/audit_actor.rb

Overview

A class containing the properties for Audit Actor.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new auditActor and sets the default values.



105
106
107
# File 'lib/models/audit_actor.rb', line 105

def initialize()
    @additional_data = Hash.new
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_actor

Raises:

  • (StandardError)


113
114
115
116
# File 'lib/models/audit_actor.rb', line 113

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return AuditActor.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



45
46
47
# File 'lib/models/audit_actor.rb', line 45

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



53
54
55
# File 'lib/models/audit_actor.rb', line 53

def additional_data=(value)
    @additional_data = value
end

#application_display_nameObject

Gets the applicationDisplayName property value. Name of the Application.

Returns:

  • a string



60
61
62
# File 'lib/models/audit_actor.rb', line 60

def application_display_name
    return @application_display_name
end

#application_display_name=(value) ⇒ Object

Sets the applicationDisplayName property value. Name of the Application.

Parameters:

  • value

    Value to set for the applicationDisplayName property.

Returns:

  • a void



68
69
70
# File 'lib/models/audit_actor.rb', line 68

def application_display_name=(value)
    @application_display_name = value
end

#application_idObject

Gets the applicationId property value. AAD Application Id.

Returns:

  • a string



75
76
77
# File 'lib/models/audit_actor.rb', line 75

def application_id
    return @application_id
end

#application_id=(value) ⇒ Object

Sets the applicationId property value. AAD Application Id.

Parameters:

  • value

    Value to set for the applicationId property.

Returns:

  • a void



83
84
85
# File 'lib/models/audit_actor.rb', line 83

def application_id=(value)
    @application_id = value
end

#audit_actor_typeObject

Gets the auditActorType property value. Actor Type.

Returns:

  • a string



90
91
92
# File 'lib/models/audit_actor.rb', line 90

def audit_actor_type
    return @audit_actor_type
end

#audit_actor_type=(value) ⇒ Object

Sets the auditActorType property value. Actor Type.

Parameters:

  • value

    Value to set for the auditActorType property.

Returns:

  • a void



98
99
100
# File 'lib/models/audit_actor.rb', line 98

def audit_actor_type=(value)
    @audit_actor_type = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/models/audit_actor.rb', line 121

def get_field_deserializers()
    return {
        "applicationDisplayName" => lambda {|n| @application_display_name = n.get_string_value() },
        "applicationId" => lambda {|n| @application_id = n.get_string_value() },
        "auditActorType" => lambda {|n| @audit_actor_type = n.get_string_value() },
        "ipAddress" => lambda {|n| @ip_address = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "servicePrincipalName" => lambda {|n| @service_principal_name = n.get_string_value() },
        "userId" => lambda {|n| @user_id = n.get_string_value() },
        "userPermissions" => lambda {|n| @user_permissions = n.get_collection_of_primitive_values(String) },
        "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() },
    }
end

#ip_addressObject

Gets the ipAddress property value. IPAddress.

Returns:

  • a string



138
139
140
# File 'lib/models/audit_actor.rb', line 138

def ip_address
    return @ip_address
end

#ip_address=(value) ⇒ Object

Sets the ipAddress property value. IPAddress.

Parameters:

  • value

    Value to set for the ipAddress property.

Returns:

  • a void



146
147
148
# File 'lib/models/audit_actor.rb', line 146

def ip_address=(value)
    @ip_address = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



153
154
155
# File 'lib/models/audit_actor.rb', line 153

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



161
162
163
# File 'lib/models/audit_actor.rb', line 161

def odata_type=(value)
    @odata_type = 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)


169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/models/audit_actor.rb', line 169

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("applicationDisplayName", @application_display_name)
    writer.write_string_value("applicationId", @application_id)
    writer.write_string_value("auditActorType", @audit_actor_type)
    writer.write_string_value("ipAddress", @ip_address)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("servicePrincipalName", @service_principal_name)
    writer.write_string_value("userId", @user_id)
    writer.write_collection_of_primitive_values("userPermissions", @user_permissions)
    writer.write_string_value("userPrincipalName", @user_principal_name)
    writer.write_additional_data(@additional_data)
end

#service_principal_nameObject

Gets the servicePrincipalName property value. Service Principal Name (SPN).

Returns:

  • a string



186
187
188
# File 'lib/models/audit_actor.rb', line 186

def service_principal_name
    return @service_principal_name
end

#service_principal_name=(value) ⇒ Object

Sets the servicePrincipalName property value. Service Principal Name (SPN).

Parameters:

  • value

    Value to set for the servicePrincipalName property.

Returns:

  • a void



194
195
196
# File 'lib/models/audit_actor.rb', line 194

def service_principal_name=(value)
    @service_principal_name = value
end

#user_idObject

Gets the userId property value. User Id.

Returns:

  • a string



201
202
203
# File 'lib/models/audit_actor.rb', line 201

def user_id
    return @user_id
end

#user_id=(value) ⇒ Object

Sets the userId property value. User Id.

Parameters:

  • value

    Value to set for the userId property.

Returns:

  • a void



209
210
211
# File 'lib/models/audit_actor.rb', line 209

def user_id=(value)
    @user_id = value
end

#user_permissionsObject

Gets the userPermissions property value. List of user permissions when the audit was performed.

Returns:

  • a string



216
217
218
# File 'lib/models/audit_actor.rb', line 216

def user_permissions
    return @user_permissions
end

#user_permissions=(value) ⇒ Object

Sets the userPermissions property value. List of user permissions when the audit was performed.

Parameters:

  • value

    Value to set for the userPermissions property.

Returns:

  • a void



224
225
226
# File 'lib/models/audit_actor.rb', line 224

def user_permissions=(value)
    @user_permissions = value
end

#user_principal_nameObject

Gets the userPrincipalName property value. User Principal Name (UPN).

Returns:

  • a string



231
232
233
# File 'lib/models/audit_actor.rb', line 231

def user_principal_name
    return @user_principal_name
end

#user_principal_name=(value) ⇒ Object

Sets the userPrincipalName property value. User Principal Name (UPN).

Parameters:

  • value

    Value to set for the userPrincipalName property.

Returns:

  • a void



239
240
241
# File 'lib/models/audit_actor.rb', line 239

def user_principal_name=(value)
    @user_principal_name = value
end