Class: MicrosoftGraph::Models::Teamwork

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/teamwork.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 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

Parameters:

  • parse_node

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

Returns:

  • a teamwork

Raises:

  • (StandardError)


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_teamsObject

Gets the deletedTeams property value. The deleted team.

Returns:

  • a 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.

Parameters:

  • value

    Value to set for the deletedTeams property.

Returns:

  • a void



46
47
48
# File 'lib/models/teamwork.rb', line 46

def deleted_teams=(value)
    @deleted_teams = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_settingsObject

Gets the teamsAppSettings property value. The teamsAppSettings property

Returns:

  • a teams_app_settings



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

Parameters:

  • value

    Value to set for the teamsAppSettings property.

Returns:

  • a void



84
85
86
# File 'lib/models/teamwork.rb', line 84

def teams_app_settings=(value)
    @teams_app_settings = value
end

#workforce_integrationsObject

Gets the workforceIntegrations property value. The workforceIntegrations property

Returns:

  • a workforce_integration



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

Parameters:

  • value

    Value to set for the workforceIntegrations property.

Returns:

  • a void



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

def workforce_integrations=(value)
    @workforce_integrations = value
end