Class: MicrosoftGraph::Models::SecurityDataSet
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_data_set.rb
Direct Known Subclasses
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.
-
#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 securityDataSet and sets the default values.
-
#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 securityDataSet and sets the default values.
23 24 25 |
# File 'lib/models/security_data_set.rb', line 23 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
61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/models/security_data_set.rb', line 61 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.ediscoveryReviewSet" return SecurityEdiscoveryReviewSet.new end end return SecurityDataSet.new end |
Instance Method Details
#created_by ⇒ Object
Gets the createdBy property value. The createdBy property
30 31 32 |
# File 'lib/models/security_data_set.rb', line 30 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The createdBy property
38 39 40 |
# File 'lib/models/security_data_set.rb', line 38 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The createdDateTime property
45 46 47 |
# File 'lib/models/security_data_set.rb', line 45 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The createdDateTime property
53 54 55 |
# File 'lib/models/security_data_set.rb', line 53 def created_date_time=(value) @created_date_time = value end |
#display_name ⇒ Object
Gets the displayName property value. The displayName property
77 78 79 |
# File 'lib/models/security_data_set.rb', line 77 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The displayName property
85 86 87 |
# File 'lib/models/security_data_set.rb', line 85 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
92 93 94 95 96 97 98 |
# File 'lib/models/security_data_set.rb', line 92 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() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
104 105 106 107 108 109 110 |
# File 'lib/models/security_data_set.rb', line 104 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("displayName", @display_name) end |