Class: MicrosoftGraph::Models::TeamworkTag

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/teamwork_tag.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

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

Constructor Details

#initializeObject

Instantiates a new teamworkTag and sets the default values.



31
32
33
# File 'lib/models/teamwork_tag.rb', line 31

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

Parameters:

  • parse_node

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

Returns:

  • a teamwork_tag

Raises:

  • (StandardError)


39
40
41
42
# File 'lib/models/teamwork_tag.rb', line 39

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

Instance Method Details

#descriptionObject

Gets the description property value. The description of the tag as it will appear to the user in Microsoft Teams. A teamworkTag can’t have more than 200 teamworkTagMembers.

Returns:

  • a string



47
48
49
# File 'lib/models/teamwork_tag.rb', line 47

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description of the tag as it will appear to the user in Microsoft Teams. A teamworkTag can’t have more than 200 teamworkTagMembers.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



55
56
57
# File 'lib/models/teamwork_tag.rb', line 55

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The name of the tag as it will appear to the user in Microsoft Teams.

Returns:

  • a string



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

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of the tag as it will appear to the user in Microsoft Teams.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



70
71
72
# File 'lib/models/teamwork_tag.rb', line 70

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



77
78
79
80
81
82
83
84
85
86
# File 'lib/models/teamwork_tag.rb', line 77

def get_field_deserializers()
    return super.merge({
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "memberCount" => lambda {|n| @member_count = n.get_number_value() },
        "members" => lambda {|n| @members = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::TeamworkTagMember.create_from_discriminator_value(pn) }) },
        "tagType" => lambda {|n| @tag_type = n.get_enum_value(MicrosoftGraph::Models::TeamworkTagType) },
        "teamId" => lambda {|n| @team_id = n.get_string_value() },
    })
end

#member_countObject

Gets the memberCount property value. The number of users assigned to the tag.

Returns:

  • a integer



91
92
93
# File 'lib/models/teamwork_tag.rb', line 91

def member_count
    return @member_count
end

#member_count=(value) ⇒ Object

Sets the memberCount property value. The number of users assigned to the tag.

Parameters:

  • value

    Value to set for the memberCount property.

Returns:

  • a void



99
100
101
# File 'lib/models/teamwork_tag.rb', line 99

def member_count=(value)
    @member_count = value
end

#membersObject

Gets the members property value. Users assigned to the tag.

Returns:

  • a teamwork_tag_member



106
107
108
# File 'lib/models/teamwork_tag.rb', line 106

def members
    return @members
end

#members=(value) ⇒ Object

Sets the members property value. Users assigned to the tag.

Parameters:

  • value

    Value to set for the members property.

Returns:

  • a void



114
115
116
# File 'lib/models/teamwork_tag.rb', line 114

def members=(value)
    @members = 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)


122
123
124
125
126
127
128
129
130
131
# File 'lib/models/teamwork_tag.rb', line 122

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_number_value("memberCount", @member_count)
    writer.write_collection_of_object_values("members", @members)
    writer.write_enum_value("tagType", @tag_type)
    writer.write_string_value("teamId", @team_id)
end

#tag_typeObject

Gets the tagType property value. The type of the tag. Default is standard.

Returns:

  • a teamwork_tag_type



136
137
138
# File 'lib/models/teamwork_tag.rb', line 136

def tag_type
    return @tag_type
end

#tag_type=(value) ⇒ Object

Sets the tagType property value. The type of the tag. Default is standard.

Parameters:

  • value

    Value to set for the tagType property.

Returns:

  • a void



144
145
146
# File 'lib/models/teamwork_tag.rb', line 144

def tag_type=(value)
    @tag_type = value
end

#team_idObject

Gets the teamId property value. ID of the team in which the tag is defined.

Returns:

  • a string



151
152
153
# File 'lib/models/teamwork_tag.rb', line 151

def team_id
    return @team_id
end

#team_id=(value) ⇒ Object

Sets the teamId property value. ID of the team in which the tag is defined.

Parameters:

  • value

    Value to set for the teamId property.

Returns:

  • a void



159
160
161
# File 'lib/models/teamwork_tag.rb', line 159

def team_id=(value)
    @team_id = value
end