Class: MicrosoftGraph::Models::MailboxSettings

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/mailbox_settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new mailboxSettings and sets the default values.



91
92
93
# File 'lib/models/mailbox_settings.rb', line 91

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a mailbox_settings

Raises:

  • (StandardError)


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

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



46
47
48
# File 'lib/models/mailbox_settings.rb', line 46

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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



54
55
56
# File 'lib/models/mailbox_settings.rb', line 54

def additional_data=(value)
    @additional_data = value
end

#archive_folderObject

Gets the archiveFolder property value. Folder ID of an archive folder for the user.

Returns:

  • a string



61
62
63
# File 'lib/models/mailbox_settings.rb', line 61

def archive_folder
    return @archive_folder
end

#archive_folder=(value) ⇒ Object

Sets the archiveFolder property value. Folder ID of an archive folder for the user.

Parameters:

  • value

    Value to set for the archiveFolder property.

Returns:

  • a void



69
70
71
# File 'lib/models/mailbox_settings.rb', line 69

def archive_folder=(value)
    @archive_folder = value
end

#automatic_replies_settingObject

Gets the automaticRepliesSetting property value. Configuration settings to automatically notify the sender of an incoming email with a message from the signed-in user.

Returns:

  • a automatic_replies_setting



76
77
78
# File 'lib/models/mailbox_settings.rb', line 76

def automatic_replies_setting
    return @automatic_replies_setting
end

#automatic_replies_setting=(value) ⇒ Object

Sets the automaticRepliesSetting property value. Configuration settings to automatically notify the sender of an incoming email with a message from the signed-in user.

Parameters:

  • value

    Value to set for the automaticRepliesSetting property.

Returns:

  • a void



84
85
86
# File 'lib/models/mailbox_settings.rb', line 84

def automatic_replies_setting=(value)
    @automatic_replies_setting = value
end

#date_formatObject

Gets the dateFormat property value. The date format for the user’s mailbox.

Returns:

  • a string



107
108
109
# File 'lib/models/mailbox_settings.rb', line 107

def date_format
    return @date_format
end

#date_format=(value) ⇒ Object

Sets the dateFormat property value. The date format for the user’s mailbox.

Parameters:

  • value

    Value to set for the dateFormat property.

Returns:

  • a void



115
116
117
# File 'lib/models/mailbox_settings.rb', line 115

def date_format=(value)
    @date_format = value
end

#delegate_meeting_message_delivery_optionsObject

Gets the delegateMeetingMessageDeliveryOptions property value. If the user has a calendar delegate, this specifies whether the delegate, mailbox owner, or both receive meeting messages and meeting responses. Possible values are: sendToDelegateAndInformationToPrincipal, sendToDelegateAndPrincipal, sendToDelegateOnly.

Returns:

  • a delegate_meeting_message_delivery_options



122
123
124
# File 'lib/models/mailbox_settings.rb', line 122

def delegate_meeting_message_delivery_options
    return @delegate_meeting_message_delivery_options
end

#delegate_meeting_message_delivery_options=(value) ⇒ Object

Sets the delegateMeetingMessageDeliveryOptions property value. If the user has a calendar delegate, this specifies whether the delegate, mailbox owner, or both receive meeting messages and meeting responses. Possible values are: sendToDelegateAndInformationToPrincipal, sendToDelegateAndPrincipal, sendToDelegateOnly.

Parameters:

  • value

    Value to set for the delegateMeetingMessageDeliveryOptions property.

Returns:

  • a void



130
131
132
# File 'lib/models/mailbox_settings.rb', line 130

def delegate_meeting_message_delivery_options=(value)
    @delegate_meeting_message_delivery_options = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/models/mailbox_settings.rb', line 137

def get_field_deserializers()
    return {
        "archiveFolder" => lambda {|n| @archive_folder = n.get_string_value() },
        "automaticRepliesSetting" => lambda {|n| @automatic_replies_setting = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AutomaticRepliesSetting.create_from_discriminator_value(pn) }) },
        "dateFormat" => lambda {|n| @date_format = n.get_string_value() },
        "delegateMeetingMessageDeliveryOptions" => lambda {|n| @delegate_meeting_message_delivery_options = n.get_enum_value(MicrosoftGraph::Models::DelegateMeetingMessageDeliveryOptions) },
        "language" => lambda {|n| @language = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::LocaleInfo.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "timeFormat" => lambda {|n| @time_format = n.get_string_value() },
        "timeZone" => lambda {|n| @time_zone = n.get_string_value() },
        "userPurpose" => lambda {|n| @user_purpose = n.get_enum_value(MicrosoftGraph::Models::UserPurpose) },
        "workingHours" => lambda {|n| @working_hours = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::WorkingHours.create_from_discriminator_value(pn) }) },
    }
