Class: MicrosoftGraph::Models::Windows10CustomConfiguration

Inherits:
DeviceConfiguration show all
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

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a windows10_custom_configuration

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_settingsObject

Gets the omaSettings property value. OMA settings. This collection can contain a maximum of 1000 elements.

Returns:

  • a oma_setting



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.

Parameters:

  • value

    Value to set for the omaSettings property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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