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.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

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

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

System.DateTime representation of RestrictionDateRaw.

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

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

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
string

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX