Class: MicrosoftGraph::Models::SubjectRightsRequest

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/subject_rights_request.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new subjectRightsRequest and sets the default values.



101
102
103
# File 'lib/models/subject_rights_request.rb', line 101

def initialize()
    super
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

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SubjectRightsRequest.new
end

Instance Method Details

#assigned_toObject

Gets the assignedTo property value. Identity that the request is assigned to.

Returns:

  • a identity



71
72
73
# File 'lib/models/subject_rights_request.rb', line 71

def assigned_to
    return @assigned_to
end

#assigned_to=(value) ⇒ Object

Sets the assignedTo property value. Identity that the request is assigned to.

Parameters:

  • value

    Value to set for the assignedTo property.

Returns:

  • a void



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

def assigned_to=(value)
    @assigned_to = value
end

#closed_date_timeObject

Gets the closedDateTime property value. The date and time when the request was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



86
87
88
# File 'lib/models/subject_rights_request.rb', line 86

def closed_date_time
    return @closed_date_time
end

#closed_date_time=(value) ⇒ Object

Sets the closedDateTime property value. The date and time when the request was closed. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the closedDateTime property.

Returns:

  • a void



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

def closed_date_time=(value)
    @closed_date_time = value
end

#created_byObject

Gets the createdBy property value. Identity information for the entity that created the request.

Returns:

  • a identity_set



108
109
110
# File 'lib/models/subject_rights_request.rb', line 108

def created_by
    return @created_by
end

#created_by=(value) ⇒ Object

Sets the createdBy property value. Identity information for the entity that created the request.

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



116
117
118
# File 'lib/models/subject_rights_request.rb', line 116

def created_by=(value)
    @created_by = value
end

#created_date_timeObject

Gets the createdDateTime property value. The date and time when the request was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



123
124
125
# File 'lib/models/subject_rights_request.rb', line 123

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The date and time when the request was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



131
132
133
# File 'lib/models/subject_rights_request.rb', line 131

def created_date_time=(value)
    @created_date_time = value
end

#data_subjectObject

Gets the dataSubject property value. Information about the data subject.

Returns:

  • a data_subject



147
148
149
# File 'lib/models/subject_rights_request.rb', line 147

def data_subject
    return @data_subject
end

#data_subject=(value) ⇒ Object

Sets the dataSubject property value. Information about the data subject.

Parameters:

  • value

    Value to set for the dataSubject property.

Returns:

  • a void



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

def data_subject=(value)
    @data_subject = value
end

#data_subject_typeObject

Gets the dataSubjectType property value. The type of the data subject. Possible values are: customer, currentEmployee, formerEmployee, prospectiveEmployee, student, teacher, faculty, other, unknownFutureValue.

Returns:

  • a data_subject_type



162
163
164
# File 'lib/models/subject_rights_request.rb', line 162

def data_subject_type
    return @data_subject_type
end

#data_subject_type=(value) ⇒ Object

Sets the dataSubjectType property value. The type of the data subject. Possible values are: customer, currentEmployee, formerEmployee, prospectiveEmployee, student, teacher, faculty, other, unknownFutureValue.

Parameters:

  • value

    Value to set for the dataSubjectType property.

Returns:

  • a void



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

def data_subject_type=(value)
    @data_subject_type = value
end

#descriptionObject

Gets the description property value. Description for the request.

Returns:

  • a string



177
178
179
# File 'lib/models/subject_rights_request.rb', line 177

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. Description for the request.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



185
186
187
# File 'lib/models/subject_rights_request.rb', line 185

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The name of the request.

Returns:

  • a string



192
193
194
# File 'lib/models/subject_rights_request.rb', line 192

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the request.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



200
201
202
# File 'lib/models/subject_rights_request.rb', line 200

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
# File 'lib/models/subject_rights_request.rb', line 207

