Class: MicrosoftGraph::Models::MailTips
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::MailTips
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mail_tips.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.
-
#automatic_replies ⇒ Object
Gets the automaticReplies property value.
-
#automatic_replies=(value) ⇒ Object
Sets the automaticReplies property value.
-
#custom_mail_tip ⇒ Object
Gets the customMailTip property value.
-
#custom_mail_tip=(value) ⇒ Object
Sets the customMailTip property value.
-
#delivery_restricted ⇒ Object
Gets the deliveryRestricted property value.
-
#delivery_restricted=(value) ⇒ Object
Sets the deliveryRestricted property value.
-
#email_address ⇒ Object
Gets the emailAddress property value.
-
#email_address=(value) ⇒ Object
Sets the emailAddress property value.
-
#error ⇒ Object
Gets the error property value.
-
#error=(value) ⇒ Object
Sets the error property value.
-
#external_member_count ⇒ Object
Gets the externalMemberCount property value.
-
#external_member_count=(value) ⇒ Object
Sets the externalMemberCount property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new mailTips and sets the default values.
-
#is_moderated ⇒ Object
Gets the isModerated property value.
-
#is_moderated=(value) ⇒ Object
Sets the isModerated property value.
-
#mailbox_full ⇒ Object
Gets the mailboxFull property value.
-
#mailbox_full=(value) ⇒ Object
Sets the mailboxFull property value.
-
#max_message_size ⇒ Object
Gets the maxMessageSize property value.
-
#max_message_size=(value) ⇒ Object
Sets the maxMessageSize property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#recipient_scope ⇒ Object
Gets the recipientScope property value.
-
#recipient_scope=(value) ⇒ Object
Sets the recipientScope property value.
-
#recipient_suggestions ⇒ Object
Gets the recipientSuggestions property value.
-
#recipient_suggestions=(value) ⇒ Object
Sets the recipientSuggestions property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#total_member_count ⇒ Object
Gets the totalMemberCount property value.
-
#total_member_count=(value) ⇒ Object
Sets the totalMemberCount property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new mailTips and sets the default values.
85 86 87 |
# File 'lib/models/mail_tips.rb', line 85 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
93 94 95 96 |
# File 'lib/models/mail_tips.rb', line 93 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MailTips.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.
55 56 57 |
# File 'lib/models/mail_tips.rb', line 55 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.
63 64 65 |
# File 'lib/models/mail_tips.rb', line 63 def additional_data=(value) @additional_data = value end |
#automatic_replies ⇒ Object
Gets the automaticReplies property value. Mail tips for automatic reply if it has been set up by the recipient.
70 71 72 |
# File 'lib/models/mail_tips.rb', line 70 def automatic_replies return @automatic_replies end |
#automatic_replies=(value) ⇒ Object
Sets the automaticReplies property value. Mail tips for automatic reply if it has been set up by the recipient.
78 79 80 |
# File 'lib/models/mail_tips.rb', line 78 def automatic_replies=(value) @automatic_replies = value end |
#custom_mail_tip ⇒ Object
Gets the customMailTip property value. A custom mail tip that can be set on the recipient’s mailbox.
101 102 103 |
# File 'lib/models/mail_tips.rb', line 101 def custom_mail_tip return @custom_mail_tip end |
#custom_mail_tip=(value) ⇒ Object
Sets the customMailTip property value. A custom mail tip that can be set on the recipient’s mailbox.
109 110 111 |
# File 'lib/models/mail_tips.rb', line 109 def custom_mail_tip=(value) @custom_mail_tip = value end |
#delivery_restricted ⇒ Object
Gets the deliveryRestricted property value. Whether the recipient’s mailbox is restricted, for example, accepting messages from only a predefined list of senders, rejecting messages from a predefined list of senders, or accepting messages from only authenticated senders.
116 117 118 |
# File 'lib/models/mail_tips.rb', line 116 def delivery_restricted return @delivery_restricted end |
#delivery_restricted=(value) ⇒ Object
Sets the deliveryRestricted property value. Whether the recipient’s mailbox is restricted, for example, accepting messages from only a predefined list of senders, rejecting messages from a predefined list of senders, or accepting messages from only authenticated senders.
124 125 126 |
# File 'lib/models/mail_tips.rb', line 124 def delivery_restricted=(value) @delivery_restricted = value end |
#email_address ⇒ Object
Gets the emailAddress property value. The email address of the recipient to get mailtips for.
131 132 133 |
# File 'lib/models/mail_tips.rb', line 131 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. The email address of the recipient to get mailtips for.
139 140 141 |
# File 'lib/models/mail_tips.rb', line 139 def email_address=(value) @email_address = value end |
#error ⇒ Object
Gets the error property value. Errors that occur during the getMailTips action.
146 147 148 |
# File 'lib/models/mail_tips.rb', line 146 def error return @error end |
#error=(value) ⇒ Object
Sets the error property value. Errors that occur during the getMailTips action.
154 155 156 |
# File 'lib/models/mail_tips.rb', line 154 def error=(value) @error = value end |
#external_member_count ⇒ Object
Gets the externalMemberCount property value. The number of external members if the recipient is a distribution list.
161 162 163 |
# File 'lib/models/mail_tips.rb', line 161 def external_member_count return @external_member_count end |
#external_member_count=(value) ⇒ Object
Sets the externalMemberCount property value. The number of external members if the recipient is a distribution list.
169 170 171 |
# File 'lib/models/mail_tips.rb', line 169 def external_member_count=(value) @external_member_count = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/models/mail_tips.rb', line 176 def get_field_deserializers() return { "automaticReplies" => lambda {|n| @automatic_replies = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AutomaticRepliesMailTips.create_from_discriminator_value(pn) }) }, "customMailTip" => lambda {|n| @custom_mail_tip = n.get_string_value() }, "deliveryRestricted" => lambda {|n| @delivery_restricted = n.get_boolean_value() }, "emailAddress" => lambda {|n| @email_address = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EmailAddress.create_from_discriminator_value(pn) }) }, "error" => lambda {|n| @error = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::MailTipsError.create_from_discriminator_value(pn) }) }, "externalMemberCount" => lambda {|n| @external_member_count = n.get_number_value() }, "isModerated" => lambda {|n| @is_moderated = n.get_boolean_value() }, "mailboxFull" => lambda {|n| @mailbox_full = n.get_boolean_value() }, "maxMessageSize" => lambda {|n| = n.get_number_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "recipientScope" => lambda {|n| @recipient_scope = n.get_enum_value(MicrosoftGraph::Models::RecipientScopeType) }, "recipientSuggestions" => lambda {|n| @recipient_suggestions = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Recipient.create_from_discriminator_value(pn) }) }, "totalMemberCount" => lambda {|n| @total_member_count = n.get_number_value() }, } end |
#is_moderated ⇒ Object
Gets the isModerated property value. Whether sending messages to the recipient requires approval. For example, if the recipient is a large distribution list and a moderator has been set up to approve messages sent to that distribution list, or if sending messages to a recipient requires approval of the recipient’s manager.
197 198 199 |
# File 'lib/models/mail_tips.rb', line 197 def is_moderated return @is_moderated end |
#is_moderated=(value) ⇒ Object
Sets the isModerated property value. Whether sending messages to the recipient requires approval. For example, if the recipient is a large distribution list and a moderator has been set up to approve messages sent to that distribution list, or if sending messages to a recipient requires approval of the recipient’s manager.
205 206 207 |
# File 'lib/models/mail_tips.rb', line 205 def is_moderated=(value) @is_moderated = value end |
#mailbox_full ⇒ Object
Gets the mailboxFull property value. The mailbox full status of the recipient.
212 213 214 |
# File 'lib/models/mail_tips.rb', line 212 def mailbox_full return @mailbox_full end |
#mailbox_full=(value) ⇒ Object
Sets the mailboxFull property value. The mailbox full status of the recipient.
220 221 222 |
# File 'lib/models/mail_tips.rb', line 220 def mailbox_full=(value) @mailbox_full = value end |
#max_message_size ⇒ Object
Gets the maxMessageSize property value. The maximum message size that has been configured for the recipient’s organization or mailbox.
227 228 229 |
# File 'lib/models/mail_tips.rb', line 227 def return end |
#max_message_size=(value) ⇒ Object
Sets the maxMessageSize property value. The maximum message size that has been configured for the recipient’s organization or mailbox.
235 236 237 |
# File 'lib/models/mail_tips.rb', line 235 def (value) = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
242 243 244 |
# File 'lib/models/mail_tips.rb', line 242 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
250 251 252 |
# File 'lib/models/mail_tips.rb', line 250 def odata_type=(value) @odata_type = value end |
#recipient_scope ⇒ Object
Gets the recipientScope property value. The scope of the recipient. Possible values are: none, internal, external, externalPartner, externalNonParther. For example, an administrator can set another organization to be its ‘partner’. The scope is useful if an administrator wants certain mailtips to be accessible to certain scopes. It’s also useful to senders to inform them that their message may leave the organization, helping them make the correct decisions about wording, tone and content.
257 258 259 |
# File 'lib/models/mail_tips.rb', line 257 def recipient_scope return @recipient_scope end |
#recipient_scope=(value) ⇒ Object
Sets the recipientScope property value. The scope of the recipient. Possible values are: none, internal, external, externalPartner, externalNonParther. For example, an administrator can set another organization to be its ‘partner’. The scope is useful if an administrator wants certain mailtips to be accessible to certain scopes. It’s also useful to senders to inform them that their message may leave the organization, helping them make the correct decisions about wording, tone and content.
265 266 267 |
# File 'lib/models/mail_tips.rb', line 265 def recipient_scope=(value) @recipient_scope = value end |
#recipient_suggestions ⇒ Object
Gets the recipientSuggestions property value. Recipients suggested based on previous contexts where they appear in the same message.
272 273 274 |
# File 'lib/models/mail_tips.rb', line 272 def recipient_suggestions return @recipient_suggestions end |
#recipient_suggestions=(value) ⇒ Object
Sets the recipientSuggestions property value. Recipients suggested based on previous contexts where they appear in the same message.
280 281 282 |
# File 'lib/models/mail_tips.rb', line 280 def recipient_suggestions=(value) @recipient_suggestions = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 |
# File 'lib/models/mail_tips.rb', line 288 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("automaticReplies", @automatic_replies) writer.write_string_value("customMailTip", @custom_mail_tip) writer.write_boolean_value("deliveryRestricted", @delivery_restricted) writer.write_object_value("emailAddress", @email_address) writer.write_object_value("error", @error) writer.write_number_value("externalMemberCount", @external_member_count) writer.write_boolean_value("isModerated", @is_moderated) writer.write_boolean_value("mailboxFull", @mailbox_full) writer.write_number_value("maxMessageSize", ) writer.write_string_value("@odata.type", @odata_type) writer.write_enum_value("recipientScope", @recipient_scope) writer.write_collection_of_object_values("recipientSuggestions", @recipient_suggestions) writer.write_number_value("totalMemberCount", @total_member_count) writer.write_additional_data(@additional_data) end |
#total_member_count ⇒ Object
Gets the totalMemberCount property value. The number of members if the recipient is a distribution list.
309 310 311 |
# File 'lib/models/mail_tips.rb', line 309 def total_member_count return @total_member_count end |
#total_member_count=(value) ⇒ Object
Sets the totalMemberCount property value. The number of members if the recipient is a distribution list.
317 318 319 |
# File 'lib/models/mail_tips.rb', line 317 def total_member_count=(value) @total_member_count = value end |