Class: MicrosoftGraph::Models::SecurityEdiscoverySearch

Inherits:
SecuritySearch show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_ediscovery_search.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecuritySearch

#content_query, #content_query=, #created_by, #created_by=, #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=

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new securityEdiscoverySearch and sets the default values.



61
62
63
64
# File 'lib/models/security_ediscovery_search.rb', line 61

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

Raises:

  • (StandardError)


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

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

Instance Method Details

#add_to_review_set_operationObject

Gets the addToReviewSetOperation property value. Adds the results of the eDiscovery search to the specified reviewSet.

Returns:

  • a security_ediscovery_add_to_review_set_operation



31
32
33
# File 'lib/models/security_ediscovery_search.rb', line 31

def add_to_review_set_operation
    return @add_to_review_set_operation
end

#add_to_review_set_operation=(value) ⇒ Object

Sets the addToReviewSetOperation property value. Adds the results of the eDiscovery search to the specified reviewSet.

Parameters:

  • value

    Value to set for the addToReviewSetOperation property.

Returns:

  • a void



39
40
41
# File 'lib/models/security_ediscovery_search.rb', line 39

def add_to_review_set_operation=(value)
    @add_to_review_set_operation = value
end

#additional_sourcesObject

Gets the additionalSources property value. Adds an additional source to the eDiscovery search.

Returns:

  • a security_data_source



46
47
48
# File 'lib/models/security_ediscovery_search.rb', line 46

def additional_sources
    return @additional_sources
end

#additional_sources=(value) ⇒ Object

Sets the additionalSources property value. Adds an additional source to the eDiscovery search.

Parameters:

  • value

    Value to set for the additionalSources property.

Returns:

  • a void



54
55
56
# File 'lib/models/security_ediscovery_search.rb', line 54

def additional_sources=(value)
    @additional_sources = value
end

#custodian_sourcesObject

Gets the custodianSources property value. Custodian sources that are included in the eDiscovery search.

Returns:

  • a security_data_source



78
79
80
# File 'lib/models/security_ediscovery_search.rb', line 78

def custodian_sources
    return @custodian_sources
end

#custodian_sources=(value) ⇒ Object

Sets the custodianSources property value. Custodian sources that are included in the eDiscovery search.

Parameters:

  • value

    Value to set for the custodianSources property.

Returns:

  • a void



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

def custodian_sources=(value)
    @custodian_sources = value
end

#data_source_scopesObject

Gets the dataSourceScopes property value. When specified, the collection will span across a service for an entire workload. Possible values are: none, allTenantMailboxes, allTenantSites, allCaseCustodians, allCaseNoncustodialDataSources.

Returns:

  • a security_data_source_scopes



93
94
95
# File 'lib/models/security_ediscovery_search.rb', line 93

def data_source_scopes
    return @data_source_scopes
end

#data_source_scopes=(value) ⇒ Object

Sets the dataSourceScopes property value. When specified, the collection will span across a service for an entire workload. Possible values are: none, allTenantMailboxes, allTenantSites, allCaseCustodians, allCaseNoncustodialDataSources.

Parameters:

  • value

    Value to set for the dataSourceScopes property.

Returns:

  • a void



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

def data_source_scopes=(value)
    @data_source_scopes = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



108
109
110
111
112
113
114
115
116
117
# File 'lib/models/security_ediscovery_search.rb', line 108

def get_field_deserializers()
    return super.merge({
        "addToReviewSetOperation" => lambda {|n| @add_to_review_set_operation = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryAddToReviewSetOperation.create_from_discriminator_value(pn) }) },
        "additionalSources" => lambda {|n| @additional_sources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityDataSource.create_from_discriminator_value(pn) }) },
        "custodianSources" => lambda {|n| @custodian_sources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityDataSource.create_from_discriminator_value(pn) }) },
        "dataSourceScopes" => lambda {|n| @data_source_scopes = n.get_enum_value(MicrosoftGraph::Models::SecurityDataSourceScopes) },
        "lastEstimateStatisticsOperation" => lambda {|n| @last_estimate_statistics_operation = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryEstimateOperation.create_from_discriminator_value(pn) }) },
        "noncustodialSources" => lambda {|n| @noncustodial_sources = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryNoncustodialDataSource.create_from_discriminator_value(pn) }) },
    })
end

#last_estimate_statistics_operationObject

Gets the lastEstimateStatisticsOperation property value. The last estimate operation associated with the eDiscovery search.

Returns:

  • a security_ediscovery_estimate_operation



122
123
124
# File 'lib/models/security_ediscovery_search.rb', line 122

def last_estimate_statistics_operation
    return @last_estimate_statistics_operation
end

#last_estimate_statistics_operation=(value) ⇒ Object

Sets the lastEstimateStatisticsOperation property value. The last estimate operation associated with the eDiscovery search.

Parameters:

  • value

    Value to set for the lastEstimateStatisticsOperation property.

Returns:

  • a void



130
131
132
# File 'lib/models/security_ediscovery_search.rb', line 130

def last_estimate_statistics_operation=(value)
    @last_estimate_statistics_operation = value
end

#noncustodial_sourcesObject

Gets the noncustodialSources property value. noncustodialDataSource sources that are included in the eDiscovery search

Returns:

  • a security_ediscovery_noncustodial_data_source



137
138
139
# File 'lib/models/security_ediscovery_search.rb', line 137

def noncustodial_sources
    return @noncustodial_sources
end

#noncustodial_sources=(value) ⇒ Object

Sets the noncustodialSources property value. noncustodialDataSource sources that are included in the eDiscovery search

Parameters:

  • value

    Value to set for the noncustodialSources property.

Returns:

  • a void



145
146
147
# File 'lib/models/security_ediscovery_search.rb', line 145

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


153
154
155
156
157
158
159
160
161
162
# File 'lib/models/security_ediscovery_search.rb', line 153

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("addToReviewSetOperation", @add_to_review_set_operation)
    writer.write_collection_of_object_values("additionalSources", @additional_sources)
    writer.write_collection_of_object_values("custodianSources", @custodian_sources)
    writer.write_enum_value("dataSourceScopes", @data_source_scopes)
    writer.write_object_value("lastEstimateStatisticsOperation", @last_estimate_statistics_operation)
    writer.write_collection_of_object_values("noncustodialSources", @noncustodial_sources)
end