def get_field_deserializers()
    return super.merge({
        "assignedTo" => lambda {|n| @assigned_to = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) },
        "closedDateTime" => lambda {|n| @closed_date_time = n.get_date_time_value() },
        "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "dataSubject" => lambda {|n| @data_subject = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DataSubject.create_from_discriminator_value(pn) }) },
        "dataSubjectType" => lambda {|n| @data_subject_type = n.get_enum_value(MicrosoftGraph::Models::DataSubjectType) },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "history" => lambda {|n| @history = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SubjectRightsRequestHistory.create_from_discriminator_value(pn) }) },
        "insight" => lambda {|n| @insight = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SubjectRightsRequestDetail.create_from_discriminator_value(pn) }) },
        "internalDueDateTime" => lambda {|n| @internal_due_date_time = n.get_date_time_value() },
        "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() },
        "notes" => lambda {|n| @notes = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthoredNote.create_from_discriminator_value(pn) }) },
        "regulations" => lambda {|n| @regulations = n.get_collection_of_primitive_values(String) },
        "stages" => lambda {|n| @stages = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SubjectRightsRequestStageDetail.create_from_discriminator_value(pn) }) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SubjectRightsRequestStatus) },
        "team" => lambda {|n| @team = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Team.create_from_discriminator_value(pn) }) },
        "type" => lambda {|n| @type = n.get_enum_value(MicrosoftGraph::Models::SubjectRightsRequestType) },
    })
end

#historyObject

Gets the history property value. Collection of history change events.

Returns:

  • a subject_rights_request_history



234
235
236
# File 'lib/models/subject_rights_request.rb', line 234

def history
    return @history
end

#history=(value) ⇒ Object

Sets the history property value. Collection of history change events.

Parameters:

  • value

    Value to set for the history property.

Returns:

  • a void



242
243
244
# File 'lib/models/subject_rights_request.rb', line 242

def history=(value)
    @history = value
end

#insightObject

Gets the insight property value. Insight about the request.

Returns:

  • a subject_rights_request_detail



249
250
251
# File 'lib/models/subject_rights_request.rb', line 249

def insight
    return @insight
end

#insight=(value) ⇒ Object

Sets the insight property value. Insight about the request.

Parameters:

  • value

    Value to set for the insight property.

Returns:

  • a void



257
258
259
# File 'lib/models/subject_rights_request.rb', line 257

def insight=(value)
    @insight = value
end

#internal_due_date_timeObject

Gets the internalDueDateTime property value. The date and time when the request is internally due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



264
265
266
# File 'lib/models/subject_rights_request.rb', line 264

def internal_due_date_time
    return @internal_due_date_time
end

#internal_due_date_time=(value) ⇒ Object

Sets the internalDueDateTime property value. The date and time when the request is internally due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the internalDueDateTime property.

Returns:

  • a void



272
273
274
# File 'lib/models/subject_rights_request.rb', line 272

def internal_due_date_time=(value)
    @internal_due_date_time = value
end

#last_modified_byObject

Gets the lastModifiedBy property value. Identity information for the entity that last modified the request.

Returns:

  • a identity_set



279
280
281
# File 'lib/models/subject_rights_request.rb', line 279

def last_modified_by
    return @last_modified_by
end

#last_modified_by=(value) ⇒ Object

Sets the lastModifiedBy property value. Identity information for the entity that last modified the request.

Parameters:

  • value

    Value to set for the lastModifiedBy property.

Returns:

  • a void



287
288
289
# File 'lib/models/subject_rights_request.rb', line 287

def last_modified_by=(value)
    @last_modified_by = value
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. The date and time when the request was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Returns:

  • a date_time



294
295
296
# File 'lib/models/subject_rights_request.rb', line 294

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. The date and time when the request was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



302
303
304
# File 'lib/models/subject_rights_request.rb', line 302

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#notesObject

Gets the notes property value. List of notes associcated with the request.

Returns:

  • a authored_note



