Class: MicrosoftGraph::Models::Windows10CustomConfiguration
- Inherits:
-
DeviceConfiguration
- Object
- Entity
- DeviceConfiguration
- MicrosoftGraph::Models::Windows10CustomConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows10_custom_configuration.rb
Overview
This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10CustomConfiguration resource.
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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windows10CustomConfiguration and sets the default values.
-
#oma_settings ⇒ Object
Gets the omaSettings property value.
-
#oma_settings=(value) ⇒ Object
Sets the omaSettings property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from DeviceConfiguration
#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_setting_state_summaries, #device_setting_state_summaries=, #device_status_overview, #device_status_overview=, #device_statuses, #device_statuses=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #user_status_overview, #user_status_overview=, #user_statuses, #user_statuses=, #version, #version=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new windows10CustomConfiguration and sets the default values.
18 19 20 21 |
# File 'lib/models/windows10_custom_configuration.rb', line 18 def initialize() super @odata_type = "#microsoft.graph.windows10CustomConfiguration" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
27 28 29 30 |
# File 'lib/models/windows10_custom_configuration.rb', line 27 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Windows10CustomConfiguration.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
35 36 37 38 39 |
# File 'lib/models/windows10_custom_configuration.rb', line 35 def get_field_deserializers() return super.merge({ "omaSettings" => lambda {|n| @oma_settings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::OmaSetting.create_from_discriminator_value(pn) }) }, }) end |
#oma_settings ⇒ Object
Gets the omaSettings property value. OMA settings. This collection can contain a maximum of 1000 elements.
44 45 46 |
# File 'lib/models/windows10_custom_configuration.rb', line 44 def oma_settings return @oma_settings end |
#oma_settings=(value) ⇒ Object
Sets the omaSettings property value. OMA settings. This collection can contain a maximum of 1000 elements.
52 53 54 |
# File 'lib/models/windows10_custom_configuration.rb', line 52 def oma_settings=(value) @oma_settings = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
60 61 62 63 64 |
# File 'lib/models/windows10_custom_configuration.rb', line 60 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("omaSettings", @oma_settings) end |