Class: MicrosoftGraph::Models::TeamworkTag
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/teamwork_tag.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
-
#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 teamworkTag and sets the default values.
-
#member_count ⇒ Object
Gets the memberCount property value.
-
#member_count=(value) ⇒ Object
Sets the memberCount property value.
-
#members ⇒ Object
Gets the members property value.
-
#members=(value) ⇒ Object
Sets the members property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#tag_type ⇒ Object
Gets the tagType property value.
-
#tag_type=(value) ⇒ Object
Sets the tagType property value.
-
#team_id ⇒ Object
Gets the teamId property value.
-
#team_id=(value) ⇒ Object
Sets the teamId property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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
#description ⇒ Object
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.
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.
55 56 57 |
# File 'lib/models/teamwork_tag.rb', line 55 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the tag as it will appear to the user in Microsoft Teams.
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.
70 71 72 |
# File 'lib/models/teamwork_tag.rb', line 70 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_count ⇒ Object
Gets the memberCount property value. The number of users assigned to the tag.
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.
99 100 101 |
# File 'lib/models/teamwork_tag.rb', line 99 def member_count=(value) @member_count = value end |
#members ⇒ Object
Gets the members property value. Users assigned to the tag.
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.
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
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_type ⇒ Object
Gets the tagType property value. The type of the tag. Default is standard.
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.
144 145 146 |
# File 'lib/models/teamwork_tag.rb', line 144 def tag_type=(value) @tag_type = value end |
#team_id ⇒ Object
Gets the teamId property value. ID of the team in which the tag is defined.
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.
159 160 161 |
# File 'lib/models/teamwork_tag.rb', line 159 def team_id=(value) @team_id = value end |