Class: MicrosoftGraph::Models::AlertHistoryState
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::AlertHistoryState
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/alert_history_state.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.
-
#app_id ⇒ Object
Gets the appId property value.
-
#app_id=(value) ⇒ Object
Sets the appId property value.
-
#assigned_to ⇒ Object
Gets the assignedTo property value.
-
#assigned_to=(value) ⇒ Object
Sets the assignedTo property value.
-
#comments ⇒ Object
Gets the comments property value.
-
#comments=(value) ⇒ Object
Sets the comments property value.
-
#feedback ⇒ Object
Gets the feedback property value.
-
#feedback=(value) ⇒ Object
Sets the feedback property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new alertHistoryState and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type 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.
-
#updated_date_time ⇒ Object
Gets the updatedDateTime property value.
-
#updated_date_time=(value) ⇒ Object
Sets the updatedDateTime property value.
-
#user ⇒ Object
Gets the user property value.
-
#user=(value) ⇒ Object
Sets the user property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new alertHistoryState and sets the default values.
101 102 103 |
# File 'lib/models/alert_history_state.rb', line 101 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
109 110 111 112 |
# File 'lib/models/alert_history_state.rb', line 109 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AlertHistoryState.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.
41 42 43 |
# File 'lib/models/alert_history_state.rb', line 41 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.
49 50 51 |
# File 'lib/models/alert_history_state.rb', line 49 def additional_data=(value) @additional_data = value end |
#app_id ⇒ Object
Gets the appId property value. The appId property
56 57 58 |
# File 'lib/models/alert_history_state.rb', line 56 def app_id return @app_id end |
#app_id=(value) ⇒ Object
Sets the appId property value. The appId property
64 65 66 |
# File 'lib/models/alert_history_state.rb', line 64 def app_id=(value) @app_id = value end |
#assigned_to ⇒ Object
Gets the assignedTo property value. The assignedTo property
71 72 73 |
# File 'lib/models/alert_history_state.rb', line 71 def assigned_to return @assigned_to end |
#assigned_to=(value) ⇒ Object
Sets the assignedTo property value. The assignedTo property
79 80 81 |
# File 'lib/models/alert_history_state.rb', line 79 def assigned_to=(value) @assigned_to = value end |
#comments ⇒ Object
Gets the comments property value. The comments property
86 87 88 |
# File 'lib/models/alert_history_state.rb', line 86 def comments return @comments end |
#comments=(value) ⇒ Object
Sets the comments property value. The comments property
94 95 96 |
# File 'lib/models/alert_history_state.rb', line 94 def comments=(value) @comments = value end |
#feedback ⇒ Object
Gets the feedback property value. The feedback property
117 118 119 |
# File 'lib/models/alert_history_state.rb', line 117 def feedback return @feedback end |
#feedback=(value) ⇒ Object
Sets the feedback property value. The feedback property
125 126 127 |
# File 'lib/models/alert_history_state.rb', line 125 def feedback=(value) @feedback = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'lib/models/alert_history_state.rb', line 132 def get_field_deserializers() return { "appId" => lambda {|n| @app_id = n.get_string_value() }, "assignedTo" => lambda {|n| @assigned_to = n.get_string_value() }, "comments" => lambda {|n| @comments = n.get_collection_of_primitive_values(String) }, "feedback" => lambda {|n| @feedback = n.get_enum_value(MicrosoftGraph::Models::AlertFeedback) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::AlertStatus) }, "updatedDateTime" => lambda {|n| @updated_date_time = n.get_date_time_value() }, "user" => lambda {|n| @user = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
148 149 150 |
# File 'lib/models/alert_history_state.rb', line 148 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
156 157 158 |
# File 'lib/models/alert_history_state.rb', line 156 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/models/alert_history_state.rb', line 164 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("appId", @app_id) writer.write_string_value("assignedTo", @assigned_to) writer.write_collection_of_primitive_values("comments", @comments) writer.write_enum_value("feedback", @feedback) writer.write_string_value("@odata.type", @odata_type) writer.write_enum_value("status", @status) writer.write_date_time_value("updatedDateTime", @updated_date_time) writer.write_string_value("user", @user) writer.write_additional_data(@additional_data) end |
#status ⇒ Object
Gets the status property value. The status property
180 181 182 |
# File 'lib/models/alert_history_state.rb', line 180 def status return @status end |
#status=(value) ⇒ Object
Sets the status property value. The status property
188 189 190 |
# File 'lib/models/alert_history_state.rb', line 188 def status=(value) @status = value end |
#updated_date_time ⇒ Object
Gets the updatedDateTime property value. The updatedDateTime property
195 196 197 |
# File 'lib/models/alert_history_state.rb', line 195 def updated_date_time return @updated_date_time end |
#updated_date_time=(value) ⇒ Object
Sets the updatedDateTime property value. The updatedDateTime property
203 204 205 |
# File 'lib/models/alert_history_state.rb', line 203 def updated_date_time=(value) @updated_date_time = value end |
#user ⇒ Object
Gets the user property value. The user property
210 211 212 |
# File 'lib/models/alert_history_state.rb', line 210 def user return @user end |
#user=(value) ⇒ Object
Sets the user property value. The user property
218 219 220 |
# File 'lib/models/alert_history_state.rb', line 218 def user=(value) @user = value end |