Show / Hide Table of Contents

Class Channel

An notification channel used to watch for resource changes.

Inheritance
System.Object
Channel
Implements
Google.Apis.Requests.IDirectResponseSchema
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.v2.Data
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class Channel : IDirectResponseSchema

Properties

Address

The address where notifications are delivered for this channel.

Declaration
[JsonProperty("address")]
public virtual string Address { get; set; }
Property Value
Type Description
System.String

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.String

Expiration

Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional.

Declaration
[JsonProperty("expiration")]
public virtual long? Expiration { get; set; }
Property Value
Type Description
System.Nullable<System.Int64>

Id

A UUID or similar unique string that identifies this channel.

Declaration
[JsonProperty("id")]
public virtual string Id { get; set; }
Property Value
Type Description
System.String

Kind

Identifies this as a notification channel used to watch for changes to a resource, which is "api#channel".

Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type Description
System.String

Params__

Additional parameters controlling delivery channel behavior. Optional.

Declaration
[JsonProperty("params")]
public virtual IDictionary<string, string> Params__ { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

Payload

A Boolean value to indicate whether payload is wanted. Optional.

Declaration
[JsonProperty("payload")]
public virtual bool? Payload { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

ResourceId

An opaque ID that identifies the resource being watched on this channel. Stable across different API versions.

Declaration
[JsonProperty("resourceId")]
public virtual string ResourceId { get; set; }
Property Value
Type Description
System.String

ResourceUri

A version-specific identifier for the watched resource.

Declaration
[JsonProperty("resourceUri")]
public virtual string ResourceUri { get; set; }
Property Value
Type Description
System.String

Token

An arbitrary string delivered to the target address with each notification delivered over this channel. Optional.

Declaration
[JsonProperty("token")]
public virtual string Token { get; set; }
Property Value
Type Description
System.String

Type

The type of delivery mechanism used for this channel. Valid values are "web_hook" (or "webhook"). Both values refer to a channel where Http requests are used to deliver messages.

Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type Description
System.String

Implements

Google.Apis.Requests.IDirectResponseSchema
In This Article
Back to top