Class: MicrosoftGraph::Models::TeamFunSettings
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::TeamFunSettings
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/team_fun_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_custom_memes ⇒ Object
Gets the allowCustomMemes property value.
-
#allow_custom_memes=(value) ⇒ Object
Sets the allowCustomMemes property value.
-
#allow_giphy ⇒ Object
Gets the allowGiphy property value.
-
#allow_giphy=(value) ⇒ Object
Sets the allowGiphy property value.
-
#allow_stickers_and_memes ⇒ Object
Gets the allowStickersAndMemes property value.
-
#allow_stickers_and_memes=(value) ⇒ Object
Sets the allowStickersAndMemes property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#giphy_content_rating ⇒ Object
Gets the giphyContentRating property value.
-
#giphy_content_rating=(value) ⇒ Object
Sets the giphyContentRating property value.
-
#initialize ⇒ Object
constructor
Instantiates a new teamFunSettings 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 teamFunSettings and sets the default values.
91 92 93 |
# File 'lib/models/team_fun_settings.rb', line 91 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
99 100 101 102 |
# File 'lib/models/team_fun_settings.rb', line 99 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TeamFunSettings.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.
31 32 33 |
# File 'lib/models/team_fun_settings.rb', line 31 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.
39 40 41 |
# File 'lib/models/team_fun_settings.rb', line 39 def additional_data=(value) @additional_data = value end |
#allow_custom_memes ⇒ Object
Gets the allowCustomMemes property value. If set to true, enables users to include custom memes.
46 47 48 |
# File 'lib/models/team_fun_settings.rb', line 46 def allow_custom_memes return @allow_custom_memes end |
#allow_custom_memes=(value) ⇒ Object
Sets the allowCustomMemes property value. If set to true, enables users to include custom memes.
54 55 56 |
# File 'lib/models/team_fun_settings.rb', line 54 def allow_custom_memes=(value) @allow_custom_memes = value end |
#allow_giphy ⇒ Object
Gets the allowGiphy property value. If set to true, enables Giphy use.
61 62 63 |
# File 'lib/models/team_fun_settings.rb', line 61 def allow_giphy return @allow_giphy end |
#allow_giphy=(value) ⇒ Object
Sets the allowGiphy property value. If set to true, enables Giphy use.
69 70 71 |
# File 'lib/models/team_fun_settings.rb', line 69 def allow_giphy=(value) @allow_giphy = value end |
#allow_stickers_and_memes ⇒ Object
Gets the allowStickersAndMemes property value. If set to true, enables users to include stickers and memes.
76 77 78 |
# File 'lib/models/team_fun_settings.rb', line 76 def allow_stickers_and_memes return @allow_stickers_and_memes end |
#allow_stickers_and_memes=(value) ⇒ Object
Sets the allowStickersAndMemes property value. If set to true, enables users to include stickers and memes.
84 85 86 |
# File 'lib/models/team_fun_settings.rb', line 84 def allow_stickers_and_memes=(value) @allow_stickers_and_memes = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
107 108 109 110 111 112 113 114 115 |
# File 'lib/models/team_fun_settings.rb', line 107 def get_field_deserializers() return { "allowCustomMemes" => lambda {|n| @allow_custom_memes = n.get_boolean_value() }, "allowGiphy" => lambda {|n| @allow_giphy = n.get_boolean_value() }, "allowStickersAndMemes" => lambda {|n| @allow_stickers_and_memes = n.get_boolean_value() }, "giphyContentRating" => lambda {|n| = n.get_enum_value(MicrosoftGraph::Models::GiphyRatingType) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, } end |
#giphy_content_rating ⇒ Object
Gets the giphyContentRating property value. Giphy content rating. Possible values are: moderate, strict.
120 121 122 |
# File 'lib/models/team_fun_settings.rb', line 120 def return end |
#giphy_content_rating=(value) ⇒ Object
Sets the giphyContentRating property value. Giphy content rating. Possible values are: moderate, strict.
128 129 130 |
# File 'lib/models/team_fun_settings.rb', line 128 def (value) = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
135 136 137 |
# File 'lib/models/team_fun_settings.rb', line 135 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
143 144 145 |
# File 'lib/models/team_fun_settings.rb', line 143 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
151 152 153 154 155 156 157 158 159 |
# File 'lib/models/team_fun_settings.rb', line 151 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("allowCustomMemes", @allow_custom_memes) writer.write_boolean_value("allowGiphy", @allow_giphy) writer.write_boolean_value("allowStickersAndMemes", @allow_stickers_and_memes) writer.write_enum_value("giphyContentRating", ) writer.write_string_value("@odata.type", @odata_type) writer.write_additional_data(@additional_data) end |