Class: MicrosoftGraph::Models::TeamsAppRemovedEventMessageDetail

Inherits:
EventMessageDetail show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/teams_app_removed_event_message_detail.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from EventMessageDetail

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

Constructor Details

#initializeObject

Instantiates a new teamsAppRemovedEventMessageDetail and sets the default values.



22
23
24
25
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 22

def initialize()
    super
    @odata_type = "#microsoft.graph.teamsAppRemovedEventMessageDetail"
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 teams_app_removed_event_message_detail

Raises:

  • (StandardError)


31
32
33
34
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 31

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



39
40
41
42
43
44
45
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 39

def get_field_deserializers()
    return super.merge({
        "initiator" => lambda {|n| @initiator = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "teamsAppDisplayName" => lambda {|n| @teams_app_display_name = n.get_string_value() },
        "teamsAppId" => lambda {|n| @teams_app_id = n.get_string_value() },
    })
end

#initiatorObject

Gets the initiator property value. Initiator of the event.

Returns:

  • a identity_set



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

def initiator
    return @initiator
end

#initiator=(value) ⇒ Object

Sets the initiator property value. Initiator of the event.

Parameters:

  • value

    Value to set for the initiator property.

Returns:

  • a void



58
59
60
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 58

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


66
67
68
69
70
71
72
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 66

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("initiator", @initiator)
    writer.write_string_value("teamsAppDisplayName", @teams_app_display_name)
    writer.write_string_value("teamsAppId", @teams_app_id)
end

#teams_app_display_nameObject

Gets the teamsAppDisplayName property value. Display name of the teamsApp.

Returns:

  • a string



77
78
79
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 77

def teams_app_display_name
    return @teams_app_display_name
end

#teams_app_display_name=(value) ⇒ Object

Sets the teamsAppDisplayName property value. Display name of the teamsApp.

Parameters:

  • value

    Value to set for the teamsAppDisplayName property.

Returns:

  • a void



85
86
87
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 85

def teams_app_display_name=(value)
    @teams_app_display_name = value
end

#teams_app_idObject

Gets the teamsAppId property value. Unique identifier of the teamsApp.

Returns:

  • a string



92
93
94
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 92

def teams_app_id
    return @teams_app_id
end

#teams_app_id=(value) ⇒ Object

Sets the teamsAppId property value. Unique identifier of the teamsApp.

Parameters:

  • value

    Value to set for the teamsAppId property.

Returns:

  • a void



100
101
102
# File 'lib/models/teams_app_removed_event_message_detail.rb', line 100

def teams_app_id=(value)
    @teams_app_id = value
end