Class: MicrosoftGraph::Models::SecurityCaseOperation
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_case_operation.rb
Direct Known Subclasses
SecurityEdiscoveryAddToReviewSetOperation, SecurityEdiscoveryEstimateOperation, SecurityEdiscoveryExportOperation, SecurityEdiscoveryHoldOperation, SecurityEdiscoveryIndexOperation, SecurityEdiscoveryPurgeDataOperation, SecurityEdiscoveryTagOperation
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#action ⇒ Object
Gets the action property value.
-
#action=(value) ⇒ Object
Sets the action property value.
-
#completed_date_time ⇒ Object
Gets the completedDateTime property value.
-
#completed_date_time=(value) ⇒ Object
Sets the completedDateTime property value.
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityCaseOperation and sets the default values.
-
#percent_progress ⇒ Object
Gets the percentProgress property value.
-
#percent_progress=(value) ⇒ Object
Sets the percentProgress property value.
-
#result_info ⇒ Object
Gets the resultInfo property value.
-
#result_info=(value) ⇒ Object
Sets the resultInfo property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#status ⇒ Object
Gets the status property value.
-
#status=(value) ⇒ Object
Sets the status property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#action ⇒ Object
Gets the action property value. The type of action the operation represents. Possible values are: addToReviewSet,applyTags,contentExport,convertToPdf,estimateStatistics, purgeData
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
43 44 45 |
# File 'lib/models/security_case_operation.rb', line 43 def action=(value) @action = value end |
#completed_date_time ⇒ Object
Gets the completedDateTime property value. The date and time the operation was completed.
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.
58 59 60 |
# File 'lib/models/security_case_operation.rb', line 58 def completed_date_time=(value) @completed_date_time = value end |
#created_by ⇒ Object
Gets the createdBy property value. The user that created the operation.
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.
80 81 82 |
# File 'lib/models/security_case_operation.rb', line 80 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date and time the operation was created.
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.
95 96 97 |
# File 'lib/models/security_case_operation.rb', line 95 def created_date_time=(value) @created_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_progress ⇒ Object
Gets the percentProgress property value. The progress of the operation.
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.
154 155 156 |
# File 'lib/models/security_case_operation.rb', line 154 def percent_progress=(value) @percent_progress = value end |
#result_info ⇒ Object
Gets the resultInfo property value. Contains success and failure-specific result information.
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.
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
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 |
#status ⇒ Object
Gets the status property value. The status of the case operation. Possible values are: notStarted, submissionFailed, running, succeeded, partiallySucceeded, failed.
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.
200 201 202 |
# File 'lib/models/security_case_operation.rb', line 200 def status=(value) @status = value end |