Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.
Package api is the client generated from openapi/openapi.json; package exx wraps it.
Index ¶
- func NewAddSuppressionRequest(server string, body AddSuppressionJSONRequestBody) (*http.Request, error)
- func NewAddSuppressionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCancelEmailRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewCreateApiKeyRequest(server string, body CreateApiKeyJSONRequestBody) (*http.Request, error)
- func NewCreateApiKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateDomainRequest(server string, body CreateDomainJSONRequestBody) (*http.Request, error)
- func NewCreateDomainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateWebhookRequest(server string, body CreateWebhookJSONRequestBody) (*http.Request, error)
- func NewCreateWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteApiKeyRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteDomainRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewDeleteSuppressionRequest(server string, email string) (*http.Request, error)
- func NewDeleteWebhookRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetDomainRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetEmailRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewGetTranscriptRequest(server string, id openapi_types.UUID, attemptId openapi_types.UUID) (*http.Request, error)
- func NewGetWebhookRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewListApiKeysRequest(server string, params *ListApiKeysParams) (*http.Request, error)
- func NewListAttemptsRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewListDomainsRequest(server string, params *ListDomainsParams) (*http.Request, error)
- func NewListEmailsRequest(server string, params *ListEmailsParams) (*http.Request, error)
- func NewListSuppressionsRequest(server string, params *ListSuppressionsParams) (*http.Request, error)
- func NewListWebhooksRequest(server string, params *ListWebhooksParams) (*http.Request, error)
- func NewRotateWebhookSigningSecretRequest(server string, id openapi_types.UUID) (*http.Request, error)
- func NewSendBatchRequest(server string, params *SendBatchParams, body SendBatchJSONRequestBody) (*http.Request, error)
- func NewSendBatchRequestWithBody(server string, params *SendBatchParams, contentType string, body io.Reader) (*http.Request, error)
- func NewSendEmailRequest(server string, params *SendEmailParams, body SendEmailJSONRequestBody) (*http.Request, error)
- func NewSendEmailRequestWithBody(server string, params *SendEmailParams, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateDomainRequest(server string, id openapi_types.UUID, body UpdateDomainJSONRequestBody) (*http.Request, error)
- func NewUpdateDomainRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateEmailRequest(server string, id openapi_types.UUID, body UpdateEmailJSONRequestBody) (*http.Request, error)
- func NewUpdateEmailRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateWebhookRequest(server string, id openapi_types.UUID, body UpdateWebhookJSONRequestBody) (*http.Request, error)
- func NewUpdateWebhookRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
- func NewVerifyDomainRequest(server string, id openapi_types.UUID) (*http.Request, error)
- type AddSuppression
- type AddSuppressionJSONRequestBody
- type AddSuppressionResponse
- func (r AddSuppressionResponse) ContentType() string
- func (r AddSuppressionResponse) GetBody() []byte
- func (r AddSuppressionResponse) GetJSON4XX() *ErrorBody
- func (r AddSuppressionResponse) GetJSON5XX() *ErrorBody
- func (r AddSuppressionResponse) GetJSON200() *SuppressionRef
- func (r AddSuppressionResponse) Status() string
- func (r AddSuppressionResponse) StatusCode() int
- type AttachmentField
- type AttemptRecipient
- type BatchResult
- type CancelEmailResponse
- func (r CancelEmailResponse) ContentType() string
- func (r CancelEmailResponse) GetBody() []byte
- func (r CancelEmailResponse) GetJSON4XX() *ErrorBody
- func (r CancelEmailResponse) GetJSON5XX() *ErrorBody
- func (r CancelEmailResponse) GetJSON200() *EmailRef
- func (r CancelEmailResponse) Status() string
- func (r CancelEmailResponse) StatusCode() int
- type Capabilities
- type CapabilitiesView
- type Client
- func (c *Client) AddSuppression(ctx context.Context, body AddSuppressionJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) AddSuppressionWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CancelEmail(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) CreateApiKey(ctx context.Context, body CreateApiKeyJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateDomain(ctx context.Context, body CreateDomainJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateDomainWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateWebhook(ctx context.Context, body CreateWebhookJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateWebhookWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteSuppression(ctx context.Context, email string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteWebhook(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetEmail(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTranscript(ctx context.Context, id openapi_types.UUID, attemptId openapi_types.UUID, ...) (*http.Response, error)
- func (c *Client) GetWebhook(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListApiKeys(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListAttempts(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListDomains(ctx context.Context, params *ListDomainsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListEmails(ctx context.Context, params *ListEmailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListSuppressions(ctx context.Context, params *ListSuppressionsParams, ...) (*http.Response, error)
- func (c *Client) ListWebhooks(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) RotateWebhookSigningSecret(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) SendBatch(ctx context.Context, params *SendBatchParams, body SendBatchJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendBatchWithBody(ctx context.Context, params *SendBatchParams, contentType string, ...) (*http.Response, error)
- func (c *Client) SendEmail(ctx context.Context, params *SendEmailParams, body SendEmailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) SendEmailWithBody(ctx context.Context, params *SendEmailParams, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateDomain(ctx context.Context, id openapi_types.UUID, body UpdateDomainJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateDomainWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateEmail(ctx context.Context, id openapi_types.UUID, body UpdateEmailJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateEmailWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdateWebhook(ctx context.Context, id openapi_types.UUID, body UpdateWebhookJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateWebhookWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) VerifyDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddSuppressionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddSuppressionResponse, error)
- func (c *ClientWithResponses) AddSuppressionWithResponse(ctx context.Context, body AddSuppressionJSONRequestBody, ...) (*AddSuppressionResponse, error)
- func (c *ClientWithResponses) CancelEmailWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelEmailResponse, error)
- func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateApiKeyResponse, error)
- func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, body CreateApiKeyJSONRequestBody, ...) (*CreateApiKeyResponse, error)
- func (c *ClientWithResponses) CreateDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateDomainResponse, error)
- func (c *ClientWithResponses) CreateDomainWithResponse(ctx context.Context, body CreateDomainJSONRequestBody, ...) (*CreateDomainResponse, error)
- func (c *ClientWithResponses) CreateWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateWebhookResponse, error)
- func (c *ClientWithResponses) CreateWebhookWithResponse(ctx context.Context, body CreateWebhookJSONRequestBody, ...) (*CreateWebhookResponse, error)
- func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error)
- func (c *ClientWithResponses) DeleteDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDomainResponse, error)
- func (c *ClientWithResponses) DeleteSuppressionWithResponse(ctx context.Context, email string, reqEditors ...RequestEditorFn) (*DeleteSuppressionResponse, error)
- func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
- func (c *ClientWithResponses) GetDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDomainResponse, error)
- func (c *ClientWithResponses) GetEmailWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEmailResponse, error)
- func (c *ClientWithResponses) GetTranscriptWithResponse(ctx context.Context, id openapi_types.UUID, attemptId openapi_types.UUID, ...) (*GetTranscriptResponse, error)
- func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)
- func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
- func (c *ClientWithResponses) ListAttemptsWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAttemptsResponse, error)
- func (c *ClientWithResponses) ListDomainsWithResponse(ctx context.Context, params *ListDomainsParams, reqEditors ...RequestEditorFn) (*ListDomainsResponse, error)
- func (c *ClientWithResponses) ListEmailsWithResponse(ctx context.Context, params *ListEmailsParams, reqEditors ...RequestEditorFn) (*ListEmailsResponse, error)
- func (c *ClientWithResponses) ListSuppressionsWithResponse(ctx context.Context, params *ListSuppressionsParams, ...) (*ListSuppressionsResponse, error)
- func (c *ClientWithResponses) ListWebhooksWithResponse(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)
- func (c *ClientWithResponses) RotateWebhookSigningSecretWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RotateWebhookSigningSecretResponse, error)
- func (c *ClientWithResponses) SendBatchWithBodyWithResponse(ctx context.Context, params *SendBatchParams, contentType string, ...) (*SendBatchResponse, error)
- func (c *ClientWithResponses) SendBatchWithResponse(ctx context.Context, params *SendBatchParams, body SendBatchJSONRequestBody, ...) (*SendBatchResponse, error)
- func (c *ClientWithResponses) SendEmailWithBodyWithResponse(ctx context.Context, params *SendEmailParams, contentType string, ...) (*SendEmailResponse, error)
- func (c *ClientWithResponses) SendEmailWithResponse(ctx context.Context, params *SendEmailParams, body SendEmailJSONRequestBody, ...) (*SendEmailResponse, error)
- func (c *ClientWithResponses) UpdateDomainWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateDomainResponse, error)
- func (c *ClientWithResponses) UpdateDomainWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateDomainJSONRequestBody, ...) (*UpdateDomainResponse, error)
- func (c *ClientWithResponses) UpdateEmailWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateEmailResponse, error)
- func (c *ClientWithResponses) UpdateEmailWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateEmailJSONRequestBody, ...) (*UpdateEmailResponse, error)
- func (c *ClientWithResponses) UpdateWebhookWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, ...) (*UpdateWebhookResponse, error)
- func (c *ClientWithResponses) UpdateWebhookWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateWebhookJSONRequestBody, ...) (*UpdateWebhookResponse, error)
- func (c *ClientWithResponses) VerifyDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyDomainResponse, error)
- type ClientWithResponsesInterface
- type CreateApiKey
- type CreateApiKeyJSONRequestBody
- type CreateApiKeyResponse
- func (r CreateApiKeyResponse) ContentType() string
- func (r CreateApiKeyResponse) GetBody() []byte
- func (r CreateApiKeyResponse) GetJSON4XX() *ErrorBody
- func (r CreateApiKeyResponse) GetJSON5XX() *ErrorBody
- func (r CreateApiKeyResponse) GetJSON200() *CreatedApiKey
- func (r CreateApiKeyResponse) Status() string
- func (r CreateApiKeyResponse) StatusCode() int
- type CreateDomain
- type CreateDomainJSONRequestBody
- type CreateDomainResponse
- func (r CreateDomainResponse) ContentType() string
- func (r CreateDomainResponse) GetBody() []byte
- func (r CreateDomainResponse) GetJSON4XX() *ErrorBody
- func (r CreateDomainResponse) GetJSON5XX() *ErrorBody
- func (r CreateDomainResponse) GetJSON200() *DomainView
- func (r CreateDomainResponse) Status() string
- func (r CreateDomainResponse) StatusCode() int
- type CreateWebhook
- type CreateWebhookJSONRequestBody
- type CreateWebhookResponse
- func (r CreateWebhookResponse) ContentType() string
- func (r CreateWebhookResponse) GetBody() []byte
- func (r CreateWebhookResponse) GetJSON4XX() *ErrorBody
- func (r CreateWebhookResponse) GetJSON5XX() *ErrorBody
- func (r CreateWebhookResponse) GetJSON200() *CreatedWebhook
- func (r CreateWebhookResponse) Status() string
- func (r CreateWebhookResponse) StatusCode() int
- type CreatedApiKey
- type CreatedWebhook
- type DeleteApiKeyResponse
- func (r DeleteApiKeyResponse) ContentType() string
- func (r DeleteApiKeyResponse) GetBody() []byte
- func (r DeleteApiKeyResponse) GetJSON4XX() *ErrorBody
- func (r DeleteApiKeyResponse) GetJSON5XX() *ErrorBody
- func (r DeleteApiKeyResponse) GetJSON200() *Deleted
- func (r DeleteApiKeyResponse) Status() string
- func (r DeleteApiKeyResponse) StatusCode() int
- type DeleteDomainResponse
- func (r DeleteDomainResponse) ContentType() string
- func (r DeleteDomainResponse) GetBody() []byte
- func (r DeleteDomainResponse) GetJSON4XX() *ErrorBody
- func (r DeleteDomainResponse) GetJSON5XX() *ErrorBody
- func (r DeleteDomainResponse) GetJSON200() *Deleted
- func (r DeleteDomainResponse) Status() string
- func (r DeleteDomainResponse) StatusCode() int
- type DeleteSuppressionResponse
- func (r DeleteSuppressionResponse) ContentType() string
- func (r DeleteSuppressionResponse) GetBody() []byte
- func (r DeleteSuppressionResponse) GetJSON4XX() *ErrorBody
- func (r DeleteSuppressionResponse) GetJSON5XX() *ErrorBody
- func (r DeleteSuppressionResponse) GetJSON200() *SuppressionRef
- func (r DeleteSuppressionResponse) Status() string
- func (r DeleteSuppressionResponse) StatusCode() int
- type DeleteWebhookResponse
- func (r DeleteWebhookResponse) ContentType() string
- func (r DeleteWebhookResponse) GetBody() []byte
- func (r DeleteWebhookResponse) GetJSON4XX() *ErrorBody
- func (r DeleteWebhookResponse) GetJSON5XX() *ErrorBody
- func (r DeleteWebhookResponse) GetJSON200() *Deleted
- func (r DeleteWebhookResponse) Status() string
- func (r DeleteWebhookResponse) StatusCode() int
- type Deleted
- type DnsRecord
- type DomainRef
- type DomainView
- type Email
- type EmailId
- type EmailRef
- type ErrorBody
- type GetDomainResponse
- func (r GetDomainResponse) ContentType() string
- func (r GetDomainResponse) GetBody() []byte
- func (r GetDomainResponse) GetJSON4XX() *ErrorBody
- func (r GetDomainResponse) GetJSON5XX() *ErrorBody
- func (r GetDomainResponse) GetJSON200() *DomainView
- func (r GetDomainResponse) Status() string
- func (r GetDomainResponse) StatusCode() int
- type GetEmailResponse
- func (r GetEmailResponse) ContentType() string
- func (r GetEmailResponse) GetBody() []byte
- func (r GetEmailResponse) GetJSON4XX() *ErrorBody
- func (r GetEmailResponse) GetJSON5XX() *ErrorBody
- func (r GetEmailResponse) GetJSON200() *Email
- func (r GetEmailResponse) Status() string
- func (r GetEmailResponse) StatusCode() int
- type GetTranscriptResponse
- func (r GetTranscriptResponse) ContentType() string
- func (r GetTranscriptResponse) GetBody() []byte
- func (r GetTranscriptResponse) GetJSON4XX() *ErrorBody
- func (r GetTranscriptResponse) GetJSON5XX() *ErrorBody
- func (r GetTranscriptResponse) GetJSON200() *interface{}
- func (r GetTranscriptResponse) Status() string
- func (r GetTranscriptResponse) StatusCode() int
- type GetWebhookResponse
- func (r GetWebhookResponse) ContentType() string
- func (r GetWebhookResponse) GetBody() []byte
- func (r GetWebhookResponse) GetJSON4XX() *ErrorBody
- func (r GetWebhookResponse) GetJSON5XX() *ErrorBody
- func (r GetWebhookResponse) GetJSON200() *Webhook
- func (r GetWebhookResponse) Status() string
- func (r GetWebhookResponse) StatusCode() int
- type HttpRequestDoer
- type ListApiKey
- type ListApiKeysParams
- type ListApiKeysResponse
- func (r ListApiKeysResponse) ContentType() string
- func (r ListApiKeysResponse) GetBody() []byte
- func (r ListApiKeysResponse) GetJSON4XX() *ErrorBody
- func (r ListApiKeysResponse) GetJSON5XX() *ErrorBody
- func (r ListApiKeysResponse) GetJSON200() *ListApiKey
- func (r ListApiKeysResponse) Status() string
- func (r ListApiKeysResponse) StatusCode() int
- type ListAttempt
- type ListAttemptsResponse
- func (r ListAttemptsResponse) ContentType() string
- func (r ListAttemptsResponse) GetBody() []byte
- func (r ListAttemptsResponse) GetJSON4XX() *ErrorBody
- func (r ListAttemptsResponse) GetJSON5XX() *ErrorBody
- func (r ListAttemptsResponse) GetJSON200() *ListAttempt
- func (r ListAttemptsResponse) Status() string
- func (r ListAttemptsResponse) StatusCode() int
- type ListDomainView
- type ListDomainsParams
- type ListDomainsResponse
- func (r ListDomainsResponse) ContentType() string
- func (r ListDomainsResponse) GetBody() []byte
- func (r ListDomainsResponse) GetJSON4XX() *ErrorBody
- func (r ListDomainsResponse) GetJSON5XX() *ErrorBody
- func (r ListDomainsResponse) GetJSON200() *ListDomainView
- func (r ListDomainsResponse) Status() string
- func (r ListDomainsResponse) StatusCode() int
- type ListEmailSummary
- type ListEmailsParams
- type ListEmailsResponse
- func (r ListEmailsResponse) ContentType() string
- func (r ListEmailsResponse) GetBody() []byte
- func (r ListEmailsResponse) GetJSON4XX() *ErrorBody
- func (r ListEmailsResponse) GetJSON5XX() *ErrorBody
- func (r ListEmailsResponse) GetJSON200() *ListEmailSummary
- func (r ListEmailsResponse) Status() string
- func (r ListEmailsResponse) StatusCode() int
- type ListSuppression
- type ListSuppressionsParams
- type ListSuppressionsResponse
- func (r ListSuppressionsResponse) ContentType() string
- func (r ListSuppressionsResponse) GetBody() []byte
- func (r ListSuppressionsResponse) GetJSON4XX() *ErrorBody
- func (r ListSuppressionsResponse) GetJSON5XX() *ErrorBody
- func (r ListSuppressionsResponse) GetJSON200() *ListSuppression
- func (r ListSuppressionsResponse) Status() string
- func (r ListSuppressionsResponse) StatusCode() int
- type ListWebhook
- type ListWebhooksParams
- type ListWebhooksResponse
- func (r ListWebhooksResponse) ContentType() string
- func (r ListWebhooksResponse) GetBody() []byte
- func (r ListWebhooksResponse) GetJSON4XX() *ErrorBody
- func (r ListWebhooksResponse) GetJSON5XX() *ErrorBody
- func (r ListWebhooksResponse) GetJSON200() *ListWebhook
- func (r ListWebhooksResponse) Status() string
- func (r ListWebhooksResponse) StatusCode() int
- type PermissionField
- type RequestEditorFn
- type RotateWebhookSigningSecretResponse
- func (r RotateWebhookSigningSecretResponse) ContentType() string
- func (r RotateWebhookSigningSecretResponse) GetBody() []byte
- func (r RotateWebhookSigningSecretResponse) GetJSON4XX() *ErrorBody
- func (r RotateWebhookSigningSecretResponse) GetJSON5XX() *ErrorBody
- func (r RotateWebhookSigningSecretResponse) GetJSON200() *CreatedWebhook
- func (r RotateWebhookSigningSecretResponse) Status() string
- func (r RotateWebhookSigningSecretResponse) StatusCode() int
- type SendBatchJSONBody
- type SendBatchJSONRequestBody
- type SendBatchParams
- type SendBatchResponse
- func (r SendBatchResponse) ContentType() string
- func (r SendBatchResponse) GetBody() []byte
- func (r SendBatchResponse) GetJSON4XX() *ErrorBody
- func (r SendBatchResponse) GetJSON5XX() *ErrorBody
- func (r SendBatchResponse) GetJSON200() *BatchResult
- func (r SendBatchResponse) GetJSON503() *ErrorBody
- func (r SendBatchResponse) Status() string
- func (r SendBatchResponse) StatusCode() int
- type SendEmail
- type SendEmailJSONRequestBody
- type SendEmailParams
- type SendEmailResponse
- func (r SendEmailResponse) ContentType() string
- func (r SendEmailResponse) GetBody() []byte
- func (r SendEmailResponse) GetJSON4XX() *ErrorBody
- func (r SendEmailResponse) GetJSON5XX() *ErrorBody
- func (r SendEmailResponse) GetJSON200() *EmailId
- func (r SendEmailResponse) GetJSON503() *ErrorBody
- func (r SendEmailResponse) Status() string
- func (r SendEmailResponse) StatusCode() int
- type SuppressionRef
- type TagField
- type UpdateDomain
- type UpdateDomainJSONRequestBody
- type UpdateDomainResponse
- func (r UpdateDomainResponse) ContentType() string
- func (r UpdateDomainResponse) GetBody() []byte
- func (r UpdateDomainResponse) GetJSON4XX() *ErrorBody
- func (r UpdateDomainResponse) GetJSON5XX() *ErrorBody
- func (r UpdateDomainResponse) GetJSON200() *DomainRef
- func (r UpdateDomainResponse) Status() string
- func (r UpdateDomainResponse) StatusCode() int
- type UpdateEmail
- type UpdateEmailJSONRequestBody
- type UpdateEmailResponse
- func (r UpdateEmailResponse) ContentType() string
- func (r UpdateEmailResponse) GetBody() []byte
- func (r UpdateEmailResponse) GetJSON4XX() *ErrorBody
- func (r UpdateEmailResponse) GetJSON5XX() *ErrorBody
- func (r UpdateEmailResponse) GetJSON200() *EmailRef
- func (r UpdateEmailResponse) Status() string
- func (r UpdateEmailResponse) StatusCode() int
- type UpdateWebhook
- type UpdateWebhookJSONRequestBody
- type UpdateWebhookResponse
- func (r UpdateWebhookResponse) ContentType() string
- func (r UpdateWebhookResponse) GetBody() []byte
- func (r UpdateWebhookResponse) GetJSON4XX() *ErrorBody
- func (r UpdateWebhookResponse) GetJSON5XX() *ErrorBody
- func (r UpdateWebhookResponse) GetJSON200() *WebhookRef
- func (r UpdateWebhookResponse) Status() string
- func (r UpdateWebhookResponse) StatusCode() int
- type VerifyDomainResponse
- func (r VerifyDomainResponse) ContentType() string
- func (r VerifyDomainResponse) GetBody() []byte
- func (r VerifyDomainResponse) GetJSON4XX() *ErrorBody
- func (r VerifyDomainResponse) GetJSON5XX() *ErrorBody
- func (r VerifyDomainResponse) GetJSON200() *DomainRef
- func (r VerifyDomainResponse) Status() string
- func (r VerifyDomainResponse) StatusCode() int
- type Webhook
- type WebhookRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddSuppressionRequest ¶
func NewAddSuppressionRequest(server string, body AddSuppressionJSONRequestBody) (*http.Request, error)
NewAddSuppressionRequest calls the generic AddSuppression builder with application/json body
func NewAddSuppressionRequestWithBody ¶
func NewAddSuppressionRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewAddSuppressionRequestWithBody constructs an http.Request for the AddSuppression method, with any body, and a specified content type
func NewCancelEmailRequest ¶
NewCancelEmailRequest constructs an http.Request for the CancelEmail method
func NewCreateApiKeyRequest ¶
func NewCreateApiKeyRequest(server string, body CreateApiKeyJSONRequestBody) (*http.Request, error)
NewCreateApiKeyRequest calls the generic CreateApiKey builder with application/json body
func NewCreateApiKeyRequestWithBody ¶
func NewCreateApiKeyRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateApiKeyRequestWithBody constructs an http.Request for the CreateApiKey method, with any body, and a specified content type
func NewCreateDomainRequest ¶
func NewCreateDomainRequest(server string, body CreateDomainJSONRequestBody) (*http.Request, error)
NewCreateDomainRequest calls the generic CreateDomain builder with application/json body
func NewCreateDomainRequestWithBody ¶
func NewCreateDomainRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateDomainRequestWithBody constructs an http.Request for the CreateDomain method, with any body, and a specified content type
func NewCreateWebhookRequest ¶
func NewCreateWebhookRequest(server string, body CreateWebhookJSONRequestBody) (*http.Request, error)
NewCreateWebhookRequest calls the generic CreateWebhook builder with application/json body
func NewCreateWebhookRequestWithBody ¶
func NewCreateWebhookRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateWebhookRequestWithBody constructs an http.Request for the CreateWebhook method, with any body, and a specified content type
func NewDeleteApiKeyRequest ¶
NewDeleteApiKeyRequest constructs an http.Request for the DeleteApiKey method
func NewDeleteDomainRequest ¶
NewDeleteDomainRequest constructs an http.Request for the DeleteDomain method
func NewDeleteSuppressionRequest ¶
NewDeleteSuppressionRequest constructs an http.Request for the DeleteSuppression method
func NewDeleteWebhookRequest ¶
NewDeleteWebhookRequest constructs an http.Request for the DeleteWebhook method
func NewGetDomainRequest ¶
NewGetDomainRequest constructs an http.Request for the GetDomain method
func NewGetEmailRequest ¶
NewGetEmailRequest constructs an http.Request for the GetEmail method
func NewGetTranscriptRequest ¶
func NewGetTranscriptRequest(server string, id openapi_types.UUID, attemptId openapi_types.UUID) (*http.Request, error)
NewGetTranscriptRequest constructs an http.Request for the GetTranscript method
func NewGetWebhookRequest ¶
NewGetWebhookRequest constructs an http.Request for the GetWebhook method
func NewListApiKeysRequest ¶
func NewListApiKeysRequest(server string, params *ListApiKeysParams) (*http.Request, error)
NewListApiKeysRequest constructs an http.Request for the ListApiKeys method
func NewListAttemptsRequest ¶
NewListAttemptsRequest constructs an http.Request for the ListAttempts method
func NewListDomainsRequest ¶
func NewListDomainsRequest(server string, params *ListDomainsParams) (*http.Request, error)
NewListDomainsRequest constructs an http.Request for the ListDomains method
func NewListEmailsRequest ¶
func NewListEmailsRequest(server string, params *ListEmailsParams) (*http.Request, error)
NewListEmailsRequest constructs an http.Request for the ListEmails method
func NewListSuppressionsRequest ¶
func NewListSuppressionsRequest(server string, params *ListSuppressionsParams) (*http.Request, error)
NewListSuppressionsRequest constructs an http.Request for the ListSuppressions method
func NewListWebhooksRequest ¶
func NewListWebhooksRequest(server string, params *ListWebhooksParams) (*http.Request, error)
NewListWebhooksRequest constructs an http.Request for the ListWebhooks method
func NewRotateWebhookSigningSecretRequest ¶
func NewRotateWebhookSigningSecretRequest(server string, id openapi_types.UUID) (*http.Request, error)
NewRotateWebhookSigningSecretRequest constructs an http.Request for the RotateWebhookSigningSecret method
func NewSendBatchRequest ¶
func NewSendBatchRequest(server string, params *SendBatchParams, body SendBatchJSONRequestBody) (*http.Request, error)
NewSendBatchRequest calls the generic SendBatch builder with application/json body
func NewSendBatchRequestWithBody ¶
func NewSendBatchRequestWithBody(server string, params *SendBatchParams, contentType string, body io.Reader) (*http.Request, error)
NewSendBatchRequestWithBody constructs an http.Request for the SendBatch method, with any body, and a specified content type
func NewSendEmailRequest ¶
func NewSendEmailRequest(server string, params *SendEmailParams, body SendEmailJSONRequestBody) (*http.Request, error)
NewSendEmailRequest calls the generic SendEmail builder with application/json body
func NewSendEmailRequestWithBody ¶
func NewSendEmailRequestWithBody(server string, params *SendEmailParams, contentType string, body io.Reader) (*http.Request, error)
NewSendEmailRequestWithBody constructs an http.Request for the SendEmail method, with any body, and a specified content type
func NewUpdateDomainRequest ¶
func NewUpdateDomainRequest(server string, id openapi_types.UUID, body UpdateDomainJSONRequestBody) (*http.Request, error)
NewUpdateDomainRequest calls the generic UpdateDomain builder with application/json body
func NewUpdateDomainRequestWithBody ¶
func NewUpdateDomainRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateDomainRequestWithBody constructs an http.Request for the UpdateDomain method, with any body, and a specified content type
func NewUpdateEmailRequest ¶
func NewUpdateEmailRequest(server string, id openapi_types.UUID, body UpdateEmailJSONRequestBody) (*http.Request, error)
NewUpdateEmailRequest calls the generic UpdateEmail builder with application/json body
func NewUpdateEmailRequestWithBody ¶
func NewUpdateEmailRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEmailRequestWithBody constructs an http.Request for the UpdateEmail method, with any body, and a specified content type
func NewUpdateWebhookRequest ¶
func NewUpdateWebhookRequest(server string, id openapi_types.UUID, body UpdateWebhookJSONRequestBody) (*http.Request, error)
NewUpdateWebhookRequest calls the generic UpdateWebhook builder with application/json body
func NewUpdateWebhookRequestWithBody ¶
func NewUpdateWebhookRequestWithBody(server string, id openapi_types.UUID, contentType string, body io.Reader) (*http.Request, error)
NewUpdateWebhookRequestWithBody constructs an http.Request for the UpdateWebhook method, with any body, and a specified content type
func NewVerifyDomainRequest ¶
NewVerifyDomainRequest constructs an http.Request for the VerifyDomain method
Types ¶
type AddSuppression ¶
type AddSuppression struct {
Email string `json:"email"`
}
AddSuppression defines model for AddSuppression.
type AddSuppressionJSONRequestBody ¶
type AddSuppressionJSONRequestBody = AddSuppression
AddSuppressionJSONRequestBody defines body for AddSuppression for application/json ContentType.
type AddSuppressionResponse ¶
type AddSuppressionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SuppressionRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseAddSuppressionResponse ¶
func ParseAddSuppressionResponse(rsp *http.Response) (*AddSuppressionResponse, error)
ParseAddSuppressionResponse parses an HTTP response from a AddSuppressionWithResponse call
func (AddSuppressionResponse) ContentType ¶
func (r AddSuppressionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (AddSuppressionResponse) GetBody ¶
func (r AddSuppressionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (AddSuppressionResponse) GetJSON4XX ¶
func (r AddSuppressionResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (AddSuppressionResponse) GetJSON5XX ¶
func (r AddSuppressionResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (AddSuppressionResponse) GetJSON200 ¶
func (r AddSuppressionResponse) GetJSON200() *SuppressionRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (AddSuppressionResponse) Status ¶
func (r AddSuppressionResponse) Status() string
Status returns HTTPResponse.Status
func (AddSuppressionResponse) StatusCode ¶
func (r AddSuppressionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AttachmentField ¶
type AttachmentField struct {
// Content Base64.
Content *string `json:"content,omitempty"`
ContentId *string `json:"content_id,omitempty"`
ContentType *string `json:"content_type,omitempty"`
Filename *string `json:"filename,omitempty"`
// Path An https URL fetched instead of `content`.
Path *string `json:"path,omitempty"`
}
AttachmentField defines model for AttachmentField.
type AttemptRecipient ¶
type AttemptRecipient struct {
Class string `json:"class"`
Email string `json:"email"`
EnhancedCode *string `json:"enhanced_code,omitempty"`
SmtpCode *int32 `json:"smtp_code,omitempty"`
Text *string `json:"text,omitempty"`
}
AttemptRecipient defines model for AttemptRecipient.
type BatchResult ¶
type BatchResult struct {
Data []EmailId `json:"data"`
}
BatchResult defines model for BatchResult.
type CancelEmailResponse ¶
type CancelEmailResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EmailRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseCancelEmailResponse ¶
func ParseCancelEmailResponse(rsp *http.Response) (*CancelEmailResponse, error)
ParseCancelEmailResponse parses an HTTP response from a CancelEmailWithResponse call
func (CancelEmailResponse) ContentType ¶
func (r CancelEmailResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CancelEmailResponse) GetBody ¶
func (r CancelEmailResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CancelEmailResponse) GetJSON4XX ¶
func (r CancelEmailResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (CancelEmailResponse) GetJSON5XX ¶
func (r CancelEmailResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (CancelEmailResponse) GetJSON200 ¶
func (r CancelEmailResponse) GetJSON200() *EmailRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CancelEmailResponse) Status ¶
func (r CancelEmailResponse) Status() string
Status returns HTTPResponse.Status
func (CancelEmailResponse) StatusCode ¶
func (r CancelEmailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Capabilities ¶
type Capabilities struct {
Receiving *string `json:"receiving,omitempty"`
Sending *string `json:"sending,omitempty"`
}
Capabilities defines model for Capabilities.
type CapabilitiesView ¶
type CapabilitiesView struct {
Receiving string `json:"receiving"`
Sending string `json:"sending"`
}
CapabilitiesView defines model for CapabilitiesView.
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) AddSuppression ¶
func (c *Client) AddSuppression(ctx context.Context, body AddSuppressionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
AddSuppression Add a suppression
Takes a body of the `application/json` content type.
Corresponds with POST /suppressions (the `AddSuppression` operationId).
func (*Client) AddSuppressionWithBody ¶
func (c *Client) AddSuppressionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddSuppressionWithBody Add a suppression
Takes any type of body and a specified content type.
Corresponds with POST /suppressions (the `AddSuppression` operationId).
func (*Client) CancelEmail ¶
func (c *Client) CancelEmail(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
CancelEmail Cancel a scheduled email
Corresponds with POST /emails/{id}/cancel (the `CancelEmail` operationId).
func (*Client) CreateApiKey ¶
func (c *Client) CreateApiKey(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateApiKey Create an API key
Takes a body of the `application/json` content type.
Corresponds with POST /api-keys (the `CreateApiKey` operationId).
func (*Client) CreateApiKeyWithBody ¶
func (c *Client) CreateApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateApiKeyWithBody Create an API key
Takes any type of body and a specified content type.
Corresponds with POST /api-keys (the `CreateApiKey` operationId).
func (*Client) CreateDomain ¶
func (c *Client) CreateDomain(ctx context.Context, body CreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDomain Add a domain
Takes a body of the `application/json` content type.
Corresponds with POST /domains (the `CreateDomain` operationId).
func (*Client) CreateDomainWithBody ¶
func (c *Client) CreateDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateDomainWithBody Add a domain
Takes any type of body and a specified content type.
Corresponds with POST /domains (the `CreateDomain` operationId).
func (*Client) CreateWebhook ¶
func (c *Client) CreateWebhook(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateWebhook Create a webhook
Takes a body of the `application/json` content type.
Corresponds with POST /webhooks (the `CreateWebhook` operationId).
func (*Client) CreateWebhookWithBody ¶
func (c *Client) CreateWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateWebhookWithBody Create a webhook
Takes any type of body and a specified content type.
Corresponds with POST /webhooks (the `CreateWebhook` operationId).
func (*Client) DeleteApiKey ¶
func (c *Client) DeleteApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteApiKey Delete an API key
Corresponds with DELETE /api-keys/{id} (the `DeleteApiKey` operationId).
func (*Client) DeleteDomain ¶
func (c *Client) DeleteDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteDomain Remove a domain
Corresponds with DELETE /domains/{id} (the `DeleteDomain` operationId).
func (*Client) DeleteSuppression ¶
func (c *Client) DeleteSuppression(ctx context.Context, email string, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteSuppression Remove a suppression
Corresponds with DELETE /suppressions/{email} (the `DeleteSuppression` operationId).
func (*Client) DeleteWebhook ¶
func (c *Client) DeleteWebhook(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
DeleteWebhook Delete a webhook
Corresponds with DELETE /webhooks/{id} (the `DeleteWebhook` operationId).
func (*Client) GetDomain ¶
func (c *Client) GetDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetDomain Retrieve a domain
Corresponds with GET /domains/{id} (the `GetDomain` operationId).
func (*Client) GetEmail ¶
func (c *Client) GetEmail(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetEmail Retrieve an email
Corresponds with GET /emails/{id} (the `GetEmail` operationId).
func (*Client) GetTranscript ¶
func (c *Client) GetTranscript(ctx context.Context, id openapi_types.UUID, attemptId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetTranscript Retrieve an SMTP transcript
Corresponds with GET /emails/{id}/attempts/{attempt_id}/transcript (the `GetTranscript` operationId).
func (*Client) GetWebhook ¶
func (c *Client) GetWebhook(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
GetWebhook Retrieve a webhook
Corresponds with GET /webhooks/{id} (the `GetWebhook` operationId).
func (*Client) ListApiKeys ¶
func (c *Client) ListApiKeys(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListApiKeys List API keys
Corresponds with GET /api-keys (the `ListApiKeys` operationId).
func (*Client) ListAttempts ¶
func (c *Client) ListAttempts(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
ListAttempts List delivery attempts
Corresponds with GET /emails/{id}/attempts (the `ListAttempts` operationId).
func (*Client) ListDomains ¶
func (c *Client) ListDomains(ctx context.Context, params *ListDomainsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListDomains List domains
Corresponds with GET /domains (the `ListDomains` operationId).
func (*Client) ListEmails ¶
func (c *Client) ListEmails(ctx context.Context, params *ListEmailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListEmails List emails
Corresponds with GET /emails (the `ListEmails` operationId).
func (*Client) ListSuppressions ¶
func (c *Client) ListSuppressions(ctx context.Context, params *ListSuppressionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListSuppressions List suppressions
Corresponds with GET /suppressions (the `ListSuppressions` operationId).
func (*Client) ListWebhooks ¶
func (c *Client) ListWebhooks(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
ListWebhooks List webhooks
Corresponds with GET /webhooks (the `ListWebhooks` operationId).
func (*Client) RotateWebhookSigningSecret ¶
func (c *Client) RotateWebhookSigningSecret(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
RotateWebhookSigningSecret Rotate a webhook's signing secret
A new signing secret; the previous one keeps signing next to it for the rotation overlap (24 h).
Corresponds with POST /webhooks/{id}/signing-secret/rotate (the `RotateWebhookSigningSecret` operationId).
func (*Client) SendBatch ¶
func (c *Client) SendBatch(ctx context.Context, params *SendBatchParams, body SendBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SendBatch Send a batch of emails
Takes a body of the `application/json` content type.
Corresponds with POST /emails/batch (the `SendBatch` operationId).
func (*Client) SendBatchWithBody ¶
func (c *Client) SendBatchWithBody(ctx context.Context, params *SendBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendBatchWithBody Send a batch of emails
Takes any type of body and a specified content type.
Corresponds with POST /emails/batch (the `SendBatch` operationId).
func (*Client) SendEmail ¶
func (c *Client) SendEmail(ctx context.Context, params *SendEmailParams, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
SendEmail Send an email
Takes a body of the `application/json` content type.
Corresponds with POST /emails (the `SendEmail` operationId).
func (*Client) SendEmailWithBody ¶
func (c *Client) SendEmailWithBody(ctx context.Context, params *SendEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
SendEmailWithBody Send an email
Takes any type of body and a specified content type.
Corresponds with POST /emails (the `SendEmail` operationId).
func (*Client) UpdateDomain ¶
func (c *Client) UpdateDomain(ctx context.Context, id openapi_types.UUID, body UpdateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDomain Update a domain
Takes a body of the `application/json` content type.
Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
func (*Client) UpdateDomainWithBody ¶
func (c *Client) UpdateDomainWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateDomainWithBody Update a domain
Takes any type of body and a specified content type.
Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
func (*Client) UpdateEmail ¶
func (c *Client) UpdateEmail(ctx context.Context, id openapi_types.UUID, body UpdateEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEmail Reschedule an email
Takes a body of the `application/json` content type.
Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
func (*Client) UpdateEmailWithBody ¶
func (c *Client) UpdateEmailWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEmailWithBody Reschedule an email
Takes any type of body and a specified content type.
Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
func (*Client) UpdateWebhook ¶
func (c *Client) UpdateWebhook(ctx context.Context, id openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateWebhook Update a webhook
Takes a body of the `application/json` content type.
Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
func (*Client) UpdateWebhookWithBody ¶
func (c *Client) UpdateWebhookWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateWebhookWithBody Update a webhook
Takes any type of body and a specified content type.
Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
func (*Client) VerifyDomain ¶
func (c *Client) VerifyDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
VerifyDomain Verify a domain
Corresponds with POST /domains/{id}/verify (the `VerifyDomain` operationId).
type ClientInterface ¶
type ClientInterface interface {
// ListApiKeys List API keys
//
// Corresponds with GET /api-keys (the `ListApiKeys` operationId).
ListApiKeys(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateApiKeyWithBody Create an API key
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /api-keys (the `CreateApiKey` operationId).
CreateApiKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateApiKey Create an API key
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /api-keys (the `CreateApiKey` operationId).
CreateApiKey(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteApiKey Delete an API key
//
// Corresponds with DELETE /api-keys/{id} (the `DeleteApiKey` operationId).
DeleteApiKey(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListDomains List domains
//
// Corresponds with GET /domains (the `ListDomains` operationId).
ListDomains(ctx context.Context, params *ListDomainsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDomainWithBody Add a domain
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /domains (the `CreateDomain` operationId).
CreateDomainWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateDomain Add a domain
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /domains (the `CreateDomain` operationId).
CreateDomain(ctx context.Context, body CreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteDomain Remove a domain
//
// Corresponds with DELETE /domains/{id} (the `DeleteDomain` operationId).
DeleteDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetDomain Retrieve a domain
//
// Corresponds with GET /domains/{id} (the `GetDomain` operationId).
GetDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDomainWithBody Update a domain
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
UpdateDomainWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateDomain Update a domain
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
UpdateDomain(ctx context.Context, id openapi_types.UUID, body UpdateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// VerifyDomain Verify a domain
//
// Corresponds with POST /domains/{id}/verify (the `VerifyDomain` operationId).
VerifyDomain(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEmails List emails
//
// Corresponds with GET /emails (the `ListEmails` operationId).
ListEmails(ctx context.Context, params *ListEmailsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendEmailWithBody Send an email
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /emails (the `SendEmail` operationId).
SendEmailWithBody(ctx context.Context, params *SendEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendEmail Send an email
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /emails (the `SendEmail` operationId).
SendEmail(ctx context.Context, params *SendEmailParams, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendBatchWithBody Send a batch of emails
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /emails/batch (the `SendBatch` operationId).
SendBatchWithBody(ctx context.Context, params *SendBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// SendBatch Send a batch of emails
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /emails/batch (the `SendBatch` operationId).
SendBatch(ctx context.Context, params *SendBatchParams, body SendBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEmail Retrieve an email
//
// Corresponds with GET /emails/{id} (the `GetEmail` operationId).
GetEmail(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEmailWithBody Reschedule an email
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
UpdateEmailWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEmail Reschedule an email
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
UpdateEmail(ctx context.Context, id openapi_types.UUID, body UpdateEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListAttempts List delivery attempts
//
// Corresponds with GET /emails/{id}/attempts (the `ListAttempts` operationId).
ListAttempts(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTranscript Retrieve an SMTP transcript
//
// Corresponds with GET /emails/{id}/attempts/{attempt_id}/transcript (the `GetTranscript` operationId).
GetTranscript(ctx context.Context, id openapi_types.UUID, attemptId openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// CancelEmail Cancel a scheduled email
//
// Corresponds with POST /emails/{id}/cancel (the `CancelEmail` operationId).
CancelEmail(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListSuppressions List suppressions
//
// Corresponds with GET /suppressions (the `ListSuppressions` operationId).
ListSuppressions(ctx context.Context, params *ListSuppressionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddSuppressionWithBody Add a suppression
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /suppressions (the `AddSuppression` operationId).
AddSuppressionWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddSuppression Add a suppression
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /suppressions (the `AddSuppression` operationId).
AddSuppression(ctx context.Context, body AddSuppressionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteSuppression Remove a suppression
//
// Corresponds with DELETE /suppressions/{email} (the `DeleteSuppression` operationId).
DeleteSuppression(ctx context.Context, email string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListWebhooks List webhooks
//
// Corresponds with GET /webhooks (the `ListWebhooks` operationId).
ListWebhooks(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateWebhookWithBody Create a webhook
//
// Takes any type of body and a specified content type.
//
// Corresponds with POST /webhooks (the `CreateWebhook` operationId).
CreateWebhookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateWebhook Create a webhook
//
// Takes a body of the `application/json` content type.
//
// Corresponds with POST /webhooks (the `CreateWebhook` operationId).
CreateWebhook(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteWebhook Delete a webhook
//
// Corresponds with DELETE /webhooks/{id} (the `DeleteWebhook` operationId).
DeleteWebhook(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetWebhook Retrieve a webhook
//
// Corresponds with GET /webhooks/{id} (the `GetWebhook` operationId).
GetWebhook(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateWebhookWithBody Update a webhook
//
// Takes any type of body and a specified content type.
//
// Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
UpdateWebhookWithBody(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateWebhook Update a webhook
//
// Takes a body of the `application/json` content type.
//
// Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
UpdateWebhook(ctx context.Context, id openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// RotateWebhookSigningSecret Rotate a webhook's signing secret
//
// A new signing secret; the previous one keeps signing next to it for the rotation overlap (24 h).
//
// Corresponds with POST /webhooks/{id}/signing-secret/rotate (the `RotateWebhookSigningSecret` operationId).
RotateWebhookSigningSecret(ctx context.Context, id openapi_types.UUID, 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) AddSuppressionWithBodyWithResponse ¶
func (c *ClientWithResponses) AddSuppressionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSuppressionResponse, error)
AddSuppressionWithBodyWithResponse Add a suppression
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /suppressions (the `AddSuppression` operationId).
func (*ClientWithResponses) AddSuppressionWithResponse ¶
func (c *ClientWithResponses) AddSuppressionWithResponse(ctx context.Context, body AddSuppressionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSuppressionResponse, error)
AddSuppressionWithResponse Add a suppression
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /suppressions (the `AddSuppression` operationId).
func (*ClientWithResponses) CancelEmailWithResponse ¶
func (c *ClientWithResponses) CancelEmailWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelEmailResponse, error)
CancelEmailWithResponse Cancel a scheduled email
Returns a wrapper object for the known response body format(s).
Corresponds with POST /emails/{id}/cancel (the `CancelEmail` operationId).
func (*ClientWithResponses) CreateApiKeyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)
CreateApiKeyWithBodyWithResponse Create an API key
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api-keys (the `CreateApiKey` operationId).
func (*ClientWithResponses) CreateApiKeyWithResponse ¶
func (c *ClientWithResponses) CreateApiKeyWithResponse(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)
CreateApiKeyWithResponse Create an API key
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /api-keys (the `CreateApiKey` operationId).
func (*ClientWithResponses) CreateDomainWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDomainResponse, error)
CreateDomainWithBodyWithResponse Add a domain
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /domains (the `CreateDomain` operationId).
func (*ClientWithResponses) CreateDomainWithResponse ¶
func (c *ClientWithResponses) CreateDomainWithResponse(ctx context.Context, body CreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDomainResponse, error)
CreateDomainWithResponse Add a domain
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /domains (the `CreateDomain` operationId).
func (*ClientWithResponses) CreateWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
CreateWebhookWithBodyWithResponse Create a webhook
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /webhooks (the `CreateWebhook` operationId).
func (*ClientWithResponses) CreateWebhookWithResponse ¶
func (c *ClientWithResponses) CreateWebhookWithResponse(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
CreateWebhookWithResponse Create a webhook
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /webhooks (the `CreateWebhook` operationId).
func (*ClientWithResponses) DeleteApiKeyWithResponse ¶
func (c *ClientWithResponses) DeleteApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error)
DeleteApiKeyWithResponse Delete an API key
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /api-keys/{id} (the `DeleteApiKey` operationId).
func (*ClientWithResponses) DeleteDomainWithResponse ¶
func (c *ClientWithResponses) DeleteDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDomainResponse, error)
DeleteDomainWithResponse Remove a domain
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /domains/{id} (the `DeleteDomain` operationId).
func (*ClientWithResponses) DeleteSuppressionWithResponse ¶
func (c *ClientWithResponses) DeleteSuppressionWithResponse(ctx context.Context, email string, reqEditors ...RequestEditorFn) (*DeleteSuppressionResponse, error)
DeleteSuppressionWithResponse Remove a suppression
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /suppressions/{email} (the `DeleteSuppression` operationId).
func (*ClientWithResponses) DeleteWebhookWithResponse ¶
func (c *ClientWithResponses) DeleteWebhookWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
DeleteWebhookWithResponse Delete a webhook
Returns a wrapper object for the known response body format(s).
Corresponds with DELETE /webhooks/{id} (the `DeleteWebhook` operationId).
func (*ClientWithResponses) GetDomainWithResponse ¶
func (c *ClientWithResponses) GetDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDomainResponse, error)
GetDomainWithResponse Retrieve a domain
Returns a wrapper object for the known response body format(s).
Corresponds with GET /domains/{id} (the `GetDomain` operationId).
func (*ClientWithResponses) GetEmailWithResponse ¶
func (c *ClientWithResponses) GetEmailWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEmailResponse, error)
GetEmailWithResponse Retrieve an email
Returns a wrapper object for the known response body format(s).
Corresponds with GET /emails/{id} (the `GetEmail` operationId).
func (*ClientWithResponses) GetTranscriptWithResponse ¶
func (c *ClientWithResponses) GetTranscriptWithResponse(ctx context.Context, id openapi_types.UUID, attemptId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTranscriptResponse, error)
GetTranscriptWithResponse Retrieve an SMTP transcript
Returns a wrapper object for the known response body format(s).
Corresponds with GET /emails/{id}/attempts/{attempt_id}/transcript (the `GetTranscript` operationId).
func (*ClientWithResponses) GetWebhookWithResponse ¶
func (c *ClientWithResponses) GetWebhookWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)
GetWebhookWithResponse Retrieve a webhook
Returns a wrapper object for the known response body format(s).
Corresponds with GET /webhooks/{id} (the `GetWebhook` operationId).
func (*ClientWithResponses) ListApiKeysWithResponse ¶
func (c *ClientWithResponses) ListApiKeysWithResponse(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
ListApiKeysWithResponse List API keys
Returns a wrapper object for the known response body format(s).
Corresponds with GET /api-keys (the `ListApiKeys` operationId).
func (*ClientWithResponses) ListAttemptsWithResponse ¶
func (c *ClientWithResponses) ListAttemptsWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAttemptsResponse, error)
ListAttemptsWithResponse List delivery attempts
Returns a wrapper object for the known response body format(s).
Corresponds with GET /emails/{id}/attempts (the `ListAttempts` operationId).
func (*ClientWithResponses) ListDomainsWithResponse ¶
func (c *ClientWithResponses) ListDomainsWithResponse(ctx context.Context, params *ListDomainsParams, reqEditors ...RequestEditorFn) (*ListDomainsResponse, error)
ListDomainsWithResponse List domains
Returns a wrapper object for the known response body format(s).
Corresponds with GET /domains (the `ListDomains` operationId).
func (*ClientWithResponses) ListEmailsWithResponse ¶
func (c *ClientWithResponses) ListEmailsWithResponse(ctx context.Context, params *ListEmailsParams, reqEditors ...RequestEditorFn) (*ListEmailsResponse, error)
ListEmailsWithResponse List emails
Returns a wrapper object for the known response body format(s).
Corresponds with GET /emails (the `ListEmails` operationId).
func (*ClientWithResponses) ListSuppressionsWithResponse ¶
func (c *ClientWithResponses) ListSuppressionsWithResponse(ctx context.Context, params *ListSuppressionsParams, reqEditors ...RequestEditorFn) (*ListSuppressionsResponse, error)
ListSuppressionsWithResponse List suppressions
Returns a wrapper object for the known response body format(s).
Corresponds with GET /suppressions (the `ListSuppressions` operationId).
func (*ClientWithResponses) ListWebhooksWithResponse ¶
func (c *ClientWithResponses) ListWebhooksWithResponse(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)
ListWebhooksWithResponse List webhooks
Returns a wrapper object for the known response body format(s).
Corresponds with GET /webhooks (the `ListWebhooks` operationId).
func (*ClientWithResponses) RotateWebhookSigningSecretWithResponse ¶
func (c *ClientWithResponses) RotateWebhookSigningSecretWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RotateWebhookSigningSecretResponse, error)
RotateWebhookSigningSecretWithResponse Rotate a webhook's signing secret
A new signing secret; the previous one keeps signing next to it for the rotation overlap (24 h).
Returns a wrapper object for the known response body format(s).
Corresponds with POST /webhooks/{id}/signing-secret/rotate (the `RotateWebhookSigningSecret` operationId).
func (*ClientWithResponses) SendBatchWithBodyWithResponse ¶
func (c *ClientWithResponses) SendBatchWithBodyWithResponse(ctx context.Context, params *SendBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendBatchResponse, error)
SendBatchWithBodyWithResponse Send a batch of emails
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /emails/batch (the `SendBatch` operationId).
func (*ClientWithResponses) SendBatchWithResponse ¶
func (c *ClientWithResponses) SendBatchWithResponse(ctx context.Context, params *SendBatchParams, body SendBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SendBatchResponse, error)
SendBatchWithResponse Send a batch of emails
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /emails/batch (the `SendBatch` operationId).
func (*ClientWithResponses) SendEmailWithBodyWithResponse ¶
func (c *ClientWithResponses) SendEmailWithBodyWithResponse(ctx context.Context, params *SendEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
SendEmailWithBodyWithResponse Send an email
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /emails (the `SendEmail` operationId).
func (*ClientWithResponses) SendEmailWithResponse ¶
func (c *ClientWithResponses) SendEmailWithResponse(ctx context.Context, params *SendEmailParams, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
SendEmailWithResponse Send an email
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with POST /emails (the `SendEmail` operationId).
func (*ClientWithResponses) UpdateDomainWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateDomainWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDomainResponse, error)
UpdateDomainWithBodyWithResponse Update a domain
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
func (*ClientWithResponses) UpdateDomainWithResponse ¶
func (c *ClientWithResponses) UpdateDomainWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDomainResponse, error)
UpdateDomainWithResponse Update a domain
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
func (*ClientWithResponses) UpdateEmailWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEmailWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailResponse, error)
UpdateEmailWithBodyWithResponse Reschedule an email
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
func (*ClientWithResponses) UpdateEmailWithResponse ¶
func (c *ClientWithResponses) UpdateEmailWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailResponse, error)
UpdateEmailWithResponse Reschedule an email
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
func (*ClientWithResponses) UpdateWebhookWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateWebhookWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
UpdateWebhookWithBodyWithResponse Update a webhook
Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
func (*ClientWithResponses) UpdateWebhookWithResponse ¶
func (c *ClientWithResponses) UpdateWebhookWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
UpdateWebhookWithResponse Update a webhook
Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
func (*ClientWithResponses) VerifyDomainWithResponse ¶
func (c *ClientWithResponses) VerifyDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyDomainResponse, error)
VerifyDomainWithResponse Verify a domain
Returns a wrapper object for the known response body format(s).
Corresponds with POST /domains/{id}/verify (the `VerifyDomain` operationId).
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListApiKeysWithResponse List API keys
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /api-keys (the `ListApiKeys` operationId).
ListApiKeysWithResponse(ctx context.Context, params *ListApiKeysParams, reqEditors ...RequestEditorFn) (*ListApiKeysResponse, error)
// CreateApiKeyWithBodyWithResponse Create an API key
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api-keys (the `CreateApiKey` operationId).
CreateApiKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)
// CreateApiKeyWithResponse Create an API key
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /api-keys (the `CreateApiKey` operationId).
CreateApiKeyWithResponse(ctx context.Context, body CreateApiKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateApiKeyResponse, error)
// DeleteApiKeyWithResponse Delete an API key
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /api-keys/{id} (the `DeleteApiKey` operationId).
DeleteApiKeyWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteApiKeyResponse, error)
// ListDomainsWithResponse List domains
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /domains (the `ListDomains` operationId).
ListDomainsWithResponse(ctx context.Context, params *ListDomainsParams, reqEditors ...RequestEditorFn) (*ListDomainsResponse, error)
// CreateDomainWithBodyWithResponse Add a domain
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /domains (the `CreateDomain` operationId).
CreateDomainWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDomainResponse, error)
// CreateDomainWithResponse Add a domain
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /domains (the `CreateDomain` operationId).
CreateDomainWithResponse(ctx context.Context, body CreateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDomainResponse, error)
// DeleteDomainWithResponse Remove a domain
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /domains/{id} (the `DeleteDomain` operationId).
DeleteDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteDomainResponse, error)
// GetDomainWithResponse Retrieve a domain
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /domains/{id} (the `GetDomain` operationId).
GetDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetDomainResponse, error)
// UpdateDomainWithBodyWithResponse Update a domain
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
UpdateDomainWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateDomainResponse, error)
// UpdateDomainWithResponse Update a domain
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /domains/{id} (the `UpdateDomain` operationId).
UpdateDomainWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateDomainJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateDomainResponse, error)
// VerifyDomainWithResponse Verify a domain
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /domains/{id}/verify (the `VerifyDomain` operationId).
VerifyDomainWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*VerifyDomainResponse, error)
// ListEmailsWithResponse List emails
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /emails (the `ListEmails` operationId).
ListEmailsWithResponse(ctx context.Context, params *ListEmailsParams, reqEditors ...RequestEditorFn) (*ListEmailsResponse, error)
// SendEmailWithBodyWithResponse Send an email
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /emails (the `SendEmail` operationId).
SendEmailWithBodyWithResponse(ctx context.Context, params *SendEmailParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
// SendEmailWithResponse Send an email
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /emails (the `SendEmail` operationId).
SendEmailWithResponse(ctx context.Context, params *SendEmailParams, body SendEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*SendEmailResponse, error)
// SendBatchWithBodyWithResponse Send a batch of emails
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /emails/batch (the `SendBatch` operationId).
SendBatchWithBodyWithResponse(ctx context.Context, params *SendBatchParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SendBatchResponse, error)
// SendBatchWithResponse Send a batch of emails
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /emails/batch (the `SendBatch` operationId).
SendBatchWithResponse(ctx context.Context, params *SendBatchParams, body SendBatchJSONRequestBody, reqEditors ...RequestEditorFn) (*SendBatchResponse, error)
// GetEmailWithResponse Retrieve an email
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /emails/{id} (the `GetEmail` operationId).
GetEmailWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetEmailResponse, error)
// UpdateEmailWithBodyWithResponse Reschedule an email
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
UpdateEmailWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEmailResponse, error)
// UpdateEmailWithResponse Reschedule an email
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /emails/{id} (the `UpdateEmail` operationId).
UpdateEmailWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateEmailJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEmailResponse, error)
// ListAttemptsWithResponse List delivery attempts
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /emails/{id}/attempts (the `ListAttempts` operationId).
ListAttemptsWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*ListAttemptsResponse, error)
// GetTranscriptWithResponse Retrieve an SMTP transcript
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /emails/{id}/attempts/{attempt_id}/transcript (the `GetTranscript` operationId).
GetTranscriptWithResponse(ctx context.Context, id openapi_types.UUID, attemptId openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetTranscriptResponse, error)
// CancelEmailWithResponse Cancel a scheduled email
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /emails/{id}/cancel (the `CancelEmail` operationId).
CancelEmailWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*CancelEmailResponse, error)
// ListSuppressionsWithResponse List suppressions
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /suppressions (the `ListSuppressions` operationId).
ListSuppressionsWithResponse(ctx context.Context, params *ListSuppressionsParams, reqEditors ...RequestEditorFn) (*ListSuppressionsResponse, error)
// AddSuppressionWithBodyWithResponse Add a suppression
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /suppressions (the `AddSuppression` operationId).
AddSuppressionWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddSuppressionResponse, error)
// AddSuppressionWithResponse Add a suppression
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /suppressions (the `AddSuppression` operationId).
AddSuppressionWithResponse(ctx context.Context, body AddSuppressionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddSuppressionResponse, error)
// DeleteSuppressionWithResponse Remove a suppression
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /suppressions/{email} (the `DeleteSuppression` operationId).
DeleteSuppressionWithResponse(ctx context.Context, email string, reqEditors ...RequestEditorFn) (*DeleteSuppressionResponse, error)
// ListWebhooksWithResponse List webhooks
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /webhooks (the `ListWebhooks` operationId).
ListWebhooksWithResponse(ctx context.Context, params *ListWebhooksParams, reqEditors ...RequestEditorFn) (*ListWebhooksResponse, error)
// CreateWebhookWithBodyWithResponse Create a webhook
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /webhooks (the `CreateWebhook` operationId).
CreateWebhookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
// CreateWebhookWithResponse Create a webhook
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /webhooks (the `CreateWebhook` operationId).
CreateWebhookWithResponse(ctx context.Context, body CreateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWebhookResponse, error)
// DeleteWebhookWithResponse Delete a webhook
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with DELETE /webhooks/{id} (the `DeleteWebhook` operationId).
DeleteWebhookWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*DeleteWebhookResponse, error)
// GetWebhookWithResponse Retrieve a webhook
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with GET /webhooks/{id} (the `GetWebhook` operationId).
GetWebhookWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*GetWebhookResponse, error)
// UpdateWebhookWithBodyWithResponse Update a webhook
//
// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
UpdateWebhookWithBodyWithResponse(ctx context.Context, id openapi_types.UUID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
// UpdateWebhookWithResponse Update a webhook
//
// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
//
// Corresponds with PATCH /webhooks/{id} (the `UpdateWebhook` operationId).
UpdateWebhookWithResponse(ctx context.Context, id openapi_types.UUID, body UpdateWebhookJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateWebhookResponse, error)
// RotateWebhookSigningSecretWithResponse Rotate a webhook's signing secret
//
// A new signing secret; the previous one keeps signing next to it for the rotation overlap (24 h).
//
// Returns a wrapper object for the known response body format(s).
//
// Corresponds with POST /webhooks/{id}/signing-secret/rotate (the `RotateWebhookSigningSecret` operationId).
RotateWebhookSigningSecretWithResponse(ctx context.Context, id openapi_types.UUID, reqEditors ...RequestEditorFn) (*RotateWebhookSigningSecretResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateApiKey ¶
type CreateApiKey struct {
// DomainId Restricts a `sending_access` key to one domain.
DomainId *openapi_types.UUID `json:"domain_id,omitempty"`
// Name At most 50 characters.
Name string `json:"name"`
Permission *PermissionField `json:"permission,omitempty"`
}
CreateApiKey defines model for CreateApiKey.
type CreateApiKeyJSONRequestBody ¶
type CreateApiKeyJSONRequestBody = CreateApiKey
CreateApiKeyJSONRequestBody defines body for CreateApiKey for application/json ContentType.
type CreateApiKeyResponse ¶
type CreateApiKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreatedApiKey
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseCreateApiKeyResponse ¶
func ParseCreateApiKeyResponse(rsp *http.Response) (*CreateApiKeyResponse, error)
ParseCreateApiKeyResponse parses an HTTP response from a CreateApiKeyWithResponse call
func (CreateApiKeyResponse) ContentType ¶
func (r CreateApiKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateApiKeyResponse) GetBody ¶
func (r CreateApiKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateApiKeyResponse) GetJSON4XX ¶
func (r CreateApiKeyResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (CreateApiKeyResponse) GetJSON5XX ¶
func (r CreateApiKeyResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (CreateApiKeyResponse) GetJSON200 ¶
func (r CreateApiKeyResponse) GetJSON200() *CreatedApiKey
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateApiKeyResponse) Status ¶
func (r CreateApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (CreateApiKeyResponse) StatusCode ¶
func (r CreateApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateDomain ¶
type CreateDomain struct {
Capabilities *Capabilities `json:"capabilities,omitempty"`
ClickTracking *bool `json:"click_tracking,omitempty"`
// CustomReturnPath The return-path label (default `bounces`).
CustomReturnPath *string `json:"custom_return_path,omitempty"`
Name string `json:"name"`
OpenTracking *bool `json:"open_tracking,omitempty"`
// Region Only `eu-west-1`.
Region *string `json:"region,omitempty"`
// Tls Only `opportunistic`.
Tls *string `json:"tls,omitempty"`
TrackingSubdomain *string `json:"tracking_subdomain,omitempty"`
}
CreateDomain defines model for CreateDomain.
type CreateDomainJSONRequestBody ¶
type CreateDomainJSONRequestBody = CreateDomain
CreateDomainJSONRequestBody defines body for CreateDomain for application/json ContentType.
type CreateDomainResponse ¶
type CreateDomainResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainView
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseCreateDomainResponse ¶
func ParseCreateDomainResponse(rsp *http.Response) (*CreateDomainResponse, error)
ParseCreateDomainResponse parses an HTTP response from a CreateDomainWithResponse call
func (CreateDomainResponse) ContentType ¶
func (r CreateDomainResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (CreateDomainResponse) GetBody ¶
func (r CreateDomainResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateDomainResponse) GetJSON4XX ¶
func (r CreateDomainResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (CreateDomainResponse) GetJSON5XX ¶
func (r CreateDomainResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (CreateDomainResponse) GetJSON200 ¶
func (r CreateDomainResponse) GetJSON200() *DomainView
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (CreateDomainResponse) Status ¶
func (r CreateDomainResponse) Status() string
Status returns HTTPResponse.Status
func (CreateDomainResponse) StatusCode ¶
func (r CreateDomainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateWebhook ¶
type CreateWebhook struct {
// Endpoint The https URL events are posted to.
Endpoint string `json:"endpoint"`
// Events Event types, e.g. `email.delivered`.
Events []string `json:"events"`
}
CreateWebhook defines model for CreateWebhook.
type CreateWebhookJSONRequestBody ¶
type CreateWebhookJSONRequestBody = CreateWebhook
CreateWebhookJSONRequestBody defines body for CreateWebhook for application/json ContentType.
type CreateWebhookResponse ¶
type CreateWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreatedWebhook
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
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) GetBody ¶
func (r CreateWebhookResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (CreateWebhookResponse) GetJSON4XX ¶
func (r CreateWebhookResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (CreateWebhookResponse) GetJSON5XX ¶
func (r CreateWebhookResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (CreateWebhookResponse) GetJSON200 ¶
func (r CreateWebhookResponse) GetJSON200() *CreatedWebhook
GetJSON200 returns the response for an HTTP 200 `application/json` response
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 CreatedApiKey ¶
type CreatedApiKey struct {
Id openapi_types.UUID `json:"id"`
Object string `json:"object"`
// Token Shown once.
Token string `json:"token"`
}
CreatedApiKey defines model for CreatedApiKey.
type CreatedWebhook ¶
type CreatedWebhook struct {
Id openapi_types.UUID `json:"id"`
Object string `json:"object"`
SigningSecret string `json:"signing_secret"`
}
CreatedWebhook defines model for CreatedWebhook.
type DeleteApiKeyResponse ¶
type DeleteApiKeyResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Deleted
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseDeleteApiKeyResponse ¶
func ParseDeleteApiKeyResponse(rsp *http.Response) (*DeleteApiKeyResponse, error)
ParseDeleteApiKeyResponse parses an HTTP response from a DeleteApiKeyWithResponse call
func (DeleteApiKeyResponse) ContentType ¶
func (r DeleteApiKeyResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteApiKeyResponse) GetBody ¶
func (r DeleteApiKeyResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteApiKeyResponse) GetJSON4XX ¶
func (r DeleteApiKeyResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (DeleteApiKeyResponse) GetJSON5XX ¶
func (r DeleteApiKeyResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (DeleteApiKeyResponse) GetJSON200 ¶
func (r DeleteApiKeyResponse) GetJSON200() *Deleted
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteApiKeyResponse) Status ¶
func (r DeleteApiKeyResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteApiKeyResponse) StatusCode ¶
func (r DeleteApiKeyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteDomainResponse ¶
type DeleteDomainResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Deleted
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseDeleteDomainResponse ¶
func ParseDeleteDomainResponse(rsp *http.Response) (*DeleteDomainResponse, error)
ParseDeleteDomainResponse parses an HTTP response from a DeleteDomainWithResponse call
func (DeleteDomainResponse) ContentType ¶
func (r DeleteDomainResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteDomainResponse) GetBody ¶
func (r DeleteDomainResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteDomainResponse) GetJSON4XX ¶
func (r DeleteDomainResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (DeleteDomainResponse) GetJSON5XX ¶
func (r DeleteDomainResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (DeleteDomainResponse) GetJSON200 ¶
func (r DeleteDomainResponse) GetJSON200() *Deleted
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteDomainResponse) Status ¶
func (r DeleteDomainResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteDomainResponse) StatusCode ¶
func (r DeleteDomainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteSuppressionResponse ¶
type DeleteSuppressionResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *SuppressionRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseDeleteSuppressionResponse ¶
func ParseDeleteSuppressionResponse(rsp *http.Response) (*DeleteSuppressionResponse, error)
ParseDeleteSuppressionResponse parses an HTTP response from a DeleteSuppressionWithResponse call
func (DeleteSuppressionResponse) ContentType ¶
func (r DeleteSuppressionResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (DeleteSuppressionResponse) GetBody ¶
func (r DeleteSuppressionResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteSuppressionResponse) GetJSON4XX ¶
func (r DeleteSuppressionResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (DeleteSuppressionResponse) GetJSON5XX ¶
func (r DeleteSuppressionResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (DeleteSuppressionResponse) GetJSON200 ¶
func (r DeleteSuppressionResponse) GetJSON200() *SuppressionRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (DeleteSuppressionResponse) Status ¶
func (r DeleteSuppressionResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteSuppressionResponse) StatusCode ¶
func (r DeleteSuppressionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteWebhookResponse ¶
type DeleteWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Deleted
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
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) GetBody ¶
func (r DeleteWebhookResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (DeleteWebhookResponse) GetJSON4XX ¶
func (r DeleteWebhookResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (DeleteWebhookResponse) GetJSON5XX ¶
func (r DeleteWebhookResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (DeleteWebhookResponse) GetJSON200 ¶
func (r DeleteWebhookResponse) GetJSON200() *Deleted
GetJSON200 returns the response for an HTTP 200 `application/json` response
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 Deleted ¶
type Deleted struct {
Deleted bool `json:"deleted"`
Id openapi_types.UUID `json:"id"`
Object string `json:"object"`
}
Deleted The answer to a DELETE.
type DnsRecord ¶
type DnsRecord struct {
Name string `json:"name"`
Record string `json:"record"`
Status string `json:"status"`
Ttl string `json:"ttl"`
Type string `json:"type"`
Value string `json:"value"`
}
DnsRecord defines model for DnsRecord.
type DomainRef ¶
type DomainRef struct {
Id openapi_types.UUID `json:"id"`
Object string `json:"object"`
}
DomainRef defines model for DomainRef.
type DomainView ¶
type DomainView struct {
Capabilities CapabilitiesView `json:"capabilities"`
ClickTracking bool `json:"click_tracking"`
CreatedAt string `json:"created_at"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
Object *string `json:"object,omitempty"`
OpenTracking bool `json:"open_tracking"`
Records *[]DnsRecord `json:"records,omitempty"`
Region string `json:"region"`
Status string `json:"status"`
}
DomainView defines model for DomainView.
type Email ¶
type Email struct {
Bcc []string `json:"bcc"`
Cc []string `json:"cc"`
CreatedAt string `json:"created_at"`
From string `json:"from"`
Html *string `json:"html,omitempty"`
Id openapi_types.UUID `json:"id"`
LastEvent string `json:"last_event"`
MessageId string `json:"message_id"`
Object string `json:"object"`
ReplyTo []string `json:"reply_to"`
ScheduledAt *string `json:"scheduled_at,omitempty"`
Subject string `json:"subject"`
Tags []TagField `json:"tags"`
Text *string `json:"text,omitempty"`
To []string `json:"to"`
}
Email defines model for Email.
type EmailId ¶
type EmailId struct {
Id openapi_types.UUID `json:"id"`
}
EmailId defines model for EmailId.
type EmailRef ¶
type EmailRef struct {
Id openapi_types.UUID `json:"id"`
Object string `json:"object"`
}
EmailRef defines model for EmailRef.
type ErrorBody ¶
type ErrorBody struct {
Message string `json:"message"`
Name string `json:"name"`
StatusCode int32 `json:"statusCode"`
}
ErrorBody The error body.
type GetDomainResponse ¶
type GetDomainResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainView
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseGetDomainResponse ¶
func ParseGetDomainResponse(rsp *http.Response) (*GetDomainResponse, error)
ParseGetDomainResponse parses an HTTP response from a GetDomainWithResponse call
func (GetDomainResponse) ContentType ¶
func (r GetDomainResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetDomainResponse) GetBody ¶
func (r GetDomainResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetDomainResponse) GetJSON4XX ¶
func (r GetDomainResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (GetDomainResponse) GetJSON5XX ¶
func (r GetDomainResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (GetDomainResponse) GetJSON200 ¶
func (r GetDomainResponse) GetJSON200() *DomainView
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetDomainResponse) Status ¶
func (r GetDomainResponse) Status() string
Status returns HTTPResponse.Status
func (GetDomainResponse) StatusCode ¶
func (r GetDomainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEmailResponse ¶
type GetEmailResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Email
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseGetEmailResponse ¶
func ParseGetEmailResponse(rsp *http.Response) (*GetEmailResponse, error)
ParseGetEmailResponse parses an HTTP response from a GetEmailWithResponse call
func (GetEmailResponse) ContentType ¶
func (r GetEmailResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetEmailResponse) GetBody ¶
func (r GetEmailResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetEmailResponse) GetJSON4XX ¶
func (r GetEmailResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (GetEmailResponse) GetJSON5XX ¶
func (r GetEmailResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (GetEmailResponse) GetJSON200 ¶
func (r GetEmailResponse) GetJSON200() *Email
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetEmailResponse) Status ¶
func (r GetEmailResponse) Status() string
Status returns HTTPResponse.Status
func (GetEmailResponse) StatusCode ¶
func (r GetEmailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTranscriptResponse ¶
type GetTranscriptResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *interface{}
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseGetTranscriptResponse ¶
func ParseGetTranscriptResponse(rsp *http.Response) (*GetTranscriptResponse, error)
ParseGetTranscriptResponse parses an HTTP response from a GetTranscriptWithResponse call
func (GetTranscriptResponse) ContentType ¶
func (r GetTranscriptResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (GetTranscriptResponse) GetBody ¶
func (r GetTranscriptResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetTranscriptResponse) GetJSON4XX ¶
func (r GetTranscriptResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (GetTranscriptResponse) GetJSON5XX ¶
func (r GetTranscriptResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (GetTranscriptResponse) GetJSON200 ¶
func (r GetTranscriptResponse) GetJSON200() *interface{}
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (GetTranscriptResponse) Status ¶
func (r GetTranscriptResponse) Status() string
Status returns HTTPResponse.Status
func (GetTranscriptResponse) StatusCode ¶
func (r GetTranscriptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetWebhookResponse ¶
type GetWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *Webhook
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
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) GetBody ¶
func (r GetWebhookResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (GetWebhookResponse) GetJSON4XX ¶
func (r GetWebhookResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (GetWebhookResponse) GetJSON5XX ¶
func (r GetWebhookResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (GetWebhookResponse) GetJSON200 ¶
func (r GetWebhookResponse) GetJSON200() *Webhook
GetJSON200 returns the response for an HTTP 200 `application/json` response
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 ListApiKey ¶
type ListApiKey struct {
Data []struct {
CreatedAt string `json:"created_at"`
Id openapi_types.UUID `json:"id"`
LastUsedAt *string `json:"last_used_at,omitempty"`
Name string `json:"name"`
} `json:"data"`
HasMore bool `json:"has_more"`
Object string `json:"object"`
}
ListApiKey A list response (`object: "list"`).
type ListApiKeysParams ¶
type ListApiKeysParams struct {
// Limit 1–100; all items when absent.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After An item id: the page after it.
After *string `form:"after,omitempty" json:"after,omitempty"`
// Before An item id: the page before it.
Before *string `form:"before,omitempty" json:"before,omitempty"`
}
ListApiKeysParams defines parameters for ListApiKeys.
type ListApiKeysResponse ¶
type ListApiKeysResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListApiKey
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseListApiKeysResponse ¶
func ParseListApiKeysResponse(rsp *http.Response) (*ListApiKeysResponse, error)
ParseListApiKeysResponse parses an HTTP response from a ListApiKeysWithResponse call
func (ListApiKeysResponse) ContentType ¶
func (r ListApiKeysResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListApiKeysResponse) GetBody ¶
func (r ListApiKeysResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListApiKeysResponse) GetJSON4XX ¶
func (r ListApiKeysResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (ListApiKeysResponse) GetJSON5XX ¶
func (r ListApiKeysResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (ListApiKeysResponse) GetJSON200 ¶
func (r ListApiKeysResponse) GetJSON200() *ListApiKey
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListApiKeysResponse) Status ¶
func (r ListApiKeysResponse) Status() string
Status returns HTTPResponse.Status
func (ListApiKeysResponse) StatusCode ¶
func (r ListApiKeysResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListAttempt ¶
type ListAttempt struct {
Data []struct {
CreatedAt string `json:"created_at"`
DurationMs int32 `json:"duration_ms"`
EnhancedCode *string `json:"enhanced_code,omitempty"`
HasTranscript bool `json:"has_transcript"`
Id openapi_types.UUID `json:"id"`
MxHost *string `json:"mx_host,omitempty"`
Outcome string `json:"outcome"`
Recipients []AttemptRecipient `json:"recipients"`
RemoteIp *string `json:"remote_ip,omitempty"`
SmtpCode *int32 `json:"smtp_code,omitempty"`
TlsPolicy *string `json:"tls_policy,omitempty"`
TlsVerified *bool `json:"tls_verified,omitempty"`
TlsVersion *string `json:"tls_version,omitempty"`
} `json:"data"`
HasMore bool `json:"has_more"`
Object string `json:"object"`
}
ListAttempt A list response (`object: "list"`).
type ListAttemptsResponse ¶
type ListAttemptsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListAttempt
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseListAttemptsResponse ¶
func ParseListAttemptsResponse(rsp *http.Response) (*ListAttemptsResponse, error)
ParseListAttemptsResponse parses an HTTP response from a ListAttemptsWithResponse call
func (ListAttemptsResponse) ContentType ¶
func (r ListAttemptsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListAttemptsResponse) GetBody ¶
func (r ListAttemptsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListAttemptsResponse) GetJSON4XX ¶
func (r ListAttemptsResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (ListAttemptsResponse) GetJSON5XX ¶
func (r ListAttemptsResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (ListAttemptsResponse) GetJSON200 ¶
func (r ListAttemptsResponse) GetJSON200() *ListAttempt
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListAttemptsResponse) Status ¶
func (r ListAttemptsResponse) Status() string
Status returns HTTPResponse.Status
func (ListAttemptsResponse) StatusCode ¶
func (r ListAttemptsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListDomainView ¶
type ListDomainView struct {
Data []struct {
Capabilities CapabilitiesView `json:"capabilities"`
ClickTracking bool `json:"click_tracking"`
CreatedAt string `json:"created_at"`
Id openapi_types.UUID `json:"id"`
Name string `json:"name"`
Object *string `json:"object,omitempty"`
OpenTracking bool `json:"open_tracking"`
Records *[]DnsRecord `json:"records,omitempty"`
Region string `json:"region"`
Status string `json:"status"`
} `json:"data"`
HasMore bool `json:"has_more"`
Object string `json:"object"`
}
ListDomainView A list response (`object: "list"`).
type ListDomainsParams ¶
type ListDomainsParams struct {
// Limit 1–100; all items when absent.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After An item id: the page after it.
After *string `form:"after,omitempty" json:"after,omitempty"`
// Before An item id: the page before it.
Before *string `form:"before,omitempty" json:"before,omitempty"`
}
ListDomainsParams defines parameters for ListDomains.
type ListDomainsResponse ¶
type ListDomainsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListDomainView
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseListDomainsResponse ¶
func ParseListDomainsResponse(rsp *http.Response) (*ListDomainsResponse, error)
ParseListDomainsResponse parses an HTTP response from a ListDomainsWithResponse call
func (ListDomainsResponse) ContentType ¶
func (r ListDomainsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListDomainsResponse) GetBody ¶
func (r ListDomainsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListDomainsResponse) GetJSON4XX ¶
func (r ListDomainsResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (ListDomainsResponse) GetJSON5XX ¶
func (r ListDomainsResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (ListDomainsResponse) GetJSON200 ¶
func (r ListDomainsResponse) GetJSON200() *ListDomainView
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListDomainsResponse) Status ¶
func (r ListDomainsResponse) Status() string
Status returns HTTPResponse.Status
func (ListDomainsResponse) StatusCode ¶
func (r ListDomainsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEmailSummary ¶
type ListEmailSummary struct {
Data []struct {
Bcc []string `json:"bcc"`
Cc []string `json:"cc"`
CreatedAt string `json:"created_at"`
From string `json:"from"`
Id openapi_types.UUID `json:"id"`
LastEvent string `json:"last_event"`
MessageId string `json:"message_id"`
ReplyTo []string `json:"reply_to"`
ScheduledAt *string `json:"scheduled_at,omitempty"`
Subject string `json:"subject"`
To []string `json:"to"`
} `json:"data"`
HasMore bool `json:"has_more"`
Object string `json:"object"`
}
ListEmailSummary A list response (`object: "list"`).
type ListEmailsParams ¶
type ListEmailsParams struct {
// Limit 1–100, default 20.
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// After An email id: the page after it (older emails).
After *string `form:"after,omitempty" json:"after,omitempty"`
// Before An email id: the page before it (newer emails).
Before *string `form:"before,omitempty" json:"before,omitempty"`
}
ListEmailsParams defines parameters for ListEmails.
type ListEmailsResponse ¶
type ListEmailsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListEmailSummary
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseListEmailsResponse ¶
func ParseListEmailsResponse(rsp *http.Response) (*ListEmailsResponse, error)
ParseListEmailsResponse parses an HTTP response from a ListEmailsWithResponse call
func (ListEmailsResponse) ContentType ¶
func (r ListEmailsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListEmailsResponse) GetBody ¶
func (r ListEmailsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListEmailsResponse) GetJSON4XX ¶
func (r ListEmailsResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (ListEmailsResponse) GetJSON5XX ¶
func (r ListEmailsResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (ListEmailsResponse) GetJSON200 ¶
func (r ListEmailsResponse) GetJSON200() *ListEmailSummary
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListEmailsResponse) Status ¶
func (r ListEmailsResponse) Status() string
Status returns HTTPResponse.Status
func (ListEmailsResponse) StatusCode ¶
func (r ListEmailsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListSuppression ¶
type ListSuppression struct {
Data []struct {
CreatedAt string `json:"created_at"`
Email string `json:"email"`
Reason string `json:"reason"`
SourceEmailId *openapi_types.UUID `json:"source_email_id,omitempty"`
} `json:"data"`
HasMore bool `json:"has_more"`
Object string `json:"object"`
}
ListSuppression A list response (`object: "list"`).
type ListSuppressionsParams ¶
type ListSuppressionsParams struct {
// Limit 1–100, default 100 (newest first).
Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`
// After The last address of the previous page: the page after it.
After *string `form:"after,omitempty" json:"after,omitempty"`
}
ListSuppressionsParams defines parameters for ListSuppressions.
type ListSuppressionsResponse ¶
type ListSuppressionsResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListSuppression
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseListSuppressionsResponse ¶
func ParseListSuppressionsResponse(rsp *http.Response) (*ListSuppressionsResponse, error)
ParseListSuppressionsResponse parses an HTTP response from a ListSuppressionsWithResponse call
func (ListSuppressionsResponse) ContentType ¶
func (r ListSuppressionsResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (ListSuppressionsResponse) GetBody ¶
func (r ListSuppressionsResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListSuppressionsResponse) GetJSON4XX ¶
func (r ListSuppressionsResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (ListSuppressionsResponse) GetJSON5XX ¶
func (r ListSuppressionsResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (ListSuppressionsResponse) GetJSON200 ¶
func (r ListSuppressionsResponse) GetJSON200() *ListSuppression
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (ListSuppressionsResponse) Status ¶
func (r ListSuppressionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListSuppressionsResponse) StatusCode ¶
func (r ListSuppressionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListWebhook ¶
type ListWebhook struct {
Data []struct {
CreatedAt string `json:"created_at"`
Endpoint string `json:"endpoint"`
Events []string `json:"events"`
Id openapi_types.UUID `json:"id"`
Object *string `json:"object,omitempty"`
SigningSecret *string `json:"signing_secret,omitempty"`
Status string `json:"status"`
} `json:"data"`
HasMore bool `json:"has_more"`
Object string `json:"object"`
}
ListWebhook A list response (`object: "list"`).
type ListWebhooksParams ¶
type ListWebhooksParams struct {
// Limit 1–100; all items when absent.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// After An item id: the page after it.
After *string `form:"after,omitempty" json:"after,omitempty"`
// Before An item id: the page before it.
Before *string `form:"before,omitempty" json:"before,omitempty"`
}
ListWebhooksParams defines parameters for ListWebhooks.
type ListWebhooksResponse ¶
type ListWebhooksResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *ListWebhook
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
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) GetBody ¶
func (r ListWebhooksResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (ListWebhooksResponse) GetJSON4XX ¶
func (r ListWebhooksResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (ListWebhooksResponse) GetJSON5XX ¶
func (r ListWebhooksResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (ListWebhooksResponse) GetJSON200 ¶
func (r ListWebhooksResponse) GetJSON200() *ListWebhook
GetJSON200 returns the response for an HTTP 200 `application/json` response
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 PermissionField ¶
type PermissionField string
PermissionField defines model for PermissionField.
const ( FullAccess PermissionField = "full_access" SendingAccess PermissionField = "sending_access" )
Defines values for PermissionField.
func (PermissionField) Valid ¶
func (e PermissionField) Valid() bool
Valid indicates whether the value is a known member of the PermissionField enum.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type RotateWebhookSigningSecretResponse ¶
type RotateWebhookSigningSecretResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *CreatedWebhook
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseRotateWebhookSigningSecretResponse ¶
func ParseRotateWebhookSigningSecretResponse(rsp *http.Response) (*RotateWebhookSigningSecretResponse, error)
ParseRotateWebhookSigningSecretResponse parses an HTTP response from a RotateWebhookSigningSecretWithResponse call
func (RotateWebhookSigningSecretResponse) ContentType ¶
func (r RotateWebhookSigningSecretResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (RotateWebhookSigningSecretResponse) GetBody ¶
func (r RotateWebhookSigningSecretResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (RotateWebhookSigningSecretResponse) GetJSON4XX ¶
func (r RotateWebhookSigningSecretResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (RotateWebhookSigningSecretResponse) GetJSON5XX ¶
func (r RotateWebhookSigningSecretResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (RotateWebhookSigningSecretResponse) GetJSON200 ¶
func (r RotateWebhookSigningSecretResponse) GetJSON200() *CreatedWebhook
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (RotateWebhookSigningSecretResponse) Status ¶
func (r RotateWebhookSigningSecretResponse) Status() string
Status returns HTTPResponse.Status
func (RotateWebhookSigningSecretResponse) StatusCode ¶
func (r RotateWebhookSigningSecretResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendBatchJSONBody ¶
type SendBatchJSONBody = []SendEmail
SendBatchJSONBody defines parameters for SendBatch.
type SendBatchJSONRequestBody ¶
type SendBatchJSONRequestBody = SendBatchJSONBody
SendBatchJSONRequestBody defines body for SendBatch for application/json ContentType.
type SendBatchParams ¶
type SendBatchParams struct {
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
XExxStream *string `json:"X-Exx-Stream,omitempty"`
}
SendBatchParams defines parameters for SendBatch.
type SendBatchResponse ¶
type SendBatchResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *BatchResult
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseSendBatchResponse ¶
func ParseSendBatchResponse(rsp *http.Response) (*SendBatchResponse, error)
ParseSendBatchResponse parses an HTTP response from a SendBatchWithResponse call
func (SendBatchResponse) ContentType ¶
func (r SendBatchResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (SendBatchResponse) GetBody ¶
func (r SendBatchResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SendBatchResponse) GetJSON4XX ¶
func (r SendBatchResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (SendBatchResponse) GetJSON5XX ¶
func (r SendBatchResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (SendBatchResponse) GetJSON200 ¶
func (r SendBatchResponse) GetJSON200() *BatchResult
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SendBatchResponse) GetJSON503 ¶
func (r SendBatchResponse) GetJSON503() *ErrorBody
GetJSON503 returns the response for an HTTP 503 `application/json` response
func (SendBatchResponse) Status ¶
func (r SendBatchResponse) Status() string
Status returns HTTPResponse.Status
func (SendBatchResponse) StatusCode ¶
func (r SendBatchResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type SendEmail ¶
type SendEmail struct {
Attachments *[]AttachmentField `json:"attachments,omitempty"`
Bcc *[]string `json:"bcc,omitempty"`
Cc *[]string `json:"cc,omitempty"`
From string `json:"from"`
Headers *map[string]string `json:"headers,omitempty"`
Html *string `json:"html,omitempty"`
ReplyTo *[]string `json:"reply_to,omitempty"`
// ScheduledAt ISO 8601, or `in <n> <minutes|hours|days>`.
ScheduledAt *string `json:"scheduled_at,omitempty"`
Subject string `json:"subject"`
Tags *[]TagField `json:"tags,omitempty"`
Text *string `json:"text,omitempty"`
// To One address or a list (at most 50 with cc and bcc).
To []string `json:"to"`
}
SendEmail `POST /emails` body (Resend's shape); see api.md for every field.
type SendEmailJSONRequestBody ¶
type SendEmailJSONRequestBody = SendEmail
SendEmailJSONRequestBody defines body for SendEmail for application/json ContentType.
type SendEmailParams ¶
type SendEmailParams struct {
IdempotencyKey *string `json:"Idempotency-Key,omitempty"`
XExxStream *string `json:"X-Exx-Stream,omitempty"`
}
SendEmailParams defines parameters for SendEmail.
type SendEmailResponse ¶
type SendEmailResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EmailId
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON503 the response for an HTTP 503 `application/json` response
JSON503 *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
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) GetBody ¶
func (r SendEmailResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (SendEmailResponse) GetJSON4XX ¶
func (r SendEmailResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (SendEmailResponse) GetJSON5XX ¶
func (r SendEmailResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (SendEmailResponse) GetJSON200 ¶
func (r SendEmailResponse) GetJSON200() *EmailId
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (SendEmailResponse) GetJSON503 ¶
func (r SendEmailResponse) GetJSON503() *ErrorBody
GetJSON503 returns the response for an HTTP 503 `application/json` response
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 SuppressionRef ¶
type SuppressionRef struct {
Deleted *bool `json:"deleted,omitempty"`
Email string `json:"email"`
Object string `json:"object"`
}
SuppressionRef defines model for SuppressionRef.
type UpdateDomain ¶
type UpdateDomain struct {
Capabilities *Capabilities `json:"capabilities,omitempty"`
ClickTracking *bool `json:"click_tracking,omitempty"`
OpenTracking *bool `json:"open_tracking,omitempty"`
Tls *string `json:"tls,omitempty"`
TrackingSubdomain *string `json:"tracking_subdomain,omitempty"`
}
UpdateDomain defines model for UpdateDomain.
type UpdateDomainJSONRequestBody ¶
type UpdateDomainJSONRequestBody = UpdateDomain
UpdateDomainJSONRequestBody defines body for UpdateDomain for application/json ContentType.
type UpdateDomainResponse ¶
type UpdateDomainResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseUpdateDomainResponse ¶
func ParseUpdateDomainResponse(rsp *http.Response) (*UpdateDomainResponse, error)
ParseUpdateDomainResponse parses an HTTP response from a UpdateDomainWithResponse call
func (UpdateDomainResponse) ContentType ¶
func (r UpdateDomainResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateDomainResponse) GetBody ¶
func (r UpdateDomainResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateDomainResponse) GetJSON4XX ¶
func (r UpdateDomainResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (UpdateDomainResponse) GetJSON5XX ¶
func (r UpdateDomainResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (UpdateDomainResponse) GetJSON200 ¶
func (r UpdateDomainResponse) GetJSON200() *DomainRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateDomainResponse) Status ¶
func (r UpdateDomainResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateDomainResponse) StatusCode ¶
func (r UpdateDomainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEmail ¶
type UpdateEmail struct {
// ScheduledAt ISO 8601.
ScheduledAt *string `json:"scheduled_at,omitempty"`
}
UpdateEmail defines model for UpdateEmail.
type UpdateEmailJSONRequestBody ¶
type UpdateEmailJSONRequestBody = UpdateEmail
UpdateEmailJSONRequestBody defines body for UpdateEmail for application/json ContentType.
type UpdateEmailResponse ¶
type UpdateEmailResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *EmailRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseUpdateEmailResponse ¶
func ParseUpdateEmailResponse(rsp *http.Response) (*UpdateEmailResponse, error)
ParseUpdateEmailResponse parses an HTTP response from a UpdateEmailWithResponse call
func (UpdateEmailResponse) ContentType ¶
func (r UpdateEmailResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (UpdateEmailResponse) GetBody ¶
func (r UpdateEmailResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateEmailResponse) GetJSON4XX ¶
func (r UpdateEmailResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (UpdateEmailResponse) GetJSON5XX ¶
func (r UpdateEmailResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (UpdateEmailResponse) GetJSON200 ¶
func (r UpdateEmailResponse) GetJSON200() *EmailRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (UpdateEmailResponse) Status ¶
func (r UpdateEmailResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEmailResponse) StatusCode ¶
func (r UpdateEmailResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateWebhook ¶
type UpdateWebhook struct {
Endpoint *string `json:"endpoint,omitempty"`
Events *[]string `json:"events,omitempty"`
// Status `enabled` or `disabled`.
Status *string `json:"status,omitempty"`
}
UpdateWebhook defines model for UpdateWebhook.
type UpdateWebhookJSONRequestBody ¶
type UpdateWebhookJSONRequestBody = UpdateWebhook
UpdateWebhookJSONRequestBody defines body for UpdateWebhook for application/json ContentType.
type UpdateWebhookResponse ¶
type UpdateWebhookResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *WebhookRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
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) GetBody ¶
func (r UpdateWebhookResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (UpdateWebhookResponse) GetJSON4XX ¶
func (r UpdateWebhookResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (UpdateWebhookResponse) GetJSON5XX ¶
func (r UpdateWebhookResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (UpdateWebhookResponse) GetJSON200 ¶
func (r UpdateWebhookResponse) GetJSON200() *WebhookRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
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 VerifyDomainResponse ¶
type VerifyDomainResponse struct {
Body []byte
HTTPResponse *http.Response
// JSON200 the response for an HTTP 200 `application/json` response
JSON200 *DomainRef
// JSON4XX the response for an HTTP 4XX `application/json` response
JSON4XX *ErrorBody
// JSON5XX the response for an HTTP 5XX `application/json` response
JSON5XX *ErrorBody
}
func ParseVerifyDomainResponse ¶
func ParseVerifyDomainResponse(rsp *http.Response) (*VerifyDomainResponse, error)
ParseVerifyDomainResponse parses an HTTP response from a VerifyDomainWithResponse call
func (VerifyDomainResponse) ContentType ¶
func (r VerifyDomainResponse) ContentType() string
ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers
func (VerifyDomainResponse) GetBody ¶
func (r VerifyDomainResponse) GetBody() []byte
GetBody returns the raw response body bytes
func (VerifyDomainResponse) GetJSON4XX ¶
func (r VerifyDomainResponse) GetJSON4XX() *ErrorBody
GetJSON4XX returns the response for an HTTP 4XX `application/json` response
func (VerifyDomainResponse) GetJSON5XX ¶
func (r VerifyDomainResponse) GetJSON5XX() *ErrorBody
GetJSON5XX returns the response for an HTTP 5XX `application/json` response
func (VerifyDomainResponse) GetJSON200 ¶
func (r VerifyDomainResponse) GetJSON200() *DomainRef
GetJSON200 returns the response for an HTTP 200 `application/json` response
func (VerifyDomainResponse) Status ¶
func (r VerifyDomainResponse) Status() string
Status returns HTTPResponse.Status
func (VerifyDomainResponse) StatusCode ¶
func (r VerifyDomainResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Webhook ¶
type Webhook struct {
CreatedAt string `json:"created_at"`
Endpoint string `json:"endpoint"`
Events []string `json:"events"`
Id openapi_types.UUID `json:"id"`
Object *string `json:"object,omitempty"`
SigningSecret *string `json:"signing_secret,omitempty"`
Status string `json:"status"`
}
Webhook defines model for Webhook.
type WebhookRef ¶
type WebhookRef struct {
Id openapi_types.UUID `json:"id"`
Object string `json:"object"`
}
WebhookRef defines model for WebhookRef.