Class ContentRestriction
A restriction for accessing the content of the file.
public class ContentRestriction : IDirectResponseSchema
- Inheritance
-
ContentRestriction
- Implements
-
IDirectResponseSchema
- Inherited Members
Constructors
ContentRestriction()
public ContentRestriction()
Properties
ETag
The ETag of the item.
public virtual string ETag { get; set; }
Property Value
ReadOnly__
Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.
public virtual bool? ReadOnly__ { get; set; }
Property Value
- bool?
Reason
Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
public virtual string Reason { get; set; }
Property Value
RestrictingUser
The user who set the content restriction. Only populated if readOnly is true.
public virtual User RestrictingUser { get; set; }
Property Value
RestrictionTime
DateTime representation of RestrictionTimeRaw.
public virtual DateTime? RestrictionTime { get; set; }
Property Value
RestrictionTimeRaw
The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
public virtual string RestrictionTimeRaw { get; set; }
Property Value
Type
The type of the content restriction. Currently the only possible value is globalContentRestriction.
public virtual string Type { get; set; }