Table of Contents

Class ChangesResource.WatchRequest

Namespace
Google.Apis.Drive.v3
Assembly
Google.Apis.Drive.v3.dll

Subscribes to changes for a user.

public class ChangesResource.WatchRequest : DriveBaseServiceRequest<Channel>
Inheritance
ChangesResource.WatchRequest
Inherited Members

Constructors

WatchRequest(IClientService, Channel, string)

Constructs a new Watch request.

public WatchRequest(IClientService service, Channel body, string pageToken)

Parameters

service IClientService
body Channel
pageToken string

Properties

DriveId

The shared drive from which changes will be returned. If specified the change IDs will be reflective of the shared drive; use the combined drive ID and change ID as an identifier.

public virtual string DriveId { get; set; }

Property Value

string

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

IncludeCorpusRemovals

Whether changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.

public virtual bool? IncludeCorpusRemovals { get; set; }

Property Value

bool?

IncludeItemsFromAllDrives

Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.

public virtual bool? IncludeItemsFromAllDrives { get; set; }

Property Value

bool?

IncludeRemoved

Whether to include changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.

public virtual bool? IncludeRemoved { get; set; }

Property Value

bool?

IncludeTeamDriveItems

Deprecated use includeItemsFromAllDrives instead.

public virtual bool? IncludeTeamDriveItems { get; set; }

Property Value

bool?

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

PageSize

The maximum number of changes to return per page.

public virtual int? PageSize { get; set; }

Property Value

int?

PageToken

The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.

public virtual string PageToken { get; }

Property Value

string

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

RestrictToMyDrive

Whether to restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.

public virtual bool? RestrictToMyDrive { get; set; }

Property Value

bool?

Spaces

A comma-separated list of spaces to query within the user corpus. Supported values are 'drive', 'appDataFolder' and 'photos'.

public virtual string Spaces { get; set; }

Property Value

string

SupportsAllDrives

Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.

public virtual bool? SupportsAllDrives { get; set; }

Property Value

bool?

SupportsTeamDrives

Deprecated use supportsAllDrives instead.

public virtual bool? SupportsTeamDrives { get; set; }

Property Value

bool?

TeamDriveId

Deprecated use driveId instead.

public virtual string TeamDriveId { get; set; }

Property Value

string

Methods

GetBody()

Returns the body of the request.

protected override object GetBody()

Returns

object

InitParameters()

Initializes Watch parameter list.

protected override void InitParameters()