Class: MicrosoftGraph::Models::RiskDetection
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/risk_detection.rb
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
-
#activity ⇒ Object
Gets the activity property value.
-
#activity=(value) ⇒ Object
Sets the activity property value.
-
#activity_date_time ⇒ Object
Gets the activityDateTime property value.
-
#activity_date_time=(value) ⇒ Object
Sets the activityDateTime property value.
-
#additional_info ⇒ Object
Gets the additionalInfo property value.
-
#additional_info=(value) ⇒ Object
Sets the additionalInfo property value.
-
#correlation_id ⇒ Object
Gets the correlationId property value.
-
#correlation_id=(value) ⇒ Object
Sets the correlationId property value.
-
#detected_date_time ⇒ Object
Gets the detectedDateTime property value.
-
#detected_date_time=(value) ⇒ Object
Sets the detectedDateTime property value.
-
#detection_timing_type ⇒ Object
Gets the detectionTimingType property value.
-
#detection_timing_type=(value) ⇒ Object
Sets the detectionTimingType property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new riskDetection and sets the default values.
-
#ip_address ⇒ Object
Gets the ipAddress property value.
-
#ip_address=(value) ⇒ Object
Sets the ipAddress property value.
-
#last_updated_date_time ⇒ Object
Gets the lastUpdatedDateTime property value.
-
#last_updated_date_time=(value) ⇒ Object
Sets the lastUpdatedDateTime property value.
-
#location ⇒ Object
Gets the location property value.
-
#location=(value) ⇒ Object
Sets the location property value.
-
#request_id ⇒ Object
Gets the requestId property value.
-
#request_id=(value) ⇒ Object
Sets the requestId property value.
-
#risk_detail ⇒ Object
Gets the riskDetail property value.
-
#risk_detail=(value) ⇒ Object
Sets the riskDetail property value.
-
#risk_event_type ⇒ Object
Gets the riskEventType property value.
-
#risk_event_type=(value) ⇒ Object
Sets the riskEventType property value.
-
#risk_level ⇒ Object
Gets the riskLevel property value.
-
#risk_level=(value) ⇒ Object
Sets the riskLevel property value.
-
#risk_state ⇒ Object
Gets the riskState property value.
-
#risk_state=(value) ⇒ Object
Sets the riskState property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#source ⇒ Object
Gets the source property value.
-
#source=(value) ⇒ Object
Sets the source property value.
-
#token_issuer_type ⇒ Object
Gets the tokenIssuerType property value.
-
#token_issuer_type=(value) ⇒ Object
Sets the tokenIssuerType property value.
-
#user_display_name ⇒ Object
Gets the userDisplayName property value.
-
#user_display_name=(value) ⇒ Object
Sets the userDisplayName property value.
-
#user_id ⇒ Object
Gets the userId property value.
-
#user_id=(value) ⇒ Object
Sets the userId property value.
-
#user_principal_name ⇒ Object
Gets the userPrincipalName property value.
-
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new riskDetection and sets the default values.
116 117 118 |
# File 'lib/models/risk_detection.rb', line 116 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
139 140 141 142 |
# File 'lib/models/risk_detection.rb', line 139 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RiskDetection.new end |
Instance Method Details
#activity ⇒ Object
Gets the activity property value. Indicates the activity type the detected risk is linked to. Possible values are: signin, user, unknownFutureValue.
71 72 73 |
# File 'lib/models/risk_detection.rb', line 71 def activity return @activity end |
#activity=(value) ⇒ Object
Sets the activity property value. Indicates the activity type the detected risk is linked to. Possible values are: signin, user, unknownFutureValue.
79 80 81 |
# File 'lib/models/risk_detection.rb', line 79 def activity=(value) @activity = value end |
#activity_date_time ⇒ Object
Gets the activityDateTime property value. Date and time that the risky activity occurred. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z
86 87 88 |
# File 'lib/models/risk_detection.rb', line 86 def activity_date_time return @activity_date_time end |
#activity_date_time=(value) ⇒ Object
Sets the activityDateTime property value. Date and time that the risky activity occurred. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z
94 95 96 |
# File 'lib/models/risk_detection.rb', line 94 def activity_date_time=(value) @activity_date_time = value end |
#additional_info ⇒ Object
Gets the additionalInfo property value. Additional information associated with the risk detection in JSON format. For example, ‘[(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36/‘]’. Possible keys in the additionalInfo JSON string are: userAgent, alertUrl, relatedEventTimeInUtc, relatedUserAgent, deviceInformation, relatedLocation, requestId, correlationId, lastActivityTimeInUtc, malwareName, clientLocation, clientIp, riskReasons. For more information about riskReasons and possible values, see riskReasons values.
101 102 103 |
# File 'lib/models/risk_detection.rb', line 101 def additional_info return @additional_info end |
#additional_info=(value) ⇒ Object
Sets the additionalInfo property value. Additional information associated with the risk detection in JSON format. For example, ‘[(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36/‘]’. Possible keys in the additionalInfo JSON string are: userAgent, alertUrl, relatedEventTimeInUtc, relatedUserAgent, deviceInformation, relatedLocation, requestId, correlationId, lastActivityTimeInUtc, malwareName, clientLocation, clientIp, riskReasons. For more information about riskReasons and possible values, see riskReasons values.
109 110 111 |
# File 'lib/models/risk_detection.rb', line 109 def additional_info=(value) @additional_info = value end |
#correlation_id ⇒ Object
Gets the correlationId property value. Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
123 124 125 |
# File 'lib/models/risk_detection.rb', line 123 def correlation_id return @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the correlationId property value. Correlation ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
131 132 133 |
# File 'lib/models/risk_detection.rb', line 131 def correlation_id=(value) @correlation_id = value end |
#detected_date_time ⇒ Object
Gets the detectedDateTime property value. Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 looks like this: 2014-01-01T00:00:00Z
147 148 149 |
# File 'lib/models/risk_detection.rb', line 147 def detected_date_time return @detected_date_time end |
#detected_date_time=(value) ⇒ Object
Sets the detectedDateTime property value. Date and time that the risk was detected. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 looks like this: 2014-01-01T00:00:00Z
155 156 157 |
# File 'lib/models/risk_detection.rb', line 155 def detected_date_time=(value) @detected_date_time = value end |
#detection_timing_type ⇒ Object
Gets the detectionTimingType property value. Timing of the detected risk (real-time/offline). Possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.
162 163 164 |
# File 'lib/models/risk_detection.rb', line 162 def detection_timing_type return @detection_timing_type end |
#detection_timing_type=(value) ⇒ Object
Sets the detectionTimingType property value. Timing of the detected risk (real-time/offline). Possible values are: notDefined, realtime, nearRealtime, offline, unknownFutureValue.
170 171 172 |
# File 'lib/models/risk_detection.rb', line 170 def detection_timing_type=(value) @detection_timing_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 |
# File 'lib/models/risk_detection.rb', line 177 def get_field_deserializers() return super.merge({ "activity" => lambda {|n| @activity = n.get_enum_value(MicrosoftGraph::Models::ActivityType) }, "activityDateTime" => lambda {|n| @activity_date_time = n.get_date_time_value() }, "additionalInfo" => lambda {|n| @additional_info = n.get_string_value() }, "correlationId" => lambda {|n| @correlation_id = n.get_string_value() }, "detectedDateTime" => lambda {|n| @detected_date_time = n.get_date_time_value() }, "detectionTimingType" => lambda {|n| @detection_timing_type = n.get_enum_value(MicrosoftGraph::Models::RiskDetectionTimingType) }, "ipAddress" => lambda {|n| @ip_address = n.get_string_value() }, "lastUpdatedDateTime" => lambda {|n| @last_updated_date_time = n.get_date_time_value() }, "location" => lambda {|n| @location = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SignInLocation.create_from_discriminator_value(pn) }) }, "requestId" => lambda {|n| @request_id = n.get_string_value() }, "riskDetail" => lambda {|n| @risk_detail = n.get_enum_value(MicrosoftGraph::Models::RiskDetail) }, "riskEventType" => lambda {|n| @risk_event_type = n.get_string_value() }, "riskLevel" => lambda {|n| @risk_level = n.get_enum_value(MicrosoftGraph::Models::RiskLevel) }, "riskState" => lambda {|n| @risk_state = n.get_enum_value(MicrosoftGraph::Models::RiskState) }, "source" => lambda {|n| @source = n.get_string_value() }, "tokenIssuerType" => lambda {|n| @token_issuer_type = n.get_enum_value(MicrosoftGraph::Models::TokenIssuerType) }, "userDisplayName" => lambda {|n| @user_display_name = n.get_string_value() }, "userId" => lambda {|n| @user_id = n.get_string_value() }, "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() }, }) end |
#ip_address ⇒ Object
Gets the ipAddress property value. Provides the IP address of the client from where the risk occurred.
204 205 206 |
# File 'lib/models/risk_detection.rb', line 204 def ip_address return @ip_address end |
#ip_address=(value) ⇒ Object
Sets the ipAddress property value. Provides the IP address of the client from where the risk occurred.
212 213 214 |
# File 'lib/models/risk_detection.rb', line 212 def ip_address=(value) @ip_address = value end |
#last_updated_date_time ⇒ Object
Gets the lastUpdatedDateTime property value. Date and time that the risk detection was last updated. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z
219 220 221 |
# File 'lib/models/risk_detection.rb', line 219 def last_updated_date_time return @last_updated_date_time end |
#last_updated_date_time=(value) ⇒ Object
Sets the lastUpdatedDateTime property value. Date and time that the risk detection was last updated. The DateTimeOffset 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 look like this: 2014-01-01T00:00:00Z
227 228 229 |
# File 'lib/models/risk_detection.rb', line 227 def last_updated_date_time=(value) @last_updated_date_time = value end |
#location ⇒ Object
Gets the location property value. Location of the sign-in.
234 235 236 |
# File 'lib/models/risk_detection.rb', line 234 def location return @location end |
#location=(value) ⇒ Object
Sets the location property value. Location of the sign-in.
242 243 244 |
# File 'lib/models/risk_detection.rb', line 242 def location=(value) @location = value end |
#request_id ⇒ Object
Gets the requestId property value. Request ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
249 250 251 |
# File 'lib/models/risk_detection.rb', line 249 def request_id return @request_id end |
#request_id=(value) ⇒ Object
Sets the requestId property value. Request ID of the sign-in associated with the risk detection. This property is null if the risk detection is not associated with a sign-in.
257 258 259 |
# File 'lib/models/risk_detection.rb', line 257 def request_id=(value) @request_id = value end |
#risk_detail ⇒ Object
Gets the riskDetail property value. Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, m365DAdminDismissedDetection. Note that you must use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: m365DAdminDismissedDetection.
264 265 266 |
# File 'lib/models/risk_detection.rb', line 264 def risk_detail return @risk_detail end |
#risk_detail=(value) ⇒ Object
Sets the riskDetail property value. Details of the detected risk. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, hidden, adminConfirmedUserCompromised, unknownFutureValue, m365DAdminDismissedDetection. Note that you must use the Prefer: include - unknown -enum-members request header to get the following value(s) in this evolvable enum: m365DAdminDismissedDetection.
272 273 274 |
# File 'lib/models/risk_detection.rb', line 272 def risk_detail=(value) @risk_detail = value end |
#risk_event_type ⇒ Object
Gets the riskEventType property value. The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, passwordSpray, impossibleTravel, newCountry, anomalousToken, tokenIssuerAnomaly,suspiciousBrowser, riskyIPAddress, mcasSuspiciousInboxManipulationRules, suspiciousInboxForwarding, and anomalousUserActivity. If the risk detection is a premium detection, will show generic. For more information about each value, see riskEventType values.
279 280 281 |
# File 'lib/models/risk_detection.rb', line 279 def risk_event_type return @risk_event_type end |
#risk_event_type=(value) ⇒ Object
Sets the riskEventType property value. The type of risk event detected. The possible values are unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic,adminConfirmedUserCompromised, passwordSpray, impossibleTravel, newCountry, anomalousToken, tokenIssuerAnomaly,suspiciousBrowser, riskyIPAddress, mcasSuspiciousInboxManipulationRules, suspiciousInboxForwarding, and anomalousUserActivity. If the risk detection is a premium detection, will show generic. For more information about each value, see riskEventType values.
287 288 289 |
# File 'lib/models/risk_detection.rb', line 287 def risk_event_type=(value) @risk_event_type = value end |
#risk_level ⇒ Object
Gets the riskLevel property value. Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.
294 295 296 |
# File 'lib/models/risk_detection.rb', line 294 def risk_level return @risk_level end |
#risk_level=(value) ⇒ Object
Sets the riskLevel property value. Level of the detected risk. Possible values are: low, medium, high, hidden, none, unknownFutureValue.
302 303 304 |
# File 'lib/models/risk_detection.rb', line 302 def risk_level=(value) @risk_level = value end |
#risk_state ⇒ Object
Gets the riskState property value. The state of a detected risky user or sign-in. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
309 310 311 |
# File 'lib/models/risk_detection.rb', line 309 def risk_state return @risk_state end |
#risk_state=(value) ⇒ Object
Sets the riskState property value. The state of a detected risky user or sign-in. Possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue.
317 318 319 |
# File 'lib/models/risk_detection.rb', line 317 def risk_state=(value) @risk_state = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 |
# File 'lib/models/risk_detection.rb', line 325 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("activity", @activity) writer.write_date_time_value("activityDateTime", @activity_date_time) writer.write_string_value("additionalInfo", @additional_info) writer.write_string_value("correlationId", @correlation_id) writer.write_date_time_value("detectedDateTime", @detected_date_time) writer.write_enum_value("detectionTimingType", @detection_timing_type) writer.write_string_value("ipAddress", @ip_address) writer.write_date_time_value("lastUpdatedDateTime", @last_updated_date_time) writer.write_object_value("location", @location) writer.write_string_value("requestId", @request_id) writer.write_enum_value("riskDetail", @risk_detail) writer.write_string_value("riskEventType", @risk_event_type) writer.write_enum_value("riskLevel", @risk_level) writer.write_enum_value("riskState", @risk_state) writer.write_string_value("source", @source) writer.write_enum_value("tokenIssuerType", @token_issuer_type) writer.write_string_value("userDisplayName", @user_display_name) writer.write_string_value("userId", @user_id) writer.write_string_value("userPrincipalName", @user_principal_name) end |
#source ⇒ Object
Gets the source property value. Source of the risk detection. For example, activeDirectory.
352 353 354 |
# File 'lib/models/risk_detection.rb', line 352 def source return @source end |
#source=(value) ⇒ Object
Sets the source property value. Source of the risk detection. For example, activeDirectory.
360 361 362 |
# File 'lib/models/risk_detection.rb', line 360 def source=(value) @source = value end |
#token_issuer_type ⇒ Object
Gets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. Possible values are: AzureAD, ADFederationServices, UnknownFutureValue.
367 368 369 |
# File 'lib/models/risk_detection.rb', line 367 def token_issuer_type return @token_issuer_type end |
#token_issuer_type=(value) ⇒ Object
Sets the tokenIssuerType property value. Indicates the type of token issuer for the detected sign-in risk. Possible values are: AzureAD, ADFederationServices, UnknownFutureValue.
375 376 377 |
# File 'lib/models/risk_detection.rb', line 375 def token_issuer_type=(value) @token_issuer_type = value end |
#user_display_name ⇒ Object
Gets the userDisplayName property value. The user principal name (UPN) of the user.
382 383 384 |
# File 'lib/models/risk_detection.rb', line 382 def user_display_name return @user_display_name end |
#user_display_name=(value) ⇒ Object
Sets the userDisplayName property value. The user principal name (UPN) of the user.
390 391 392 |
# File 'lib/models/risk_detection.rb', line 390 def user_display_name=(value) @user_display_name = value end |
#user_id ⇒ Object
Gets the userId property value. Unique ID of the user.
397 398 399 |
# File 'lib/models/risk_detection.rb', line 397 def user_id return @user_id end |
#user_id=(value) ⇒ Object
Sets the userId property value. Unique ID of the user.
405 406 407 |
# File 'lib/models/risk_detection.rb', line 405 def user_id=(value) @user_id = value end |
#user_principal_name ⇒ Object
Gets the userPrincipalName property value. The user principal name (UPN) of the user.
412 413 414 |
# File 'lib/models/risk_detection.rb', line 412 def user_principal_name return @user_principal_name end |
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value. The user principal name (UPN) of the user.
420 421 422 |
# File 'lib/models/risk_detection.rb', line 420 def user_principal_name=(value) @user_principal_name = value end |