Class TasksResource.SubscribeRequest
TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.
Inheritance
TasksResource.SubscribeRequest
Inherited Members
Namespace: Google.Apis.WorkspaceEvents.v1
Assembly: Google.Apis.WorkspaceEvents.v1.dll
Syntax
public class TasksResource.SubscribeRequest : WorkspaceEventsBaseServiceRequest<StreamResponse>, IClientServiceRequest<StreamResponse>, IClientServiceRequest
Constructors
SubscribeRequest(IClientService, string)
Constructs a new Subscribe request.
Declaration
public SubscribeRequest(IClientService service, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Name
The resource name of the task to subscribe to. Format: tasks/{task_id}
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes Subscribe parameter list.
Declaration
protected override void InitParameters()