Class: MicrosoftGraph::Models::SecureScoreControlStateUpdate

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new secureScoreControlStateUpdate and sets the default values.



80
81
82
# File 'lib/models/secure_score_control_state_update.rb', line 80

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 secure_score_control_state_update

Raises:

  • (StandardError)


88
89
90
91
# File 'lib/models/secure_score_control_state_update.rb', line 88

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



35
36
37
# File 'lib/models/secure_score_control_state_update.rb', line 35

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



43
44
45
# File 'lib/models/secure_score_control_state_update.rb', line 43

def additional_data=(value)
    @additional_data = value
end

#assigned_toObject

Gets the assignedTo property value. Assigns the control to the user who will take the action.

Returns:

  • a string



50
51
52
# File 'lib/models/secure_score_control_state_update.rb', line 50

def assigned_to
    return @assigned_to
end

#assigned_to=(value) ⇒ Object

Sets the assignedTo property value. Assigns the control to the user who will take the action.

Parameters:

  • value

    Value to set for the assignedTo property.

Returns:

  • a void



58
59
60
# File 'lib/models/secure_score_control_state_update.rb', line 58

def assigned_to=(value)
    @assigned_to = value
end

#commentObject

Gets the comment property value. Provides optional comment about the control.

Returns:

  • a string



65
66
67
# File 'lib/models/secure_score_control_state_update.rb', line 65

def comment
    return @comment
end

#comment=(value) ⇒ Object

Sets the comment property value. Provides optional comment about the control.

Parameters:

  • value

    Value to set for the comment property.

Returns:

  • a void



73
74
75
# File 'lib/models/secure_score_control_state_update.rb', line 73

def comment=(value)
    @comment = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



96
97
98
99
100
101
102
103
104
105
# File 'lib/models/secure_score_control_state_update.rb', line 96

def get_field_deserializers()
    return {
        "assignedTo" => lambda {|n| @assigned_to = n.get_string_value() },
        "comment" => lambda {|n| @comment = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "state" => lambda {|n| @state = n.get_string_value() },
        "updatedBy" => lambda {|n| @updated_by = n.get_string_value() },
        "updatedDateTime" => lambda {|n| @updated_date_time = n.get_date_time_value() },
    }
end

#odata_typeObject

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

Returns:

  • a string



110
111
112
# File 'lib/models/secure_score_control_state_update.rb', line 110

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



118
119
120
# File 'lib/models/secure_score_control_state_update.rb', line 118

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)


126
127
128
129
130
131
132
133
134
135
# File 'lib/models/secure_score_control_state_update.rb', line 126

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("assignedTo", @assigned_to)
    writer.write_string_value("comment", @comment)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("state", @state)
    writer.write_string_value("updatedBy", @updated_by)
    writer.write_date_time_value("updatedDateTime", @updated_date_time)
    writer.write_additional_data(@additional_data)
end

#stateObject

Gets the state property value. State of the control, which can be modified via a PATCH command (for example, ignored, thirdParty).

Returns:

  • a string



140
141
142
# File 'lib/models/secure_score_control_state_update.rb', line 140

def state
    return @state
end

#state=(value) ⇒ Object

Sets the state property value. State of the control, which can be modified via a PATCH command (for example, ignored, thirdParty).

Parameters:

  • value

    Value to set for the state property.

Returns:

  • a void



148
149
150
# File 'lib/models/secure_score_control_state_update.rb', line 148

def state=(value)
    @state = value
end

#updated_byObject

Gets the updatedBy property value. ID of the user who updated tenant state.

Returns:

  • a string



155
156
157
# File 'lib/models/secure_score_control_state_update.rb', line 155

def updated_by
    return @updated_by
end

#updated_by=(value) ⇒ Object

Sets the updatedBy property value. ID of the user who updated tenant state.

Parameters:

  • value

    Value to set for the updatedBy property.

Returns:

  • a void



163
164
165
# File 'lib/models/secure_score_control_state_update.rb', line 163

def updated_by=(value)
    @updated_by = value
end

#updated_date_timeObject

Gets the updatedDateTime property value. Time at which the control state was updated.

Returns:

  • a date_time



170
171
172
# File 'lib/models/secure_score_control_state_update.rb', line 170

def updated_date_time
    return @updated_date_time
end

#updated_date_time=(value) ⇒ Object

Sets the updatedDateTime property value. Time at which the control state was updated.

Parameters:

  • value

    Value to set for the updatedDateTime property.

Returns:

  • a void



178
179
180
# File 'lib/models/secure_score_control_state_update.rb', line 178

def updated_date_time=(value)
    @updated_date_time = value
end