Class: MicrosoftGraph::Models::TeamMemberSettings

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new teamMemberSettings and sets the default values.



142
143
144
# File 'lib/models/team_member_settings.rb', line 142

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_member_settings

Raises:

  • (StandardError)


150
151
152
153
# File 'lib/models/team_member_settings.rb', line 150

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return TeamMemberSettings.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



37
38
39
# File 'lib/models/team_member_settings.rb', line 37

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



45
46
47
# File 'lib/models/team_member_settings.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#allow_add_remove_appsObject

Gets the allowAddRemoveApps property value. If set to true, members can add and remove apps.

Returns:

  • a boolean



52
53
54
# File 'lib/models/team_member_settings.rb', line 52

def allow_add_remove_apps
    return @allow_add_remove_apps
end

#allow_add_remove_apps=(value) ⇒ Object

Sets the allowAddRemoveApps property value. If set to true, members can add and remove apps.

Parameters:

  • value

    Value to set for the allowAddRemoveApps property.

Returns:

  • a void



60
61
62
# File 'lib/models/team_member_settings.rb', line 60

def allow_add_remove_apps=(value)
    @allow_add_remove_apps = value
end

#allow_create_private_channelsObject

Gets the allowCreatePrivateChannels property value. If set to true, members can add and update private channels.

Returns:

  • a boolean



67
68
69
# File 'lib/models/team_member_settings.rb', line 67

def allow_create_private_channels
    return @allow_create_private_channels
end

#allow_create_private_channels=(value) ⇒ Object

Sets the allowCreatePrivateChannels property value. If set to true, members can add and update private channels.

Parameters:

  • value

    Value to set for the allowCreatePrivateChannels property.

Returns:

  • a void



75
76
77
# File 'lib/models/team_member_settings.rb', line 75

def allow_create_private_channels=(value)
    @allow_create_private_channels = value
end

#allow_create_update_channelsObject

Gets the allowCreateUpdateChannels property value. If set to true, members can add and update channels.

Returns:

  • a boolean



82
83
84
# File 'lib/models/team_member_settings.rb', line 82

def allow_create_update_channels
    return @allow_create_update_channels
end

#allow_create_update_channels=(value) ⇒ Object

Sets the allowCreateUpdateChannels property value. If set to true, members can add and update channels.

Parameters:

  • value

    Value to set for the allowCreateUpdateChannels property.

Returns:

  • a void



90
91
92
# File 'lib/models/team_member_settings.rb', line 90

def allow_create_update_channels=(value)
    @allow_create_update_channels = value
end

#allow_create_update_remove_connectorsObject

Gets the allowCreateUpdateRemoveConnectors property value. If set to true, members can add, update, and remove connectors.

Returns:

  • a boolean



97
98
99
# File 'lib/models/team_member_settings.rb', line 97

def allow_create_update_remove_connectors
    return @allow_create_update_remove_connectors
end

#allow_create_update_remove_connectors=(value) ⇒ Object

Sets the allowCreateUpdateRemoveConnectors property value. If set to true, members can add, update, and remove connectors.

Parameters:

  • value

    Value to set for the allowCreateUpdateRemoveConnectors property.

Returns:

  • a void



105
106
107
# File 'lib/models/team_member_settings.rb', line 105

def allow_create_update_remove_connectors=(value)
    @allow_create_update_remove_connectors = value
end

#allow_create_update_remove_tabsObject

Gets the allowCreateUpdateRemoveTabs property value. If set to true, members can add, update, and remove tabs.

Returns:

  • a boolean



112
113
114
# File 'lib/models/team_member_settings.rb', line 112

def allow_create_update_remove_tabs
    return @allow_create_update_remove_tabs
end

#allow_create_update_remove_tabs=(value) ⇒ Object

Sets the allowCreateUpdateRemoveTabs property value. If set to true, members can add, update, and remove tabs.

Parameters:

  • value

    Value to set for the allowCreateUpdateRemoveTabs property.

Returns:

  • a void



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

def allow_create_update_remove_tabs=(value)
    @allow_create_update_remove_tabs = value
end

#allow_delete_channelsObject

Gets the allowDeleteChannels property value. If set to true, members can delete channels.

Returns:

  • a boolean



127
128
129
# File 'lib/models/team_member_settings.rb', line 127

def allow_delete_channels
    return @allow_delete_channels
end

#allow_delete_channels=(value) ⇒ Object

Sets the allowDeleteChannels property value. If set to true, members can delete channels.

Parameters:

  • value

    Value to set for the allowDeleteChannels property.

Returns:

  • a void



135
136
137
# File 'lib/models/team_member_settings.rb', line 135

def allow_delete_channels=(value)
    @allow_delete_channels = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



158
159
160
161
162
163
164
165
166
167
168
# File 'lib/models/team_member_settings.rb', line 158

def get_field_deserializers()
    return {
        "allowAddRemoveApps" => lambda {|n| @allow_add_remove_apps = n.get_boolean_value() },
        "allowCreatePrivateChannels" => lambda {|n| @allow_create_private_channels = n.get_boolean_value() },
        "allowCreateUpdateChannels" => lambda {|n| @allow_create_update_channels = n.get_boolean_value() },
        "allowCreateUpdateRemoveConnectors" => lambda {|n| @allow_create_update_remove_connectors = n.get_boolean_value() },
        "allowCreateUpdateRemoveTabs" => lambda {|n| @allow_create_update_remove_tabs = n.get_boolean_value() },
        "allowDeleteChannels" => lambda {|n| @allow_delete_channels = 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



173
174
175
# File 'lib/models/team_member_settings.rb', line 173

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



181
182
183
# File 'lib/models/team_member_settings.rb', line 181

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)


189
190
191
192
193
194
195
196
197
198
199
# File 'lib/models/team_member_settings.rb', line 189

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_boolean_value("allowAddRemoveApps", @allow_add_remove_apps)
    writer.write_boolean_value("allowCreatePrivateChannels", @allow_create_private_channels)
    writer.write_boolean_value("allowCreateUpdateChannels", @allow_create_update_channels)
    writer.write_boolean_value("allowCreateUpdateRemoveConnectors", @allow_create_update_remove_connectors)
    writer.write_boolean_value("allowCreateUpdateRemoveTabs", @allow_create_update_remove_tabs)
    writer.write_boolean_value("allowDeleteChannels", @allow_delete_channels)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_additional_data(@additional_data)
end