Class: MicrosoftGraph::Models::OfficeGraphInsights

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/office_graph_insights.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 officeGraphInsights and sets the default values.



22
23
24
# File 'lib/models/office_graph_insights.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 office_graph_insights

Raises:

  • (StandardError)


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

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

Instance Method Details

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



38
39
40
41
42
43
44
# File 'lib/models/office_graph_insights.rb', line 38

def get_field_deserializers()
    return super.merge({
        "shared" => lambda {|n| @shared = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::SharedInsight.create_from_discriminator_value(pn) }) },
        "trending" => lambda {|n| @trending = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::Trending.create_from_discriminator_value(pn) }) },
        "used" => lambda {|n| @used = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UsedInsight.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)


50
51
52
53
54
55
56
# File 'lib/models/office_graph_insights.rb', line 50

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("shared", @shared)
    writer.write_collection_of_object_values("trending", @trending)
    writer.write_collection_of_object_values("used", @used)
end

#sharedObject

Gets the shared property value. Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share.

Returns:

  • a shared_insight



61
62
63
# File 'lib/models/office_graph_insights.rb', line 61

def shared
    return @shared
end

#shared=(value) ⇒ Object

Sets the shared property value. Calculated relationship identifying documents shared with or by the user. This includes URLs, file attachments, and reference attachments to OneDrive for Business and SharePoint files found in Outlook messages and meetings. This also includes URLs and reference attachments to Teams conversations. Ordered by recency of share.

Parameters:

  • value

    Value to set for the shared property.

Returns:

  • a void



69
70
71
# File 'lib/models/office_graph_insights.rb', line 69

def shared=(value)
    @shared = value
end

Gets the trending property value. Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user’s closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before.

Returns:

  • a trending



76
77
78
# File 'lib/models/office_graph_insights.rb', line 76

def trending
    return @trending
end

#trending=(value) ⇒ Object

Sets the trending property value. Calculated relationship identifying documents trending around a user. Trending documents are calculated based on activity of the user’s closest network of people and include files stored in OneDrive for Business and SharePoint. Trending insights help the user to discover potentially useful content that the user has access to, but has never viewed before.

Parameters:

  • value

    Value to set for the trending property.

Returns:

  • a void



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

def trending=(value)
    @trending = value
end

#usedObject

Gets the used property value. Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use.

Returns:

  • a used_insight



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

def used
    return @used
end

#used=(value) ⇒ Object

Sets the used property value. Calculated relationship identifying the latest documents viewed or modified by a user, including OneDrive for Business and SharePoint documents, ranked by recency of use.

Parameters:

  • value

    Value to set for the used property.

Returns:

  • a void



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

def used=(value)
    @used = value
end