Class: MicrosoftGraph::Models::CalendarSharingMessage
- Inherits:
-
Message
- Object
- Entity
- OutlookItem
- Message
- MicrosoftGraph::Models::CalendarSharingMessage
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/calendar_sharing_message.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
-
#can_accept ⇒ Object
Gets the canAccept property value.
-
#can_accept=(value) ⇒ Object
Sets the canAccept property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new calendarSharingMessage and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#sharing_message_action ⇒ Object
Gets the sharingMessageAction property value.
-
#sharing_message_action=(value) ⇒ Object
Sets the sharingMessageAction property value.
-
#sharing_message_actions ⇒ Object
Gets the sharingMessageActions property value.
-
#sharing_message_actions=(value) ⇒ Object
Sets the sharingMessageActions property value.
-
#suggested_calendar_name ⇒ Object
Gets the suggestedCalendarName property value.
-
#suggested_calendar_name=(value) ⇒ Object
Sets the suggestedCalendarName property value.
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
#initialize ⇒ Object
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
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_accept ⇒ Object
Gets the canAccept property value. The canAccept property
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
33 34 35 |
# File 'lib/models/calendar_sharing_message.rb', line 33 def can_accept=(value) @can_accept = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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
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_action ⇒ Object
Gets the sharingMessageAction property value. The sharingMessageAction property
82 83 84 |
# File 'lib/models/calendar_sharing_message.rb', line 82 def return @sharing_message_action end |
#sharing_message_action=(value) ⇒ Object
Sets the sharingMessageAction property value. The sharingMessageAction property
90 91 92 |
# File 'lib/models/calendar_sharing_message.rb', line 90 def (value) @sharing_message_action = value end |
#sharing_message_actions ⇒ Object
Gets the sharingMessageActions property value. The sharingMessageActions property
97 98 99 |
# File 'lib/models/calendar_sharing_message.rb', line 97 def return @sharing_message_actions end |
#sharing_message_actions=(value) ⇒ Object
Sets the sharingMessageActions property value. The sharingMessageActions property
105 106 107 |
# File 'lib/models/calendar_sharing_message.rb', line 105 def (value) @sharing_message_actions = value end |
#suggested_calendar_name ⇒ Object
Gets the suggestedCalendarName property value. The suggestedCalendarName property
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
120 121 122 |
# File 'lib/models/calendar_sharing_message.rb', line 120 def suggested_calendar_name=(value) @suggested_calendar_name = value end |