Class: MicrosoftGraph::Models::SubjectRightsRequestHistory

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new subjectRightsRequestHistory and sets the default values.



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

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 subject_rights_request_history

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SubjectRightsRequestHistory.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/subject_rights_request_history.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/subject_rights_request_history.rb', line 43

def additional_data=(value)
    @additional_data = value
end

#changed_byObject

Gets the changedBy property value. Identity of the user who changed the subject rights request.

Returns:

  • a identity_set



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

def changed_by
    return @changed_by
end

#changed_by=(value) ⇒ Object

Sets the changedBy property value. Identity of the user who changed the subject rights request.

Parameters:

  • value

    Value to set for the changedBy property.

Returns:

  • a void



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

def changed_by=(value)
    @changed_by = value
end

#event_date_timeObject

Gets the eventDateTime property value. Data and time when the entity was changed.

Returns:

  • a date_time



81
82
83
# File 'lib/models/subject_rights_request_history.rb', line 81

def event_date_time
    return @event_date_time
end

#event_date_time=(value) ⇒ Object

Sets the eventDateTime property value. Data and time when the entity was changed.

Parameters:

  • value

    Value to set for the eventDateTime property.

Returns:

  • a void



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

def event_date_time=(value)
    @event_date_time = 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/subject_rights_request_history.rb', line 96

def get_field_deserializers()
    return {
        "changedBy" => lambda {|n| @changed_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "eventDateTime" => lambda {|n| @event_date_time = n.get_date_time_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "stage" => lambda {|n| @stage = n.get_enum_value(MicrosoftGraph::Models::SubjectRightsRequestStage) },
        "stageStatus" => lambda {|n| @stage_status = n.get_enum_value(MicrosoftGraph::Models::SubjectRightsRequestStageStatus) },
        "type" => lambda {|n| @type = n.get_string_value() },
    }
end

#odata_typeObject

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

Returns:

  • a string



110
111
112
# File 'lib/models/subject_rights_request_history.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/subject_rights_request_history.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/subject_rights_request_history.rb', line 126

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_object_value("changedBy", @changed_by)
    writer.write_date_time_value("eventDateTime", @event_date_time)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_enum_value("stage", @stage)
    writer.write_enum_value("stageStatus", @stage_status)
    writer.write_string_value("type", @type)
    writer.write_additional_data(@additional_data)
end

#stageObject

Gets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue.

Returns:

  • a subject_rights_request_stage



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

def stage
    return @stage
end

#stage=(value) ⇒ Object

Sets the stage property value. The stage when the entity was changed. Possible values are: contentRetrieval, contentReview, generateReport, contentDeletion, caseResolved, unknownFutureValue.

Parameters:

  • value

    Value to set for the stage property.

Returns:

  • a void



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

def stage=(value)
    @stage = value
end

#stage_statusObject

Gets the stageStatus property value. The status of the stage when the entity was changed. Possible values are: notStarted, current, completed, failed, unknownFutureValue.

Returns:

  • a subject_rights_request_stage_status



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

def stage_status
    return @stage_status
end

#stage_status=(value) ⇒ Object

Sets the stageStatus property value. The status of the stage when the entity was changed. Possible values are: notStarted, current, completed, failed, unknownFutureValue.

Parameters:

  • value

    Value to set for the stageStatus property.

Returns:

  • a void



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

def stage_status=(value)
    @stage_status = value
end

#typeObject

Gets the type property value. Type of history.

Returns:

  • a string



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

def type
    return @type
end

#type=(value) ⇒ Object

Sets the type property value. Type of history.

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



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

def type=(value)
    @type = value
end