Class: MicrosoftGraph::Models::DeviceManagementReports
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_management_reports.rb
Overview
Singleton entity that acts as a container for all reports functionality.
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
-
#export_jobs ⇒ Object
Gets the exportJobs property value.
-
#export_jobs=(value) ⇒ Object
Sets the exportJobs property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceManagementReports and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new deviceManagementReports and sets the default values.
18 19 20 |
# File 'lib/models/device_management_reports.rb', line 18 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
26 27 28 29 |
# File 'lib/models/device_management_reports.rb', line 26 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return DeviceManagementReports.new end |
Instance Method Details
#export_jobs ⇒ Object
Gets the exportJobs property value. Entity representing a job to export a report
34 35 36 |
# File 'lib/models/device_management_reports.rb', line 34 def export_jobs return @export_jobs end |
#export_jobs=(value) ⇒ Object
Sets the exportJobs property value. Entity representing a job to export a report
42 43 44 |
# File 'lib/models/device_management_reports.rb', line 42 def export_jobs=(value) @export_jobs = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
49 50 51 52 53 |
# File 'lib/models/device_management_reports.rb', line 49 def get_field_deserializers() return super.merge({ "exportJobs" => lambda {|n| @export_jobs = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeviceManagementExportJob.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
59 60 61 62 63 |
# File 'lib/models/device_management_reports.rb', line 59 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("exportJobs", @export_jobs) end |