Class ApiAuditLogControllerApi
Represents a collection of functions to interact with the API endpoints
Implements
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public class ApiAuditLogControllerApi : IApiAuditLogControllerApi, IApiAuditLogControllerApiSync, IApiAuditLogControllerApiAsync, IApiAccessor
Constructors
View SourceApiAuditLogControllerApi()
Initializes a new instance of the ApiAuditLogControllerApi class.
Declaration
public ApiAuditLogControllerApi()
ApiAuditLogControllerApi(string)
Initializes a new instance of the ApiAuditLogControllerApi class.
Declaration
public ApiAuditLogControllerApi(string basePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | basePath |
ApiAuditLogControllerApi(Configuration)
Initializes a new instance of the ApiAuditLogControllerApi class using Configuration object
Declaration
public ApiAuditLogControllerApi(Configuration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| Configuration | configuration | An instance of Configuration |
ApiAuditLogControllerApi(ISynchronousClient, IAsynchronousClient, IReadableConfiguration)
Initializes a new instance of the ApiAuditLogControllerApi class using a Configuration object and client instance.
Declaration
public ApiAuditLogControllerApi(ISynchronousClient client, IAsynchronousClient asyncClient, IReadableConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| ISynchronousClient | client | The client interface for synchronous API access. |
| IAsynchronousClient | asyncClient | The client interface for asynchronous API access. |
| IReadableConfiguration | configuration | The configuration object. |
Properties
View SourceAsynchronousClient
The client for accessing this underlying API asynchronously.
Declaration
public IAsynchronousClient AsynchronousClient { get; set; }
Property Value
| Type | Description |
|---|---|
| IAsynchronousClient |
Client
The client for accessing this underlying API synchronously.
Declaration
public ISynchronousClient Client { get; set; }
Property Value
| Type | Description |
|---|---|
| ISynchronousClient |
Configuration
Gets or sets the configuration object
Declaration
public IReadableConfiguration Configuration { get; set; }
Property Value
| Type | Description |
|---|---|
| IReadableConfiguration | An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
| Type | Description |
|---|---|
| ExceptionFactory |
Methods
View SourceGetAuditLogByEventId(string, DateTime?, DateTime?, int)
Declaration
public AuditLogEventDto GetAuditLogByEventId(string eventId, DateTime? since = null, DateTime? before = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | eventId | |
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| AuditLogEventDto | AuditLogEventDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogByEventIdAsync(string, DateTime?, DateTime?, int, CancellationToken)
Declaration
public Task<AuditLogEventDto> GetAuditLogByEventIdAsync(string eventId, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | eventId | |
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AuditLogEventDto> | Task of AuditLogEventDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogByEventIdWithHttpInfo(string, DateTime?, DateTime?, int)
Declaration
public ApiResponse<AuditLogEventDto> GetAuditLogByEventIdWithHttpInfo(string eventId, DateTime? since = null, DateTime? before = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| string | eventId | |
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<AuditLogEventDto> | ApiResponse of AuditLogEventDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogByEventIdWithHttpInfoAsync(string, DateTime?, DateTime?, int, CancellationToken)
Declaration
public Task<ApiResponse<AuditLogEventDto>> GetAuditLogByEventIdWithHttpInfoAsync(string eventId, DateTime? since = null, DateTime? before = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| string | eventId | |
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AuditLogEventDto>> | Task of ApiResponse (AuditLogEventDto) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogs(DateTime?, DateTime?, string, Guid?, Guid?, Guid?, string, string, string, string, string, int?, string, int)
Declaration
public AuditLogPageDto GetAuditLogs(DateTime? since = null, DateTime? before = null, string action = null, Guid? userId = null, Guid? actorUserId = null, Guid? targetUserId = null, string resourceType = null, string resourceId = null, string outcome = null, string requestId = null, string ipAddress = null, int? pageSize = null, string cursor = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| string | action | (optional) |
| Guid? | userId | (optional) |
| Guid? | actorUserId | (optional) |
| Guid? | targetUserId | (optional) |
| string | resourceType | (optional) |
| string | resourceId | (optional) |
| string | outcome | (optional) |
| string | requestId | (optional) |
| string | ipAddress | (optional) |
| int? | pageSize | (optional) |
| string | cursor | (optional) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| AuditLogPageDto | AuditLogPageDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogsAsync(DateTime?, DateTime?, string, Guid?, Guid?, Guid?, string, string, string, string, string, int?, string, int, CancellationToken)
Declaration
public Task<AuditLogPageDto> GetAuditLogsAsync(DateTime? since = null, DateTime? before = null, string action = null, Guid? userId = null, Guid? actorUserId = null, Guid? targetUserId = null, string resourceType = null, string resourceId = null, string outcome = null, string requestId = null, string ipAddress = null, int? pageSize = null, string cursor = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| string | action | (optional) |
| Guid? | userId | (optional) |
| Guid? | actorUserId | (optional) |
| Guid? | targetUserId | (optional) |
| string | resourceType | (optional) |
| string | resourceId | (optional) |
| string | outcome | (optional) |
| string | requestId | (optional) |
| string | ipAddress | (optional) |
| int? | pageSize | (optional) |
| string | cursor | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AuditLogPageDto> | Task of AuditLogPageDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogsWithHttpInfo(DateTime?, DateTime?, string, Guid?, Guid?, Guid?, string, string, string, string, string, int?, string, int)
Declaration
public ApiResponse<AuditLogPageDto> GetAuditLogsWithHttpInfo(DateTime? since = null, DateTime? before = null, string action = null, Guid? userId = null, Guid? actorUserId = null, Guid? targetUserId = null, string resourceType = null, string resourceId = null, string outcome = null, string requestId = null, string ipAddress = null, int? pageSize = null, string cursor = null, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| string | action | (optional) |
| Guid? | userId | (optional) |
| Guid? | actorUserId | (optional) |
| Guid? | targetUserId | (optional) |
| string | resourceType | (optional) |
| string | resourceId | (optional) |
| string | outcome | (optional) |
| string | requestId | (optional) |
| string | ipAddress | (optional) |
| int? | pageSize | (optional) |
| string | cursor | (optional) |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<AuditLogPageDto> | ApiResponse of AuditLogPageDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetAuditLogsWithHttpInfoAsync(DateTime?, DateTime?, string, Guid?, Guid?, Guid?, string, string, string, string, string, int?, string, int, CancellationToken)
Declaration
public Task<ApiResponse<AuditLogPageDto>> GetAuditLogsWithHttpInfoAsync(DateTime? since = null, DateTime? before = null, string action = null, Guid? userId = null, Guid? actorUserId = null, Guid? targetUserId = null, string resourceType = null, string resourceId = null, string outcome = null, string requestId = null, string ipAddress = null, int? pageSize = null, string cursor = null, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| DateTime? | since | (optional) |
| DateTime? | before | (optional) |
| string | action | (optional) |
| Guid? | userId | (optional) |
| Guid? | actorUserId | (optional) |
| Guid? | targetUserId | (optional) |
| string | resourceType | (optional) |
| string | resourceId | (optional) |
| string | outcome | (optional) |
| string | requestId | (optional) |
| string | ipAddress | (optional) |
| int? | pageSize | (optional) |
| string | cursor | (optional) |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AuditLogPageDto>> | Task of ApiResponse (AuditLogPageDto) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
| Type | Description |
|---|---|
| string | The base path |
SearchAuditLogs(AuditLogSearchOptions, int)
Declaration
public AuditLogPageDto SearchAuditLogs(AuditLogSearchOptions auditLogSearchOptions, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| AuditLogSearchOptions | auditLogSearchOptions | |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| AuditLogPageDto | AuditLogPageDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SearchAuditLogsAsync(AuditLogSearchOptions, int, CancellationToken)
Declaration
public Task<AuditLogPageDto> SearchAuditLogsAsync(AuditLogSearchOptions auditLogSearchOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AuditLogSearchOptions | auditLogSearchOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<AuditLogPageDto> | Task of AuditLogPageDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SearchAuditLogsWithHttpInfo(AuditLogSearchOptions, int)
Declaration
public ApiResponse<AuditLogPageDto> SearchAuditLogsWithHttpInfo(AuditLogSearchOptions auditLogSearchOptions, int operationIndex = 0)
Parameters
| Type | Name | Description |
|---|---|---|
| AuditLogSearchOptions | auditLogSearchOptions | |
| int | operationIndex | Index associated with the operation. |
Returns
| Type | Description |
|---|---|
| ApiResponse<AuditLogPageDto> | ApiResponse of AuditLogPageDto |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |
SearchAuditLogsWithHttpInfoAsync(AuditLogSearchOptions, int, CancellationToken)
Declaration
public Task<ApiResponse<AuditLogPageDto>> SearchAuditLogsWithHttpInfoAsync(AuditLogSearchOptions auditLogSearchOptions, int operationIndex = 0, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| AuditLogSearchOptions | auditLogSearchOptions | |
| int | operationIndex | Index associated with the operation. |
| CancellationToken | cancellationToken | Cancellation Token to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task<ApiResponse<AuditLogPageDto>> | Task of ApiResponse (AuditLogPageDto) |
Exceptions
| Type | Condition |
|---|---|
| ApiException | Thrown when fails to make API call |