Class: MicrosoftGraph::Models::FileAssessmentRequest
- Inherits:
-
ThreatAssessmentRequest
- Object
- Entity
- ThreatAssessmentRequest
- MicrosoftGraph::Models::FileAssessmentRequest
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/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.
-
#file_name ⇒ Object
Gets the fileName property value.
-
#file_name=(value) ⇒ Object
Sets the fileName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new fileAssessmentRequest and sets the default values.
-
#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 fileAssessmentRequest and sets the default values.
19 20 21 22 |
# File 'lib/models/file_assessment_request.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.fileAssessmentRequest" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
43 44 45 46 |
# File 'lib/models/file_assessment_request.rb', line 43 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return FileAssessmentRequest.new end |
Instance Method Details
#content_data ⇒ Object
Gets the contentData property value. Base64 encoded file content. The file content cannot fetch back because it isn’t stored.
27 28 29 |
# File 'lib/models/file_assessment_request.rb', line 27 def content_data return @content_data end |
#content_data=(value) ⇒ Object
Sets the contentData property value. Base64 encoded file content. The file content cannot fetch back because it isn’t stored.
35 36 37 |
# File 'lib/models/file_assessment_request.rb', line 35 def content_data=(value) @content_data = value end |
#file_name ⇒ Object
Gets the fileName property value. The file name.
51 52 53 |
# File 'lib/models/file_assessment_request.rb', line 51 def file_name return @file_name end |
#file_name=(value) ⇒ Object
Sets the fileName property value. The file name.
59 60 61 |
# File 'lib/models/file_assessment_request.rb', line 59 def file_name=(value) @file_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
66 67 68 69 70 71 |
# File 'lib/models/file_assessment_request.rb', line 66 def get_field_deserializers() return super.merge({ "contentData" => lambda {|n| @content_data = n.get_string_value() }, "fileName" => lambda {|n| @file_name = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/file_assessment_request.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("contentData", @content_data) writer.write_string_value("fileName", @file_name) end |