Class: MicrosoftGraph::Models::TeamsTab
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/teams_tab.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
-
#configuration ⇒ Object
Gets the configuration property value.
-
#configuration=(value) ⇒ Object
Sets the configuration 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 teamsTab and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#teams_app ⇒ Object
Gets the teamsApp property value.
-
#teams_app=(value) ⇒ Object
Sets the teamsApp property value.
-
#web_url ⇒ Object
Gets the webUrl property value.
-
#web_url=(value) ⇒ Object
Sets the webUrl property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new teamsTab and sets the default values.
40 41 42 |
# File 'lib/models/teams_tab.rb', line 40 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
48 49 50 51 |
# File 'lib/models/teams_tab.rb', line 48 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return TeamsTab.new end |
Instance Method Details
#configuration ⇒ Object
Gets the configuration property value. Container for custom settings applied to a tab. The tab is considered configured only once this property is set.
25 26 27 |
# File 'lib/models/teams_tab.rb', line 25 def configuration return @configuration end |
#configuration=(value) ⇒ Object
Sets the configuration property value. Container for custom settings applied to a tab. The tab is considered configured only once this property is set.
33 34 35 |
# File 'lib/models/teams_tab.rb', line 33 def configuration=(value) @configuration = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the tab.
56 57 58 |
# File 'lib/models/teams_tab.rb', line 56 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the tab.
64 65 66 |
# File 'lib/models/teams_tab.rb', line 64 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
71 72 73 74 75 76 77 78 |
# File 'lib/models/teams_tab.rb', line 71 def get_field_deserializers() return super.merge({ "configuration" => lambda {|n| @configuration = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamsTabConfiguration.create_from_discriminator_value(pn) }) }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "teamsApp" => lambda {|n| @teams_app = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamsApp.create_from_discriminator_value(pn) }) }, "webUrl" => lambda {|n| @web_url = n.get_string_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
84 85 86 87 88 89 90 91 |
# File 'lib/models/teams_tab.rb', line 84 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("configuration", @configuration) writer.write_string_value("displayName", @display_name) writer.write_object_value("teamsApp", @teams_app) writer.write_string_value("webUrl", @web_url) end |
#teams_app ⇒ Object
Gets the teamsApp property value. The application that is linked to the tab. This cannot be changed after tab creation.
96 97 98 |
# File 'lib/models/teams_tab.rb', line 96 def teams_app return @teams_app end |
#teams_app=(value) ⇒ Object
Sets the teamsApp property value. The application that is linked to the tab. This cannot be changed after tab creation.
104 105 106 |
# File 'lib/models/teams_tab.rb', line 104 def teams_app=(value) @teams_app = value end |
#web_url ⇒ Object
Gets the webUrl property value. Deep link URL of the tab instance. Read only.
111 112 113 |
# File 'lib/models/teams_tab.rb', line 111 def web_url return @web_url end |
#web_url=(value) ⇒ Object
Sets the webUrl property value. Deep link URL of the tab instance. Read only.
119 120 121 |
# File 'lib/models/teams_tab.rb', line 119 def web_url=(value) @web_url = value end |