Class: MicrosoftGraph::Models::Teamwork
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/teamwork.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
-
#deleted_teams ⇒ Object
Gets the deletedTeams property value.
-
#deleted_teams=(value) ⇒ Object
Sets the deletedTeams property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new teamwork and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#teams_app_settings ⇒ Object
Gets the teamsAppSettings property value.
-
#teams_app_settings=(value) ⇒ Object
Sets the teamsAppSettings property value.
-
#workforce_integrations ⇒ Object
Gets the workforceIntegrations property value.
-
#workforce_integrations=(value) ⇒ Object
Sets the workforceIntegrations property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new teamwork and sets the default values.
22 23 24 |
# File 'lib/models/teamwork.rb', line 22 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
30 31 32 33 |
# File 'lib/models/teamwork.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Teamwork.new end |
Instance Method Details
#deleted_teams ⇒ Object
Gets the deletedTeams property value. The deleted team.
38 39 40 |
# File 'lib/models/teamwork.rb', line 38 def deleted_teams return @deleted_teams end |
#deleted_teams=(value) ⇒ Object
Sets the deletedTeams property value. The deleted team.
46 47 48 |
# File 'lib/models/teamwork.rb', line 46 def deleted_teams=(value) @deleted_teams = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/teamwork.rb', line 53 def get_field_deserializers() return super.merge({ "deletedTeams" => lambda {|n| @deleted_teams = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DeletedTeam.create_from_discriminator_value(pn) }) }, "teamsAppSettings" => lambda {|n| @teams_app_settings = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::TeamsAppSettings.create_from_discriminator_value(pn) }) }, "workforceIntegrations" => lambda {|n| @workforce_integrations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::WorkforceIntegration.create_from_discriminator_value(pn) }) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
65 66 67 68 69 70 71 |
# File 'lib/models/teamwork.rb', line 65 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("deletedTeams", @deleted_teams) writer.write_object_value("teamsAppSettings", @teams_app_settings) writer.write_collection_of_object_values("workforceIntegrations", @workforce_integrations) end |
#teams_app_settings ⇒ Object
Gets the teamsAppSettings property value. The teamsAppSettings property
76 77 78 |
# File 'lib/models/teamwork.rb', line 76 def teams_app_settings return @teams_app_settings end |
#teams_app_settings=(value) ⇒ Object
Sets the teamsAppSettings property value. The teamsAppSettings property
84 85 86 |
# File 'lib/models/teamwork.rb', line 84 def teams_app_settings=(value) @teams_app_settings = value end |
#workforce_integrations ⇒ Object
Gets the workforceIntegrations property value. The workforceIntegrations property
91 92 93 |
# File 'lib/models/teamwork.rb', line 91 def workforce_integrations return @workforce_integrations end |
#workforce_integrations=(value) ⇒ Object
Sets the workforceIntegrations property value. The workforceIntegrations property
99 100 101 |
# File 'lib/models/teamwork.rb', line 99 def workforce_integrations=(value) @workforce_integrations = value end |