Class: MicrosoftGraph::Models::ServiceUpdateMessage
- Inherits:
-
ServiceAnnouncementBase
- Object
- Entity
- ServiceAnnouncementBase
- MicrosoftGraph::Models::ServiceUpdateMessage
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/service_update_message.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
-
#action_required_by_date_time ⇒ Object
Gets the actionRequiredByDateTime property value.
-
#action_required_by_date_time=(value) ⇒ Object
Sets the actionRequiredByDateTime property value.
-
#attachments ⇒ Object
Gets the attachments property value.
-
#attachments=(value) ⇒ Object
Sets the attachments property value.
-
#attachments_archive ⇒ Object
Gets the attachmentsArchive property value.
-
#attachments_archive=(value) ⇒ Object
Sets the attachmentsArchive property value.
-
#body ⇒ Object
Gets the body property value.
-
#body=(value) ⇒ Object
Sets the body property value.
-
#category ⇒ Object
Gets the category property value.
-
#category=(value) ⇒ Object
Sets the category property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#has_attachments ⇒ Object
Gets the hasAttachments property value.
-
#has_attachments=(value) ⇒ Object
Sets the hasAttachments property value.
-
#initialize ⇒ Object
constructor
Instantiates a new serviceUpdateMessage and sets the default values.
-
#is_major_change ⇒ Object
Gets the isMajorChange property value.
-
#is_major_change=(value) ⇒ Object
Sets the isMajorChange property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#services ⇒ Object
Gets the services property value.
-
#services=(value) ⇒ Object
Sets the services property value.
-
#severity ⇒ Object
Gets the severity property value.
-
#severity=(value) ⇒ Object
Sets the severity property value.
-
#tags ⇒ Object
Gets the tags property value.
-
#tags=(value) ⇒ Object
Sets the tags property value.
-
#view_point ⇒ Object
Gets the viewPoint property value.
-
#view_point=(value) ⇒ Object
Sets the viewPoint property value.
Methods inherited from ServiceAnnouncementBase
#details, #details=, #end_date_time, #end_date_time=, #last_modified_date_time, #last_modified_date_time=, #start_date_time, #start_date_time=, #title, #title=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new serviceUpdateMessage and sets the default values.
122 123 124 125 |
# File 'lib/models/service_update_message.rb', line 122 def initialize() super @odata_type = "#microsoft.graph.serviceUpdateMessage" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
131 132 133 134 |
# File 'lib/models/service_update_message.rb', line 131 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ServiceUpdateMessage.new end |
Instance Method Details
#action_required_by_date_time ⇒ Object
Gets the actionRequiredByDateTime property value. The expected deadline of the action for the message.
47 48 49 |
# File 'lib/models/service_update_message.rb', line 47 def action_required_by_date_time return @action_required_by_date_time end |
#action_required_by_date_time=(value) ⇒ Object
Sets the actionRequiredByDateTime property value. The expected deadline of the action for the message.
55 56 57 |
# File 'lib/models/service_update_message.rb', line 55 def action_required_by_date_time=(value) @action_required_by_date_time = value end |
#attachments ⇒ Object
Gets the attachments property value. A collection of serviceAnnouncementAttachments.
62 63 64 |
# File 'lib/models/service_update_message.rb', line 62 def return end |
#attachments=(value) ⇒ Object
Sets the attachments property value. A collection of serviceAnnouncementAttachments.
70 71 72 |
# File 'lib/models/service_update_message.rb', line 70 def (value) = value end |
#attachments_archive ⇒ Object
Gets the attachmentsArchive property value. The zip file that contains all attachments for a message.
77 78 79 |
# File 'lib/models/service_update_message.rb', line 77 def return end |
#attachments_archive=(value) ⇒ Object
Sets the attachmentsArchive property value. The zip file that contains all attachments for a message.
85 86 87 |
# File 'lib/models/service_update_message.rb', line 85 def (value) = value end |
#body ⇒ Object
Gets the body property value. The body property
92 93 94 |
# File 'lib/models/service_update_message.rb', line 92 def body return @body end |
#body=(value) ⇒ Object
Sets the body property value. The body property
100 101 102 |
# File 'lib/models/service_update_message.rb', line 100 def body=(value) @body = value end |
#category ⇒ Object
Gets the category property value. The category property
107 108 109 |
# File 'lib/models/service_update_message.rb', line 107 def category return @category end |
#category=(value) ⇒ Object
Sets the category property value. The category property
115 116 117 |
# File 'lib/models/service_update_message.rb', line 115 def category=(value) @category = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/models/service_update_message.rb', line 139 def get_field_deserializers() return super.merge({ "actionRequiredByDateTime" => lambda {|n| @action_required_by_date_time = n.get_date_time_value() }, "attachments" => lambda {|n| = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ServiceAnnouncementAttachment.create_from_discriminator_value(pn) }) }, "attachmentsArchive" => lambda {|n| = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "body" => lambda {|n| @body = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemBody.create_from_discriminator_value(pn) }) }, "category" => lambda {|n| @category = n.get_enum_value(MicrosoftGraph::Models::ServiceUpdateCategory) }, "hasAttachments" => lambda {|n| = n.get_boolean_value() }, "isMajorChange" => lambda {|n| @is_major_change = n.get_boolean_value() }, "services" => lambda {|n| @services = n.get_collection_of_primitive_values(String) }, "severity" => lambda {|n| @severity = n.get_enum_value(MicrosoftGraph::Models::ServiceUpdateSeverity) }, "tags" => lambda {|n| = n.get_collection_of_primitive_values(String) }, "viewPoint" => lambda {|n| @view_point = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ServiceUpdateMessageViewpoint.create_from_discriminator_value(pn) }) }, }) end |
#has_attachments ⇒ Object
Gets the hasAttachments property value. Indicates whether the message has any attachment.
158 159 160 |
# File 'lib/models/service_update_message.rb', line 158 def return end |
#has_attachments=(value) ⇒ Object
Sets the hasAttachments property value. Indicates whether the message has any attachment.
166 167 168 |
# File 'lib/models/service_update_message.rb', line 166 def (value) = value end |
#is_major_change ⇒ Object
Gets the isMajorChange property value. Indicates whether the message describes a major update for the service.
173 174 175 |
# File 'lib/models/service_update_message.rb', line 173 def is_major_change return @is_major_change end |
#is_major_change=(value) ⇒ Object
Sets the isMajorChange property value. Indicates whether the message describes a major update for the service.
181 182 183 |
# File 'lib/models/service_update_message.rb', line 181 def is_major_change=(value) @is_major_change = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/models/service_update_message.rb', line 189 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_date_time_value("actionRequiredByDateTime", @action_required_by_date_time) writer.write_collection_of_object_values("attachments", ) writer.write_object_value("attachmentsArchive", ) writer.write_object_value("body", @body) writer.write_enum_value("category", @category) writer.write_boolean_value("hasAttachments", ) writer.write_boolean_value("isMajorChange", @is_major_change) writer.write_collection_of_primitive_values("services", @services) writer.write_enum_value("severity", @severity) writer.write_collection_of_primitive_values("tags", ) writer.write_object_value("viewPoint", @view_point) end |
#services ⇒ Object
Gets the services property value. The affected services by the service message.
208 209 210 |
# File 'lib/models/service_update_message.rb', line 208 def services return @services end |
#services=(value) ⇒ Object
Sets the services property value. The affected services by the service message.
216 217 218 |
# File 'lib/models/service_update_message.rb', line 216 def services=(value) @services = value end |
#severity ⇒ Object
Gets the severity property value. The severity property
223 224 225 |
# File 'lib/models/service_update_message.rb', line 223 def severity return @severity end |
#severity=(value) ⇒ Object
Sets the severity property value. The severity property
231 232 233 |
# File 'lib/models/service_update_message.rb', line 231 def severity=(value) @severity = value end |
#tags ⇒ Object
Gets the tags property value. A collection of tags for the service message. Tags are provided by the service team/support team who post the message to tell whether this message contains privacy data, or whether this message is for a service new feature update, and so on.
238 239 240 |
# File 'lib/models/service_update_message.rb', line 238 def return end |
#tags=(value) ⇒ Object
Sets the tags property value. A collection of tags for the service message. Tags are provided by the service team/support team who post the message to tell whether this message contains privacy data, or whether this message is for a service new feature update, and so on.
246 247 248 |
# File 'lib/models/service_update_message.rb', line 246 def (value) = value end |
#view_point ⇒ Object
Gets the viewPoint property value. Represents user viewpoints data of the service message. This data includes message status such as whether the user has archived, read, or marked the message as favorite. This property is null when accessed with application permissions.
253 254 255 |
# File 'lib/models/service_update_message.rb', line 253 def view_point return @view_point end |
#view_point=(value) ⇒ Object
Sets the viewPoint property value. Represents user viewpoints data of the service message. This data includes message status such as whether the user has archived, read, or marked the message as favorite. This property is null when accessed with application permissions.
261 262 263 |
# File 'lib/models/service_update_message.rb', line 261 def view_point=(value) @view_point = value end |