Class: MicrosoftGraph::Models::SecurityCaseOperation

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_case_operation.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 securityCaseOperation and sets the default values.



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

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 security_case_operation

Raises:

  • (StandardError)


103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/models/security_case_operation.rb', line 103

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    mapping_value_node = parse_node.get_child_node("@odata.type")
    unless mapping_value_node.nil? then
        mapping_value = mapping_value_node.get_string_value
        case mapping_value
            when "#microsoft.graph.security.ediscoveryAddToReviewSetOperation"
                return SecurityEdiscoveryAddToReviewSetOperation.new
            when "#microsoft.graph.security.ediscoveryEstimateOperation"
                return SecurityEdiscoveryEstimateOperation.new
            when "#microsoft.graph.security.ediscoveryExportOperation"
                return SecurityEdiscoveryExportOperation.new
            when "#microsoft.graph.security.ediscoveryHoldOperation"
                return SecurityEdiscoveryHoldOperation.new
            when "#microsoft.graph.security.ediscoveryIndexOperation"
                return SecurityEdiscoveryIndexOperation.new
            when "#microsoft.graph.security.ediscoveryPurgeDataOperation"
                return SecurityEdiscoveryPurgeDataOperation.new
            when "#microsoft.graph.security.ediscoveryTagOperation"
                return SecurityEdiscoveryTagOperation.new
        end
    end
    return SecurityCaseOperation.new
end

Instance Method Details

#actionObject

Gets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData

Returns:

  • a security_case_action



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

def action
    return @action
end

#action=(value) ⇒ Object

Sets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData

Parameters:

  • value

    Value to set for the action property.

Returns:

  • a void



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

def action=(value)
    @action = value
end

#completed_date_timeObject

Gets the completedDateTime property value. The date and time the operation was completed.

Returns:

  • a date_time



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

def completed_date_time
    return @completed_date_time
end

#completed_date_time=(value) ⇒ Object

Sets the completedDateTime property value. The date and time the operation was completed.

Parameters:

  • value

    Value to set for the completedDateTime property.

Returns:

  • a void



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

def completed_date_time=(value)
    @completed_date_time = value
end

#created_byObject

Gets the createdBy property value. The user that created the operation.

Returns:

  • a identity_set



72
73
74
# File 'lib/models/security_case_operation.rb', line 72

def created_by
    return @created_by
end

#created_by=(value) ⇒ Object

Sets the createdBy property value. The user that created the operation.

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



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

def created_by=(value)
    @created_by = value
end

#created_date_timeObject

Gets the createdDateTime property value. The date and time the operation was created.

Returns:

  • a date_time



87
88
89
# File 'lib/models/security_case_operation.rb', line 87

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The date and time the operation was created.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



95
96
97
# File 'lib/models/security_case_operation.rb', line 95

def created_date_time=(value)
    @created_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



131
132
133
134
135
136
137
138
139
140
141
# File 'lib/models/security_case_operation.rb', line 131

def get_field_deserializers()
    return super.merge({
        "action" => lambda {|n| @action = n.get_enum_value(MicrosoftGraph::Models::SecurityCaseAction) },
        "completedDateTime" => lambda {|n| @completed_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() },
        "percentProgress" => lambda {|n| @percent_progress = n.get_number_value() },
        "resultInfo" => lambda {|n| @result_info = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ResultInfo.create_from_discriminator_value(pn) }) },
        "status" => lambda {|n| @status = n.get_enum_value(MicrosoftGraph::Models::SecurityCaseOperationStatus) },
    })
end

#percent_progressObject

Gets the percentProgress property value. The progress of the operation.

Returns:

  • a integer



146
147
148
# File 'lib/models/security_case_operation.rb', line 146

def percent_progress
    return @percent_progress
end

#percent_progress=(value) ⇒ Object

Sets the percentProgress property value. The progress of the operation.

Parameters:

  • value

    Value to set for the percentProgress property.

Returns:

  • a void



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

def percent_progress=(value)
    @percent_progress = value
end

#result_infoObject

Gets the resultInfo property value. Contains success and failure-specific result information.

Returns:

  • a result_info



161
162
163
# File 'lib/models/security_case_operation.rb', line 161

def result_info
    return @result_info
end

#result_info=(value) ⇒ Object

Sets the resultInfo property value. Contains success and failure-specific result information.

Parameters:

  • value

    Value to set for the resultInfo property.

Returns:

  • a void



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

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


177
178
179
180
181
182
183
184
185
186
187
# File 'lib/models/security_case_operation.rb', line 177

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("action", @action)
    writer.write_date_time_value("completedDateTime", @completed_date_time)
    writer.write_object_value("createdBy", @created_by)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_number_value("percentProgress", @percent_progress)
    writer.write_object_value("resultInfo", @result_info)
    writer.write_enum_value("status", @status)
end

#statusObject

Gets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed.

Returns:

  • a security_case_operation_status



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

def status
    return @status
end

#status=(value) ⇒ Object

Sets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed.

Parameters:

  • value

    Value to set for the status property.

Returns:

  • a void



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

def status=(value)
    @status = value
end