Class DriveActivity
A single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving an item into a shared folder triggering a permission change. Other groupings of related Actions, such as multiple Actors editing one item or moving multiple files into a new folder, are controlled by the selection of a ConsolidationStrategy in the QueryDriveActivityRequest.
Implements
Inherited Members
Namespace: Google.Apis.DriveActivity.v2.Data
Assembly: Google.Apis.DriveActivity.v2.dll
Syntax
public class DriveActivity : IDirectResponseSchema
Properties
Actions
Details on all actions in this activity.
Declaration
[JsonProperty("actions")]
public virtual IList<Action> Actions { get; set; }
Property Value
Type | Description |
---|---|
IList<Action> |
Actors
All actor(s) responsible for the activity.
Declaration
[JsonProperty("actors")]
public virtual IList<Actor> Actors { get; set; }
Property Value
Type | Description |
---|---|
IList<Actor> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
PrimaryActionDetail
Key information about the primary action for this activity. This is either representative, or the most important, of all actions in the activity, according to the ConsolidationStrategy in the request.
Declaration
[JsonProperty("primaryActionDetail")]
public virtual ActionDetail PrimaryActionDetail { get; set; }
Property Value
Type | Description |
---|---|
ActionDetail |
Targets
All Google Drive objects this activity is about (e.g. file, folder, drive). This represents the state of the target immediately after the actions occurred.
Declaration
[JsonProperty("targets")]
public virtual IList<Target> Targets { get; set; }
Property Value
Type | Description |
---|---|
IList<Target> |
TimeRange
The activity occurred over this time range.
Declaration
[JsonProperty("timeRange")]
public virtual TimeRange TimeRange { get; set; }
Property Value
Type | Description |
---|---|
TimeRange |
Timestamp
object representation of TimestampRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use TimestampDateTimeOffset instead.")]
public virtual object Timestamp { get; set; }
Property Value
Type | Description |
---|---|
object |
TimestampDateTimeOffset
DateTimeOffset representation of TimestampRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? TimestampDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
TimestampRaw
The activity occurred at this specific time.
Declaration
[JsonProperty("timestamp")]
public virtual string TimestampRaw { get; set; }
Property Value
Type | Description |
---|---|
string |