Class: MicrosoftGraph::Models::IosMobileAppConfiguration

Inherits:
ManagedDeviceMobileAppConfiguration show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/ios_mobile_app_configuration.rb

Overview

Contains properties, inherited properties and actions for iOS mobile app configurations.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ManagedDeviceMobileAppConfiguration

#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_status_summary, #device_status_summary=, #device_statuses, #device_statuses=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #targeted_mobile_apps, #targeted_mobile_apps=, #user_status_summary, #user_status_summary=, #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 iosMobileAppConfiguration and sets the default values.



21
22
23
24
# File 'lib/models/ios_mobile_app_configuration.rb', line 21

def initialize()
    super
    @odata_type = "#microsoft.graph.iosMobileAppConfiguration"
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 ios_mobile_app_configuration

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/ios_mobile_app_configuration.rb', line 30

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return IosMobileAppConfiguration.new
end

Instance Method Details

#encoded_setting_xmlObject

Gets the encodedSettingXml property value. mdm app configuration Base64 binary.

Returns:

  • a base64url



38
39
40
# File 'lib/models/ios_mobile_app_configuration.rb', line 38

def encoded_setting_xml
    return @encoded_setting_xml
end

#encoded_setting_xml=(value) ⇒ Object

Sets the encodedSettingXml property value. mdm app configuration Base64 binary.

Parameters:

  • value

    Value to set for the encodedSettingXml property.

Returns:

  • a void



46
47
48
# File 'lib/models/ios_mobile_app_configuration.rb', line 46

def encoded_setting_xml=(value)
    @encoded_setting_xml = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



53
54
55
56
57
58
# File 'lib/models/ios_mobile_app_configuration.rb', line 53

def get_field_deserializers()
    return super.merge({
        "encodedSettingXml" => lambda {|n| @encoded_setting_xml = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) },
        "settings" => lambda {|n| @settings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppConfigurationSettingItem.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)


64
65
66
67
68
69
# File 'lib/models/ios_mobile_app_configuration.rb', line 64

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("encodedSettingXml", @encoded_setting_xml)
    writer.write_collection_of_object_values("settings", @settings)
end

#settingsObject

Gets the settings property value. app configuration setting items.

Returns:

  • a app_configuration_setting_item



74
75
76
# File 'lib/models/ios_mobile_app_configuration.rb', line 74

def settings
    return @settings
end

#settings=(value) ⇒ Object

Sets the settings property value. app configuration setting items.

Parameters:

  • value

    Value to set for the settings property.

Returns:

  • a void



82
83
84
# File 'lib/models/ios_mobile_app_configuration.rb', line 82

def settings=(value)
    @settings = value
end