Class: MicrosoftGraph::Models::SecurityRetentionEventType
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_retention_event_type.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
-
#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.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityRetentionEventType and sets the default values.
-
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value.
-
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityRetentionEventType and sets the default values.
32 33 34 |
# File 'lib/models/security_retention_event_type.rb', line 32 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
70 71 72 73 |
# File 'lib/models/security_retention_event_type.rb', line 70 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityRetentionEventType.new end |
Instance Method Details
#created_by ⇒ Object
Gets the createdBy property value. The user who created the retentionEventType.
39 40 41 |
# File 'lib/models/security_retention_event_type.rb', line 39 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The user who created the retentionEventType.
47 48 49 |
# File 'lib/models/security_retention_event_type.rb', line 47 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The date time when the retentionEventType was created.
54 55 56 |
# File 'lib/models/security_retention_event_type.rb', line 54 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The date time when the retentionEventType was created.
62 63 64 |
# File 'lib/models/security_retention_event_type.rb', line 62 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. Optional information about the event type.
78 79 80 |
# File 'lib/models/security_retention_event_type.rb', line 78 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Optional information about the event type.
86 87 88 |
# File 'lib/models/security_retention_event_type.rb', line 86 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the event type.
93 94 95 |
# File 'lib/models/security_retention_event_type.rb', line 93 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the event type.
101 102 103 |
# File 'lib/models/security_retention_event_type.rb', line 101 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
108 109 110 111 112 113 114 115 116 117 |
# File 'lib/models/security_retention_event_type.rb', line 108 def get_field_deserializers() return super.merge({ "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() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, }) end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. The user who last modified the retentionEventType.
122 123 124 |
# File 'lib/models/security_retention_event_type.rb', line 122 def last_modified_by return @last_modified_by end |
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value. The user who last modified the retentionEventType.
130 131 132 |
# File 'lib/models/security_retention_event_type.rb', line 130 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The latest date time when the retentionEventType was modified.
137 138 139 |
# File 'lib/models/security_retention_event_type.rb', line 137 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The latest date time when the retentionEventType was modified.
145 146 147 |
# File 'lib/models/security_retention_event_type.rb', line 145 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
153 154 155 156 157 158 159 160 161 162 |
# File 'lib/models/security_retention_event_type.rb', line 153 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("createdBy", @created_by) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_object_value("lastModifiedBy", @last_modified_by) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) end |