Class: MicrosoftGraph::Models::TeamMessagingSettings

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/team_messaging_settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new teamMessagingSettings and sets the default values.



124
125
126
# File 'lib/models/team_messaging_settings.rb', line 124

def initialize()
    @additional_data = Hash.new
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 team_messaging_settings

Raises:

  • (StandardError)


132
133
134
135
# File 'lib/models/team_messaging_settings.rb', line 132

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return TeamMessagingSettings.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/models/team_messaging_settings.rb', line 34

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/team_messaging_settings.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#allow_channel_mentionsObject

Gets the allowChannelMentions property value. If set to true, @channel mentions are allowed.

Returns:

  • a boolean



49
50
51
# File 'lib/models/team_messaging_settings.rb', line 49

def allow_channel_mentions
    return @allow_channel_mentions
end

#allow_channel_mentions=(value) ⇒ Object

Sets the allowChannelMentions property value. If set to true, @channel mentions are allowed.

Parameters:

  • value

    Value to set for the allowChannelMentions property.

Returns:

  • a void



57
58
59
# File 'lib/models/team_messaging_settings.rb', line 57

def allow_channel_mentions=(value)
    @allow_channel_mentions = value
end

#allow_owner_delete_messagesObject

Gets the allowOwnerDeleteMessages property value. If set to true, owners can delete any message.

Returns:

  • a boolean



64
65
66
# File 'lib/models/team_messaging_settings.rb', line 64

def allow_owner_delete_messages
    return @allow_owner_delete_messages
end

#allow_owner_delete_messages=(value) ⇒ Object

Sets the allowOwnerDeleteMessages property value. If set to true, owners can delete any message.

Parameters:

  • value

    Value to set for the allowOwnerDeleteMessages property.

Returns:

  • a void



72
73
74
# File 'lib/models/team_messaging_settings.rb', line 72

def allow_owner_delete_messages=(value)
    @allow_owner_delete_messages = value
end

#allow_team_mentionsObject

Gets the allowTeamMentions property value. If set to true, @team mentions are allowed.

Returns:

  • a boolean



79
80
81
# File 'lib/models/team_messaging_settings.rb', line 79

def allow_team_mentions
    return @allow_team_mentions
end

#allow_team_mentions=(value) ⇒ Object

Sets the allowTeamMentions property value. If set to true, @team mentions are allowed.

Parameters:

  • value

    Value to set for the allowTeamMentions property.

Returns:

  • a void



87
88
89
# File 'lib/models/team_messaging_settings.rb', line 87

def allow_team_mentions=(value)
    @allow_team_mentions = value
end

#allow_user_delete_messagesObject

Gets the allowUserDeleteMessages property value. If set to true, users can delete their messages.

Returns:

  • a boolean



94
95
96
# File 'lib/models/team_messaging_settings.rb', line 94

def allow_user_delete_messages
    return @allow_user_delete_messages
end

#allow_user_delete_messages=(value) ⇒ Object

Sets the allowUserDeleteMessages property value. If set to true, users can delete their messages.

Parameters:

  • value

    Value to set for the allowUserDeleteMessages property.

Returns:

  • a void



102
103
104
# File 'lib/models/team_messaging_settings.rb', line 102

def allow_user_delete_messages=(value)
    @allow_user_delete_messages = value
end

#allow_user_edit_messagesObject

Gets the allowUserEditMessages property value. If set to true, users can edit their messages.

Returns:

  • a boolean



109
110
111
# File 'lib/models/team_messaging_settings.rb', line 109

def allow_user_edit_messages
    return @allow_user_edit_messages
end

#allow_user_edit_messages=(value) ⇒ Object

Sets the allowUserEditMessages property value. If set to true, users can edit their messages.

Parameters:

  • value

    Value to set for the allowUserEditMessages property.

Returns:

  • a void



117
118
119
# File 'lib/models/team_messaging_settings.rb', line 117

def allow_user_edit_messages=(value)
    @allow_user_edit_messages = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



140
141
142
143
144
145
146
147
148
149
# File 'lib/models/team_messaging_settings.rb', line 140

def get_field_deserializers()
    return {
        "allowChannelMentions" => lambda {|n| @allow_channel_mentions = n.get_boolean_value() },
        "allowOwnerDeleteMessages" => lambda {|n| @allow_owner_delete_messages = n.get_boolean_value() },
        "allowTeamMentions" => lambda {|n| @allow_team_mentions = n.get_boolean_value() },
        "allowUserDeleteMessages" => lambda {|n| @allow_user_delete_messages = n.get_boolean_value() },
        "allowUserEditMessages" => lambda {|n| @allow_user_edit_messages = n.get_boolean_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
    }
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



154
155
156
# File 'lib/models/team_messaging_settings.rb', line 154

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



162
163
164
# File 'lib/models/team_messaging_settings.rb', line 162

def odata_type=(value)
    @odata_type = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


170
171
172
173
174
175
176
177
178
179
# File 'lib/models/team_messaging_settings.rb', line 170

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("allowChannelMentions", @allow_channel_mentions)
    writer.write_boolean_value("allowOwnerDeleteMessages", @allow_owner_delete_messages)
    writer.write_boolean_value("allowTeamMentions", @allow_team_mentions)
    writer.write_boolean_value("allowUserDeleteMessages", @allow_user_delete_messages)
    writer.write_boolean_value("allowUserEditMessages", @allow_user_edit_messages)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_additional_data(@additional_data)
end