Class: MicrosoftGraph::Models::MessageRuleActions
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::MessageRuleActions
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/message_rule_actions.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#assign_categories ⇒ Object
Gets the assignCategories property value.
-
#assign_categories=(value) ⇒ Object
Sets the assignCategories property value.
-
#copy_to_folder ⇒ Object
Gets the copyToFolder property value.
-
#copy_to_folder=(value) ⇒ Object
Sets the copyToFolder property value.
-
#delete ⇒ Object
Gets the delete property value.
-
#delete=(value) ⇒ Object
Sets the delete property value.
-
#forward_as_attachment_to ⇒ Object
Gets the forwardAsAttachmentTo property value.
-
#forward_as_attachment_to=(value) ⇒ Object
Sets the forwardAsAttachmentTo property value.
-
#forward_to ⇒ Object
Gets the forwardTo property value.
-
#forward_to=(value) ⇒ Object
Sets the forwardTo property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new messageRuleActions and sets the default values.
-
#mark_as_read ⇒ Object
Gets the markAsRead property value.
-
#mark_as_read=(value) ⇒ Object
Sets the markAsRead property value.
-
#mark_importance ⇒ Object
Gets the markImportance property value.
-
#mark_importance=(value) ⇒ Object
Sets the markImportance property value.
-
#move_to_folder ⇒ Object
Gets the moveToFolder property value.
-
#move_to_folder=(value) ⇒ Object
Sets the moveToFolder property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#permanent_delete ⇒ Object
Gets the permanentDelete property value.
-
#permanent_delete=(value) ⇒ Object
Sets the permanentDelete property value.
-
#redirect_to ⇒ Object
Gets the redirectTo property value.
-
#redirect_to=(value) ⇒ Object
Sets the redirectTo property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#stop_processing_rules ⇒ Object
Gets the stopProcessingRules property value.
-
#stop_processing_rules=(value) ⇒ Object
Sets the stopProcessingRules property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new messageRuleActions and sets the default values.
82 83 84 |
# File 'lib/models/message_rule_actions.rb', line 82 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
105 106 107 108 |
# File 'lib/models/message_rule_actions.rb', line 105 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MessageRuleActions.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
52 53 54 |
# File 'lib/models/message_rule_actions.rb', line 52 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
60 61 62 |
# File 'lib/models/message_rule_actions.rb', line 60 def additional_data=(value) @additional_data = value end |
#assign_categories ⇒ Object
Gets the assignCategories property value. A list of categories to be assigned to a message.
67 68 69 |
# File 'lib/models/message_rule_actions.rb', line 67 def assign_categories return @assign_categories end |
#assign_categories=(value) ⇒ Object
Sets the assignCategories property value. A list of categories to be assigned to a message.
75 76 77 |
# File 'lib/models/message_rule_actions.rb', line 75 def assign_categories=(value) @assign_categories = value end |
#copy_to_folder ⇒ Object
Gets the copyToFolder property value. The ID of a folder that a message is to be copied to.
89 90 91 |
# File 'lib/models/message_rule_actions.rb', line 89 def copy_to_folder return @copy_to_folder end |
#copy_to_folder=(value) ⇒ Object
Sets the copyToFolder property value. The ID of a folder that a message is to be copied to.
97 98 99 |
# File 'lib/models/message_rule_actions.rb', line 97 def copy_to_folder=(value) @copy_to_folder = value end |
#delete ⇒ Object
Gets the delete property value. Indicates whether a message should be moved to the Deleted Items folder.
113 114 115 |
# File 'lib/models/message_rule_actions.rb', line 113 def delete return @delete end |
#delete=(value) ⇒ Object
Sets the delete property value. Indicates whether a message should be moved to the Deleted Items folder.
121 122 123 |
# File 'lib/models/message_rule_actions.rb', line 121 def delete=(value) @delete = value end |
#forward_as_attachment_to ⇒ Object
Gets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment.
128 129 130 |
# File 'lib/models/message_rule_actions.rb', line 128 def return end |
#forward_as_attachment_to=(value) ⇒ Object
Sets the forwardAsAttachmentTo property value. The email addresses of the recipients to which a message should be forwarded as an attachment.
136 137 138 |
# File 'lib/models/message_rule_actions.rb', line 136 def (value) = value end |
#forward_to ⇒ Object
Gets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded.
143 144 145 |
# File 'lib/models/message_rule_actions.rb', line 143 def forward_to return @forward_to end |
#forward_to=(value) ⇒ Object
Sets the forwardTo property value. The email addresses of the recipients to which a message should be forwarded.
151 152 153 |
# File 'lib/models/message_rule_actions.rb', line 151 def forward_to=(value) @forward_to = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
# File 'lib/models/message_rule_actions.rb', line 158 def get_field_deserializers() return { "assignCategories" => lambda {|n| @assign_categories = n.get_collection_of_primitive_values(String) }, "copyToFolder" => lambda {|n| @copy_to_folder = n.get_string_value() }, "delete" => lambda {|n| @delete = n.get_boolean_value() }, "forwardAsAttachmentTo" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) }, "forwardTo" => lambda {|n| @forward_to = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) }, "markAsRead" => lambda {|n| @mark_as_read = n.get_boolean_value() }, "markImportance" => lambda {|n| @mark_importance = n.get_enum_value(MicrosoftGraph::Models::Importance) }, "moveToFolder" => lambda {|n| @move_to_folder = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "permanentDelete" => lambda {|n| @permanent_delete = n.get_boolean_value() }, "redirectTo" => lambda {|n| @redirect_to = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) }, "stopProcessingRules" => lambda {|n| @stop_processing_rules = n.get_boolean_value() }, } end |
#mark_as_read ⇒ Object
Gets the markAsRead property value. Indicates whether a message should be marked as read.
178 179 180 |
# File 'lib/models/message_rule_actions.rb', line 178 def mark_as_read return @mark_as_read end |
#mark_as_read=(value) ⇒ Object
Sets the markAsRead property value. Indicates whether a message should be marked as read.
186 187 188 |
# File 'lib/models/message_rule_actions.rb', line 186 def mark_as_read=(value) @mark_as_read = value end |
#mark_importance ⇒ Object
Gets the markImportance property value. Sets the importance of the message, which can be: low, normal, high.
193 194 195 |
# File 'lib/models/message_rule_actions.rb', line 193 def mark_importance return @mark_importance end |
#mark_importance=(value) ⇒ Object
Sets the markImportance property value. Sets the importance of the message, which can be: low, normal, high.
201 202 203 |
# File 'lib/models/message_rule_actions.rb', line 201 def mark_importance=(value) @mark_importance = value end |
#move_to_folder ⇒ Object
Gets the moveToFolder property value. The ID of the folder that a message will be moved to.
208 209 210 |
# File 'lib/models/message_rule_actions.rb', line 208 def move_to_folder return @move_to_folder end |
#move_to_folder=(value) ⇒ Object
Sets the moveToFolder property value. The ID of the folder that a message will be moved to.
216 217 218 |
# File 'lib/models/message_rule_actions.rb', line 216 def move_to_folder=(value) @move_to_folder = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
223 224 225 |
# File 'lib/models/message_rule_actions.rb', line 223 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
231 232 233 |
# File 'lib/models/message_rule_actions.rb', line 231 def odata_type=(value) @odata_type = value end |
#permanent_delete ⇒ Object
Gets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.
238 239 240 |
# File 'lib/models/message_rule_actions.rb', line 238 def permanent_delete return @permanent_delete end |
#permanent_delete=(value) ⇒ Object
Sets the permanentDelete property value. Indicates whether a message should be permanently deleted and not saved to the Deleted Items folder.
246 247 248 |
# File 'lib/models/message_rule_actions.rb', line 246 def permanent_delete=(value) @permanent_delete = value end |
#redirect_to ⇒ Object
Gets the redirectTo property value. The email addresses to which a message should be redirected.
253 254 255 |
# File 'lib/models/message_rule_actions.rb', line 253 def redirect_to return @redirect_to end |
#redirect_to=(value) ⇒ Object
Sets the redirectTo property value. The email addresses to which a message should be redirected.
261 262 263 |
# File 'lib/models/message_rule_actions.rb', line 261 def redirect_to=(value) @redirect_to = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/models/message_rule_actions.rb', line 269 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_collection_of_primitive_values("assignCategories", @assign_categories) writer.write_string_value("copyToFolder", @copy_to_folder) writer.write_boolean_value("delete", @delete) writer.write_collection_of_object_values("forwardAsAttachmentTo", ) writer.write_collection_of_object_values("forwardTo", @forward_to) writer.write_boolean_value("markAsRead", @mark_as_read) writer.write_enum_value("markImportance", @mark_importance) writer.write_string_value("moveToFolder", @move_to_folder) writer.write_string_value("@odata.type", @odata_type) writer.write_boolean_value("permanentDelete", @permanent_delete) writer.write_collection_of_object_values("redirectTo", @redirect_to) writer.write_boolean_value("stopProcessingRules", @stop_processing_rules) writer.write_additional_data(@additional_data) end |
#stop_processing_rules ⇒ Object
Gets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated.
289 290 291 |
# File 'lib/models/message_rule_actions.rb', line 289 def stop_processing_rules return @stop_processing_rules end |
#stop_processing_rules=(value) ⇒ Object
Sets the stopProcessingRules property value. Indicates whether subsequent rules should be evaluated.
297 298 299 |
# File 'lib/models/message_rule_actions.rb', line 297 def stop_processing_rules=(value) @stop_processing_rules = value end |