Class: MicrosoftGraph::Models::OfficeGraphInsights
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/office_graph_insights.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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new officeGraphInsights and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#shared ⇒ Object
Gets the shared property value.
-
#shared=(value) ⇒ Object
Sets the shared property value.
-
#trending ⇒ Object
Gets the trending property value.
-
#trending=(value) ⇒ Object
Sets the trending property value.
-
#used ⇒ Object
Gets the used property value.
-
#used=(value) ⇒ Object
Sets the used property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_deserializers ⇒ Object
The deserialization information for the current model
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
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 |
#shared ⇒ Object
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.
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.
69 70 71 |
# File 'lib/models/office_graph_insights.rb', line 69 def shared=(value) @shared = value end |
#trending ⇒ Object
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.
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.
84 85 86 |
# File 'lib/models/office_graph_insights.rb', line 84 def trending=(value) @trending = value end |
#used ⇒ Object
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.
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.
99 100 101 |
# File 'lib/models/office_graph_insights.rb', line 99 def used=(value) @used = value end |