Class: MicrosoftGraph::Models::EmailFileAssessmentRequest
- Inherits:
-
ThreatAssessmentRequest
- Object
- Entity
- ThreatAssessmentRequest
- MicrosoftGraph::Models::EmailFileAssessmentRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/email_file_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
-
#content_data ⇒ Object
Gets the contentData property value.
-
#content_data=(value) ⇒ Object
Sets the contentData property value.
-
#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 emailFileAssessmentRequest and sets the default values.
-
#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 emailFileAssessmentRequest and sets the default values.
22 23 24 25 |
# File 'lib/models/email_file_assessment_request.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.emailFileAssessmentRequest" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
46 47 48 49 |
# File 'lib/models/email_file_assessment_request.rb', line 46 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EmailFileAssessmentRequest.new end |
Instance Method Details
#content_data ⇒ Object
Gets the contentData property value. Base64 encoded .eml email file content. The file content cannot fetch back because it isn’t stored.
30 31 32 |
# File 'lib/models/email_file_assessment_request.rb', line 30 def content_data return @content_data end |
#content_data=(value) ⇒ Object
Sets the contentData property value. Base64 encoded .eml email file content. The file content cannot fetch back because it isn’t stored.
38 39 40 |
# File 'lib/models/email_file_assessment_request.rb', line 38 def content_data=(value) @content_data = value end |
#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.
54 55 56 |
# File 'lib/models/email_file_assessment_request.rb', line 54 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.
62 63 64 |
# File 'lib/models/email_file_assessment_request.rb', line 62 def destination_routing_reason=(value) @destination_routing_reason = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/models/email_file_assessment_request.rb', line 69 def get_field_deserializers() return super.merge({ "contentData" => lambda {|n| @content_data = n.get_string_value() }, "destinationRoutingReason" => lambda {|n| @destination_routing_reason = n.get_enum_value(MicrosoftGraph::Models::MailDestinationRoutingReason) }, "recipientEmail" => lambda {|n| @recipient_email = n.get_string_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/email_file_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/email_file_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/email_file_assessment_request.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("contentData", @content_data) writer.write_enum_value("destinationRoutingReason", @destination_routing_reason) writer.write_string_value("recipientEmail", @recipient_email) end |