Class: MicrosoftGraph::Models::GroupSetting
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/group_setting.rb
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
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new groupSetting and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#template_id ⇒ Object
Gets the templateId property value.
-
#template_id=(value) ⇒ Object
Sets the templateId property value.
-
#values ⇒ Object
Gets the values property value.
-
#values=(value) ⇒ Object
Sets the values property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new groupSetting and sets the default values.
22 23 24 |
# File 'lib/models/group_setting.rb', line 22 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
30 31 32 33 |
# File 'lib/models/group_setting.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return GroupSetting.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. Display name of this group of settings, which comes from the associated template.
38 39 40 |
# File 'lib/models/group_setting.rb', line 38 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of this group of settings, which comes from the associated template.
46 47 48 |
# File 'lib/models/group_setting.rb', line 46 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/group_setting.rb', line 53 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "templateId" => lambda {|n| @template_id = n.get_string_value() }, "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SettingValue.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
65 66 67 68 69 70 71 |
# File 'lib/models/group_setting.rb', line 65 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_string_value("templateId", @template_id) writer.write_collection_of_object_values("values", @values) end |
#template_id ⇒ Object
Gets the templateId property value. Unique identifier for the tenant-level groupSettingTemplates object that’s been customized for this group-level settings object. Read-only.
76 77 78 |
# File 'lib/models/group_setting.rb', line 76 def template_id return @template_id end |
#template_id=(value) ⇒ Object
Sets the templateId property value. Unique identifier for the tenant-level groupSettingTemplates object that’s been customized for this group-level settings object. Read-only.
84 85 86 |
# File 'lib/models/group_setting.rb', line 84 def template_id=(value) @template_id = value end |
#values ⇒ Object
Gets the values property value. Collection of name-value pairs corresponding to the name and defaultValue properties in the referenced groupSettingTemplates object.
91 92 93 |
# File 'lib/models/group_setting.rb', line 91 def values return @values end |
#values=(value) ⇒ Object
Sets the values property value. Collection of name-value pairs corresponding to the name and defaultValue properties in the referenced groupSettingTemplates object.
99 100 101 |
# File 'lib/models/group_setting.rb', line 99 def values=(value) @values = value end |