Class: MicrosoftGraph::Models::SecurityTag
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_tag.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.
-
#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 securityTag and sets the default values.
-
#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 securityTag and sets the default values.
26 27 28 |
# File 'lib/models/security_tag.rb', line 26 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
49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/models/security_tag.rb', line 49 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.ediscoveryReviewTag" return SecurityEdiscoveryReviewTag.new end end return SecurityTag.new end |
Instance Method Details
#created_by ⇒ Object
Gets the createdBy property value. The createdBy property
33 34 35 |
# File 'lib/models/security_tag.rb', line 33 def created_by return @created_by end |
#created_by=(value) ⇒ Object
Sets the createdBy property value. The createdBy property
41 42 43 |
# File 'lib/models/security_tag.rb', line 41 def created_by=(value) @created_by = value end |
#description ⇒ Object
Gets the description property value. The description property
65 66 67 |
# File 'lib/models/security_tag.rb', line 65 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description property
73 74 75 |
# File 'lib/models/security_tag.rb', line 73 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The displayName property
80 81 82 |
# File 'lib/models/security_tag.rb', line 80 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The displayName property
88 89 90 |
# File 'lib/models/security_tag.rb', line 88 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 |
# File 'lib/models/security_tag.rb', line 95 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) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The lastModifiedDateTime property
107 108 109 |
# File 'lib/models/security_tag.rb', line 107 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The lastModifiedDateTime property
115 116 117 |
# File 'lib/models/security_tag.rb', line 115 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
123 124 125 126 127 128 129 130 |
# File 'lib/models/security_tag.rb', line 123 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("createdBy", @created_by) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) end |