Class: MicrosoftGraph::Models::AuditActor
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AuditActor
- 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
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#application_display_name ⇒ Object
Gets the applicationDisplayName property value.
-
#application_display_name=(value) ⇒ Object
Sets the applicationDisplayName property value.
-
#application_id ⇒ Object
Gets the applicationId property value.
-
#application_id=(value) ⇒ Object
Sets the applicationId property value.
-
#audit_actor_type ⇒ Object
Gets the auditActorType property value.
-
#audit_actor_type=(value) ⇒ Object
Sets the auditActorType property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new auditActor and sets the default values.
-
#ip_address ⇒ Object
Gets the ipAddress property value.
-
#ip_address=(value) ⇒ Object
Sets the ipAddress property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service_principal_name ⇒ Object
Gets the servicePrincipalName property value.
-
#service_principal_name=(value) ⇒ Object
Sets the servicePrincipalName property value.
-
#user_id ⇒ Object
Gets the userId property value.
-
#user_id=(value) ⇒ Object
Sets the userId property value.
-
#user_permissions ⇒ Object
Gets the userPermissions property value.
-
#user_permissions=(value) ⇒ Object
Sets the userPermissions property value.
-
#user_principal_name ⇒ Object
Gets the userPrincipalName property value.
-
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
53 54 55 |
# File 'lib/models/audit_actor.rb', line 53 def additional_data=(value) @additional_data = value end |
#application_display_name ⇒ Object
Gets the applicationDisplayName property value. Name of the Application.
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.
68 69 70 |
# File 'lib/models/audit_actor.rb', line 68 def application_display_name=(value) @application_display_name = value end |
#application_id ⇒ Object
Gets the applicationId property value. AAD Application Id.
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.
83 84 85 |
# File 'lib/models/audit_actor.rb', line 83 def application_id=(value) @application_id = value end |
#audit_actor_type ⇒ Object
Gets the auditActorType property value. Actor Type.
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.
98 99 100 |
# File 'lib/models/audit_actor.rb', line 98 def audit_actor_type=(value) @audit_actor_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_address ⇒ Object
Gets the ipAddress property value. IPAddress.
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.
146 147 148 |
# File 'lib/models/audit_actor.rb', line 146 def ip_address=(value) @ip_address = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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_name ⇒ Object
Gets the servicePrincipalName property value. Service Principal Name (SPN).
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).
194 195 196 |
# File 'lib/models/audit_actor.rb', line 194 def service_principal_name=(value) @service_principal_name = value end |
#user_id ⇒ Object
Gets the userId property value. User Id.
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.
209 210 211 |
# File 'lib/models/audit_actor.rb', line 209 def user_id=(value) @user_id = value end |
#user_permissions ⇒ Object
Gets the userPermissions property value. List of user permissions when the audit was performed.
216 217 218 |
# File 'lib/models/audit_actor.rb', line 216 def return @user_permissions end |
#user_permissions=(value) ⇒ Object
Sets the userPermissions property value. List of user permissions when the audit was performed.
224 225 226 |
# File 'lib/models/audit_actor.rb', line 224 def (value) @user_permissions = value end |
#user_principal_name ⇒ Object
Gets the userPrincipalName property value. User Principal Name (UPN).
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).
239 240 241 |
# File 'lib/models/audit_actor.rb', line 239 def user_principal_name=(value) @user_principal_name = value end |