Class ContentRestriction
A restriction for accessing the content of the file.
Implements
Inherited Members
Namespace: Google.Apis.Drive.v2.Data
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class ContentRestriction : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
OwnerRestricted
Whether the content restriction can only be modified or removed by a user who owns the file. For files in
shared drives, any user with organizer
capabilities can modify or remove this content restriction.
Declaration
[JsonProperty("ownerRestricted")]
public virtual bool? OwnerRestricted { get; set; }
Property Value
Type | Description |
---|---|
bool? |
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 |
---|---|
bool? |
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 |
---|---|
string |
RestrictingUser
Output only. 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 |
RestrictionDate
DateTime representation of RestrictionDateRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use RestrictionDateDateTimeOffset instead.")]
public virtual DateTime? RestrictionDate { get; set; }
Property Value
Type | Description |
---|---|
DateTime? |
RestrictionDateDateTimeOffset
DateTimeOffset representation of RestrictionDateRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? RestrictionDateDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
RestrictionDateRaw
The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.
Declaration
[JsonProperty("restrictionDate")]
public virtual string RestrictionDateRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
SystemRestricted
Output only. Whether the content restriction was applied by the system, for example due to an esignature. Users cannot modify or remove system restricted content restrictions.
Declaration
[JsonProperty("systemRestricted")]
public virtual bool? SystemRestricted { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Type
Output only. 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 |
---|---|
string |