Class: MicrosoftGraph::Models::ManagedAppConfiguration
- Inherits:
-
ManagedAppPolicy
- Object
- Entity
- ManagedAppPolicy
- MicrosoftGraph::Models::ManagedAppConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/managed_app_configuration.rb
Overview
Configuration used to deliver a set of custom settings as-is to apps for users to whom the configuration is scoped
Direct Known Subclasses
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
-
#custom_settings ⇒ Object
Gets the customSettings property value.
-
#custom_settings=(value) ⇒ Object
Sets the customSettings property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new managedAppConfiguration and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from ManagedAppPolicy
#created_date_time, #created_date_time=, #description, #description=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #version, #version=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new managedAppConfiguration and sets the default values.
18 19 20 21 |
# File 'lib/models/managed_app_configuration.rb', line 18 def initialize() super @odata_type = "#microsoft.graph.managedAppConfiguration" 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 31 32 33 34 35 36 37 38 |
# File 'lib/models/managed_app_configuration.rb', line 27 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.targetedManagedAppConfiguration" return TargetedManagedAppConfiguration.new end end return ManagedAppConfiguration.new end |
Instance Method Details
#custom_settings ⇒ Object
Gets the customSettings property value. A set of string key and string value pairs to be sent to apps for users to whom the configuration is scoped, unalterned by this service
43 44 45 |
# File 'lib/models/managed_app_configuration.rb', line 43 def custom_settings return @custom_settings end |
#custom_settings=(value) ⇒ Object
Sets the customSettings property value. A set of string key and string value pairs to be sent to apps for users to whom the configuration is scoped, unalterned by this service
51 52 53 |
# File 'lib/models/managed_app_configuration.rb', line 51 def custom_settings=(value) @custom_settings = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
58 59 60 61 62 |
# File 'lib/models/managed_app_configuration.rb', line 58 def get_field_deserializers() return super.merge({ "customSettings" => lambda {|n| @custom_settings = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::KeyValuePair.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
68 69 70 71 72 |
# File 'lib/models/managed_app_configuration.rb', line 68 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("customSettings", @custom_settings) end |