Class: MicrosoftGraph::Models::GroupSettingTemplate
- Inherits:
-
DirectoryObject
- Object
- Entity
- DirectoryObject
- MicrosoftGraph::Models::GroupSettingTemplate
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/group_setting_template.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
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#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 groupSettingTemplate and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#values ⇒ Object
Gets the values property value.
-
#values=(value) ⇒ Object
Sets the values property value.
Methods inherited from DirectoryObject
#deleted_date_time, #deleted_date_time=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new groupSettingTemplate and sets the default values.
22 23 24 25 |
# File 'lib/models/group_setting_template.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.groupSettingTemplate" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/group_setting_template.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return GroupSettingTemplate.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. Description of the template.
39 40 41 |
# File 'lib/models/group_setting_template.rb', line 39 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the template.
47 48 49 |
# File 'lib/models/group_setting_template.rb', line 47 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Display name of the template. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.
54 55 56 |
# File 'lib/models/group_setting_template.rb', line 54 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Display name of the template. The template named Group.Unified can be used to configure tenant-wide Microsoft 365 group settings, while the template named Group.Unified.Guest can be used to configure group-specific settings.
62 63 64 |
# File 'lib/models/group_setting_template.rb', line 62 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/models/group_setting_template.rb', line 69 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "values" => lambda {|n| @values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SettingTemplateValue.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
81 82 83 84 85 86 87 |
# File 'lib/models/group_setting_template.rb', line 81 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_collection_of_object_values("values", @values) end |
#values ⇒ Object
Gets the values property value. Collection of settingTemplateValues that list the set of available settings, defaults and types that make up this template.
92 93 94 |
# File 'lib/models/group_setting_template.rb', line 92 def values return @values end |
#values=(value) ⇒ Object
Sets the values property value. Collection of settingTemplateValues that list the set of available settings, defaults and types that make up this template.
100 101 102 |
# File 'lib/models/group_setting_template.rb', line 100 def values=(value) @values = value end |