Class: MicrosoftGraph::Models::RiskyServicePrincipalHistoryItem
- Inherits:
-
RiskyServicePrincipal
- Object
- Entity
- RiskyServicePrincipal
- MicrosoftGraph::Models::RiskyServicePrincipalHistoryItem
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/risky_service_principal_history_item.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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new riskyServicePrincipalHistoryItem and sets the default values.
-
#initiated_by ⇒ Object
Gets the initiatedBy property value.
-
#initiated_by=(value) ⇒ Object
Sets the initiatedBy property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from RiskyServicePrincipal
#app_id, #app_id=, #display_name, #display_name=, #history, #history=, #is_enabled, #is_enabled=, #is_processing, #is_processing=, #risk_detail, #risk_detail=, #risk_last_updated_date_time, #risk_last_updated_date_time=, #risk_level, #risk_level=, #risk_state, #risk_state=, #service_principal_type, #service_principal_type=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new riskyServicePrincipalHistoryItem and sets the default values.
34 35 36 |
# File 'lib/models/risky_service_principal_history_item.rb', line 34 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
42 43 44 45 |
# File 'lib/models/risky_service_principal_history_item.rb', line 42 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RiskyServicePrincipalHistoryItem.new end |
Instance Method Details
#activity ⇒ Object
Gets the activity property value. The activity related to service principal risk level change.
19 20 21 |
# File 'lib/models/risky_service_principal_history_item.rb', line 19 def activity return @activity end |
#activity=(value) ⇒ Object
Sets the activity property value. The activity related to service principal risk level change.
27 28 29 |
# File 'lib/models/risky_service_principal_history_item.rb', line 27 def activity=(value) @activity = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
50 51 52 53 54 55 |
# File 'lib/models/risky_service_principal_history_item.rb', line 50 def get_field_deserializers() return super.merge({ "activity" => lambda {|n| @activity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::RiskServicePrincipalActivity.create_from_discriminator_value(pn) }) }, "initiatedBy" => lambda {|n| @initiated_by = n.get_string_value() }, }) end |
#initiated_by ⇒ Object
Gets the initiatedBy property value. The identifier of the actor of the operation.
60 61 62 |
# File 'lib/models/risky_service_principal_history_item.rb', line 60 def initiated_by return @initiated_by end |
#initiated_by=(value) ⇒ Object
Sets the initiatedBy property value. The identifier of the actor of the operation.
68 69 70 |
# File 'lib/models/risky_service_principal_history_item.rb', line 68 def initiated_by=(value) @initiated_by = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
76 77 78 79 80 81 |
# File 'lib/models/risky_service_principal_history_item.rb', line 76 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("activity", @activity) writer.write_string_value("initiatedBy", @initiated_by) end |