Interface IExpiredControllerApiSync
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: mailslurp.Api
Assembly: mailslurp.dll
Syntax
public interface IExpiredControllerApiSync : IApiAccessor
Methods
View SourceGetExpirationDefaults(int)
Get default expiration settings
Declaration
ExpirationDefaults GetExpirationDefaults(int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ExpirationDefaults | ExpirationDefaults |
Remarks
Return default times used for inbox expiration
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpirationDefaultsWithHttpInfo(int)
Get default expiration settings
Declaration
ApiResponse<ExpirationDefaults> GetExpirationDefaultsWithHttpInfo(int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<ExpirationDefaults> | ApiResponse of ExpirationDefaults |
Remarks
Return default times used for inbox expiration
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpiredInboxByInboxId(Guid, int)
Get expired inbox record for a previously existing inbox
Declaration
ExpiredInboxDto GetExpiredInboxByInboxId(Guid inboxId, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of inbox you want to retrieve (not the inbox ID) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ExpiredInboxDto | ExpiredInboxDto |
Remarks
Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpiredInboxByInboxIdWithHttpInfo(Guid, int)
Get expired inbox record for a previously existing inbox
Declaration
ApiResponse<ExpiredInboxDto> GetExpiredInboxByInboxIdWithHttpInfo(Guid inboxId, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | inboxId | ID of inbox you want to retrieve (not the inbox ID) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<ExpiredInboxDto> | ApiResponse of ExpiredInboxDto |
Remarks
Use the inboxId to return an ExpiredInboxRecord if an inbox has expired. Inboxes expire and are disabled if an expiration date is set or plan requires. Returns 404 if no expired inbox is found for the inboxId
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpiredInboxes(int?, int?, string, DateTime?, DateTime?, int)
List records of expired inboxes
Declaration
PageExpiredInboxRecordProjection GetExpiredInboxes(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in inbox sent email list pagination (optional, default to 0) |
int? | size | Optional page size in inbox sent email list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
PageExpiredInboxRecordProjection | PageExpiredInboxRecordProjection |
Remarks
Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpiredInboxesWithHttpInfo(int?, int?, string, DateTime?, DateTime?, int)
List records of expired inboxes
Declaration
ApiResponse<PageExpiredInboxRecordProjection> GetExpiredInboxesWithHttpInfo(int? page = null, int? size = null, string sort = null, DateTime? since = null, DateTime? before = null, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
int? | page | Optional page index in inbox sent email list pagination (optional, default to 0) |
int? | size | Optional page size in inbox sent email list pagination (optional, default to 20) |
string | sort | Optional createdAt sort direction ASC or DESC (optional, default to ASC) |
DateTime? | since | Filter by created at after the given timestamp (optional) |
DateTime? | before | Filter by created at before the given timestamp (optional) |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<PageExpiredInboxRecordProjection> | ApiResponse of PageExpiredInboxRecordProjection |
Remarks
Inboxes created with an expiration date will expire after the given date. An ExpiredInboxRecord is created that records the inboxes old ID and email address. You can still read emails in the inbox (using the inboxes old ID) but the email address associated with the inbox can no longer send or receive emails. Fetch expired inbox records to view the old inboxes properties
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpiredInboxRecord(Guid, int)
Get an expired inbox record
Declaration
ExpiredInboxDto GetExpiredInboxRecord(Guid expiredId, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | expiredId | ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ExpiredInboxDto | ExpiredInboxDto |
Remarks
Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetExpiredInboxRecordWithHttpInfo(Guid, int)
Get an expired inbox record
Declaration
ApiResponse<ExpiredInboxDto> GetExpiredInboxRecordWithHttpInfo(Guid expiredId, int operationIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | expiredId | ID of the ExpiredInboxRecord you want to retrieve. This is different from the ID of the inbox you are interested in. See other methods for getting ExpiredInboxRecord for an inbox inboxId |
int | operationIndex | Index associated with the operation. |
Returns
Type | Description |
---|---|
ApiResponse<ExpiredInboxDto> | ApiResponse of ExpiredInboxDto |
Remarks
Inboxes created with an expiration date will expire after the given date and be moved to an ExpiredInbox entity. You can still read emails in the inbox but it can no longer send or receive emails. Fetch the expired inboxes to view the old inboxes properties
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |