Interface IEventHooksClient
A client that works with Okta EventHook resources.
Namespace: Okta.Sdk
Assembly: Okta.Sdk.dll
Syntax
public interface IEventHooksClient
Methods
ActivateEventHookAsync(String, CancellationToken)
Success
Declaration
Task<IEventHook> ActivateEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
CreateEventHookAsync(IEventHook, CancellationToken)
Success
Declaration
Task<IEventHook> CreateEventHookAsync(IEventHook eventHook, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IEventHook | eventHook | The IEventHook resource. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
DeactivateEventHookAsync(String, CancellationToken)
Success
Declaration
Task<IEventHook> DeactivateEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
DeleteEventHookAsync(String, CancellationToken)
Success
Declaration
Task DeleteEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | A Task that represents the asynchronous operation. |
GetEventHookAsync(String, CancellationToken)
Success
Declaration
Task<IEventHook> GetEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
ListEventHooks()
Success
Declaration
ICollectionClient<IEventHook> ListEventHooks()
Returns
Type | Description |
---|---|
ICollectionClient<IEventHook> | A collection of IEventHook that can be enumerated asynchronously. |
UpdateEventHookAsync(IEventHook, String, CancellationToken)
Success
Declaration
Task<IEventHook> UpdateEventHookAsync(IEventHook eventHook, string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
IEventHook | eventHook | The IEventHook resource. |
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |
VerifyEventHookAsync(String, CancellationToken)
Success
Declaration
Task<IEventHook> VerifyEventHookAsync(string eventHookId, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.String | eventHookId | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IEventHook> | The IEventHook response. |