Class: MicrosoftGraph::Models::SecurityMailboxEvidence
- Inherits:
-
SecurityAlertEvidence
- Object
- SecurityAlertEvidence
- MicrosoftGraph::Models::SecurityMailboxEvidence
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_mailbox_evidence.rb
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
-
#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 securityMailboxEvidence and sets the default values.
-
#primary_address ⇒ Object
Gets the primaryAddress property value.
-
#primary_address=(value) ⇒ Object
Sets the primaryAddress property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_account ⇒ Object
Gets the userAccount property value.
-
#user_account=(value) ⇒ Object
Sets the userAccount property value.
Methods inherited from SecurityAlertEvidence
#additional_data, #additional_data=, #created_date_time, #created_date_time=, #detailed_roles, #detailed_roles=, #odata_type, #odata_type=, #remediation_status, #remediation_status=, #remediation_status_details, #remediation_status_details=, #roles, #roles=, #tags, #tags=, #verdict, #verdict=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityMailboxEvidence and sets the default values.
22 23 24 25 |
# File 'lib/models/security_mailbox_evidence.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.security.mailboxEvidence" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/security_mailbox_evidence.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityMailboxEvidence.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The name associated with the mailbox.
39 40 41 |
# File 'lib/models/security_mailbox_evidence.rb', line 39 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name associated with the mailbox.
47 48 49 |
# File 'lib/models/security_mailbox_evidence.rb', line 47 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
54 55 56 57 58 59 60 |
# File 'lib/models/security_mailbox_evidence.rb', line 54 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "primaryAddress" => lambda {|n| @primary_address = n.get_string_value() }, "userAccount" => lambda {|n| @user_account = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityUserAccount.create_from_discriminator_value(pn) }) }, }) end |
#primary_address ⇒ Object
Gets the primaryAddress property value. The primary email address of the mailbox.
65 66 67 |
# File 'lib/models/security_mailbox_evidence.rb', line 65 def primary_address return @primary_address end |
#primary_address=(value) ⇒ Object
Sets the primaryAddress property value. The primary email address of the mailbox.
73 74 75 |
# File 'lib/models/security_mailbox_evidence.rb', line 73 def primary_address=(value) @primary_address = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
81 82 83 84 85 86 87 |
# File 'lib/models/security_mailbox_evidence.rb', line 81 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_string_value("primaryAddress", @primary_address) writer.write_object_value("userAccount", @user_account) end |
#user_account ⇒ Object
Gets the userAccount property value. The user account of the mailbox.
92 93 94 |
# File 'lib/models/security_mailbox_evidence.rb', line 92 def user_account return @user_account end |
#user_account=(value) ⇒ Object
Sets the userAccount property value. The user account of the mailbox.
100 101 102 |
# File 'lib/models/security_mailbox_evidence.rb', line 100 def user_account=(value) @user_account = value end |