Class: MicrosoftGraph::Models::DeviceManagementReports

Inherits:
Entity
  • Object
show all
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

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a device_management_reports

Raises:

  • (StandardError)


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_jobsObject

Gets the exportJobs property value. Entity representing a job to export a report

Returns:

  • a device_management_export_job



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

Parameters:

  • value

    Value to set for the exportJobs property.

Returns:

  • a void



42
43
44
# File 'lib/models/device_management_reports.rb', line 42

def export_jobs=(value)
    @export_jobs = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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