Class: MicrosoftGraph::Models::ReportRoot
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ReportRoot
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/report_root.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#daily_print_usage_by_printer ⇒ Object
Gets the dailyPrintUsageByPrinter property value.
-
#daily_print_usage_by_printer=(value) ⇒ Object
Sets the dailyPrintUsageByPrinter property value.
-
#daily_print_usage_by_user ⇒ Object
Gets the dailyPrintUsageByUser property value.
-
#daily_print_usage_by_user=(value) ⇒ Object
Sets the dailyPrintUsageByUser property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new ReportRoot and sets the default values.
-
#monthly_print_usage_by_printer ⇒ Object
Gets the monthlyPrintUsageByPrinter property value.
-
#monthly_print_usage_by_printer=(value) ⇒ Object
Sets the monthlyPrintUsageByPrinter property value.
-
#monthly_print_usage_by_user ⇒ Object
Gets the monthlyPrintUsageByUser property value.
-
#monthly_print_usage_by_user=(value) ⇒ Object
Sets the monthlyPrintUsageByUser property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#security ⇒ Object
Gets the security property value.
-
#security=(value) ⇒ Object
Sets the security property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new ReportRoot and sets the default values.
49 50 51 |
# File 'lib/models/report_root.rb', line 49 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
57 58 59 60 |
# File 'lib/models/report_root.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ReportRoot.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
34 35 36 |
# File 'lib/models/report_root.rb', line 34 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
42 43 44 |
# File 'lib/models/report_root.rb', line 42 def additional_data=(value) @additional_data = value end |
#daily_print_usage_by_printer ⇒ Object
Gets the dailyPrintUsageByPrinter property value. The dailyPrintUsageByPrinter property
65 66 67 |
# File 'lib/models/report_root.rb', line 65 def daily_print_usage_by_printer return @daily_print_usage_by_printer end |
#daily_print_usage_by_printer=(value) ⇒ Object
Sets the dailyPrintUsageByPrinter property value. The dailyPrintUsageByPrinter property
73 74 75 |
# File 'lib/models/report_root.rb', line 73 def daily_print_usage_by_printer=(value) @daily_print_usage_by_printer = value end |
#daily_print_usage_by_user ⇒ Object
Gets the dailyPrintUsageByUser property value. The dailyPrintUsageByUser property
80 81 82 |
# File 'lib/models/report_root.rb', line 80 def daily_print_usage_by_user return @daily_print_usage_by_user end |
#daily_print_usage_by_user=(value) ⇒ Object
Sets the dailyPrintUsageByUser property value. The dailyPrintUsageByUser property
88 89 90 |
# File 'lib/models/report_root.rb', line 88 def daily_print_usage_by_user=(value) @daily_print_usage_by_user = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 103 104 |
# File 'lib/models/report_root.rb', line 95 def get_field_deserializers() return { "dailyPrintUsageByPrinter" => lambda {|n| @daily_print_usage_by_printer = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintUsageByPrinter.create_from_discriminator_value(pn) }) }, "dailyPrintUsageByUser" => lambda {|n| @daily_print_usage_by_user = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintUsageByUser.create_from_discriminator_value(pn) }) }, "monthlyPrintUsageByPrinter" => lambda {|n| @monthly_print_usage_by_printer = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintUsageByPrinter.create_from_discriminator_value(pn) }) }, "monthlyPrintUsageByUser" => lambda {|n| @monthly_print_usage_by_user = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::PrintUsageByUser.create_from_discriminator_value(pn) }) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "security" => lambda {|n| @security = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityReportsRoot.create_from_discriminator_value(pn) }) }, } end |
#monthly_print_usage_by_printer ⇒ Object
Gets the monthlyPrintUsageByPrinter property value. The monthlyPrintUsageByPrinter property
109 110 111 |
# File 'lib/models/report_root.rb', line 109 def monthly_print_usage_by_printer return @monthly_print_usage_by_printer end |
#monthly_print_usage_by_printer=(value) ⇒ Object
Sets the monthlyPrintUsageByPrinter property value. The monthlyPrintUsageByPrinter property
117 118 119 |
# File 'lib/models/report_root.rb', line 117 def monthly_print_usage_by_printer=(value) @monthly_print_usage_by_printer = value end |
#monthly_print_usage_by_user ⇒ Object
Gets the monthlyPrintUsageByUser property value. The monthlyPrintUsageByUser property
124 125 126 |
# File 'lib/models/report_root.rb', line 124 def monthly_print_usage_by_user return @monthly_print_usage_by_user end |
#monthly_print_usage_by_user=(value) ⇒ Object
Sets the monthlyPrintUsageByUser property value. The monthlyPrintUsageByUser property
132 133 134 |
# File 'lib/models/report_root.rb', line 132 def monthly_print_usage_by_user=(value) @monthly_print_usage_by_user = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
139 140 141 |
# File 'lib/models/report_root.rb', line 139 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
147 148 149 |
# File 'lib/models/report_root.rb', line 147 def odata_type=(value) @odata_type = value end |
#security ⇒ Object
Gets the security property value. The security property
154 155 156 |
# File 'lib/models/report_root.rb', line 154 def security return @security end |
#security=(value) ⇒ Object
Sets the security property value. The security property
162 163 164 |
# File 'lib/models/report_root.rb', line 162 def security=(value) @security = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/report_root.rb', line 170 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_collection_of_object_values("dailyPrintUsageByPrinter", @daily_print_usage_by_printer) writer.write_collection_of_object_values("dailyPrintUsageByUser", @daily_print_usage_by_user) writer.write_collection_of_object_values("monthlyPrintUsageByPrinter", @monthly_print_usage_by_printer) writer.write_collection_of_object_values("monthlyPrintUsageByUser", @monthly_print_usage_by_user) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("security", @security) writer.write_additional_data(@additional_data) end |