Class: MicrosoftGraph::Models::MobileAppAssignment
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mobile_app_assignment.rb
Overview
A class containing the properties used for Group Assignment of a Mobile App.
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 mobileAppAssignment and sets the default values.
-
#intent ⇒ Object
Gets the intent property value.
-
#intent=(value) ⇒ Object
Sets the intent property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#settings ⇒ Object
Gets the settings property value.
-
#settings=(value) ⇒ Object
Sets the settings property value.
-
#target ⇒ Object
Gets the target property value.
-
#target=(value) ⇒ Object
Sets the target property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new mobileAppAssignment and sets the default values.
24 25 26 |
# File 'lib/models/mobile_app_assignment.rb', line 24 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
32 33 34 35 |
# File 'lib/models/mobile_app_assignment.rb', line 32 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MobileAppAssignment.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
40 41 42 43 44 45 46 |
# File 'lib/models/mobile_app_assignment.rb', line 40 def get_field_deserializers() return super.merge({ "intent" => lambda {|n| @intent = n.get_enum_value(MicrosoftGraph::Models::InstallIntent) }, "settings" => lambda {|n| @settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MobileAppAssignmentSettings.create_from_discriminator_value(pn) }) }, "target" => lambda {|n| @target = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DeviceAndAppManagementAssignmentTarget.create_from_discriminator_value(pn) }) }, }) end |
#intent ⇒ Object
Gets the intent property value. Possible values for the install intent chosen by the admin.
51 52 53 |
# File 'lib/models/mobile_app_assignment.rb', line 51 def intent return @intent end |
#intent=(value) ⇒ Object
Sets the intent property value. Possible values for the install intent chosen by the admin.
59 60 61 |
# File 'lib/models/mobile_app_assignment.rb', line 59 def intent=(value) @intent = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
67 68 69 70 71 72 73 |
# File 'lib/models/mobile_app_assignment.rb', line 67 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("intent", @intent) writer.write_object_value("settings", @settings) writer.write_object_value("target", @target) end |
#settings ⇒ Object
Gets the settings property value. The settings for target assignment defined by the admin.
78 79 80 |
# File 'lib/models/mobile_app_assignment.rb', line 78 def settings return @settings end |
#settings=(value) ⇒ Object
Sets the settings property value. The settings for target assignment defined by the admin.
86 87 88 |
# File 'lib/models/mobile_app_assignment.rb', line 86 def settings=(value) @settings = value end |
#target ⇒ Object
Gets the target property value. The target group assignment defined by the admin.
93 94 95 |
# File 'lib/models/mobile_app_assignment.rb', line 93 def target return @target end |
#target=(value) ⇒ Object
Sets the target property value. The target group assignment defined by the admin.
101 102 103 |
# File 'lib/models/mobile_app_assignment.rb', line 101 def target=(value) @target = value end |