Show / Hide Table of Contents

Class ContentRestriction

A restriction for accessing the content of the file.

Inheritance
object
ContentRestriction
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
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

RestrictionTime

DateTime representation of RestrictionTimeRaw.

Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use RestrictionTimeDateTimeOffset instead.")]
public virtual DateTime? RestrictionTime { get; set; }
Property Value
Type Description
DateTime?

RestrictionTimeDateTimeOffset

DateTimeOffset representation of RestrictionTimeRaw.

Declaration
[JsonIgnore]
public virtual DateTimeOffset? RestrictionTimeDateTimeOffset { get; set; }
Property Value
Type Description
DateTimeOffset?

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
string

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

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX