Class: MicrosoftGraph::Models::SecurityEdiscoveryCase

Inherits:
SecurityCase show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_ediscovery_case.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityCase

#created_date_time, #created_date_time=, #description, #description=, #display_name, #display_name=, #last_modified_by, #last_modified_by=, #last_modified_date_time, #last_modified_date_time=, #status, #status=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new securityEdiscoveryCase and sets the default values.



74
75
76
77
# File 'lib/models/security_ediscovery_case.rb', line 74

def initialize()
    super
    @odata_type = "#microsoft.graph.security.ediscoveryCase"
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 security_ediscovery_case

Raises:

  • (StandardError)


83
84
85
86
# File 'lib/models/security_ediscovery_case.rb', line 83

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

Instance Method Details

#closed_byObject

Gets the closedBy property value. The user who closed the case.

Returns:

  • a identity_set



44
45
46
# File 'lib/models/security_ediscovery_case.rb', line 44

def closed_by
    return @closed_by
end

#closed_by=(value) ⇒ Object

Sets the closedBy property value. The user who closed the case.

Parameters:

  • value

    Value to set for the closedBy property.

Returns:

  • a void



52
53
54
# File 'lib/models/security_ediscovery_case.rb', line 52

def closed_by=(value)
    @closed_by = value
end

#closed_date_timeObject

Gets the closedDateTime property value. The date and time when the case 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



59
60
61
# File 'lib/models/security_ediscovery_case.rb', line 59

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



67
68
69
# File 'lib/models/security_ediscovery_case.rb', line 67

def closed_date_time=(value)
    @closed_date_time = value
end

#custodiansObject

Gets the custodians property value. Returns a list of case ediscoveryCustodian objects for this case.

Returns:

  • a security_ediscovery_custodian



91
92
93
# File 'lib/models/security_ediscovery_case.rb', line 91

def custodians
    return @custodians
end

#custodians=(value) ⇒ Object

Sets the custodians property value. Returns a list of case ediscoveryCustodian objects for this case.

Parameters:

  • value

    Value to set for the custodians property.

Returns:

  • a void



99
100
101
# File 'lib/models/security_ediscovery_case.rb', line 99

def custodians=(value)
    @custodians = value
end

#external_idObject

Gets the externalId property value. The external case number for customer reference.

Returns:

  • a string



106
107
108
# File 'lib/models/security_ediscovery_case.rb', line 106

def external_id
    return @external_id
end

#external_id=(value) ⇒ Object

Sets the externalId property value. The external case number for customer reference.

Parameters:

  • value

    Value to set for the externalId property.

Returns:

  • a void



114
115
116
# File 'lib/models/security_ediscovery_case.rb', line 114

def external_id=(value)
    @external_id = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



121
122
123
124
125
126
127
128
129
130
131
132
133
134
# File 'lib/models/security_ediscovery_case.rb', line 121

def get_field_deserializers()
    return super.merge({
        "closedBy" => lambda {|n| @closed_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "closedDateTime" => lambda {|n| @closed_date_time = n.get_date_time_value() },
        "custodians" => lambda {|n| @custodians = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryCustodian.create_from_discriminator_value(pn) }) },
        "externalId" => lambda {|n| @external_id = n.get_string_value() },
        "noncustodialDataSources" => lambda {|n| @noncustodial_data_sources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryNoncustodialDataSource.create_from_discriminator_value(pn) }) },
        "operations" => lambda {|n| @operations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityCaseOperation.create_from_discriminator_value(pn) }) },
        "reviewSets" => lambda {|n| @review_sets = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryReviewSet.create_from_discriminator_value(pn) }) },
        "searches" => lambda {|n| @searches = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoverySearch.create_from_discriminator_value(pn) }) },
        "settings" => lambda {|n| @settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryCaseSettings.create_from_discriminator_value(pn) }) },
        "tags" => lambda {|n| @tags = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryReviewTag.create_from_discriminator_value(pn) }) },
    })