end

#languageObject

Gets the language property value. The locale information for the user, including the preferred language and country/region.

Returns:

  • a locale_info



155
156
157
# File 'lib/models/mailbox_settings.rb', line 155

def language
    return @language
end

#language=(value) ⇒ Object

Sets the language property value. The locale information for the user, including the preferred language and country/region.

Parameters:

  • value

    Value to set for the language property.

Returns:

  • a void



163
164
165
# File 'lib/models/mailbox_settings.rb', line 163

def language=(value)
    @language = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



170
171
172
# File 'lib/models/mailbox_settings.rb', line 170

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



178
179
180
# File 'lib/models/mailbox_settings.rb', line 178

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


186
187
188
189
190
191
192
193
194
195
196
197
198
199
# File 'lib/models/mailbox_settings.rb', line 186

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("archiveFolder", @archive_folder)
    writer.write_object_value("automaticRepliesSetting", @automatic_replies_setting)
    writer.write_string_value("dateFormat", @date_format)
    writer.write_enum_value("delegateMeetingMessageDeliveryOptions", @delegate_meeting_message_delivery_options)
    writer.write_object_value("language", @language)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("timeFormat", @time_format)
    writer.write_string_value("timeZone", @time_zone)
    writer.write_enum_value("userPurpose", @user_purpose)
    writer.write_object_value("workingHours", @working_hours)
    writer.write_additional_data(@additional_data)
end

#time_formatObject

Gets the timeFormat property value. The time format for the user’s mailbox.

Returns:

  • a string



204
205
206
# File 'lib/models/mailbox_settings.rb', line 204

def time_format
    return @time_format
end

#time_format=(value) ⇒ Object

Sets the timeFormat property value. The time format for the user’s mailbox.

Parameters:

  • value

    Value to set for the timeFormat property.

Returns:

  • a void



212
213
214
# File 'lib/models/mailbox_settings.rb', line 212

def time_format=(value)
    @time_format = value
end

#time_zoneObject

Gets the timeZone property value. The default time zone for the user’s mailbox.

Returns:

  • a string



219
220
221
# File 'lib/models/mailbox_settings.rb', line 219

def time_zone
    return @time_zone
end

#time_zone=(value) ⇒ Object

Sets the timeZone property value. The default time zone for the user’s mailbox.

Parameters:

  • value

    Value to set for the timeZone property.

Returns:

  • a void



227
228
229
# File 'lib/models/mailbox_settings.rb', line 227

def time_zone=(value)
    @time_zone = value
end

#user_purposeObject

Gets the userPurpose property value. The purpose of the mailbox. Differentiates a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Possible values are: user, linked, shared, room, equipment, others, unknownFutureValue. Read-only.

Returns:

  • a user_purpose



234
235
236
# File 'lib/models/mailbox_settings.rb', line 234

def user_purpose
    return @user_purpose
end

#user_purpose=(value) ⇒ Object

Sets the userPurpose property value. The purpose of the mailbox. Differentiates a mailbox for a single user from a shared mailbox and equipment mailbox in Exchange Online. Possible values are: user, linked, shared, room, equipment, others, unknownFutureValue. Read-only.

Parameters:

  • value

    Value to set for the userPurpose property.

Returns:

  • a void



242
243
244
# File 'lib/models/mailbox_settings.rb', line 242

def user_purpose=(value)
    @user_purpose = value
end

#working_hoursObject

Gets the workingHours property value. The days of the week and hours in a specific time zone that the user works.

Returns:

  • a working_hours



249
250
251
# File 'lib/models/mailbox_settings.rb', line 249

def working_hours
    return @working_hours
end

#working_hours=(value) ⇒ Object

Sets the workingHours property value. The days of the week and hours in a specific time zone that the user works.

Parameters:

  • value

    Value to set for the workingHours property.

Returns:

  • a void



257
258
259
# File 'lib/models/mailbox_settings.rb', line 257

def working_hours=(value)
    @working_hours = value
end