Class: MicrosoftGraph::Models::Win32LobAppAssignmentSettings

Inherits:
MobileAppAssignmentSettings show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/win32_lob_app_assignment_settings.rb

Overview

Contains properties used to assign an Win32 LOB mobile app to a group.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MobileAppAssignmentSettings

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

Constructor Details

#initializeObject

Instantiates a new win32LobAppAssignmentSettings and sets the default values.



27
28
29
30
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 27

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

Raises:

  • (StandardError)


36
37
38
39
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 36

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

Instance Method Details

#delivery_optimization_priorityObject

Gets the deliveryOptimizationPriority property value. Contains value for delivery optimization priority.

Returns:

  • a win32_lob_app_delivery_optimization_priority



44
45
46
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 44

def delivery_optimization_priority
    return @delivery_optimization_priority
end

#delivery_optimization_priority=(value) ⇒ Object

Sets the deliveryOptimizationPriority property value. Contains value for delivery optimization priority.

Parameters:

  • value

    Value to set for the deliveryOptimizationPriority property.

Returns:

  • a void



52
53
54
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 52

def delivery_optimization_priority=(value)
    @delivery_optimization_priority = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



59
60
61
62
63
64
65
66
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 59

def get_field_deserializers()
    return super.merge({
        "deliveryOptimizationPriority" => lambda {|n| @delivery_optimization_priority = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppDeliveryOptimizationPriority) },
        "installTimeSettings" => lambda {|n| @install_time_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MobileAppInstallTimeSettings.create_from_discriminator_value(pn) }) },
        "notifications" => lambda {|n| @notifications = n.get_enum_value(MicrosoftGraph::Models::Win32LobAppNotification) },
        "restartSettings" => lambda {|n| @restart_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Win32LobAppRestartSettings.create_from_discriminator_value(pn) }) },
    })
end

#install_time_settingsObject

Gets the installTimeSettings property value. The install time settings to apply for this app assignment.

Returns:

  • a mobile_app_install_time_settings



71
72
73
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 71

def install_time_settings
    return @install_time_settings
end

#install_time_settings=(value) ⇒ Object

Sets the installTimeSettings property value. The install time settings to apply for this app assignment.

Parameters:

  • value

    Value to set for the installTimeSettings property.

Returns:

  • a void



79
80
81
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 79

def install_time_settings=(value)
    @install_time_settings = value
end

#notificationsObject

Gets the notifications property value. Contains value for notification status.

Returns:

  • a win32_lob_app_notification



86
87
88
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 86

def notifications
    return @notifications
end

#notifications=(value) ⇒ Object

Sets the notifications property value. Contains value for notification status.

Parameters:

  • value

    Value to set for the notifications property.

Returns:

  • a void



94
95
96
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 94

def notifications=(value)
    @notifications = value
end

#restart_settingsObject

Gets the restartSettings property value. The reboot settings to apply for this app assignment.

Returns:

  • a win32_lob_app_restart_settings



101
102
103
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 101

def restart_settings
    return @restart_settings
end

#restart_settings=(value) ⇒ Object

Sets the restartSettings property value. The reboot settings to apply for this app assignment.

Parameters:

  • value

    Value to set for the restartSettings property.

Returns:

  • a void



109
110
111
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 109

def restart_settings=(value)
    @restart_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)


117
118
119
120
121
122
123
124
# File 'lib/models/win32_lob_app_assignment_settings.rb', line 117

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("deliveryOptimizationPriority", @delivery_optimization_priority)
    writer.write_object_value("installTimeSettings", @install_time_settings)
    writer.write_enum_value("notifications", @notifications)
    writer.write_object_value("restartSettings", @restart_settings)
end