Class: MicrosoftGraph::Models::TeamFunSettings

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a team_fun_settings

Raises:

  • (StandardError)


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_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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



39
40
41
# File 'lib/models/team_fun_settings.rb', line 39

def additional_data=(value)
    @additional_data = value
end

#allow_custom_memesObject

Gets the allowCustomMemes property value. If set to true, enables users to include custom memes.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the allowCustomMemes property.

Returns:

  • a void



54
55
56
# File 'lib/models/team_fun_settings.rb', line 54

def allow_custom_memes=(value)
    @allow_custom_memes = value
end

#allow_giphyObject

Gets the allowGiphy property value. If set to true, enables Giphy use.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the allowGiphy property.

Returns:

  • a void



69
70
71
# File 'lib/models/team_fun_settings.rb', line 69

def allow_giphy=(value)
    @allow_giphy = value
end

#allow_stickers_and_memesObject

Gets the allowStickersAndMemes property value. If set to true, enables users to include stickers and memes.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the allowStickersAndMemes property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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| @giphy_content_rating = n.get_enum_value(MicrosoftGraph::Models::GiphyRatingType) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
    }
end

#giphy_content_ratingObject

Gets the giphyContentRating property value. Giphy content rating. Possible values are: moderate, strict.

Returns:

  • a giphy_rating_type



120
121
122
# File 'lib/models/team_fun_settings.rb', line 120

def giphy_content_rating
    return @giphy_content_rating
end

#giphy_content_rating=(value) ⇒ Object

Sets the giphyContentRating property value. Giphy content rating. Possible values are: moderate, strict.

Parameters:

  • value

    Value to set for the giphyContentRating property.

Returns:

  • a void



128
129
130
# File 'lib/models/team_fun_settings.rb', line 128

def giphy_content_rating=(value)
    @giphy_content_rating = value
end

#odata_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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", @giphy_content_rating)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_additional_data(@additional_data)
end