Class: MicrosoftGraph::Models::SharedWithChannelTeamInfo
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/shared_with_channel_team_info.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
-
#allowed_members ⇒ Object
Gets the allowedMembers property value.
-
#allowed_members=(value) ⇒ Object
Sets the allowedMembers property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new sharedWithChannelTeamInfo and sets the default values.
-
#is_host_team ⇒ Object
Gets the isHostTeam property value.
-
#is_host_team=(value) ⇒ Object
Sets the isHostTeam property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
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
#initialize ⇒ Object
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
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_members ⇒ Object
Gets the allowedMembers property value. A collection of team members who have access to the shared channel.
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.
27 28 29 |
# File 'lib/models/shared_with_channel_team_info.rb', line 27 def allowed_members=(value) @allowed_members = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_team ⇒ Object
Gets the isHostTeam property value. Indicates whether the team is the host of the channel.
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.
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
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 |