Class: MicrosoftGraph::Models::AutomaticRepliesSetting

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new automaticRepliesSetting and sets the default values.



52
53
54
# File 'lib/models/automatic_replies_setting.rb', line 52

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 automatic_replies_setting

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return AutomaticRepliesSetting.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



37
38
39
# File 'lib/models/automatic_replies_setting.rb', line 37

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



45
46
47
# File 'lib/models/automatic_replies_setting.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#external_audienceObject

Gets the externalAudience property value. The set of audience external to the signed-in user’s organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. The possible values are: none, contactsOnly, all.

Returns:

  • a external_audience_scope



68
69
70
# File 'lib/models/automatic_replies_setting.rb', line 68

def external_audience
    return @external_audience
end

#external_audience=(value) ⇒ Object

Sets the externalAudience property value. The set of audience external to the signed-in user’s organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. The possible values are: none, contactsOnly, all.

Parameters:

  • value

    Value to set for the externalAudience property.

Returns:

  • a void



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

def external_audience=(value)
    @external_audience = value
end

#external_reply_messageObject

Gets the externalReplyMessage property value. The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled.

Returns:

  • a string



83
84
85
# File 'lib/models/automatic_replies_setting.rb', line 83

def external_reply_message
    return @external_reply_message
end

#external_reply_message=(value) ⇒ Object

Sets the externalReplyMessage property value. The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled.

Parameters:

  • value

    Value to set for the externalReplyMessage property.

Returns:

  • a void



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

def external_reply_message=(value)
    @external_reply_message = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/models/automatic_replies_setting.rb', line 98

def get_field_deserializers()
    return {
        "externalAudience" => lambda {|n| @external_audience = n.get_enum_value(MicrosoftGraph::Models::ExternalAudienceScope) },
        "externalReplyMessage" => lambda {|n| @external_reply_message = n.get_string_value() },
        "internalReplyMessage" => lambda {|n| @internal_reply_message = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "scheduledEndDateTime" => lambda {|n| @scheduled_end_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
        "scheduledStartDateTime" => lambda {|n| @scheduled_start_date_time = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DateTimeTimeZone.create_from_discriminator_value(pn) }) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::AutomaticRepliesStatus) },
    }
end

#internal_reply_messageObject

Gets the internalReplyMessage property value. The automatic reply to send to the audience internal to the signed-in user’s organization, if Status is AlwaysEnabled or Scheduled.

Returns:

  • a string



113
114
115
# File 'lib/models/automatic_replies_setting.rb', line 113

def internal_reply_message
    return @internal_reply_message
end

#internal_reply_message=(value) ⇒ Object

Sets the internalReplyMessage property value. The automatic reply to send to the audience internal to the signed-in user’s organization, if Status is AlwaysEnabled or Scheduled.

Parameters:

  • value

    Value to set for the internalReplyMessage property.

Returns:

  • a void



121
122
123
# File 'lib/models/automatic_replies_setting.rb', line 121

def internal_reply_message=(value)
    @internal_reply_message = value
end

#odata_typeObject

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

Returns:

  • a string



128
129
130
# File 'lib/models/automatic_replies_setting.rb', line 128

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



136
137
138
# File 'lib/models/automatic_replies_setting.rb', line 136

def odata_type=(value)
    @odata_type = value
end

#scheduled_end_date_timeObject

Gets the scheduledEndDateTime property value. The date and time that automatic replies are set to end, if Status is set to Scheduled.

Returns:

  • a date_time_time_zone



143
144
145
# File 'lib/models/automatic_replies_setting.rb', line 143

def scheduled_end_date_time
    return @scheduled_end_date_time
end

#scheduled_end_date_time=(value) ⇒ Object

Sets the scheduledEndDateTime property value. The date and time that automatic replies are set to end, if Status is set to Scheduled.

Parameters:

  • value

    Value to set for the scheduledEndDateTime property.

Returns:

  • a void



151
152
153
# File 'lib/models/automatic_replies_setting.rb', line 151

def scheduled_end_date_time=(value)
    @scheduled_end_date_time = value
end

#scheduled_start_date_timeObject

Gets the scheduledStartDateTime property value. The date and time that automatic replies are set to begin, if Status is set to Scheduled.

Returns:

  • a date_time_time_zone



158
159
160
# File 'lib/models/automatic_replies_setting.rb', line 158

def scheduled_start_date_time
    return @scheduled_start_date_time
end

#scheduled_start_date_time=(value) ⇒ Object

Sets the scheduledStartDateTime property value. The date and time that automatic replies are set to begin, if Status is set to Scheduled.

Parameters:

  • value

    Value to set for the scheduledStartDateTime property.

Returns:

  • a void



166
167
168
# File 'lib/models/automatic_replies_setting.rb', line 166

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


174
175
176
177
178
179
180
181
182
183
184
# File 'lib/models/automatic_replies_setting.rb', line 174

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_enum_value("externalAudience", @external_audience)
    writer.write_string_value("externalReplyMessage", @external_reply_message)
    writer.write_string_value("internalReplyMessage", @internal_reply_message)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_object_value("scheduledEndDateTime", @scheduled_end_date_time)
    writer.write_object_value("scheduledStartDateTime", @scheduled_start_date_time)
    writer.write_enum_value("status", @status)
    writer.write_additional_data(@additional_data)
end

#statusObject

Gets the status property value. Configurations status for automatic replies. The possible values are: disabled, alwaysEnabled, scheduled.

Returns:

  • a automatic_replies_status



189
190
191
# File 'lib/models/automatic_replies_setting.rb', line 189

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. Configurations status for automatic replies. The possible values are: disabled, alwaysEnabled, scheduled.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



197
198
199
# File 'lib/models/automatic_replies_setting.rb', line 197

def status=(value)
    @status = value
end