Class: MicrosoftGraph::Models::ItemActivityStat
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/item_activity_stat.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
-
#access ⇒ Object
Gets the access property value.
-
#access=(value) ⇒ Object
Sets the access property value.
-
#activities ⇒ Object
Gets the activities property value.
-
#activities=(value) ⇒ Object
Sets the activities property value.
-
#create ⇒ Object
Gets the create property value.
-
#create=(value) ⇒ Object
Sets the create property value.
-
#delete ⇒ Object
Gets the delete property value.
-
#delete=(value) ⇒ Object
Sets the delete property value.
-
#edit ⇒ Object
Gets the edit property value.
-
#edit=(value) ⇒ Object
Sets the edit property value.
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#incomplete_data ⇒ Object
Gets the incompleteData property value.
-
#incomplete_data=(value) ⇒ Object
Sets the incompleteData property value.
-
#initialize ⇒ Object
constructor
Instantiates a new itemActivityStat and sets the default values.
-
#is_trending ⇒ Object
Gets the isTrending property value.
-
#is_trending=(value) ⇒ Object
Sets the isTrending property value.
-
#move ⇒ Object
Gets the move property value.
-
#move=(value) ⇒ Object
Sets the move property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new itemActivityStat and sets the default values.
74 75 76 |
# File 'lib/models/item_activity_stat.rb', line 74 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
97 98 99 100 |
# File 'lib/models/item_activity_stat.rb', line 97 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ItemActivityStat.new end |
Instance Method Details
#access ⇒ Object
Gets the access property value. Statistics about the access actions in this interval. Read-only.
44 45 46 |
# File 'lib/models/item_activity_stat.rb', line 44 def access return @access end |
#access=(value) ⇒ Object
Sets the access property value. Statistics about the access actions in this interval. Read-only.
52 53 54 |
# File 'lib/models/item_activity_stat.rb', line 52 def access=(value) @access = value end |
#activities ⇒ Object
Gets the activities property value. Exposes the itemActivities represented in this itemActivityStat resource.
59 60 61 |
# File 'lib/models/item_activity_stat.rb', line 59 def activities return @activities end |
#activities=(value) ⇒ Object
Sets the activities property value. Exposes the itemActivities represented in this itemActivityStat resource.
67 68 69 |
# File 'lib/models/item_activity_stat.rb', line 67 def activities=(value) @activities = value end |
#create ⇒ Object
Gets the create property value. Statistics about the create actions in this interval. Read-only.
81 82 83 |
# File 'lib/models/item_activity_stat.rb', line 81 def create return @create end |
#create=(value) ⇒ Object
Sets the create property value. Statistics about the create actions in this interval. Read-only.
89 90 91 |
# File 'lib/models/item_activity_stat.rb', line 89 def create=(value) @create = value end |
#delete ⇒ Object
Gets the delete property value. Statistics about the delete actions in this interval. Read-only.
105 106 107 |
# File 'lib/models/item_activity_stat.rb', line 105 def delete return @delete end |
#delete=(value) ⇒ Object
Sets the delete property value. Statistics about the delete actions in this interval. Read-only.
113 114 115 |
# File 'lib/models/item_activity_stat.rb', line 113 def delete=(value) @delete = value end |
#edit ⇒ Object
Gets the edit property value. Statistics about the edit actions in this interval. Read-only.
120 121 122 |
# File 'lib/models/item_activity_stat.rb', line 120 def edit return @edit end |
#edit=(value) ⇒ Object
Sets the edit property value. Statistics about the edit actions in this interval. Read-only.
128 129 130 |
# File 'lib/models/item_activity_stat.rb', line 128 def edit=(value) @edit = value end |
#end_date_time ⇒ Object
Gets the endDateTime property value. When the interval ends. Read-only.
135 136 137 |
# File 'lib/models/item_activity_stat.rb', line 135 def end_date_time return @end_date_time end |
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value. When the interval ends. Read-only.
143 144 145 |
# File 'lib/models/item_activity_stat.rb', line 143 def end_date_time=(value) @end_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/models/item_activity_stat.rb', line 150 def get_field_deserializers() return super.merge({ "access" => lambda {|n| @access = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemActionStat.create_from_discriminator_value(pn) }) }, "activities" => lambda {|n| @activities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ItemActivity.create_from_discriminator_value(pn) }) }, "create" => lambda {|n| @create = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemActionStat.create_from_discriminator_value(pn) }) }, "delete" => lambda {|n| @delete = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemActionStat.create_from_discriminator_value(pn) }) }, "edit" => lambda {|n| @edit = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemActionStat.create_from_discriminator_value(pn) }) }, "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() }, "incompleteData" => lambda {|n| @incomplete_data = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IncompleteData.create_from_discriminator_value(pn) }) }, "isTrending" => lambda {|n| @is_trending = n.get_boolean_value() }, "move" => lambda {|n| @move = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ItemActionStat.create_from_discriminator_value(pn) }) }, "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() }, }) end |
#incomplete_data ⇒ Object
Gets the incompleteData property value. Indicates that the statistics in this interval are based on incomplete data. Read-only.
168 169 170 |
# File 'lib/models/item_activity_stat.rb', line 168 def incomplete_data return @incomplete_data end |
#incomplete_data=(value) ⇒ Object
Sets the incompleteData property value. Indicates that the statistics in this interval are based on incomplete data. Read-only.
176 177 178 |
# File 'lib/models/item_activity_stat.rb', line 176 def incomplete_data=(value) @incomplete_data = value end |
#is_trending ⇒ Object
Gets the isTrending property value. Indicates whether the item is ‘trending.’ Read-only.
183 184 185 |
# File 'lib/models/item_activity_stat.rb', line 183 def is_trending return @is_trending end |
#is_trending=(value) ⇒ Object
Sets the isTrending property value. Indicates whether the item is ‘trending.’ Read-only.
191 192 193 |
# File 'lib/models/item_activity_stat.rb', line 191 def is_trending=(value) @is_trending = value end |
#move ⇒ Object
Gets the move property value. Statistics about the move actions in this interval. Read-only.
198 199 200 |
# File 'lib/models/item_activity_stat.rb', line 198 def move return @move end |
#move=(value) ⇒ Object
Sets the move property value. Statistics about the move actions in this interval. Read-only.
206 207 208 |
# File 'lib/models/item_activity_stat.rb', line 206 def move=(value) @move = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
214 215 216 217 218 219 220 221 222 223 224 225 226 227 |
# File 'lib/models/item_activity_stat.rb', line 214 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("access", @access) writer.write_collection_of_object_values("activities", @activities) writer.write_object_value("create", @create) writer.write_object_value("delete", @delete) writer.write_object_value("edit", @edit) writer.write_date_time_value("endDateTime", @end_date_time) writer.write_object_value("incompleteData", @incomplete_data) writer.write_boolean_value("isTrending", @is_trending) writer.write_object_value("move", @move) writer.write_date_time_value("startDateTime", @start_date_time) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. When the interval starts. Read-only.
232 233 234 |
# File 'lib/models/item_activity_stat.rb', line 232 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. When the interval starts. Read-only.
240 241 242 |
# File 'lib/models/item_activity_stat.rb', line 240 def start_date_time=(value) @start_date_time = value end |