Class: MicrosoftGraph::Models::AlertHistoryState

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a alert_history_state

Raises:

  • (StandardError)


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_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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



49
50
51
# File 'lib/models/alert_history_state.rb', line 49

def additional_data=(value)
    @additional_data = value
end

#app_idObject

Gets the appId property value. The appId property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the appId property.

Returns:

  • a void



64
65
66
# File 'lib/models/alert_history_state.rb', line 64

def app_id=(value)
    @app_id = value
end

#assigned_toObject

Gets the assignedTo property value. The assignedTo property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the assignedTo property.

Returns:

  • a void



79
80
81
# File 'lib/models/alert_history_state.rb', line 79

def assigned_to=(value)
    @assigned_to = value
end

#commentsObject

Gets the comments property value. The comments property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the comments property.

Returns:

  • a void



94
95
96
# File 'lib/models/alert_history_state.rb', line 94

def comments=(value)
    @comments = value
end

#feedbackObject

Gets the feedback property value. The feedback property

Returns:

  • a alert_feedback



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

Parameters:

  • value

    Value to set for the feedback property.

Returns:

  • a void



125
126
127
# File 'lib/models/alert_history_state.rb', line 125

def feedback=(value)
    @feedback = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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

#statusObject

Gets the status property value. The status property

Returns:

  • a alert_status



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

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



188
189
190
# File 'lib/models/alert_history_state.rb', line 188

def status=(value)
    @status = value
end

#updated_date_timeObject

Gets the updatedDateTime property value. The updatedDateTime property

Returns:

  • a date_time



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

Parameters:

  • value

    Value to set for the updatedDateTime property.

Returns:

  • a void



203
204
205
# File 'lib/models/alert_history_state.rb', line 203

def updated_date_time=(value)
    @updated_date_time = value
end

#userObject

Gets the user property value. The user property

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the user property.

Returns:

  • a void



218
219
220
# File 'lib/models/alert_history_state.rb', line 218

def user=(value)
    @user = value
end