Class: MicrosoftGraph::Models::CalendarSharingMessage

Inherits:
Message show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/calendar_sharing_message.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Message

#attachments, #attachments=, #bcc_recipients, #bcc_recipients=, #body, #body=, #body_preview, #body_preview=, #cc_recipients, #cc_recipients=, #conversation_id, #conversation_id=, #conversation_index, #conversation_index=, #extensions, #extensions=, #flag, #flag=, #from, #from=, #has_attachments, #has_attachments=, #importance, #importance=, #inference_classification, #inference_classification=, #internet_message_headers, #internet_message_headers=, #internet_message_id, #internet_message_id=, #is_delivery_receipt_requested, #is_delivery_receipt_requested=, #is_draft, #is_draft=, #is_read, #is_read=, #is_read_receipt_requested, #is_read_receipt_requested=, #multi_value_extended_properties, #multi_value_extended_properties=, #parent_folder_id, #parent_folder_id=, #received_date_time, #received_date_time=, #reply_to, #reply_to=, #sender, #sender=, #sent_date_time, #sent_date_time=, #single_value_extended_properties, #single_value_extended_properties=, #subject, #subject=, #to_recipients, #to_recipients=, #unique_body, #unique_body=, #web_link, #web_link=

Methods inherited from OutlookItem

#categories, #categories=, #change_key, #change_key=, #created_date_time, #created_date_time=, #last_modified_date_time, #last_modified_date_time=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new calendarSharingMessage and sets the default values.



40
41
42
43
# File 'lib/models/calendar_sharing_message.rb', line 40

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#can_acceptObject

Gets the canAccept property value. The canAccept property

Returns:

  • a boolean



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

def can_accept
    return @can_accept
end

#can_accept=(value) ⇒ Object

Sets the canAccept property value. The canAccept property

Parameters:

  • value

    Value to set for the canAccept property.

Returns:

  • a void



33
34
35
# File 'lib/models/calendar_sharing_message.rb', line 33

def can_accept=(value)
    @can_accept = 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/calendar_sharing_message.rb', line 57

def get_field_deserializers()
    return super.merge({
        "canAccept" => lambda {|n| @can_accept = n.get_boolean_value() },
        "sharingMessageAction" => lambda {|n| @sharing_message_action = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CalendarSharingMessageAction.create_from_discriminator_value(pn) }) },
        "sharingMessageActions" => lambda {|n| @sharing_message_actions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::CalendarSharingMessageAction.create_from_discriminator_value(pn) }) },
        "suggestedCalendarName" => lambda {|n| @suggested_calendar_name = n.get_string_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)


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

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_boolean_value("canAccept", @can_accept)
    writer.write_object_value("sharingMessageAction", @sharing_message_action)
    writer.write_collection_of_object_values("sharingMessageActions", @sharing_message_actions)
    writer.write_string_value("suggestedCalendarName", @suggested_calendar_name)
end

#sharing_message_actionObject

Gets the sharingMessageAction property value. The sharingMessageAction property

Returns:

  • a calendar_sharing_message_action



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

def sharing_message_action
    return @sharing_message_action
end

#sharing_message_action=(value) ⇒ Object

Sets the sharingMessageAction property value. The sharingMessageAction property

Parameters:

  • value

    Value to set for the sharingMessageAction property.

Returns:

  • a void



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

def sharing_message_action=(value)
    @sharing_message_action = value
end

#sharing_message_actionsObject

Gets the sharingMessageActions property value. The sharingMessageActions property

Returns:

  • a calendar_sharing_message_action



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

def sharing_message_actions
    return @sharing_message_actions
end

#sharing_message_actions=(value) ⇒ Object

Sets the sharingMessageActions property value. The sharingMessageActions property

Parameters:

  • value

    Value to set for the sharingMessageActions property.

Returns:

  • a void



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

def sharing_message_actions=(value)
    @sharing_message_actions = value
end

#suggested_calendar_nameObject

Gets the suggestedCalendarName property value. The suggestedCalendarName property

Returns:

  • a string



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

def suggested_calendar_name
    return @suggested_calendar_name
end

#suggested_calendar_name=(value) ⇒ Object

Sets the suggestedCalendarName property value. The suggestedCalendarName property

Parameters:

  • value

    Value to set for the suggestedCalendarName property.

Returns:

  • a void



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

def suggested_calendar_name=(value)
    @suggested_calendar_name = value
end