309
310
311
# File 'lib/models/subject_rights_request.rb', line 309

def notes
    return @notes
end

#notes=(value) ⇒ Object

Sets the notes property value. List of notes associcated with the request.

Parameters:

  • value

    Value to set for the notes property.

Returns:

  • a void



317
318
319
# File 'lib/models/subject_rights_request.rb', line 317

def notes=(value)
    @notes = value
end

#regulationsObject

Gets the regulations property value. List of regulations that this request will fulfill.

Returns:

  • a string



324
325
326
# File 'lib/models/subject_rights_request.rb', line 324

def regulations
    return @regulations
end

#regulations=(value) ⇒ Object

Sets the regulations property value. List of regulations that this request will fulfill.

Parameters:

  • value

    Value to set for the regulations property.

Returns:

  • a void



332
333
334
# File 'lib/models/subject_rights_request.rb', line 332

def regulations=(value)
    @regulations = 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)


340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
# File 'lib/models/subject_rights_request.rb', line 340

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("assignedTo", @assigned_to)
    writer.write_date_time_value("closedDateTime", @closed_date_time)
    writer.write_object_value("createdBy", @created_by)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_object_value("dataSubject", @data_subject)
    writer.write_enum_value("dataSubjectType", @data_subject_type)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_collection_of_object_values("history", @history)
    writer.write_object_value("insight", @insight)
    writer.write_date_time_value("internalDueDateTime", @internal_due_date_time)
    writer.write_object_value("lastModifiedBy", @last_modified_by)
    writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time)
    writer.write_collection_of_object_values("notes", @notes)
    writer.write_collection_of_primitive_values("regulations", @regulations)
    writer.write_collection_of_object_values("stages", @stages)
    writer.write_enum_value("status", @status)
    writer.write_object_value("team", @team)
    writer.write_enum_value("type", @type)
end

#stagesObject

Gets the stages property value. Information about the different stages for the request.

Returns:

  • a subject_rights_request_stage_detail



367
368
369
# File 'lib/models/subject_rights_request.rb', line 367

def stages
    return @stages
end

#stages=(value) ⇒ Object

Sets the stages property value. Information about the different stages for the request.

Parameters:

  • value

    Value to set for the stages property.

Returns:

  • a void



375
376
377
# File 'lib/models/subject_rights_request.rb', line 375

def stages=(value)
    @stages = value
end

#statusObject

Gets the status property value. The status of the request.. Possible values are: active, closed, unknownFutureValue.

Returns:

  • a subject_rights_request_status



382
383
384
# File 'lib/models/subject_rights_request.rb', line 382

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status of the request.. Possible values are: active, closed, unknownFutureValue.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



390
391
392
# File 'lib/models/subject_rights_request.rb', line 390

def status=(value)
    @status = value
end

#teamObject

Gets the team property value. Information about the Microsoft Teams team that was created for the request.

Returns:

  • a team



397
398
399
# File 'lib/models/subject_rights_request.rb', line 397

def team
    return @team
end

#team=(value) ⇒ Object

Sets the team property value. Information about the Microsoft Teams team that was created for the request.

Parameters:

  • value

    Value to set for the team property.

Returns:

  • a void



405
406
407
# File 'lib/models/subject_rights_request.rb', line 405

def team=(value)
    @team = value
end

#typeObject

Gets the type property value. The type of the request. Possible values are: export, delete, access, tagForAction, unknownFutureValue.

Returns:

  • a subject_rights_request_type



412
413
414
# File 'lib/models/subject_rights_request.rb', line 412

def type
    return @type
end

#type=(value) ⇒ Object

Sets the type property value. The type of the request. Possible values are: export, delete, access, tagForAction, unknownFutureValue.

Parameters:

  • value

    Value to set for the type property.

Returns:

  • a void



420
421
422
# File 'lib/models/subject_rights_request.rb', line 420

def type=(value)
    @type = value
end