Class: MicrosoftGraph::Models::SecurityEdiscoveryReviewTag

Inherits:
SecurityTag show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/security_ediscovery_review_tag.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityTag

#created_by, #created_by=, #description, #description=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new securityEdiscoveryReviewTag and sets the default values.



52
53
54
55
# File 'lib/models/security_ediscovery_review_tag.rb', line 52

def initialize()
    super
    @odata_type = "#microsoft.graph.security.ediscoveryReviewTag"
end

Class Method Details

.create_from_discriminator_value(parse_node) ⇒ Object

Creates a new instance of the appropriate class based on discriminator value

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a security_ediscovery_review_tag

Raises:

  • (StandardError)


61
62
63
64
# File 'lib/models/security_ediscovery_review_tag.rb', line 61

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SecurityEdiscoveryReviewTag.new
end

Instance Method Details

#child_selectabilityObject

Gets the childSelectability property value. Indicates whether a single or multiple child tags can be associated with a document. Possible values are: One, Many. This value controls whether the UX presents the tags as checkboxes or a radio button group.

Returns:

  • a security_child_selectability



22
23
24
# File 'lib/models/security_ediscovery_review_tag.rb', line 22

def child_selectability
    return @child_selectability
end

#child_selectability=(value) ⇒ Object

Sets the childSelectability property value. Indicates whether a single or multiple child tags can be associated with a document. Possible values are: One, Many. This value controls whether the UX presents the tags as checkboxes or a radio button group.

Parameters:

  • value

    Value to set for the childSelectability property.

Returns:

  • a void



30
31
32
# File 'lib/models/security_ediscovery_review_tag.rb', line 30

def child_selectability=(value)
    @child_selectability = value
end

#child_tagsObject

Gets the childTags property value. Returns the tags that are a child of a tag.

Returns:

  • a security_ediscovery_review_tag



37
38
39
# File 'lib/models/security_ediscovery_review_tag.rb', line 37

def child_tags
    return @child_tags
end

#child_tags=(value) ⇒ Object

Sets the childTags property value. Returns the tags that are a child of a tag.

Parameters:

  • value

    Value to set for the childTags property.

Returns:

  • a void



45
46
47
# File 'lib/models/security_ediscovery_review_tag.rb', line 45

def child_tags=(value)
    @child_tags = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



69
70
71
72
73
74
75
# File 'lib/models/security_ediscovery_review_tag.rb', line 69

def get_field_deserializers()
    return super.merge({
        "childSelectability" => lambda {|n| @child_selectability = n.get_enum_value(MicrosoftGraph::Models::SecurityChildSelectability) },
        "childTags" => lambda {|n| @child_tags = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryReviewTag.create_from_discriminator_value(pn) }) },
        "parent" => lambda {|n| @parent = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SecurityEdiscoveryReviewTag.create_from_discriminator_value(pn) }) },
    })
end

#parentObject

Gets the parent property value. Returns the parent tag of the specified tag.

Returns:

  • a security_ediscovery_review_tag



80
81
82
# File 'lib/models/security_ediscovery_review_tag.rb', line 80

def parent
    return @parent
end

#parent=(value) ⇒ Object

Sets the parent property value. Returns the parent tag of the specified tag.

Parameters:

  • value

    Value to set for the parent property.

Returns:

  • a void



88
89
90
# File 'lib/models/security_ediscovery_review_tag.rb', line 88

def parent=(value)
    @parent = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


96
97
98
99
100
101
102
# File 'lib/models/security_ediscovery_review_tag.rb', line 96

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("childSelectability", @child_selectability)
    writer.write_collection_of_object_values("childTags", @child_tags)
    writer.write_object_value("parent", @parent)
end