Class: MicrosoftGraph::Models::TeamMessagingSettings
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::TeamMessagingSettings
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/team_messaging_settings.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#allow_channel_mentions ⇒ Object
Gets the allowChannelMentions property value.
-
#allow_channel_mentions=(value) ⇒ Object
Sets the allowChannelMentions property value.
-
#allow_owner_delete_messages ⇒ Object
Gets the allowOwnerDeleteMessages property value.
-
#allow_owner_delete_messages=(value) ⇒ Object
Sets the allowOwnerDeleteMessages property value.
-
#allow_team_mentions ⇒ Object
Gets the allowTeamMentions property value.
-
#allow_team_mentions=(value) ⇒ Object
Sets the allowTeamMentions property value.
-
#allow_user_delete_messages ⇒ Object
Gets the allowUserDeleteMessages property value.
-
#allow_user_delete_messages=(value) ⇒ Object
Sets the allowUserDeleteMessages property value.
-
#allow_user_edit_messages ⇒ Object
Gets the allowUserEditMessages property value.
-
#allow_user_edit_messages=(value) ⇒ Object
Sets the allowUserEditMessages property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new teamMessagingSettings and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
42 43 44 |
# File 'lib/models/team_messaging_settings.rb', line 42 def additional_data=(value) @additional_data = value end |
#allow_channel_mentions ⇒ Object
Gets the allowChannelMentions property value. If set to true, @channel mentions are allowed.
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.
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_messages ⇒ Object
Gets the allowOwnerDeleteMessages property value. If set to true, owners can delete any message.
64 65 66 |
# File 'lib/models/team_messaging_settings.rb', line 64 def return end |
#allow_owner_delete_messages=(value) ⇒ Object
Sets the allowOwnerDeleteMessages property value. If set to true, owners can delete any message.
72 73 74 |
# File 'lib/models/team_messaging_settings.rb', line 72 def (value) = value end |
#allow_team_mentions ⇒ Object
Gets the allowTeamMentions property value. If set to true, @team mentions are allowed.
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.
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_messages ⇒ Object
Gets the allowUserDeleteMessages property value. If set to true, users can delete their messages.
94 95 96 |
# File 'lib/models/team_messaging_settings.rb', line 94 def return end |
#allow_user_delete_messages=(value) ⇒ Object
Sets the allowUserDeleteMessages property value. If set to true, users can delete their messages.
102 103 104 |
# File 'lib/models/team_messaging_settings.rb', line 102 def (value) = value end |
#allow_user_edit_messages ⇒ Object
Gets the allowUserEditMessages property value. If set to true, users can edit their messages.
109 110 111 |
# File 'lib/models/team_messaging_settings.rb', line 109 def return end |
#allow_user_edit_messages=(value) ⇒ Object
Sets the allowUserEditMessages property value. If set to true, users can edit their messages.
117 118 119 |
# File 'lib/models/team_messaging_settings.rb', line 117 def (value) = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = n.get_boolean_value() }, "allowTeamMentions" => lambda {|n| @allow_team_mentions = n.get_boolean_value() }, "allowUserDeleteMessages" => lambda {|n| = n.get_boolean_value() }, "allowUserEditMessages" => lambda {|n| = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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", ) writer.write_boolean_value("allowTeamMentions", @allow_team_mentions) writer.write_boolean_value("allowUserDeleteMessages", ) writer.write_boolean_value("allowUserEditMessages", ) writer.write_string_value("@odata.type", @odata_type) writer.write_additional_data(@additional_data) end |