end

#noncustodial_data_sourcesObject

Gets the noncustodialDataSources property value. Returns a list of case ediscoveryNoncustodialDataSource objects for this case.

Returns:

  • a security_ediscovery_noncustodial_data_source



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

def noncustodial_data_sources
    return @noncustodial_data_sources
end

#noncustodial_data_sources=(value) ⇒ Object

Sets the noncustodialDataSources property value. Returns a list of case ediscoveryNoncustodialDataSource objects for this case.

Parameters:

  • value

    Value to set for the noncustodialDataSources property.

Returns:

  • a void



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

def noncustodial_data_sources=(value)
    @noncustodial_data_sources = value
end

#operationsObject

Gets the operations property value. Returns a list of case caseOperation objects for this case.

Returns:

  • a security_case_operation



154
155
156
# File 'lib/models/security_ediscovery_case.rb', line 154

def operations
    return @operations
end

#operations=(value) ⇒ Object

Sets the operations property value. Returns a list of case caseOperation objects for this case.

Parameters:

  • value

    Value to set for the operations property.

Returns:

  • a void



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

def operations=(value)
    @operations = value
end

#review_setsObject

Gets the reviewSets property value. Returns a list of eDiscoveryReviewSet objects in the case.

Returns:

  • a security_ediscovery_review_set



169
170
171
# File 'lib/models/security_ediscovery_case.rb', line 169

def review_sets
    return @review_sets
end

#review_sets=(value) ⇒ Object

Sets the reviewSets property value. Returns a list of eDiscoveryReviewSet objects in the case.

Parameters:

  • value

    Value to set for the reviewSets property.

Returns:

  • a void



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

def review_sets=(value)
    @review_sets = value
end

#searchesObject

Gets the searches property value. Returns a list of eDiscoverySearch objects associated with this case.

Returns:

  • a security_ediscovery_search



184
185
186
# File 'lib/models/security_ediscovery_case.rb', line 184

def searches
    return @searches
end

#searches=(value) ⇒ Object

Sets the searches property value. Returns a list of eDiscoverySearch objects associated with this case.

Parameters:

  • value

    Value to set for the searches property.

Returns:

  • a void



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

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


200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/models/security_ediscovery_case.rb', line 200

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("closedBy", @closed_by)
    writer.write_date_time_value("closedDateTime", @closed_date_time)
    writer.write_collection_of_object_values("custodians", @custodians)
    writer.write_string_value("externalId", @external_id)
    writer.write_collection_of_object_values("noncustodialDataSources", @noncustodial_data_sources)
    writer.write_collection_of_object_values("operations", @operations)
    writer.write_collection_of_object_values("reviewSets", @review_sets)
    writer.write_collection_of_object_values("searches", @searches)
    writer.write_object_value("settings", @settings)
    writer.write_collection_of_object_values("tags", @tags)
end

#settingsObject

Gets the settings property value. Returns a list of eDIscoverySettings objects in the case.

Returns:

  • a security_ediscovery_case_settings



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

def settings
    return @settings
end

#settings=(value) ⇒ Object

Sets the settings property value. Returns a list of eDIscoverySettings objects in the case.

Parameters:

  • value

    Value to set for the settings property.

Returns:

  • a void



226
227
228
# File 'lib/models/security_ediscovery_case.rb', line 226

def settings=(value)
    @settings = value
end

#tagsObject

Gets the tags property value. Returns a list of ediscoveryReviewTag objects associated to this case.

Returns:

  • a security_ediscovery_review_tag



233
234
235
# File 'lib/models/security_ediscovery_case.rb', line 233

def tags
    return @tags
end

#tags=(value) ⇒ Object

Sets the tags property value. Returns a list of ediscoveryReviewTag objects associated to this case.

Parameters:

  • value

    Value to set for the tags property.

Returns:

  • a void



241
242
243
# File 'lib/models/security_ediscovery_case.rb', line 241

def tags=(value)
    @tags = value
end