Class: MicrosoftGraph::Models::MailAssessmentRequest
- Inherits:
-
ThreatAssessmentRequest
- Object
- Entity
- ThreatAssessmentRequest
- MicrosoftGraph::Models::MailAssessmentRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mail_assessment_request.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
-
#destination_routing_reason ⇒ Object
Gets the destinationRoutingReason property value.
-
#destination_routing_reason=(value) ⇒ Object
Sets the destinationRoutingReason property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mailAssessmentRequest and sets the default values.
-
#message_uri ⇒ Object
Gets the messageUri property value.
-
#message_uri=(value) ⇒ Object
Sets the messageUri property value.
-
#recipient_email ⇒ Object
Gets the recipientEmail property value.
-
#recipient_email=(value) ⇒ Object
Sets the recipientEmail property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from ThreatAssessmentRequest
#category, #category=, #content_type, #content_type=, #created_by, #created_by=, #created_date_time, #created_date_time=, #expected_assessment, #expected_assessment=, #request_source, #request_source=, #results, #results=, #status, #status=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new mailAssessmentRequest and sets the default values.
22 23 24 25 |
# File 'lib/models/mail_assessment_request.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.mailAssessmentRequest" 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/mail_assessment_request.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MailAssessmentRequest.new end |
Instance Method Details
#destination_routing_reason ⇒ Object
Gets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
39 40 41 |
# File 'lib/models/mail_assessment_request.rb', line 39 def destination_routing_reason return @destination_routing_reason end |
#destination_routing_reason=(value) ⇒ Object
Sets the destinationRoutingReason property value. The reason for mail routed to its destination. Possible values are: none, mailFlowRule, safeSender, blockedSender, advancedSpamFiltering, domainAllowList, domainBlockList, notInAddressBook, firstTimeSender, autoPurgeToInbox, autoPurgeToJunk, autoPurgeToDeleted, outbound, notJunk, junk.
47 48 49 |
# File 'lib/models/mail_assessment_request.rb', line 47 def destination_routing_reason=(value) @destination_routing_reason = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
54 55 56 57 58 59 60 |
# File 'lib/models/mail_assessment_request.rb', line 54 def get_field_deserializers() return super.merge({ "destinationRoutingReason" => lambda {|n| @destination_routing_reason = n.get_enum_value(MicrosoftGraph::Models::MailDestinationRoutingReason) }, "messageUri" => lambda {|n| = n.get_string_value() }, "recipientEmail" => lambda {|n| @recipient_email = n.get_string_value() }, }) end |
#message_uri ⇒ Object
Gets the messageUri property value. The resource URI of the mail message for assessment.
65 66 67 |
# File 'lib/models/mail_assessment_request.rb', line 65 def return end |
#message_uri=(value) ⇒ Object
Sets the messageUri property value. The resource URI of the mail message for assessment.
73 74 75 |
# File 'lib/models/mail_assessment_request.rb', line 73 def (value) = value end |
#recipient_email ⇒ Object
Gets the recipientEmail property value. The mail recipient whose policies are used to assess the mail.
80 81 82 |
# File 'lib/models/mail_assessment_request.rb', line 80 def recipient_email return @recipient_email end |
#recipient_email=(value) ⇒ Object
Sets the recipientEmail property value. The mail recipient whose policies are used to assess the mail.
88 89 90 |
# File 'lib/models/mail_assessment_request.rb', line 88 def recipient_email=(value) @recipient_email = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/mail_assessment_request.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("destinationRoutingReason", @destination_routing_reason) writer.write_string_value("messageUri", ) writer.write_string_value("recipientEmail", @recipient_email) end |