Class: MicrosoftGraph::Models::ItemActivityStat

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

Parameters:

  • parse_node

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

Returns:

  • a item_activity_stat

Raises:

  • (StandardError)


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

#accessObject

Gets the access property value. Statistics about the access actions in this interval. Read-only.

Returns:

  • a item_action_stat



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.

Parameters:

  • value

    Value to set for the access property.

Returns:

  • a void



52
53
54
# File 'lib/models/item_activity_stat.rb', line 52

def access=(value)
    @access = value
end

#activitiesObject

Gets the activities property value. Exposes the itemActivities represented in this itemActivityStat resource.

Returns:

  • a item_activity



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.

Parameters:

  • value

    Value to set for the activities property.

Returns:

  • a void



67
68
69
# File 'lib/models/item_activity_stat.rb', line 67

def activities=(value)
    @activities = value
end

#createObject

Gets the create property value. Statistics about the create actions in this interval. Read-only.

Returns:

  • a item_action_stat



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.

Parameters:

  • value

    Value to set for the create property.

Returns:

  • a void



89
90
91
# File 'lib/models/item_activity_stat.rb', line 89

def create=(value)
    @create = value
end

#deleteObject

Gets the delete property value. Statistics about the delete actions in this interval. Read-only.

Returns:

  • a item_action_stat



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.

Parameters:

  • value

    Value to set for the delete property.

Returns:

  • a void



113
114
115
# File 'lib/models/item_activity_stat.rb', line 113

def delete=(value)
    @delete = value
end

#editObject

Gets the edit property value. Statistics about the edit actions in this interval. Read-only.

Returns:

  • a item_action_stat



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.

Parameters:

  • value

    Value to set for the edit property.

Returns:

  • a void



128
129
130
# File 'lib/models/item_activity_stat.rb', line 128

def edit=(value)
    @edit = value
end

#end_date_timeObject

Gets the endDateTime property value. When the interval ends. Read-only.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the endDateTime property.

Returns:

  • a void



143
144
145
# File 'lib/models/item_activity_stat.rb', line 143

def end_date_time=(value)
    @end_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_dataObject

Gets the incompleteData property value. Indicates that the statistics in this interval are based on incomplete data. Read-only.

Returns:

  • a incomplete_data



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.

Parameters:

  • value

    Value to set for the incompleteData property.

Returns:

  • a void



176
177
178
# File 'lib/models/item_activity_stat.rb', line 176

def incomplete_data=(value)
    @incomplete_data = value
end

Gets the isTrending property value. Indicates whether the item is ‘trending.’ Read-only.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isTrending property.

Returns:

  • a void



191
192
193
# File 'lib/models/item_activity_stat.rb', line 191

def is_trending=(value)
    @is_trending = value
end

#moveObject

Gets the move property value. Statistics about the move actions in this interval. Read-only.

Returns:

  • a item_action_stat



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.

Parameters:

  • value

    Value to set for the move property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_timeObject

Gets the startDateTime property value. When the interval starts. Read-only.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the startDateTime property.

Returns:

  • a void



240
241
242
# File 'lib/models/item_activity_stat.rb', line 240

def start_date_time=(value)
    @start_date_time = value
end