Class ContentRestriction
A restriction for accessing the content of the file.
Inheritance
System.Object
ContentRestriction
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Drive.v3.Data
Assembly: Google.Apis.Drive.v3.dll
Syntax
public class ContentRestriction : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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.
Declaration
[JsonProperty("readOnly")]
public virtual bool? ReadOnly__ { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Reason
Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.
Declaration
[JsonProperty("reason")]
public virtual string Reason { get; set; }
Property Value
Type | Description |
---|---|
System.String |
RestrictingUser
The user who set the content restriction. Only populated if readOnly is true.
Declaration
[JsonProperty("restrictingUser")]
public virtual User RestrictingUser { get; set; }
Property Value
Type | Description |
---|---|
User |
RestrictionTime
System.DateTime representation of RestrictionTimeRaw.
Declaration
[JsonIgnore]
public virtual DateTime? RestrictionTime { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
RestrictionTimeRaw
The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
Declaration
[JsonProperty("restrictionTime")]
public virtual string RestrictionTimeRaw { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Type
The type of the content restriction. Currently the only possible value is globalContentRestriction.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String |