Class: MicrosoftGraph::Models::AutomaticRepliesSetting
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AutomaticRepliesSetting
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/automatic_replies_setting.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.
-
#external_audience ⇒ Object
Gets the externalAudience property value.
-
#external_audience=(value) ⇒ Object
Sets the externalAudience property value.
-
#external_reply_message ⇒ Object
Gets the externalReplyMessage property value.
-
#external_reply_message=(value) ⇒ Object
Sets the externalReplyMessage property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new automaticRepliesSetting and sets the default values.
-
#internal_reply_message ⇒ Object
Gets the internalReplyMessage property value.
-
#internal_reply_message=(value) ⇒ Object
Sets the internalReplyMessage property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#scheduled_end_date_time ⇒ Object
Gets the scheduledEndDateTime property value.
-
#scheduled_end_date_time=(value) ⇒ Object
Sets the scheduledEndDateTime property value.
-
#scheduled_start_date_time ⇒ Object
Gets the scheduledStartDateTime property value.
-
#scheduled_start_date_time=(value) ⇒ Object
Sets the scheduledStartDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Constructor Details
#initialize ⇒ Object
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
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_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.
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.
45 46 47 |
# File 'lib/models/automatic_replies_setting.rb', line 45 def additional_data=(value) @additional_data = value end |
#external_audience ⇒ Object
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.
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.
76 77 78 |
# File 'lib/models/automatic_replies_setting.rb', line 76 def external_audience=(value) @external_audience = value end |
#external_reply_message ⇒ Object
Gets the externalReplyMessage property value. The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled.
83 84 85 |
# File 'lib/models/automatic_replies_setting.rb', line 83 def return 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.
91 92 93 |
# File 'lib/models/automatic_replies_setting.rb', line 91 def (value) = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = n.get_string_value() }, "internalReplyMessage" => lambda {|n| = 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_message ⇒ Object
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.
113 114 115 |
# File 'lib/models/automatic_replies_setting.rb', line 113 def return 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.
121 122 123 |
# File 'lib/models/automatic_replies_setting.rb', line 121 def (value) = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
136 137 138 |
# File 'lib/models/automatic_replies_setting.rb', line 136 def odata_type=(value) @odata_type = value end |
#scheduled_end_date_time ⇒ Object
Gets the scheduledEndDateTime property value. The date and time that automatic replies are set to end, if Status is set to Scheduled.
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.
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_time ⇒ Object
Gets the scheduledStartDateTime property value. The date and time that automatic replies are set to begin, if Status is set to Scheduled.
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.
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
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", ) writer.write_string_value("internalReplyMessage", ) 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 |
#status ⇒ Object
Gets the status property value. Configurations status for automatic replies. The possible values are: disabled, alwaysEnabled, scheduled.
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.
197 198 199 |
# File 'lib/models/automatic_replies_setting.rb', line 197 def status=(value) @status = value end |