Class: MicrosoftGraph::Models::GroupSettingTemplate

Inherits:
DirectoryObject show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/group_setting_template.rb

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a group_setting_template

Raises:

  • (StandardError)


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

#descriptionObject

Gets the description property value. Description of the template.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



47
48
49
# File 'lib/models/group_setting_template.rb', line 47

def description=(value)
    @description = value
end

#display_nameObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



62
63
64
# File 'lib/models/group_setting_template.rb', line 62

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#valuesObject

Gets the values property value. Collection of settingTemplateValues that list the set of available settings, defaults and types that make up this template.

Returns:

  • a setting_template_value



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.

Parameters:

  • value

    Value to set for the values property.

Returns:

  • a void



100
101
102
# File 'lib/models/group_setting_template.rb', line 100

def values=(value)
    @values = value
end