Class: MicrosoftGraph::Models::AadUserConversationMember

Inherits:
ConversationMember show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/aad_user_conversation_member.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ConversationMember

#display_name, #display_name=, #roles, #roles=, #visible_history_start_date_time, #visible_history_start_date_time=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new aadUserConversationMember and sets the default values.



25
26
27
28
# File 'lib/models/aad_user_conversation_member.rb', line 25

def initialize()
    super
    @odata_type = "#microsoft.graph.aadUserConversationMember"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

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

Returns:

  • a aad_user_conversation_member

Raises:



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

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

Instance Method Details

#emailObject

Gets the email property value. The email address of the user.

Returns:

  • a string



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

def email
    return @email
end

#email=(value) ⇒ Object

Sets the email property value. The email address of the user.

Parameters:

  • Value to set for the email property.

Returns:

  • a void



50
51
52
# File 'lib/models/aad_user_conversation_member.rb', line 50

def email=(value)
    @email = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



57
58
59
60
61
62
63
64
# File 'lib/models/aad_user_conversation_member.rb', line 57

def get_field_deserializers()
    return super.merge({
        "email" => lambda {|n| @email = n.get_string_value() },
        "tenantId" => lambda {|n| @tenant_id = n.get_string_value() },
        "user" => lambda {|n| @user = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::User.create_from_discriminator_value(pn) }) },
        "userId" => lambda {|n| @user_id = n.get_string_value() },
    })
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • Serialization writer to use to serialize this model

Returns:

  • a void

Raises:



70
71
72
73
74
75
76
77
# File 'lib/models/aad_user_conversation_member.rb', line 70

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("email", @email)
    writer.write_string_value("tenantId", @tenant_id)
    writer.write_object_value("user", @user)
    writer.write_string_value("userId", @user_id)
end

#tenant_idObject

Gets the tenantId property value. TenantId which the Azure AD user belongs to.

Returns:

  • a string



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

def tenant_id
    return @tenant_id
end

#tenant_id=(value) ⇒ Object

Sets the tenantId property value. TenantId which the Azure AD user belongs to.

Parameters:

  • Value to set for the tenantId property.

Returns:

  • a void



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

def tenant_id=(value)
    @tenant_id = value
end

#userObject

Gets the user property value. The user property

Returns:

  • a user



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

def user
    return @user
end

#user=(value) ⇒ Object

Sets the user property value. The user property

Parameters:

  • Value to set for the user property.

Returns:

  • a void



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

def user=(value)
    @user = value
end

#user_idObject

Gets the userId property value. The guid of the user.

Returns:

  • a string



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

def user_id
    return @user_id
end

#user_id=(value) ⇒ Object

Sets the userId property value. The guid of the user.

Parameters:

  • Value to set for the userId property.

Returns:

  • a void



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

def user_id=(value)
    @user_id = value
end