Class: MicrosoftGraph::Models::SharedWithChannelTeamInfo

Inherits:
TeamInfo
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/shared_with_channel_team_info.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TeamInfo

#display_name, #display_name=, #team, #team=, #tenant_id, #tenant_id=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new sharedWithChannelTeamInfo and sets the default values.



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

def initialize()
    super
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 shared_with_channel_team_info

Raises:

  • (StandardError)


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

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

Instance Method Details

#allowed_membersObject

Gets the allowedMembers property value. A collection of team members who have access to the shared channel.

Returns:

  • a conversation_member



19
20
21
# File 'lib/models/shared_with_channel_team_info.rb', line 19

def allowed_members
    return @allowed_members
end

#allowed_members=(value) ⇒ Object

Sets the allowedMembers property value. A collection of team members who have access to the shared channel.

Parameters:

  • value

    Value to set for the allowedMembers property.

Returns:

  • a void



27
28
29
# File 'lib/models/shared_with_channel_team_info.rb', line 27

def allowed_members=(value)
    @allowed_members = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



50
51
52
53
54
55
# File 'lib/models/shared_with_channel_team_info.rb', line 50

def get_field_deserializers()
    return super.merge({
        "allowedMembers" => lambda {|n| @allowed_members = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConversationMember.create_from_discriminator_value(pn) }) },
        "isHostTeam" => lambda {|n| @is_host_team = n.get_boolean_value() },
    })
end

#is_host_teamObject

Gets the isHostTeam property value. Indicates whether the team is the host of the channel.

Returns:

  • a boolean



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

def is_host_team
    return @is_host_team
end

#is_host_team=(value) ⇒ Object

Sets the isHostTeam property value. Indicates whether the team is the host of the channel.

Parameters:

  • value

    Value to set for the isHostTeam property.

Returns:

  • a void



68
69
70
# File 'lib/models/shared_with_channel_team_info.rb', line 68

def is_host_team=(value)
    @is_host_team = 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)


76
77
78
79
80
81
# File 'lib/models/shared_with_channel_team_info.rb', line 76

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("allowedMembers", @allowed_members)
    writer.write_boolean_value("isHostTeam", @is_host_team)
end