Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/hostinger/public-api-generator/cli version (devel) DO NOT EDIT.
Index ¶
- Constants
- func NewCreateFolderRequest(server string, mailboxResourceId string, body CreateFolderJSONRequestBody) (*http.Request, error)
- func NewCreateFolderRequestWithBody(server string, mailboxResourceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateWebhookRequest(server string, mailboxResourceId string, body CreateWebhookJSONRequestBody) (*http.Request, error)
- func NewCreateWebhookRequestWithBody(server string, mailboxResourceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteAllMessagesRequest(server string, mailboxResourceId string, folder string) (*http.Request, error)
- func NewDeleteFolderRequest(server string, mailboxResourceId string, folder string) (*http.Request, error)
- func NewDeleteMessageRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
- func NewDeleteMessagesRequest(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewDeleteMessagesRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, ...) (*http.Request, error)
- func NewDeleteWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
- func NewGetCurrentAccountRequest(server string) (*http.Request, error)
- func NewGetMessageAttachmentRequest(server string, mailboxResourceId string, folder string, uid int, ...) (*http.Request, error)
- func NewGetMessageRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
- func NewGetMessageSourceRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
- func NewGetMessageTextRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
- func NewGetQuotaRequest(server string, mailboxResourceId string) (*http.Request, error)
- func NewGetWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
- func NewListFoldersRequest(server string, mailboxResourceId string, params *ListFoldersParams) (*http.Request, error)
- func NewListMessagesRequest(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewListWebhooksRequest(server string, mailboxResourceId string, params *ListWebhooksParams) (*http.Request, error)
- func NewMoveMessageRequest(server string, mailboxResourceId string, folder string, uid int, ...) (*http.Request, error)
- func NewMoveMessageRequestWithBody(server string, mailboxResourceId string, folder string, uid int, ...) (*http.Request, error)
- func NewMoveMessagesRequest(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewMoveMessagesRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, ...) (*http.Request, error)
- func NewPatchMessageRequest(server string, mailboxResourceId string, folder string, uid int, ...) (*http.Request, error)
- func NewPatchMessageRequestWithBody(server string, mailboxResourceId string, folder string, uid int, ...) (*http.Request, error)
- func NewRegenerateWebhookSecretRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
- func NewSearchMessagesRequest(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewSearchMessagesRequestWithBody(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewSendEmailRequest(server string, mailboxResourceId string, body SendEmailJSONRequestBody) (*http.Request, error)
- func NewSendEmailRequestWithBody(server string, mailboxResourceId string, contentType string, body io.Reader) (*http.Request, error)
- func NewTestWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
- func NewUpdateFolderRequest(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewUpdateFolderRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, ...) (*http.Request, error)
- func NewUpdateMessageFlagsRequest(server string, mailboxResourceId string, folder string, ...) (*http.Request, error)
- func NewUpdateMessageFlagsRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, ...) (*http.Request, error)
- func NewUpdateWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Request, error)
- func NewUpdateWebhookRequestWithBody(server string, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Request, error)
- type Client
- func (c *Client) CreateFolder(ctx context.Context, mailboxResourceId string, ...) (*http.Response, error)
- func (c *Client) CreateFolderWithBody(ctx context.Context, mailboxResourceId string, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateWebhook(ctx context.Context, mailboxResourceId string, ...) (*http.Response, error)
- func (c *Client) CreateWebhookWithBody(ctx context.Context, mailboxResourceId string, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteAllMessages(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) DeleteFolder(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) DeleteMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) DeleteMessages(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) DeleteMessagesWithBody(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) DeleteWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetCurrentAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) GetMessageAttachment(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) GetMessageSource(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) GetMessageText(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) GetQuota(ctx context.Context, mailboxResourceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) ListFolders(ctx context.Context, mailboxResourceId string, params *ListFoldersParams, ...) (*http.Response, error)
- func (c *Client) ListMessages(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) ListWebhooks(ctx context.Context, mailboxResourceId string, params *ListWebhooksParams, ...) (*http.Response, error)
- func (c *Client) MoveMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) MoveMessageWithBody(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) MoveMessages(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) MoveMessagesWithBody(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) PatchMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) PatchMessageWithBody(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*http.Response, error)
- func (c *Client) RegenerateWebhookSecret(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) SearchMessages(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) SearchMessagesWithBody(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) SendEmail(ctx context.Context, mailboxResourceId string, body SendEmailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendEmailWithBody(ctx context.Context, mailboxResourceId string, contentType string, ...) (*http.Response, error)
- func (c *Client) TestWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateFolder(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) UpdateFolderWithBody(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) UpdateMessageFlags(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) UpdateMessageFlagsWithBody(ctx context.Context, mailboxResourceId string, folder string, ...) (*http.Response, error)
- func (c *Client) UpdateWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) UpdateWebhookWithBody(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) CreateFolderWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, ...) (*CreateFolderResponse, error)
- func (c *ClientWithResponses) CreateFolderWithResponse(ctx context.Context, mailboxResourceId string, ...) (*CreateFolderResponse, error)
- func (c *ClientWithResponses) CreateWebhookWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, ...) (*CreateWebhookResponse, error)
- func (c *ClientWithResponses) CreateWebhookWithResponse(ctx context.Context, mailboxResourceId string, ...) (*CreateWebhookResponse, error)
- func (c *ClientWithResponses) DeleteAllMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*DeleteAllMessagesResponse, error)
- func (c *ClientWithResponses) DeleteFolderWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*DeleteFolderResponse, error)
- func (c *ClientWithResponses) DeleteMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*DeleteMessageResponse, error)
- func (c *ClientWithResponses) DeleteMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*DeleteMessagesResponse, error)
- func (c *ClientWithResponses) DeleteMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*DeleteMessagesResponse, error)
- func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*DeleteWebhookResponse, error)
- func (c *ClientWithResponses) GetCurrentAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentAccountResponse, error)
- func (c *ClientWithResponses) GetMessageAttachmentWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*GetMessageAttachmentResponse, error)
- func (c *ClientWithResponses) GetMessageSourceWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*GetMessageSourceResponse, error)
- func (c *ClientWithResponses) GetMessageTextWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*GetMessageTextResponse, error)
- func (c *ClientWithResponses) GetMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*GetMessageResponse, error)
- func (c *ClientWithResponses) GetQuotaWithResponse(ctx context.Context, mailboxResourceId string, reqEditors ...RequestEditorFn) (*GetQuotaResponse, error)
- func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*GetWebhookResponse, error)
- func (c *ClientWithResponses) ListFoldersWithResponse(ctx context.Context, mailboxResourceId string, params *ListFoldersParams, ...) (*ListFoldersResponse, error)
- func (c *ClientWithResponses) ListMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*ListMessagesResponse, error)
- func (c *ClientWithResponses) ListWebhooksWithResponse(ctx context.Context, mailboxResourceId string, params *ListWebhooksParams, ...) (*ListWebhooksResponse, error)
- func (c *ClientWithResponses) MoveMessageWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*MoveMessageResponse, error)
- func (c *ClientWithResponses) MoveMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*MoveMessageResponse, error)
- func (c *ClientWithResponses) MoveMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*MoveMessagesResponse, error)
- func (c *ClientWithResponses) MoveMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*MoveMessagesResponse, error)
- func (c *ClientWithResponses) PatchMessageWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*PatchMessageResponse, error)
- func (c *ClientWithResponses) PatchMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, ...) (*PatchMessageResponse, error)
- func (c *ClientWithResponses) RegenerateWebhookSecretWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*RegenerateWebhookSecretResponse, error)
- func (c *ClientWithResponses) SearchMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*SearchMessagesResponse, error)
- func (c *ClientWithResponses) SearchMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*SearchMessagesResponse, error)
- func (c *ClientWithResponses) SendEmailWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, ...) (*SendEmailResponse, error)
- func (c *ClientWithResponses) SendEmailWithResponse(ctx context.Context, mailboxResourceId string, body SendEmailJSONRequestBody, ...) (*SendEmailResponse, error)
- func (c *ClientWithResponses) TestWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*TestWebhookResponse, error)
- func (c *ClientWithResponses) UpdateFolderWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*UpdateFolderResponse, error)
- func (c *ClientWithResponses) UpdateFolderWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*UpdateFolderResponse, error)
- func (c *ClientWithResponses) UpdateMessageFlagsWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*UpdateMessageFlagsResponse, error)
- func (c *ClientWithResponses) UpdateMessageFlagsWithResponse(ctx context.Context, mailboxResourceId string, folder string, ...) (*UpdateMessageFlagsResponse, error)
- func (c *ClientWithResponses) UpdateWebhookWithBodyWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*UpdateWebhookResponse, error)
- func (c *ClientWithResponses) UpdateWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, ...) (*UpdateWebhookResponse, error)
- type ClientWithResponsesInterface
- type CommonResponseBadGatewayResponse
- type CommonResponseConflictResponse
- type CommonResponseForbiddenResponse
- type CommonResponseInternalServerErrorResponse
- type CommonResponseNotFoundResponse
- type CommonResponseUnauthorizedResponse
- type CommonResponseValidationFailedResponse
- type CreateFolderJSONRequestBody
- type CreateFolderResponse
- type CreateWebhookJSONRequestBody
- type CreateWebhookResponse
- type DeleteAllMessagesResponse
- type DeleteFolderResponse
- type DeleteMessageResponse
- type DeleteMessagesJSONRequestBody
- type DeleteMessagesResponse
- type DeleteWebhookResponse
- type Error
- type GetCurrentAccountResponse
- type GetMessageAttachmentResponse
- type GetMessageResponse
- type GetMessageSourceResponse
- type GetMessageTextResponse
- type GetQuotaResponse
- type GetWebhookResponse
- type HttpRequestDoer
- type ListFoldersParams
- type ListFoldersResponse
- type ListMessagesParams
- type ListMessagesResponse
- type ListWebhooksParams
- type ListWebhooksParamsStatus
- type ListWebhooksResponse
- type MoveMessageJSONRequestBody
- type MoveMessageResponse
- type MoveMessagesJSONRequestBody
- type MoveMessagesResponse
- type Pagination
- type PatchMessageJSONRequestBody
- type PatchMessageResponse
- type RegenerateWebhookSecretResponse
- type RequestEditorFn
- type SearchMessagesJSONRequestBody
- type SearchMessagesParams
- type SearchMessagesResponse
- type SendEmailJSONRequestBody
- type SendEmailResponse
- type TestWebhookResponse
- type UpdateFolderJSONRequestBody
- type UpdateFolderResponse
- type UpdateMessageFlagsJSONRequestBody
- type UpdateMessageFlagsResponse
- type UpdateWebhookJSONRequestBody
- type UpdateWebhookResponse
- type V1FolderMessagesCollection
- type V1FolderMessagesDeleteBulkRequest
- type V1FolderMessagesFlagsBulkRequest
- type V1FolderMessagesFlagsRequest
- type V1FolderMessagesMessage
- type V1FolderMessagesMessageAddress
- type V1FolderMessagesMessageAttachment
- type V1FolderMessagesMessageText
- type V1FolderMessagesMessageTextResource
- type V1FolderMessagesMessage_From
- func (t V1FolderMessagesMessage_From) AsV1FolderMessagesMessageAddress() (V1FolderMessagesMessageAddress, error)
- func (t *V1FolderMessagesMessage_From) FromV1FolderMessagesMessageAddress(v V1FolderMessagesMessageAddress) error
- func (t V1FolderMessagesMessage_From) MarshalJSON() ([]byte, error)
- func (t *V1FolderMessagesMessage_From) MergeV1FolderMessagesMessageAddress(v V1FolderMessagesMessageAddress) error
- func (t *V1FolderMessagesMessage_From) UnmarshalJSON(b []byte) error
- type V1FolderMessagesMoveBulkRequest
- type V1FolderMessagesMoveRequest
- type V1FolderMessagesResource
- type V1FolderMessagesSearchRequest
- type V1FolderMessagesUpdateFlagsResult
- type V1FoldersCollection
- type V1FoldersCreateRequest
- type V1FoldersFolder
- type V1FoldersResource
- type V1FoldersUpdateRequest
- type V1MeMailbox
- type V1MeResource
- type V1QuotaQuota
- type V1QuotaQuotaResource
- type V1QuotaResource
- type V1SendAttachment
- type V1SendMessageRef
- type V1SendRequest
- func (t V1SendRequest) AsV1SendRequest0() (V1SendRequest0, error)
- func (t V1SendRequest) AsV1SendRequest1() (V1SendRequest1, error)
- func (t V1SendRequest) AsV1SendRequest2() (V1SendRequest2, error)
- func (t *V1SendRequest) FromV1SendRequest0(v V1SendRequest0) error
- func (t *V1SendRequest) FromV1SendRequest1(v V1SendRequest1) error
- func (t *V1SendRequest) FromV1SendRequest2(v V1SendRequest2) error
- func (t V1SendRequest) MarshalJSON() ([]byte, error)
- func (t *V1SendRequest) MergeV1SendRequest0(v V1SendRequest0) error
- func (t *V1SendRequest) MergeV1SendRequest1(v V1SendRequest1) error
- func (t *V1SendRequest) MergeV1SendRequest2(v V1SendRequest2) error
- func (t *V1SendRequest) UnmarshalJSON(b []byte) error
- type V1SendRequest0
- type V1SendRequest1
- type V1SendRequest2
- type V1WebhooksCollection
- type V1WebhooksCreateRequest
- type V1WebhooksCreateRequestEvents
- type V1WebhooksCreateRequestStatus
- type V1WebhooksResource
- type V1WebhooksResourceWithSecret
- type V1WebhooksTestResult
- type V1WebhooksUpdateRequest
- type V1WebhooksUpdateRequestEvents
- type V1WebhooksUpdateRequestStatus
- type V1WebhooksWebhook
- type V1WebhooksWebhookEvents
- type V1WebhooksWebhookStatus
- type V1WebhooksWebhookWithSecret
- type V1WebhooksWebhookWithSecretEvents
- type V1WebhooksWebhookWithSecretStatus
Constants ¶
const (
BearerAuthScopes bearerAuthContextKey = "BearerAuth.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func NewCreateFolderRequest ¶
func NewCreateFolderRequest(server string, mailboxResourceId string, body CreateFolderJSONRequestBody) (*http.Request, error)
NewCreateFolderRequest calls the generic CreateFolder builder with application/json body
func NewCreateFolderRequestWithBody ¶
func NewCreateFolderRequestWithBody(server string, mailboxResourceId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateFolderRequestWithBody generates requests for CreateFolder with any type of body
func NewCreateWebhookRequest ¶
func NewCreateWebhookRequest(server string, mailboxResourceId string, body CreateWebhookJSONRequestBody) (*http.Request, error)
NewCreateWebhookRequest calls the generic CreateWebhook builder with application/json body
func NewCreateWebhookRequestWithBody ¶
func NewCreateWebhookRequestWithBody(server string, mailboxResourceId string, contentType string, body io.Reader) (*http.Request, error)
NewCreateWebhookRequestWithBody generates requests for CreateWebhook with any type of body
func NewDeleteAllMessagesRequest ¶
func NewDeleteAllMessagesRequest(server string, mailboxResourceId string, folder string) (*http.Request, error)
NewDeleteAllMessagesRequest generates requests for DeleteAllMessages
func NewDeleteFolderRequest ¶
func NewDeleteFolderRequest(server string, mailboxResourceId string, folder string) (*http.Request, error)
NewDeleteFolderRequest generates requests for DeleteFolder
func NewDeleteMessageRequest ¶
func NewDeleteMessageRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
NewDeleteMessageRequest generates requests for DeleteMessage
func NewDeleteMessagesRequest ¶
func NewDeleteMessagesRequest(server string, mailboxResourceId string, folder string, body DeleteMessagesJSONRequestBody) (*http.Request, error)
NewDeleteMessagesRequest calls the generic DeleteMessages builder with application/json body
func NewDeleteMessagesRequestWithBody ¶
func NewDeleteMessagesRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, body io.Reader) (*http.Request, error)
NewDeleteMessagesRequestWithBody generates requests for DeleteMessages with any type of body
func NewDeleteWebhookRequest ¶
func NewDeleteWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
NewDeleteWebhookRequest generates requests for DeleteWebhook
func NewGetCurrentAccountRequest ¶
NewGetCurrentAccountRequest generates requests for GetCurrentAccount
func NewGetMessageAttachmentRequest ¶
func NewGetMessageAttachmentRequest(server string, mailboxResourceId string, folder string, uid int, attachmentId string) (*http.Request, error)
NewGetMessageAttachmentRequest generates requests for GetMessageAttachment
func NewGetMessageRequest ¶
func NewGetMessageRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
NewGetMessageRequest generates requests for GetMessage
func NewGetMessageSourceRequest ¶
func NewGetMessageSourceRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
NewGetMessageSourceRequest generates requests for GetMessageSource
func NewGetMessageTextRequest ¶
func NewGetMessageTextRequest(server string, mailboxResourceId string, folder string, uid int) (*http.Request, error)
NewGetMessageTextRequest generates requests for GetMessageText
func NewGetQuotaRequest ¶
NewGetQuotaRequest generates requests for GetQuota
func NewGetWebhookRequest ¶
func NewGetWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
NewGetWebhookRequest generates requests for GetWebhook
func NewListFoldersRequest ¶
func NewListFoldersRequest(server string, mailboxResourceId string, params *ListFoldersParams) (*http.Request, error)
NewListFoldersRequest generates requests for ListFolders
func NewListMessagesRequest ¶
func NewListMessagesRequest(server string, mailboxResourceId string, folder string, params *ListMessagesParams) (*http.Request, error)
NewListMessagesRequest generates requests for ListMessages
func NewListWebhooksRequest ¶
func NewListWebhooksRequest(server string, mailboxResourceId string, params *ListWebhooksParams) (*http.Request, error)
NewListWebhooksRequest generates requests for ListWebhooks
func NewMoveMessageRequest ¶
func NewMoveMessageRequest(server string, mailboxResourceId string, folder string, uid int, body MoveMessageJSONRequestBody) (*http.Request, error)
NewMoveMessageRequest calls the generic MoveMessage builder with application/json body
func NewMoveMessageRequestWithBody ¶
func NewMoveMessageRequestWithBody(server string, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader) (*http.Request, error)
NewMoveMessageRequestWithBody generates requests for MoveMessage with any type of body
func NewMoveMessagesRequest ¶
func NewMoveMessagesRequest(server string, mailboxResourceId string, folder string, body MoveMessagesJSONRequestBody) (*http.Request, error)
NewMoveMessagesRequest calls the generic MoveMessages builder with application/json body
func NewMoveMessagesRequestWithBody ¶
func NewMoveMessagesRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, body io.Reader) (*http.Request, error)
NewMoveMessagesRequestWithBody generates requests for MoveMessages with any type of body
func NewPatchMessageRequest ¶
func NewPatchMessageRequest(server string, mailboxResourceId string, folder string, uid int, body PatchMessageJSONRequestBody) (*http.Request, error)
NewPatchMessageRequest calls the generic PatchMessage builder with application/json body
func NewPatchMessageRequestWithBody ¶
func NewPatchMessageRequestWithBody(server string, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader) (*http.Request, error)
NewPatchMessageRequestWithBody generates requests for PatchMessage with any type of body
func NewRegenerateWebhookSecretRequest ¶
func NewRegenerateWebhookSecretRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
NewRegenerateWebhookSecretRequest generates requests for RegenerateWebhookSecret
func NewSearchMessagesRequest ¶
func NewSearchMessagesRequest(server string, mailboxResourceId string, folder string, params *SearchMessagesParams, body SearchMessagesJSONRequestBody) (*http.Request, error)
NewSearchMessagesRequest calls the generic SearchMessages builder with application/json body
func NewSearchMessagesRequestWithBody ¶
func NewSearchMessagesRequestWithBody(server string, mailboxResourceId string, folder string, params *SearchMessagesParams, contentType string, body io.Reader) (*http.Request, error)
NewSearchMessagesRequestWithBody generates requests for SearchMessages with any type of body
func NewSendEmailRequest ¶
func NewSendEmailRequest(server string, mailboxResourceId string, body SendEmailJSONRequestBody) (*http.Request, error)
NewSendEmailRequest calls the generic SendEmail builder with application/json body
func NewSendEmailRequestWithBody ¶
func NewSendEmailRequestWithBody(server string, mailboxResourceId string, contentType string, body io.Reader) (*http.Request, error)
NewSendEmailRequestWithBody generates requests for SendEmail with any type of body
func NewTestWebhookRequest ¶
func NewTestWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID) (*http.Request, error)
NewTestWebhookRequest generates requests for TestWebhook
func NewUpdateFolderRequest ¶
func NewUpdateFolderRequest(server string, mailboxResourceId string, folder string, body UpdateFolderJSONRequestBody) (*http.Request, error)
NewUpdateFolderRequest calls the generic UpdateFolder builder with application/json body
func NewUpdateFolderRequestWithBody ¶
func NewUpdateFolderRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateFolderRequestWithBody generates requests for UpdateFolder with any type of body
func NewUpdateMessageFlagsRequest ¶
func NewUpdateMessageFlagsRequest(server string, mailboxResourceId string, folder string, body UpdateMessageFlagsJSONRequestBody) (*http.Request, error)
NewUpdateMessageFlagsRequest calls the generic UpdateMessageFlags builder with application/json body
func NewUpdateMessageFlagsRequestWithBody ¶
func NewUpdateMessageFlagsRequestWithBody(server string, mailboxResourceId string, folder string, contentType string, body io.Reader) (*http.Request, error)
NewUpdateMessageFlagsRequestWithBody generates requests for UpdateMessageFlags with any type of body
func NewUpdateWebhookRequest ¶
func NewUpdateWebhookRequest(server string, mailboxResourceId string, webhook openapi_types.UUID, body UpdateWebhookJSONRequestBody) (*http.Request, error)
NewUpdateWebhookRequest calls the generic UpdateWebhook builder with application/json body
Types ¶
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) CreateFolder ¶
func (c *Client) CreateFolder(ctx context.Context, mailboxResourceId string, body CreateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFolderWithBody ¶
func (*Client) CreateWebhook ¶
func (c *Client) CreateWebhook(ctx context.Context, mailboxResourceId string, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateWebhookWithBody ¶
func (*Client) DeleteAllMessages ¶
func (*Client) DeleteFolder ¶
func (*Client) DeleteMessage ¶
func (*Client) DeleteMessages ¶
func (c *Client) DeleteMessages(ctx context.Context, mailboxResourceId string, folder string, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteMessagesWithBody ¶
func (*Client) DeleteWebhook ¶
func (c *Client) DeleteWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCurrentAccount ¶
func (*Client) GetMessage ¶
func (*Client) GetMessageAttachment ¶
func (*Client) GetMessageSource ¶
func (*Client) GetMessageText ¶
func (*Client) GetWebhook ¶
func (c *Client) GetWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListFolders ¶
func (c *Client) ListFolders(ctx context.Context, mailboxResourceId string, params *ListFoldersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListMessages ¶
func (c *Client) ListMessages(ctx context.Context, mailboxResourceId string, folder string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListWebhooks ¶
func (c *Client) ListWebhooks(ctx context.Context, mailboxResourceId string, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MoveMessage ¶
func (*Client) MoveMessageWithBody ¶
func (*Client) MoveMessages ¶
func (c *Client) MoveMessages(ctx context.Context, mailboxResourceId string, folder string, body MoveMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) MoveMessagesWithBody ¶
func (*Client) PatchMessage ¶
func (*Client) PatchMessageWithBody ¶
func (*Client) RegenerateWebhookSecret ¶
func (c *Client) RegenerateWebhookSecret(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchMessages ¶
func (c *Client) SearchMessages(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, body SearchMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SearchMessagesWithBody ¶
func (*Client) SendEmail ¶
func (c *Client) SendEmail(ctx context.Context, mailboxResourceId string, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) SendEmailWithBody ¶
func (*Client) TestWebhook ¶
func (c *Client) TestWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFolder ¶
func (c *Client) UpdateFolder(ctx context.Context, mailboxResourceId string, folder string, body UpdateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateFolderWithBody ¶
func (*Client) UpdateMessageFlags ¶
func (c *Client) UpdateMessageFlags(ctx context.Context, mailboxResourceId string, folder string, body UpdateMessageFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateMessageFlagsWithBody ¶
func (*Client) UpdateWebhook ¶
func (c *Client) UpdateWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateWebhookWithBody ¶
type ClientInterface ¶
type ClientInterface interface {
// ListFolders request
ListFolders(ctx context.Context, mailboxResourceId string, params *ListFoldersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFolderWithBody request with any body
CreateFolderWithBody(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFolder(ctx context.Context, mailboxResourceId string, body CreateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteFolder request
DeleteFolder(ctx context.Context, mailboxResourceId string, folder string, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateFolderWithBody request with any body
UpdateFolderWithBody(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateFolder(ctx context.Context, mailboxResourceId string, folder string, body UpdateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteAllMessages request
DeleteAllMessages(ctx context.Context, mailboxResourceId string, folder string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListMessages request
ListMessages(ctx context.Context, mailboxResourceId string, folder string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMessagesWithBody request with any body
DeleteMessagesWithBody(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteMessages(ctx context.Context, mailboxResourceId string, folder string, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateMessageFlagsWithBody request with any body
UpdateMessageFlagsWithBody(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateMessageFlags(ctx context.Context, mailboxResourceId string, folder string, body UpdateMessageFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoveMessagesWithBody request with any body
MoveMessagesWithBody(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MoveMessages(ctx context.Context, mailboxResourceId string, folder string, body MoveMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SearchMessagesWithBody request with any body
SearchMessagesWithBody(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SearchMessages(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, body SearchMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteMessage request
DeleteMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMessage request
GetMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*http.Response, error)
// PatchMessageWithBody request with any body
PatchMessageWithBody(ctx context.Context, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PatchMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, body PatchMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMessageAttachment request
GetMessageAttachment(ctx context.Context, mailboxResourceId string, folder string, uid int, attachmentId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// MoveMessageWithBody request with any body
MoveMessageWithBody(ctx context.Context, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
MoveMessage(ctx context.Context, mailboxResourceId string, folder string, uid int, body MoveMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMessageSource request
GetMessageSource(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetMessageText request
GetMessageText(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetQuota request
GetQuota(ctx context.Context, mailboxResourceId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendEmailWithBody request with any body
SendEmailWithBody(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendEmail(ctx context.Context, mailboxResourceId string, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWebhooks request
ListWebhooks(ctx context.Context, mailboxResourceId string, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateWebhookWithBody request with any body
CreateWebhookWithBody(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateWebhook(ctx context.Context, mailboxResourceId string, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteWebhook request
DeleteWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWebhook request
GetWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateWebhookWithBody request with any body
UpdateWebhookWithBody(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RegenerateWebhookSecret request
RegenerateWebhookSecret(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// TestWebhook request
TestWebhook(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCurrentAccount request
GetCurrentAccount(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) CreateFolderWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFolderWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFolderResponse, error)
CreateFolderWithBodyWithResponse request with arbitrary body returning *CreateFolderResponse
func (*ClientWithResponses) CreateFolderWithResponse ¶
func (c *ClientWithResponses) CreateFolderWithResponse(ctx context.Context, mailboxResourceId string, body CreateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFolderResponse, error)
func (*ClientWithResponses) CreateWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateWebhookWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
CreateWebhookWithBodyWithResponse request with arbitrary body returning *CreateWebhookResponse
func (*ClientWithResponses) CreateWebhookWithResponse ¶
func (c *ClientWithResponses) CreateWebhookWithResponse(ctx context.Context, mailboxResourceId string, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
func (*ClientWithResponses) DeleteAllMessagesWithResponse ¶
func (c *ClientWithResponses) DeleteAllMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, reqEditors ...RequestEditorFn) (*DeleteAllMessagesResponse, error)
DeleteAllMessagesWithResponse request returning *DeleteAllMessagesResponse
func (*ClientWithResponses) DeleteFolderWithResponse ¶
func (c *ClientWithResponses) DeleteFolderWithResponse(ctx context.Context, mailboxResourceId string, folder string, reqEditors ...RequestEditorFn) (*DeleteFolderResponse, error)
DeleteFolderWithResponse request returning *DeleteFolderResponse
func (*ClientWithResponses) DeleteMessageWithResponse ¶
func (c *ClientWithResponses) DeleteMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*DeleteMessageResponse, error)
DeleteMessageWithResponse request returning *DeleteMessageResponse
func (*ClientWithResponses) DeleteMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) DeleteMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
DeleteMessagesWithBodyWithResponse request with arbitrary body returning *DeleteMessagesResponse
func (*ClientWithResponses) DeleteMessagesWithResponse ¶
func (c *ClientWithResponses) DeleteMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
func (*ClientWithResponses) DeleteWebhookWithResponse ¶
func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
DeleteWebhookWithResponse request returning *DeleteWebhookResponse
func (*ClientWithResponses) GetCurrentAccountWithResponse ¶
func (c *ClientWithResponses) GetCurrentAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentAccountResponse, error)
GetCurrentAccountWithResponse request returning *GetCurrentAccountResponse
func (*ClientWithResponses) GetMessageAttachmentWithResponse ¶
func (c *ClientWithResponses) GetMessageAttachmentWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, attachmentId string, reqEditors ...RequestEditorFn) (*GetMessageAttachmentResponse, error)
GetMessageAttachmentWithResponse request returning *GetMessageAttachmentResponse
func (*ClientWithResponses) GetMessageSourceWithResponse ¶
func (c *ClientWithResponses) GetMessageSourceWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*GetMessageSourceResponse, error)
GetMessageSourceWithResponse request returning *GetMessageSourceResponse
func (*ClientWithResponses) GetMessageTextWithResponse ¶
func (c *ClientWithResponses) GetMessageTextWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*GetMessageTextResponse, error)
GetMessageTextWithResponse request returning *GetMessageTextResponse
func (*ClientWithResponses) GetMessageWithResponse ¶
func (c *ClientWithResponses) GetMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*GetMessageResponse, error)
GetMessageWithResponse request returning *GetMessageResponse
func (*ClientWithResponses) GetQuotaWithResponse ¶
func (c *ClientWithResponses) GetQuotaWithResponse(ctx context.Context, mailboxResourceId string, reqEditors ...RequestEditorFn) (*GetQuotaResponse, error)
GetQuotaWithResponse request returning *GetQuotaResponse
func (*ClientWithResponses) GetWebhookWithResponse ¶
func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)
GetWebhookWithResponse request returning *GetWebhookResponse
func (*ClientWithResponses) ListFoldersWithResponse ¶
func (c *ClientWithResponses) ListFoldersWithResponse(ctx context.Context, mailboxResourceId string, params *ListFoldersParams, reqEditors ...RequestEditorFn) (*ListFoldersResponse, error)
ListFoldersWithResponse request returning *ListFoldersResponse
func (*ClientWithResponses) ListMessagesWithResponse ¶
func (c *ClientWithResponses) ListMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
ListMessagesWithResponse request returning *ListMessagesResponse
func (*ClientWithResponses) ListWebhooksWithResponse ¶
func (c *ClientWithResponses) ListWebhooksWithResponse(ctx context.Context, mailboxResourceId string, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)
ListWebhooksWithResponse request returning *ListWebhooksResponse
func (*ClientWithResponses) MoveMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) MoveMessageWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveMessageResponse, error)
MoveMessageWithBodyWithResponse request with arbitrary body returning *MoveMessageResponse
func (*ClientWithResponses) MoveMessageWithResponse ¶
func (c *ClientWithResponses) MoveMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, body MoveMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveMessageResponse, error)
func (*ClientWithResponses) MoveMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) MoveMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveMessagesResponse, error)
MoveMessagesWithBodyWithResponse request with arbitrary body returning *MoveMessagesResponse
func (*ClientWithResponses) MoveMessagesWithResponse ¶
func (c *ClientWithResponses) MoveMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, body MoveMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveMessagesResponse, error)
func (*ClientWithResponses) PatchMessageWithBodyWithResponse ¶
func (c *ClientWithResponses) PatchMessageWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchMessageResponse, error)
PatchMessageWithBodyWithResponse request with arbitrary body returning *PatchMessageResponse
func (*ClientWithResponses) PatchMessageWithResponse ¶
func (c *ClientWithResponses) PatchMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, body PatchMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchMessageResponse, error)
func (*ClientWithResponses) RegenerateWebhookSecretWithResponse ¶
func (c *ClientWithResponses) RegenerateWebhookSecretWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateWebhookSecretResponse, error)
RegenerateWebhookSecretWithResponse request returning *RegenerateWebhookSecretResponse
func (*ClientWithResponses) SearchMessagesWithBodyWithResponse ¶
func (c *ClientWithResponses) SearchMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchMessagesResponse, error)
SearchMessagesWithBodyWithResponse request with arbitrary body returning *SearchMessagesResponse
func (*ClientWithResponses) SearchMessagesWithResponse ¶
func (c *ClientWithResponses) SearchMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, body SearchMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchMessagesResponse, error)
func (*ClientWithResponses) SendEmailWithBodyWithResponse ¶
func (c *ClientWithResponses) SendEmailWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
SendEmailWithBodyWithResponse request with arbitrary body returning *SendEmailResponse
func (*ClientWithResponses) SendEmailWithResponse ¶
func (c *ClientWithResponses) SendEmailWithResponse(ctx context.Context, mailboxResourceId string, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
func (*ClientWithResponses) TestWebhookWithResponse ¶
func (c *ClientWithResponses) TestWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*TestWebhookResponse, error)
TestWebhookWithResponse request returning *TestWebhookResponse
func (*ClientWithResponses) UpdateFolderWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateFolderWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFolderResponse, error)
UpdateFolderWithBodyWithResponse request with arbitrary body returning *UpdateFolderResponse
func (*ClientWithResponses) UpdateFolderWithResponse ¶
func (c *ClientWithResponses) UpdateFolderWithResponse(ctx context.Context, mailboxResourceId string, folder string, body UpdateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFolderResponse, error)
func (*ClientWithResponses) UpdateMessageFlagsWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateMessageFlagsWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMessageFlagsResponse, error)
UpdateMessageFlagsWithBodyWithResponse request with arbitrary body returning *UpdateMessageFlagsResponse
func (*ClientWithResponses) UpdateMessageFlagsWithResponse ¶
func (c *ClientWithResponses) UpdateMessageFlagsWithResponse(ctx context.Context, mailboxResourceId string, folder string, body UpdateMessageFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMessageFlagsResponse, error)
func (*ClientWithResponses) UpdateWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateWebhookWithBodyWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
UpdateWebhookWithBodyWithResponse request with arbitrary body returning *UpdateWebhookResponse
func (*ClientWithResponses) UpdateWebhookWithResponse ¶
func (c *ClientWithResponses) UpdateWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListFoldersWithResponse request
ListFoldersWithResponse(ctx context.Context, mailboxResourceId string, params *ListFoldersParams, reqEditors ...RequestEditorFn) (*ListFoldersResponse, error)
// CreateFolderWithBodyWithResponse request with any body
CreateFolderWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFolderResponse, error)
CreateFolderWithResponse(ctx context.Context, mailboxResourceId string, body CreateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFolderResponse, error)
// DeleteFolderWithResponse request
DeleteFolderWithResponse(ctx context.Context, mailboxResourceId string, folder string, reqEditors ...RequestEditorFn) (*DeleteFolderResponse, error)
// UpdateFolderWithBodyWithResponse request with any body
UpdateFolderWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateFolderResponse, error)
UpdateFolderWithResponse(ctx context.Context, mailboxResourceId string, folder string, body UpdateFolderJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateFolderResponse, error)
// DeleteAllMessagesWithResponse request
DeleteAllMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, reqEditors ...RequestEditorFn) (*DeleteAllMessagesResponse, error)
// ListMessagesWithResponse request
ListMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, params *ListMessagesParams, reqEditors ...RequestEditorFn) (*ListMessagesResponse, error)
// DeleteMessagesWithBodyWithResponse request with any body
DeleteMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
DeleteMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, body DeleteMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*DeleteMessagesResponse, error)
// UpdateMessageFlagsWithBodyWithResponse request with any body
UpdateMessageFlagsWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMessageFlagsResponse, error)
UpdateMessageFlagsWithResponse(ctx context.Context, mailboxResourceId string, folder string, body UpdateMessageFlagsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMessageFlagsResponse, error)
// MoveMessagesWithBodyWithResponse request with any body
MoveMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveMessagesResponse, error)
MoveMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, body MoveMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveMessagesResponse, error)
// SearchMessagesWithBodyWithResponse request with any body
SearchMessagesWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SearchMessagesResponse, error)
SearchMessagesWithResponse(ctx context.Context, mailboxResourceId string, folder string, params *SearchMessagesParams, body SearchMessagesJSONRequestBody, reqEditors ...RequestEditorFn) (*SearchMessagesResponse, error)
// DeleteMessageWithResponse request
DeleteMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*DeleteMessageResponse, error)
// GetMessageWithResponse request
GetMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*GetMessageResponse, error)
// PatchMessageWithBodyWithResponse request with any body
PatchMessageWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchMessageResponse, error)
PatchMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, body PatchMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchMessageResponse, error)
// GetMessageAttachmentWithResponse request
GetMessageAttachmentWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, attachmentId string, reqEditors ...RequestEditorFn) (*GetMessageAttachmentResponse, error)
// MoveMessageWithBodyWithResponse request with any body
MoveMessageWithBodyWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*MoveMessageResponse, error)
MoveMessageWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, body MoveMessageJSONRequestBody, reqEditors ...RequestEditorFn) (*MoveMessageResponse, error)
// GetMessageSourceWithResponse request
GetMessageSourceWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*GetMessageSourceResponse, error)
// GetMessageTextWithResponse request
GetMessageTextWithResponse(ctx context.Context, mailboxResourceId string, folder string, uid int, reqEditors ...RequestEditorFn) (*GetMessageTextResponse, error)
// GetQuotaWithResponse request
GetQuotaWithResponse(ctx context.Context, mailboxResourceId string, reqEditors ...RequestEditorFn) (*GetQuotaResponse, error)
// SendEmailWithBodyWithResponse request with any body
SendEmailWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
SendEmailWithResponse(ctx context.Context, mailboxResourceId string, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
// ListWebhooksWithResponse request
ListWebhooksWithResponse(ctx context.Context, mailboxResourceId string, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)
// CreateWebhookWithBodyWithResponse request with any body
CreateWebhookWithBodyWithResponse(ctx context.Context, mailboxResourceId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
CreateWebhookWithResponse(ctx context.Context, mailboxResourceId string, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
// DeleteWebhookWithResponse request
DeleteWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
// GetWebhookWithResponse request
GetWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)
// UpdateWebhookWithBodyWithResponse request with any body
UpdateWebhookWithBodyWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
UpdateWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
// RegenerateWebhookSecretWithResponse request
RegenerateWebhookSecretWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*RegenerateWebhookSecretResponse, error)
// TestWebhookWithResponse request
TestWebhookWithResponse(ctx context.Context, mailboxResourceId string, webhook openapi_types.UUID, reqEditors ...RequestEditorFn) (*TestWebhookResponse, error)
// GetCurrentAccountWithResponse request
GetCurrentAccountWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentAccountResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CommonResponseBadGatewayResponse ¶
type CommonResponseBadGatewayResponse = Error
CommonResponseBadGatewayResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CommonResponseConflictResponse ¶
type CommonResponseConflictResponse = Error
CommonResponseConflictResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CommonResponseForbiddenResponse ¶
type CommonResponseForbiddenResponse = Error
CommonResponseForbiddenResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CommonResponseInternalServerErrorResponse ¶
type CommonResponseInternalServerErrorResponse = Error
CommonResponseInternalServerErrorResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CommonResponseNotFoundResponse ¶
type CommonResponseNotFoundResponse = Error
CommonResponseNotFoundResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CommonResponseUnauthorizedResponse ¶
type CommonResponseUnauthorizedResponse = Error
CommonResponseUnauthorizedResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CommonResponseValidationFailedResponse ¶
type CommonResponseValidationFailedResponse = Error
CommonResponseValidationFailedResponse Standard error envelope. Frontend translations key off `code`, never off `error`.
type CreateFolderJSONRequestBody ¶
type CreateFolderJSONRequestBody = V1FoldersCreateRequest
CreateFolderJSONRequestBody defines body for CreateFolder for application/json ContentType.
type CreateFolderResponse ¶
type CreateFolderResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *V1FoldersResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON409 *CommonResponseConflictResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseCreateFolderResponse ¶
func ParseCreateFolderResponse(rsp *http.Response) (*CreateFolderResponse, error)
ParseCreateFolderResponse parses an HTTP response from a CreateFolderWithResponse call
func (CreateFolderResponse) ContentType ¶
func (r CreateFolderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateFolderResponse) Status ¶
func (r CreateFolderResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFolderResponse) StatusCode ¶
func (r CreateFolderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateWebhookJSONRequestBody ¶
type CreateWebhookJSONRequestBody = V1WebhooksCreateRequest
CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType.
type CreateWebhookResponse ¶
type CreateWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *V1WebhooksResourceWithSecret
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseCreateWebhookResponse ¶
func ParseCreateWebhookResponse(rsp *http.Response) (*CreateWebhookResponse, error)
ParseCreateWebhookResponse parses an HTTP response from a CreateWebhookWithResponse call
func (CreateWebhookResponse) ContentType ¶
func (r CreateWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateWebhookResponse) Status ¶
func (r CreateWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (CreateWebhookResponse) StatusCode ¶
func (r CreateWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteAllMessagesResponse ¶
type DeleteAllMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseDeleteAllMessagesResponse ¶
func ParseDeleteAllMessagesResponse(rsp *http.Response) (*DeleteAllMessagesResponse, error)
ParseDeleteAllMessagesResponse parses an HTTP response from a DeleteAllMessagesWithResponse call
func (DeleteAllMessagesResponse) ContentType ¶
func (r DeleteAllMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteAllMessagesResponse) Status ¶
func (r DeleteAllMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteAllMessagesResponse) StatusCode ¶
func (r DeleteAllMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteFolderResponse ¶
type DeleteFolderResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON409 *CommonResponseConflictResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseDeleteFolderResponse ¶
func ParseDeleteFolderResponse(rsp *http.Response) (*DeleteFolderResponse, error)
ParseDeleteFolderResponse parses an HTTP response from a DeleteFolderWithResponse call
func (DeleteFolderResponse) ContentType ¶
func (r DeleteFolderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteFolderResponse) Status ¶
func (r DeleteFolderResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteFolderResponse) StatusCode ¶
func (r DeleteFolderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMessageResponse ¶
type DeleteMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseDeleteMessageResponse ¶
func ParseDeleteMessageResponse(rsp *http.Response) (*DeleteMessageResponse, error)
ParseDeleteMessageResponse parses an HTTP response from a DeleteMessageWithResponse call
func (DeleteMessageResponse) ContentType ¶
func (r DeleteMessageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteMessageResponse) Status ¶
func (r DeleteMessageResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMessageResponse) StatusCode ¶
func (r DeleteMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteMessagesJSONRequestBody ¶
type DeleteMessagesJSONRequestBody = V1FolderMessagesDeleteBulkRequest
DeleteMessagesJSONRequestBody defines body for DeleteMessages for application/json ContentType.
type DeleteMessagesResponse ¶
type DeleteMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseDeleteMessagesResponse ¶
func ParseDeleteMessagesResponse(rsp *http.Response) (*DeleteMessagesResponse, error)
ParseDeleteMessagesResponse parses an HTTP response from a DeleteMessagesWithResponse call
func (DeleteMessagesResponse) ContentType ¶
func (r DeleteMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteMessagesResponse) Status ¶
func (r DeleteMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteMessagesResponse) StatusCode ¶
func (r DeleteMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseDeleteWebhookResponse ¶
func ParseDeleteWebhookResponse(rsp *http.Response) (*DeleteWebhookResponse, error)
ParseDeleteWebhookResponse parses an HTTP response from a DeleteWebhookWithResponse call
func (DeleteWebhookResponse) ContentType ¶
func (r DeleteWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteWebhookResponse) Status ¶
func (r DeleteWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteWebhookResponse) StatusCode ¶
func (r DeleteWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// Code Machine-readable error code in SCREAMING_SNAKE_CASE.
Code string `json:"code"`
// Error Human-readable error message.
Error string `json:"error"`
// Params Additional structured context for the error. May be omitted.
Params *map[string]interface{} `json:"params,omitempty"`
}
Error Standard error envelope. Frontend translations key off `code`, never off `error`.
type GetCurrentAccountResponse ¶
type GetCurrentAccountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1MeResource
JSON401 *CommonResponseUnauthorizedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetCurrentAccountResponse ¶
func ParseGetCurrentAccountResponse(rsp *http.Response) (*GetCurrentAccountResponse, error)
ParseGetCurrentAccountResponse parses an HTTP response from a GetCurrentAccountWithResponse call
func (GetCurrentAccountResponse) ContentType ¶
func (r GetCurrentAccountResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetCurrentAccountResponse) Status ¶
func (r GetCurrentAccountResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentAccountResponse) StatusCode ¶
func (r GetCurrentAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMessageAttachmentResponse ¶
type GetMessageAttachmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetMessageAttachmentResponse ¶
func ParseGetMessageAttachmentResponse(rsp *http.Response) (*GetMessageAttachmentResponse, error)
ParseGetMessageAttachmentResponse parses an HTTP response from a GetMessageAttachmentWithResponse call
func (GetMessageAttachmentResponse) ContentType ¶
func (r GetMessageAttachmentResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMessageAttachmentResponse) Status ¶
func (r GetMessageAttachmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetMessageAttachmentResponse) StatusCode ¶
func (r GetMessageAttachmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMessageResponse ¶
type GetMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FolderMessagesResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetMessageResponse ¶
func ParseGetMessageResponse(rsp *http.Response) (*GetMessageResponse, error)
ParseGetMessageResponse parses an HTTP response from a GetMessageWithResponse call
func (GetMessageResponse) ContentType ¶
func (r GetMessageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMessageResponse) Status ¶
func (r GetMessageResponse) Status() string
Status returns HTTPResponse.Status
func (GetMessageResponse) StatusCode ¶
func (r GetMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMessageSourceResponse ¶
type GetMessageSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetMessageSourceResponse ¶
func ParseGetMessageSourceResponse(rsp *http.Response) (*GetMessageSourceResponse, error)
ParseGetMessageSourceResponse parses an HTTP response from a GetMessageSourceWithResponse call
func (GetMessageSourceResponse) ContentType ¶
func (r GetMessageSourceResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMessageSourceResponse) Status ¶
func (r GetMessageSourceResponse) Status() string
Status returns HTTPResponse.Status
func (GetMessageSourceResponse) StatusCode ¶
func (r GetMessageSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetMessageTextResponse ¶
type GetMessageTextResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FolderMessagesMessageTextResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetMessageTextResponse ¶
func ParseGetMessageTextResponse(rsp *http.Response) (*GetMessageTextResponse, error)
ParseGetMessageTextResponse parses an HTTP response from a GetMessageTextWithResponse call
func (GetMessageTextResponse) ContentType ¶
func (r GetMessageTextResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetMessageTextResponse) Status ¶
func (r GetMessageTextResponse) Status() string
Status returns HTTPResponse.Status
func (GetMessageTextResponse) StatusCode ¶
func (r GetMessageTextResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetQuotaResponse ¶
type GetQuotaResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1QuotaResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetQuotaResponse ¶
func ParseGetQuotaResponse(rsp *http.Response) (*GetQuotaResponse, error)
ParseGetQuotaResponse parses an HTTP response from a GetQuotaWithResponse call
func (GetQuotaResponse) ContentType ¶
func (r GetQuotaResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetQuotaResponse) Status ¶
func (r GetQuotaResponse) Status() string
Status returns HTTPResponse.Status
func (GetQuotaResponse) StatusCode ¶
func (r GetQuotaResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWebhookResponse ¶
type GetWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1WebhooksResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseGetWebhookResponse ¶
func ParseGetWebhookResponse(rsp *http.Response) (*GetWebhookResponse, error)
ParseGetWebhookResponse parses an HTTP response from a GetWebhookWithResponse call
func (GetWebhookResponse) ContentType ¶
func (r GetWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetWebhookResponse) Status ¶
func (r GetWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (GetWebhookResponse) StatusCode ¶
func (r GetWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type ListFoldersParams ¶
type ListFoldersParams struct {
// Page Page number (1-based).
Page *int `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 100).
PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"`
}
ListFoldersParams defines parameters for ListFolders.
type ListFoldersResponse ¶
type ListFoldersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FoldersCollection
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseListFoldersResponse ¶
func ParseListFoldersResponse(rsp *http.Response) (*ListFoldersResponse, error)
ParseListFoldersResponse parses an HTTP response from a ListFoldersWithResponse call
func (ListFoldersResponse) ContentType ¶
func (r ListFoldersResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListFoldersResponse) Status ¶
func (r ListFoldersResponse) Status() string
Status returns HTTPResponse.Status
func (ListFoldersResponse) StatusCode ¶
func (r ListFoldersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListMessagesParams ¶
type ListMessagesParams struct {
// Page Page number (1-based).
Page *int `form:"page,omitempty" json:"page,omitempty"`
// PerPage Items per page (max 100).
PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"`
// Sort Sort field with optional `-` prefix for descending. Allowed: uid, date, size.
Sort *string `form:"sort,omitempty" json:"sort,omitempty"`
}
ListMessagesParams defines parameters for ListMessages.
type ListMessagesResponse ¶
type ListMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FolderMessagesCollection
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseListMessagesResponse ¶
func ParseListMessagesResponse(rsp *http.Response) (*ListMessagesResponse, error)
ParseListMessagesResponse parses an HTTP response from a ListMessagesWithResponse call
func (ListMessagesResponse) ContentType ¶
func (r ListMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListMessagesResponse) Status ¶
func (r ListMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (ListMessagesResponse) StatusCode ¶
func (r ListMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWebhooksParams ¶
type ListWebhooksParams struct {
Status *ListWebhooksParamsStatus `form:"status,omitempty" json:"status,omitempty"`
Page *int `form:"page,omitempty" json:"page,omitempty"`
PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"`
}
ListWebhooksParams defines parameters for ListWebhooks.
type ListWebhooksParamsStatus ¶
type ListWebhooksParamsStatus string
ListWebhooksParamsStatus defines parameters for ListWebhooks.
const ( Active ListWebhooksParamsStatus = "active" Disabled ListWebhooksParamsStatus = "disabled" Paused ListWebhooksParamsStatus = "paused" )
Defines values for ListWebhooksParamsStatus.
func (ListWebhooksParamsStatus) Valid ¶
func (e ListWebhooksParamsStatus) Valid() bool
Valid indicates whether the value is a known member of the ListWebhooksParamsStatus enum.
type ListWebhooksResponse ¶
type ListWebhooksResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1WebhooksCollection
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseListWebhooksResponse ¶
func ParseListWebhooksResponse(rsp *http.Response) (*ListWebhooksResponse, error)
ParseListWebhooksResponse parses an HTTP response from a ListWebhooksWithResponse call
func (ListWebhooksResponse) ContentType ¶
func (r ListWebhooksResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListWebhooksResponse) Status ¶
func (r ListWebhooksResponse) Status() string
Status returns HTTPResponse.Status
func (ListWebhooksResponse) StatusCode ¶
func (r ListWebhooksResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MoveMessageJSONRequestBody ¶
type MoveMessageJSONRequestBody = V1FolderMessagesMoveRequest
MoveMessageJSONRequestBody defines body for MoveMessage for application/json ContentType.
type MoveMessageResponse ¶
type MoveMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseMoveMessageResponse ¶
func ParseMoveMessageResponse(rsp *http.Response) (*MoveMessageResponse, error)
ParseMoveMessageResponse parses an HTTP response from a MoveMessageWithResponse call
func (MoveMessageResponse) ContentType ¶
func (r MoveMessageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MoveMessageResponse) Status ¶
func (r MoveMessageResponse) Status() string
Status returns HTTPResponse.Status
func (MoveMessageResponse) StatusCode ¶
func (r MoveMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MoveMessagesJSONRequestBody ¶
type MoveMessagesJSONRequestBody = V1FolderMessagesMoveBulkRequest
MoveMessagesJSONRequestBody defines body for MoveMessages for application/json ContentType.
type MoveMessagesResponse ¶
type MoveMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseMoveMessagesResponse ¶
func ParseMoveMessagesResponse(rsp *http.Response) (*MoveMessagesResponse, error)
ParseMoveMessagesResponse parses an HTTP response from a MoveMessagesWithResponse call
func (MoveMessagesResponse) ContentType ¶
func (r MoveMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (MoveMessagesResponse) Status ¶
func (r MoveMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (MoveMessagesResponse) StatusCode ¶
func (r MoveMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Pagination ¶
type Pagination struct {
// Page Current page number (1-based).
Page int `json:"page"`
// PerPage Items per page.
PerPage int `json:"perPage"`
// Total Total number of items across all pages.
Total int `json:"total"`
// TotalPages Total number of pages.
TotalPages int `json:"totalPages"`
}
Pagination Pagination metadata for paginated collections.
type PatchMessageJSONRequestBody ¶
type PatchMessageJSONRequestBody = V1FolderMessagesFlagsRequest
PatchMessageJSONRequestBody defines body for PatchMessage for application/json ContentType.
type PatchMessageResponse ¶
type PatchMessageResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FolderMessagesResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParsePatchMessageResponse ¶
func ParsePatchMessageResponse(rsp *http.Response) (*PatchMessageResponse, error)
ParsePatchMessageResponse parses an HTTP response from a PatchMessageWithResponse call
func (PatchMessageResponse) ContentType ¶
func (r PatchMessageResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (PatchMessageResponse) Status ¶
func (r PatchMessageResponse) Status() string
Status returns HTTPResponse.Status
func (PatchMessageResponse) StatusCode ¶
func (r PatchMessageResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RegenerateWebhookSecretResponse ¶
type RegenerateWebhookSecretResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1WebhooksResourceWithSecret
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseRegenerateWebhookSecretResponse ¶
func ParseRegenerateWebhookSecretResponse(rsp *http.Response) (*RegenerateWebhookSecretResponse, error)
ParseRegenerateWebhookSecretResponse parses an HTTP response from a RegenerateWebhookSecretWithResponse call
func (RegenerateWebhookSecretResponse) ContentType ¶
func (r RegenerateWebhookSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RegenerateWebhookSecretResponse) Status ¶
func (r RegenerateWebhookSecretResponse) Status() string
Status returns HTTPResponse.Status
func (RegenerateWebhookSecretResponse) StatusCode ¶
func (r RegenerateWebhookSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SearchMessagesJSONRequestBody ¶
type SearchMessagesJSONRequestBody = V1FolderMessagesSearchRequest
SearchMessagesJSONRequestBody defines body for SearchMessages for application/json ContentType.
type SearchMessagesParams ¶
type SearchMessagesParams struct {
Page *int `form:"page,omitempty" json:"page,omitempty"`
PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"`
Sort *string `form:"sort,omitempty" json:"sort,omitempty"`
}
SearchMessagesParams defines parameters for SearchMessages.
type SearchMessagesResponse ¶
type SearchMessagesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FolderMessagesCollection
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseSearchMessagesResponse ¶
func ParseSearchMessagesResponse(rsp *http.Response) (*SearchMessagesResponse, error)
ParseSearchMessagesResponse parses an HTTP response from a SearchMessagesWithResponse call
func (SearchMessagesResponse) ContentType ¶
func (r SearchMessagesResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SearchMessagesResponse) Status ¶
func (r SearchMessagesResponse) Status() string
Status returns HTTPResponse.Status
func (SearchMessagesResponse) StatusCode ¶
func (r SearchMessagesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendEmailJSONRequestBody ¶
type SendEmailJSONRequestBody = V1SendRequest
SendEmailJSONRequestBody defines body for SendEmail for application/json ContentType.
type SendEmailResponse ¶
type SendEmailResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseSendEmailResponse ¶
func ParseSendEmailResponse(rsp *http.Response) (*SendEmailResponse, error)
ParseSendEmailResponse parses an HTTP response from a SendEmailWithResponse call
func (SendEmailResponse) ContentType ¶
func (r SendEmailResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SendEmailResponse) Status ¶
func (r SendEmailResponse) Status() string
Status returns HTTPResponse.Status
func (SendEmailResponse) StatusCode ¶
func (r SendEmailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TestWebhookResponse ¶
type TestWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1WebhooksTestResult
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseTestWebhookResponse ¶
func ParseTestWebhookResponse(rsp *http.Response) (*TestWebhookResponse, error)
ParseTestWebhookResponse parses an HTTP response from a TestWebhookWithResponse call
func (TestWebhookResponse) ContentType ¶
func (r TestWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (TestWebhookResponse) Status ¶
func (r TestWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (TestWebhookResponse) StatusCode ¶
func (r TestWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateFolderJSONRequestBody ¶
type UpdateFolderJSONRequestBody = V1FoldersUpdateRequest
UpdateFolderJSONRequestBody defines body for UpdateFolder for application/json ContentType.
type UpdateFolderResponse ¶
type UpdateFolderResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FoldersResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON409 *CommonResponseConflictResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseUpdateFolderResponse ¶
func ParseUpdateFolderResponse(rsp *http.Response) (*UpdateFolderResponse, error)
ParseUpdateFolderResponse parses an HTTP response from a UpdateFolderWithResponse call
func (UpdateFolderResponse) ContentType ¶
func (r UpdateFolderResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateFolderResponse) Status ¶
func (r UpdateFolderResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateFolderResponse) StatusCode ¶
func (r UpdateFolderResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateMessageFlagsJSONRequestBody ¶
type UpdateMessageFlagsJSONRequestBody = V1FolderMessagesFlagsBulkRequest
UpdateMessageFlagsJSONRequestBody defines body for UpdateMessageFlags for application/json ContentType.
type UpdateMessageFlagsResponse ¶
type UpdateMessageFlagsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1FolderMessagesUpdateFlagsResult
JSON207 *V1FolderMessagesUpdateFlagsResult
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseUpdateMessageFlagsResponse ¶
func ParseUpdateMessageFlagsResponse(rsp *http.Response) (*UpdateMessageFlagsResponse, error)
ParseUpdateMessageFlagsResponse parses an HTTP response from a UpdateMessageFlagsWithResponse call
func (UpdateMessageFlagsResponse) ContentType ¶
func (r UpdateMessageFlagsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateMessageFlagsResponse) Status ¶
func (r UpdateMessageFlagsResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateMessageFlagsResponse) StatusCode ¶
func (r UpdateMessageFlagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateWebhookJSONRequestBody ¶
type UpdateWebhookJSONRequestBody = V1WebhooksUpdateRequest
UpdateWebhookJSONRequestBody defines body for UpdateWebhook for application/json ContentType.
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *V1WebhooksResource
JSON401 *CommonResponseUnauthorizedResponse
JSON403 *CommonResponseForbiddenResponse
JSON404 *CommonResponseNotFoundResponse
JSON422 *CommonResponseValidationFailedResponse
JSON500 *CommonResponseInternalServerErrorResponse
JSON502 *CommonResponseBadGatewayResponse
}
func ParseUpdateWebhookResponse ¶
func ParseUpdateWebhookResponse(rsp *http.Response) (*UpdateWebhookResponse, error)
ParseUpdateWebhookResponse parses an HTTP response from a UpdateWebhookWithResponse call
func (UpdateWebhookResponse) ContentType ¶
func (r UpdateWebhookResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateWebhookResponse) Status ¶
func (r UpdateWebhookResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateWebhookResponse) StatusCode ¶
func (r UpdateWebhookResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type V1FolderMessagesCollection ¶
type V1FolderMessagesCollection struct {
Data []V1FolderMessagesMessage `json:"data"`
// Pagination Pagination metadata for paginated collections.
Pagination Pagination `json:"pagination"`
}
V1FolderMessagesCollection Paginated list of messages.
type V1FolderMessagesDeleteBulkRequest ¶
type V1FolderMessagesDeleteBulkRequest struct {
// Uids Message UIDs to delete. 1-100 entries, each > 0.
Uids []int `json:"uids"`
}
V1FolderMessagesDeleteBulkRequest Body for permanently deleting multiple messages.
type V1FolderMessagesFlagsBulkRequest ¶
type V1FolderMessagesFlagsBulkRequest struct {
AddFlags *[]string `json:"addFlags,omitempty"`
RemoveFlags *[]string `json:"removeFlags,omitempty"`
// Uids Message UIDs to update. 1-100 entries, each > 0.
Uids []int `json:"uids"`
}
V1FolderMessagesFlagsBulkRequest Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
type V1FolderMessagesFlagsRequest ¶
type V1FolderMessagesFlagsRequest struct {
AddFlags *[]string `json:"addFlags,omitempty"`
RemoveFlags *[]string `json:"removeFlags,omitempty"`
}
V1FolderMessagesFlagsRequest Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
type V1FolderMessagesMessage ¶
type V1FolderMessagesMessage struct {
Attachments []V1FolderMessagesMessageAttachment `json:"attachments"`
Bcc []V1FolderMessagesMessageAddress `json:"bcc"`
Cc []V1FolderMessagesMessageAddress `json:"cc"`
Date time.Time `json:"date"`
Flags []string `json:"flags"`
From *V1FolderMessagesMessage_From `json:"from"`
InReplyTo *string `json:"inReplyTo"`
MessageId *string `json:"messageId"`
Path string `json:"path"`
Size int `json:"size"`
Subject *string `json:"subject"`
To []V1FolderMessagesMessageAddress `json:"to"`
Uid int `json:"uid"`
Unseen bool `json:"unseen"`
}
V1FolderMessagesMessage A message in a folder of the managed mailbox.
type V1FolderMessagesMessageAddress ¶
type V1FolderMessagesMessageAddress struct {
Address string `json:"address"`
Name string `json:"name"`
}
V1FolderMessagesMessageAddress A single email address with optional display name.
type V1FolderMessagesMessageAttachment ¶
type V1FolderMessagesMessageAttachment struct {
ContentId *string `json:"contentId"`
ContentType string `json:"contentType"`
Filename *string `json:"filename"`
// Id Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint.
Id string `json:"id"`
Inline bool `json:"inline"`
SizeBytes int `json:"sizeBytes"`
}
V1FolderMessagesMessageAttachment Attachment metadata attached to a message.
type V1FolderMessagesMessageText ¶
V1FolderMessagesMessageText Rendered text and HTML parts of a message.
type V1FolderMessagesMessageTextResource ¶
type V1FolderMessagesMessageTextResource struct {
// Data Rendered text and HTML parts of a message.
Data V1FolderMessagesMessageText `json:"data"`
}
V1FolderMessagesMessageTextResource Single message text payload.
type V1FolderMessagesMessage_From ¶
type V1FolderMessagesMessage_From struct {
// contains filtered or unexported fields
}
V1FolderMessagesMessage_From defines model for V1FolderMessagesMessage.From.
func (V1FolderMessagesMessage_From) AsV1FolderMessagesMessageAddress ¶
func (t V1FolderMessagesMessage_From) AsV1FolderMessagesMessageAddress() (V1FolderMessagesMessageAddress, error)
AsV1FolderMessagesMessageAddress returns the union data inside the V1FolderMessagesMessage_From as a V1FolderMessagesMessageAddress
func (*V1FolderMessagesMessage_From) FromV1FolderMessagesMessageAddress ¶
func (t *V1FolderMessagesMessage_From) FromV1FolderMessagesMessageAddress(v V1FolderMessagesMessageAddress) error
FromV1FolderMessagesMessageAddress overwrites any union data inside the V1FolderMessagesMessage_From as the provided V1FolderMessagesMessageAddress
func (V1FolderMessagesMessage_From) MarshalJSON ¶
func (t V1FolderMessagesMessage_From) MarshalJSON() ([]byte, error)
func (*V1FolderMessagesMessage_From) MergeV1FolderMessagesMessageAddress ¶
func (t *V1FolderMessagesMessage_From) MergeV1FolderMessagesMessageAddress(v V1FolderMessagesMessageAddress) error
MergeV1FolderMessagesMessageAddress performs a merge with any union data inside the V1FolderMessagesMessage_From, using the provided V1FolderMessagesMessageAddress
func (*V1FolderMessagesMessage_From) UnmarshalJSON ¶
func (t *V1FolderMessagesMessage_From) UnmarshalJSON(b []byte) error
type V1FolderMessagesMoveBulkRequest ¶
type V1FolderMessagesMoveBulkRequest struct {
// TargetFolder Destination folder path.
TargetFolder string `json:"targetFolder"`
// Uids Message UIDs to move. 1-100 entries, each > 0.
Uids []int `json:"uids"`
}
V1FolderMessagesMoveBulkRequest Body for moving multiple messages to a target folder.
type V1FolderMessagesMoveRequest ¶
type V1FolderMessagesMoveRequest struct {
// TargetFolder Destination folder path.
TargetFolder string `json:"targetFolder"`
}
V1FolderMessagesMoveRequest Body for moving a single message to a target folder.
type V1FolderMessagesResource ¶
type V1FolderMessagesResource struct {
// Data A message in a folder of the managed mailbox.
Data V1FolderMessagesMessage `json:"data"`
}
V1FolderMessagesResource Single message payload.
type V1FolderMessagesSearchRequest ¶
type V1FolderMessagesSearchRequest struct {
Before *openapi_types.Date `json:"before,omitempty"`
Body *string `json:"body,omitempty"`
Cc *string `json:"cc,omitempty"`
Flags *[]string `json:"flags,omitempty"`
From *string `json:"from,omitempty"`
Header *string `json:"header,omitempty"`
Larger *int `json:"larger,omitempty"`
Since *openapi_types.Date `json:"since,omitempty"`
Smaller *int `json:"smaller,omitempty"`
Subject *string `json:"subject,omitempty"`
Text *string `json:"text,omitempty"`
To *string `json:"to,omitempty"`
Uid *string `json:"uid,omitempty"`
}
V1FolderMessagesSearchRequest Search criteria. All fields optional; combine to narrow results.
type V1FolderMessagesUpdateFlagsResult ¶
type V1FolderMessagesUpdateFlagsResult struct {
Data struct {
Failed []struct {
Reason string `json:"reason"`
Uid int `json:"uid"`
} `json:"failed"`
Successful []int `json:"successful"`
} `json:"data"`
}
V1FolderMessagesUpdateFlagsResult Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
type V1FoldersCollection ¶
type V1FoldersCollection struct {
Data []V1FoldersFolder `json:"data"`
// Pagination Pagination metadata for paginated collections.
Pagination Pagination `json:"pagination"`
}
V1FoldersCollection Paginated list of folders.
type V1FoldersCreateRequest ¶
type V1FoldersCreateRequest struct {
// Name Folder name. Length 1-100 after trimming.
Name string `json:"name"`
}
V1FoldersCreateRequest Body for creating a folder.
type V1FoldersFolder ¶
type V1FoldersFolder struct {
// Delimiter Hierarchy delimiter used by the IMAP server.
Delimiter string `json:"delimiter"`
// MessageCount Total number of messages in the folder.
MessageCount int `json:"messageCount"`
// Name Leaf name of the folder.
Name string `json:"name"`
// Path Full hierarchical folder path including the delimiter.
Path string `json:"path"`
// SpecialUse IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders.
SpecialUse *string `json:"specialUse"`
// UnreadCount Number of unread messages in the folder.
UnreadCount int `json:"unreadCount"`
}
V1FoldersFolder A folder (IMAP mailbox) in the managed mailbox.
type V1FoldersResource ¶
type V1FoldersResource struct {
// Data A folder (IMAP mailbox) in the managed mailbox.
Data V1FoldersFolder `json:"data"`
}
V1FoldersResource Single folder payload.
type V1FoldersUpdateRequest ¶
type V1FoldersUpdateRequest struct {
// Name New folder name. Length 1-100 after trimming.
Name string `json:"name"`
}
V1FoldersUpdateRequest Body for renaming a folder.
type V1MeMailbox ¶
type V1MeMailbox struct {
// Address Email address of the mailbox.
Address openapi_types.Email `json:"address"`
// ResourceId Unique identifier of the mailbox.
ResourceId string `json:"resourceId"`
}
V1MeMailbox A mailbox the authenticated API token can manage.
type V1MeResource ¶
type V1MeResource struct {
Data struct {
// Mailboxes Mailboxes that the authenticated API token can manage.
Mailboxes []V1MeMailbox `json:"mailboxes"`
// OrderResourceId Identifier of the order this API token is scoped to.
OrderResourceId string `json:"orderResourceId"`
} `json:"data"`
}
V1MeResource Authenticated account payload.
type V1QuotaQuota ¶
type V1QuotaQuota struct {
// Quotas Per-resource quota breakdown reported by the IMAP server.
Quotas []V1QuotaQuotaResource `json:"quotas"`
// Supported Whether the IMAP server reports quota information for this mailbox.
Supported bool `json:"supported"`
// TotalLimit Aggregate storage limit across all resources, in bytes.
TotalLimit int `json:"totalLimit"`
// TotalPercentage Aggregate storage usage as a percentage of the total limit.
TotalPercentage int `json:"totalPercentage"`
// TotalUsage Aggregate storage usage across all resources, in bytes.
TotalUsage int `json:"totalUsage"`
}
V1QuotaQuota Storage and message quota usage for the managed mailbox.
type V1QuotaQuotaResource ¶
type V1QuotaQuotaResource struct {
// Limit Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE).
Limit int `json:"limit"`
// Percentage Usage as a percentage of the limit.
Percentage int `json:"percentage"`
// ResourceName Name of the quota resource as reported by the IMAP server.
ResourceName string `json:"resourceName"`
// Usage Current usage of the resource (bytes for STORAGE, count for MESSAGE).
Usage int `json:"usage"`
}
V1QuotaQuotaResource Usage and limit for a single IMAP quota resource.
type V1QuotaResource ¶
type V1QuotaResource struct {
// Data Storage and message quota usage for the managed mailbox.
Data V1QuotaQuota `json:"data"`
}
V1QuotaResource Mailbox quota payload.
type V1SendAttachment ¶
type V1SendAttachment struct {
// Cid Content-ID for inline images. Reference from HTML as <img src="cid:logo">.
Cid *string `json:"cid,omitempty"`
// Content Attachment body. Base64-encoded by default; set encoding to switch.
Content string `json:"content"`
ContentType *string `json:"contentType,omitempty"`
// Encoding Encoding of content. Defaults to base64.
Encoding *string `json:"encoding,omitempty"`
Filename string `json:"filename"`
}
V1SendAttachment Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
type V1SendMessageRef ¶
type V1SendMessageRef struct {
// Folder Folder containing the source message.
Folder string `json:"folder"`
// Uid UID of the source message.
Uid int `json:"uid"`
}
V1SendMessageRef Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
type V1SendRequest ¶
type V1SendRequest struct {
Attachments *[]V1SendAttachment `json:"attachments,omitempty"`
Bcc *[]openapi_types.Email `json:"bcc,omitempty"`
Cc *[]openapi_types.Email `json:"cc,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
// ForwardOf Source message this forwards. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
ForwardOf *V1SendMessageRef `json:"forwardOf,omitempty"`
Html *string `json:"html,omitempty"`
// InReplyTo Source message this is a reply to. Copies its Message-Id/References into In-Reply-To/References and flags it \Answered. Mutually exclusive with forwardOf.
InReplyTo *V1SendMessageRef `json:"inReplyTo,omitempty"`
Subject *string `json:"subject,omitempty"`
Text *string `json:"text,omitempty"`
To *[]openapi_types.Email `json:"to,omitempty"`
// contains filtered or unexported fields
}
V1SendRequest Outgoing message payload. At least one of to, cc, or bcc must be present.
func (V1SendRequest) AsV1SendRequest0 ¶
func (t V1SendRequest) AsV1SendRequest0() (V1SendRequest0, error)
AsV1SendRequest0 returns the union data inside the V1SendRequest as a V1SendRequest0
func (V1SendRequest) AsV1SendRequest1 ¶
func (t V1SendRequest) AsV1SendRequest1() (V1SendRequest1, error)
AsV1SendRequest1 returns the union data inside the V1SendRequest as a V1SendRequest1
func (V1SendRequest) AsV1SendRequest2 ¶
func (t V1SendRequest) AsV1SendRequest2() (V1SendRequest2, error)
AsV1SendRequest2 returns the union data inside the V1SendRequest as a V1SendRequest2
func (*V1SendRequest) FromV1SendRequest0 ¶
func (t *V1SendRequest) FromV1SendRequest0(v V1SendRequest0) error
FromV1SendRequest0 overwrites any union data inside the V1SendRequest as the provided V1SendRequest0
func (*V1SendRequest) FromV1SendRequest1 ¶
func (t *V1SendRequest) FromV1SendRequest1(v V1SendRequest1) error
FromV1SendRequest1 overwrites any union data inside the V1SendRequest as the provided V1SendRequest1
func (*V1SendRequest) FromV1SendRequest2 ¶
func (t *V1SendRequest) FromV1SendRequest2(v V1SendRequest2) error
FromV1SendRequest2 overwrites any union data inside the V1SendRequest as the provided V1SendRequest2
func (V1SendRequest) MarshalJSON ¶
func (t V1SendRequest) MarshalJSON() ([]byte, error)
func (*V1SendRequest) MergeV1SendRequest0 ¶
func (t *V1SendRequest) MergeV1SendRequest0(v V1SendRequest0) error
MergeV1SendRequest0 performs a merge with any union data inside the V1SendRequest, using the provided V1SendRequest0
func (*V1SendRequest) MergeV1SendRequest1 ¶
func (t *V1SendRequest) MergeV1SendRequest1(v V1SendRequest1) error
MergeV1SendRequest1 performs a merge with any union data inside the V1SendRequest, using the provided V1SendRequest1
func (*V1SendRequest) MergeV1SendRequest2 ¶
func (t *V1SendRequest) MergeV1SendRequest2(v V1SendRequest2) error
MergeV1SendRequest2 performs a merge with any union data inside the V1SendRequest, using the provided V1SendRequest2
func (*V1SendRequest) UnmarshalJSON ¶
func (t *V1SendRequest) UnmarshalJSON(b []byte) error
type V1WebhooksCollection ¶
type V1WebhooksCollection struct {
Data []V1WebhooksWebhook `json:"data"`
// Pagination Pagination metadata for paginated collections.
Pagination Pagination `json:"pagination"`
}
V1WebhooksCollection Paginated list of webhooks.
type V1WebhooksCreateRequest ¶
type V1WebhooksCreateRequest struct {
Description *string `json:"description,omitempty"`
Events []V1WebhooksCreateRequestEvents `json:"events"`
Name string `json:"name"`
Status *V1WebhooksCreateRequestStatus `json:"status,omitempty"`
Url string `json:"url"`
}
V1WebhooksCreateRequest Body for creating a webhook.
type V1WebhooksCreateRequestEvents ¶
type V1WebhooksCreateRequestEvents string
V1WebhooksCreateRequestEvents defines model for V1WebhooksCreateRequest.Events.
const (
V1WebhooksCreateRequestEventsMessageReceived V1WebhooksCreateRequestEvents = "message.received"
)
Defines values for V1WebhooksCreateRequestEvents.
func (V1WebhooksCreateRequestEvents) Valid ¶
func (e V1WebhooksCreateRequestEvents) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksCreateRequestEvents enum.
type V1WebhooksCreateRequestStatus ¶
type V1WebhooksCreateRequestStatus string
V1WebhooksCreateRequestStatus defines model for V1WebhooksCreateRequest.Status.
const ( V1WebhooksCreateRequestStatusActive V1WebhooksCreateRequestStatus = "active" V1WebhooksCreateRequestStatusDisabled V1WebhooksCreateRequestStatus = "disabled" V1WebhooksCreateRequestStatusPaused V1WebhooksCreateRequestStatus = "paused" )
Defines values for V1WebhooksCreateRequestStatus.
func (V1WebhooksCreateRequestStatus) Valid ¶
func (e V1WebhooksCreateRequestStatus) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksCreateRequestStatus enum.
type V1WebhooksResource ¶
type V1WebhooksResource struct {
// Data Webhook configured for a managed mailbox.
Data V1WebhooksWebhook `json:"data"`
}
V1WebhooksResource Single webhook payload.
type V1WebhooksResourceWithSecret ¶
type V1WebhooksResourceWithSecret struct {
// Data Webhook payload that includes the one-time `secret`. Returned at creation and after secret regeneration. The secret is delivered as a bearer token on every webhook request (`Authorization: Bearer <secret>`); store it securely as it is not returned again.
Data V1WebhooksWebhookWithSecret `json:"data"`
}
V1WebhooksResourceWithSecret Single webhook payload including the one-time secret.
type V1WebhooksTestResult ¶
type V1WebhooksTestResult struct {
Data struct {
Error *string `json:"error,omitempty"`
HttpStatus int `json:"httpStatus"`
Success *bool `json:"success,omitempty"`
} `json:"data"`
}
V1WebhooksTestResult Result of a webhook test delivery.
type V1WebhooksUpdateRequest ¶
type V1WebhooksUpdateRequest struct {
Description *string `json:"description,omitempty"`
Events *[]V1WebhooksUpdateRequestEvents `json:"events,omitempty"`
Name *string `json:"name,omitempty"`
Status *V1WebhooksUpdateRequestStatus `json:"status,omitempty"`
Url *string `json:"url,omitempty"`
}
V1WebhooksUpdateRequest Body for partially updating a webhook. All fields optional; only present fields are applied.
type V1WebhooksUpdateRequestEvents ¶
type V1WebhooksUpdateRequestEvents string
V1WebhooksUpdateRequestEvents defines model for V1WebhooksUpdateRequest.Events.
const (
V1WebhooksUpdateRequestEventsMessageReceived V1WebhooksUpdateRequestEvents = "message.received"
)
Defines values for V1WebhooksUpdateRequestEvents.
func (V1WebhooksUpdateRequestEvents) Valid ¶
func (e V1WebhooksUpdateRequestEvents) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksUpdateRequestEvents enum.
type V1WebhooksUpdateRequestStatus ¶
type V1WebhooksUpdateRequestStatus string
V1WebhooksUpdateRequestStatus defines model for V1WebhooksUpdateRequest.Status.
const ( V1WebhooksUpdateRequestStatusActive V1WebhooksUpdateRequestStatus = "active" V1WebhooksUpdateRequestStatusDisabled V1WebhooksUpdateRequestStatus = "disabled" V1WebhooksUpdateRequestStatusPaused V1WebhooksUpdateRequestStatus = "paused" )
Defines values for V1WebhooksUpdateRequestStatus.
func (V1WebhooksUpdateRequestStatus) Valid ¶
func (e V1WebhooksUpdateRequestStatus) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksUpdateRequestStatus enum.
type V1WebhooksWebhook ¶
type V1WebhooksWebhook struct {
// AccountResourceId Resource ID of the mailbox this webhook is attached to.
AccountResourceId string `json:"accountResourceId"`
CreatedAt time.Time `json:"createdAt"`
Description *string `json:"description"`
Events []V1WebhooksWebhookEvents `json:"events"`
// Id Unique webhook identifier (UUID v7).
Id openapi_types.UUID `json:"id"`
// Mailbox Email address of the mailbox.
Mailbox string `json:"mailbox"`
Name string `json:"name"`
Status V1WebhooksWebhookStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
Url string `json:"url"`
}
V1WebhooksWebhook Webhook configured for a managed mailbox.
type V1WebhooksWebhookEvents ¶
type V1WebhooksWebhookEvents string
V1WebhooksWebhookEvents defines model for V1WebhooksWebhook.Events.
const (
V1WebhooksWebhookEventsMessageReceived V1WebhooksWebhookEvents = "message.received"
)
Defines values for V1WebhooksWebhookEvents.
func (V1WebhooksWebhookEvents) Valid ¶
func (e V1WebhooksWebhookEvents) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksWebhookEvents enum.
type V1WebhooksWebhookStatus ¶
type V1WebhooksWebhookStatus string
V1WebhooksWebhookStatus defines model for V1WebhooksWebhook.Status.
const ( V1WebhooksWebhookStatusActive V1WebhooksWebhookStatus = "active" V1WebhooksWebhookStatusDisabled V1WebhooksWebhookStatus = "disabled" V1WebhooksWebhookStatusPaused V1WebhooksWebhookStatus = "paused" )
Defines values for V1WebhooksWebhookStatus.
func (V1WebhooksWebhookStatus) Valid ¶
func (e V1WebhooksWebhookStatus) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksWebhookStatus enum.
type V1WebhooksWebhookWithSecret ¶
type V1WebhooksWebhookWithSecret struct {
// AccountResourceId Resource ID of the mailbox this webhook is attached to.
AccountResourceId string `json:"accountResourceId"`
CreatedAt time.Time `json:"createdAt"`
Description *string `json:"description"`
Events []V1WebhooksWebhookWithSecretEvents `json:"events"`
// Id Unique webhook identifier (UUID v7).
Id openapi_types.UUID `json:"id"`
// Mailbox Email address of the mailbox.
Mailbox string `json:"mailbox"`
Name string `json:"name"`
Secret *string `json:"secret,omitempty"`
Status V1WebhooksWebhookWithSecretStatus `json:"status"`
UpdatedAt time.Time `json:"updatedAt"`
Url string `json:"url"`
}
V1WebhooksWebhookWithSecret defines model for V1.Webhooks.WebhookWithSecret.
type V1WebhooksWebhookWithSecretEvents ¶
type V1WebhooksWebhookWithSecretEvents string
V1WebhooksWebhookWithSecretEvents defines model for V1WebhooksWebhookWithSecret.Events.
const (
V1WebhooksWebhookWithSecretEventsMessageReceived V1WebhooksWebhookWithSecretEvents = "message.received"
)
Defines values for V1WebhooksWebhookWithSecretEvents.
func (V1WebhooksWebhookWithSecretEvents) Valid ¶
func (e V1WebhooksWebhookWithSecretEvents) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksWebhookWithSecretEvents enum.
type V1WebhooksWebhookWithSecretStatus ¶
type V1WebhooksWebhookWithSecretStatus string
V1WebhooksWebhookWithSecretStatus defines model for V1WebhooksWebhookWithSecret.Status.
const ( V1WebhooksWebhookWithSecretStatusActive V1WebhooksWebhookWithSecretStatus = "active" V1WebhooksWebhookWithSecretStatusDisabled V1WebhooksWebhookWithSecretStatus = "disabled" V1WebhooksWebhookWithSecretStatusPaused V1WebhooksWebhookWithSecretStatus = "paused" )
Defines values for V1WebhooksWebhookWithSecretStatus.
func (V1WebhooksWebhookWithSecretStatus) Valid ¶
func (e V1WebhooksWebhookWithSecretStatus) Valid() bool
Valid indicates whether the value is a known member of the V1WebhooksWebhookWithSecretStatus enum.