Class: MicrosoftGraph::Models::Security::MailboxEvidence

Inherits:
AlertEvidence
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security/mailbox_evidence.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AlertEvidence

#additional_data, #additional_data=, #created_date_time, #created_date_time=, #odata_type, #odata_type=, #remediation_status, #remediation_status=, #remediation_status_details, #remediation_status_details=, #roles, #roles=, #tags, #tags=, #verdict, #verdict=

Constructor Details

#initializeObject

Instantiates a new MailboxEvidence and sets the default values.



24
25
26
# File 'lib/models/security/mailbox_evidence.rb', line 24

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 mailbox_evidence

Raises:

  • (StandardError)


32
33
34
35
# File 'lib/models/security/mailbox_evidence.rb', line 32

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

Instance Method Details

#display_nameObject

Gets the displayName property value. The name associated with the mailbox.

Returns:

  • a string



40
41
42
# File 'lib/models/security/mailbox_evidence.rb', line 40

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name associated with the mailbox.

Parameters:

  • value

    Value to set for the display_name property.

Returns:

  • a void



48
49
50
# File 'lib/models/security/mailbox_evidence.rb', line 48

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



55
56
57
58
59
60
61
# File 'lib/models/security/mailbox_evidence.rb', line 55

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|  = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Security::UserAccount.create_from_discriminator_value(pn) }) },
    })
end

#primary_addressObject

Gets the primaryAddress property value. The primary email address of the mailbox.

Returns:

  • a string



66
67
68
# File 'lib/models/security/mailbox_evidence.rb', line 66

def primary_address
    return @primary_address
end

#primary_address=(value) ⇒ Object

Sets the primaryAddress property value. The primary email address of the mailbox.

Parameters:

  • value

    Value to set for the primary_address property.

Returns:

  • a void



74
75
76
# File 'lib/models/security/mailbox_evidence.rb', line 74

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


82
83
84
85
86
87
88
# File 'lib/models/security/mailbox_evidence.rb', line 82

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", )
end

#user_accountObject

Gets the userAccount property value. The user account of the mailbox.

Returns:

  • a user_account



93
94
95
# File 'lib/models/security/mailbox_evidence.rb', line 93

def 
    return 
end

#user_account=(value) ⇒ Object

Sets the userAccount property value. The user account of the mailbox.

Parameters:

  • value

    Value to set for the user_account property.

Returns:

  • a void



101
102
103
# File 'lib/models/security/mailbox_evidence.rb', line 101

def user_account=(value)
     = value
end