Help us shape the future of Go! Take the 2026 Go Developer Survey

smtp

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for smtp API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new smtp API client.

func (*Client) CreateSMTPTemplate

func (a *Client) CreateSMTPTemplate(params *CreateSMTPTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*CreateSMTPTemplateCreated, error)

CreateSMTPTemplate creates an smtp template

func (*Client) DeleteHardbounces

func (a *Client) DeleteHardbounces(params *DeleteHardbouncesParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteHardbouncesNoContent, error)

DeleteHardbounces deletes hardbounces

Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures)

func (*Client) DeleteSMTPTemplate added in v1.1.0

DeleteSMTPTemplate deletes an inactive smtp template

func (*Client) GetAggregatedSMTPReport

func (a *Client) GetAggregatedSMTPReport(params *GetAggregatedSMTPReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetAggregatedSMTPReportOK, error)

GetAggregatedSMTPReport gets your SMTP activity aggregated over a period of time

func (*Client) GetEmailEventReport

func (a *Client) GetEmailEventReport(params *GetEmailEventReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetEmailEventReportOK, error)

GetEmailEventReport gets all your SMTP activity unaggregated events

func (*Client) GetSMTPReport

func (a *Client) GetSMTPReport(params *GetSMTPReportParams, authInfo runtime.ClientAuthInfoWriter) (*GetSMTPReportOK, error)

GetSMTPReport gets your SMTP activity aggregated per day

func (*Client) GetSMTPTemplate

func (a *Client) GetSMTPTemplate(params *GetSMTPTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*GetSMTPTemplateOK, error)

GetSMTPTemplate returns the template informations

func (*Client) GetSMTPTemplates

func (a *Client) GetSMTPTemplates(params *GetSMTPTemplatesParams, authInfo runtime.ClientAuthInfoWriter) (*GetSMTPTemplatesOK, error)

GetSMTPTemplates gets the list of SMTP templates

func (*Client) SendTemplate

func (a *Client) SendTemplate(params *SendTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*SendTemplateCreated, error)

SendTemplate sends a template

func (*Client) SendTestTemplate

func (a *Client) SendTestTemplate(params *SendTestTemplateParams, authInfo runtime.ClientAuthInfoWriter) (*SendTestTemplateNoContent, error)

SendTestTemplate sends a template to your test list

func (*Client) SendTransacEmail

func (a *Client) SendTransacEmail(params *SendTransacEmailParams, authInfo runtime.ClientAuthInfoWriter) (*SendTransacEmailCreated, error)

SendTransacEmail sends a transactional email

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateSMTPTemplate

UpdateSMTPTemplate updates an smtp templates

type CreateSMTPTemplateBadRequest

type CreateSMTPTemplateBadRequest struct {
	Payload *models.ErrorModel
}

CreateSMTPTemplateBadRequest handles this case with default header values.

bad request

func NewCreateSMTPTemplateBadRequest

func NewCreateSMTPTemplateBadRequest() *CreateSMTPTemplateBadRequest

NewCreateSMTPTemplateBadRequest creates a CreateSMTPTemplateBadRequest with default headers values

func (*CreateSMTPTemplateBadRequest) Error

type CreateSMTPTemplateCreated

type CreateSMTPTemplateCreated struct {
	Payload *models.CreateModel
}

CreateSMTPTemplateCreated handles this case with default header values.

SMTP template created

func NewCreateSMTPTemplateCreated

func NewCreateSMTPTemplateCreated() *CreateSMTPTemplateCreated

NewCreateSMTPTemplateCreated creates a CreateSMTPTemplateCreated with default headers values

func (*CreateSMTPTemplateCreated) Error

func (o *CreateSMTPTemplateCreated) Error() string

type CreateSMTPTemplateParams

type CreateSMTPTemplateParams struct {

	/*SMTPTemplate
	  values to update in smtp template

	*/
	SMTPTemplate *models.CreateSMTPTemplate

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateSMTPTemplateParams contains all the parameters to send to the API endpoint for the create Smtp template operation typically these are written to a http.Request

func NewCreateSMTPTemplateParams

func NewCreateSMTPTemplateParams() *CreateSMTPTemplateParams

NewCreateSMTPTemplateParams creates a new CreateSMTPTemplateParams object with the default values initialized.

func NewCreateSMTPTemplateParamsWithContext

func NewCreateSMTPTemplateParamsWithContext(ctx context.Context) *CreateSMTPTemplateParams

NewCreateSMTPTemplateParamsWithContext creates a new CreateSMTPTemplateParams object with the default values initialized, and the ability to set a context for a request

func NewCreateSMTPTemplateParamsWithHTTPClient

func NewCreateSMTPTemplateParamsWithHTTPClient(client *http.Client) *CreateSMTPTemplateParams

NewCreateSMTPTemplateParamsWithHTTPClient creates a new CreateSMTPTemplateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateSMTPTemplateParamsWithTimeout

func NewCreateSMTPTemplateParamsWithTimeout(timeout time.Duration) *CreateSMTPTemplateParams

NewCreateSMTPTemplateParamsWithTimeout creates a new CreateSMTPTemplateParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateSMTPTemplateParams) SetContext

func (o *CreateSMTPTemplateParams) SetContext(ctx context.Context)

SetContext adds the context to the create Smtp template params

func (*CreateSMTPTemplateParams) SetHTTPClient

func (o *CreateSMTPTemplateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create Smtp template params

func (*CreateSMTPTemplateParams) SetSMTPTemplate

func (o *CreateSMTPTemplateParams) SetSMTPTemplate(sMTPTemplate *models.CreateSMTPTemplate)

SetSMTPTemplate adds the smtpTemplate to the create Smtp template params

func (*CreateSMTPTemplateParams) SetTimeout

func (o *CreateSMTPTemplateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create Smtp template params

func (*CreateSMTPTemplateParams) WithContext

WithContext adds the context to the create Smtp template params

func (*CreateSMTPTemplateParams) WithHTTPClient

func (o *CreateSMTPTemplateParams) WithHTTPClient(client *http.Client) *CreateSMTPTemplateParams

WithHTTPClient adds the HTTPClient to the create Smtp template params

func (*CreateSMTPTemplateParams) WithSMTPTemplate

func (o *CreateSMTPTemplateParams) WithSMTPTemplate(sMTPTemplate *models.CreateSMTPTemplate) *CreateSMTPTemplateParams

WithSMTPTemplate adds the sMTPTemplate to the create Smtp template params

func (*CreateSMTPTemplateParams) WithTimeout

WithTimeout adds the timeout to the create Smtp template params

func (*CreateSMTPTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateSMTPTemplateReader

type CreateSMTPTemplateReader struct {
	// contains filtered or unexported fields
}

CreateSMTPTemplateReader is a Reader for the CreateSMTPTemplate structure.

func (*CreateSMTPTemplateReader) ReadResponse

func (o *CreateSMTPTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteHardbouncesBadRequest

type DeleteHardbouncesBadRequest struct {
	Payload *models.ErrorModel
}

DeleteHardbouncesBadRequest handles this case with default header values.

bad request

func NewDeleteHardbouncesBadRequest

func NewDeleteHardbouncesBadRequest() *DeleteHardbouncesBadRequest

NewDeleteHardbouncesBadRequest creates a DeleteHardbouncesBadRequest with default headers values

func (*DeleteHardbouncesBadRequest) Error

type DeleteHardbouncesNoContent

type DeleteHardbouncesNoContent struct {
}

DeleteHardbouncesNoContent handles this case with default header values.

Hardbounces deleted

func NewDeleteHardbouncesNoContent

func NewDeleteHardbouncesNoContent() *DeleteHardbouncesNoContent

NewDeleteHardbouncesNoContent creates a DeleteHardbouncesNoContent with default headers values

func (*DeleteHardbouncesNoContent) Error

type DeleteHardbouncesParams

type DeleteHardbouncesParams struct {

	/*DeleteHardbounces
	  values to delete hardbounces

	*/
	DeleteHardbounces *models.DeleteHardbounces

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteHardbouncesParams contains all the parameters to send to the API endpoint for the delete hardbounces operation typically these are written to a http.Request

func NewDeleteHardbouncesParams

func NewDeleteHardbouncesParams() *DeleteHardbouncesParams

NewDeleteHardbouncesParams creates a new DeleteHardbouncesParams object with the default values initialized.

func NewDeleteHardbouncesParamsWithContext

func NewDeleteHardbouncesParamsWithContext(ctx context.Context) *DeleteHardbouncesParams

NewDeleteHardbouncesParamsWithContext creates a new DeleteHardbouncesParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteHardbouncesParamsWithHTTPClient

func NewDeleteHardbouncesParamsWithHTTPClient(client *http.Client) *DeleteHardbouncesParams

NewDeleteHardbouncesParamsWithHTTPClient creates a new DeleteHardbouncesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteHardbouncesParamsWithTimeout

func NewDeleteHardbouncesParamsWithTimeout(timeout time.Duration) *DeleteHardbouncesParams

NewDeleteHardbouncesParamsWithTimeout creates a new DeleteHardbouncesParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteHardbouncesParams) SetContext

func (o *DeleteHardbouncesParams) SetContext(ctx context.Context)

SetContext adds the context to the delete hardbounces params

func (*DeleteHardbouncesParams) SetDeleteHardbounces

func (o *DeleteHardbouncesParams) SetDeleteHardbounces(deleteHardbounces *models.DeleteHardbounces)

SetDeleteHardbounces adds the deleteHardbounces to the delete hardbounces params

func (*DeleteHardbouncesParams) SetHTTPClient

func (o *DeleteHardbouncesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete hardbounces params

func (*DeleteHardbouncesParams) SetTimeout

func (o *DeleteHardbouncesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete hardbounces params

func (*DeleteHardbouncesParams) WithContext

WithContext adds the context to the delete hardbounces params

func (*DeleteHardbouncesParams) WithDeleteHardbounces

func (o *DeleteHardbouncesParams) WithDeleteHardbounces(deleteHardbounces *models.DeleteHardbounces) *DeleteHardbouncesParams

WithDeleteHardbounces adds the deleteHardbounces to the delete hardbounces params

func (*DeleteHardbouncesParams) WithHTTPClient

func (o *DeleteHardbouncesParams) WithHTTPClient(client *http.Client) *DeleteHardbouncesParams

WithHTTPClient adds the HTTPClient to the delete hardbounces params

func (*DeleteHardbouncesParams) WithTimeout

WithTimeout adds the timeout to the delete hardbounces params

func (*DeleteHardbouncesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteHardbouncesReader

type DeleteHardbouncesReader struct {
	// contains filtered or unexported fields
}

DeleteHardbouncesReader is a Reader for the DeleteHardbounces structure.

func (*DeleteHardbouncesReader) ReadResponse

func (o *DeleteHardbouncesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteSMTPTemplateBadRequest added in v1.1.0

type DeleteSMTPTemplateBadRequest struct {
	Payload *models.ErrorModel
}

DeleteSMTPTemplateBadRequest handles this case with default header values.

bad request

func NewDeleteSMTPTemplateBadRequest added in v1.1.0

func NewDeleteSMTPTemplateBadRequest() *DeleteSMTPTemplateBadRequest

NewDeleteSMTPTemplateBadRequest creates a DeleteSMTPTemplateBadRequest with default headers values

func (*DeleteSMTPTemplateBadRequest) Error added in v1.1.0

type DeleteSMTPTemplateNoContent added in v1.1.0

type DeleteSMTPTemplateNoContent struct {
}

DeleteSMTPTemplateNoContent handles this case with default header values.

Inactive smtp template has been deleted

func NewDeleteSMTPTemplateNoContent added in v1.1.0

func NewDeleteSMTPTemplateNoContent() *DeleteSMTPTemplateNoContent

NewDeleteSMTPTemplateNoContent creates a DeleteSMTPTemplateNoContent with default headers values

func (*DeleteSMTPTemplateNoContent) Error added in v1.1.0

type DeleteSMTPTemplateNotFound added in v1.1.0

type DeleteSMTPTemplateNotFound struct {
	Payload *models.ErrorModel
}

DeleteSMTPTemplateNotFound handles this case with default header values.

Template ID not found

func NewDeleteSMTPTemplateNotFound added in v1.1.0

func NewDeleteSMTPTemplateNotFound() *DeleteSMTPTemplateNotFound

NewDeleteSMTPTemplateNotFound creates a DeleteSMTPTemplateNotFound with default headers values

func (*DeleteSMTPTemplateNotFound) Error added in v1.1.0

type DeleteSMTPTemplateParams added in v1.1.0

type DeleteSMTPTemplateParams struct {

	/*TemplateID
	  id of the template

	*/
	TemplateID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteSMTPTemplateParams contains all the parameters to send to the API endpoint for the delete Smtp template operation typically these are written to a http.Request

func NewDeleteSMTPTemplateParams added in v1.1.0

func NewDeleteSMTPTemplateParams() *DeleteSMTPTemplateParams

NewDeleteSMTPTemplateParams creates a new DeleteSMTPTemplateParams object with the default values initialized.

func NewDeleteSMTPTemplateParamsWithContext added in v1.1.0

func NewDeleteSMTPTemplateParamsWithContext(ctx context.Context) *DeleteSMTPTemplateParams

NewDeleteSMTPTemplateParamsWithContext creates a new DeleteSMTPTemplateParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteSMTPTemplateParamsWithHTTPClient added in v1.1.0

func NewDeleteSMTPTemplateParamsWithHTTPClient(client *http.Client) *DeleteSMTPTemplateParams

NewDeleteSMTPTemplateParamsWithHTTPClient creates a new DeleteSMTPTemplateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteSMTPTemplateParamsWithTimeout added in v1.1.0

func NewDeleteSMTPTemplateParamsWithTimeout(timeout time.Duration) *DeleteSMTPTemplateParams

NewDeleteSMTPTemplateParamsWithTimeout creates a new DeleteSMTPTemplateParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteSMTPTemplateParams) SetContext added in v1.1.0

func (o *DeleteSMTPTemplateParams) SetContext(ctx context.Context)

SetContext adds the context to the delete Smtp template params

func (*DeleteSMTPTemplateParams) SetHTTPClient added in v1.1.0

func (o *DeleteSMTPTemplateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete Smtp template params

func (*DeleteSMTPTemplateParams) SetTemplateID added in v1.1.0

func (o *DeleteSMTPTemplateParams) SetTemplateID(templateID int64)

SetTemplateID adds the templateId to the delete Smtp template params

func (*DeleteSMTPTemplateParams) SetTimeout added in v1.1.0

func (o *DeleteSMTPTemplateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete Smtp template params

func (*DeleteSMTPTemplateParams) WithContext added in v1.1.0

WithContext adds the context to the delete Smtp template params

func (*DeleteSMTPTemplateParams) WithHTTPClient added in v1.1.0

func (o *DeleteSMTPTemplateParams) WithHTTPClient(client *http.Client) *DeleteSMTPTemplateParams

WithHTTPClient adds the HTTPClient to the delete Smtp template params

func (*DeleteSMTPTemplateParams) WithTemplateID added in v1.1.0

func (o *DeleteSMTPTemplateParams) WithTemplateID(templateID int64) *DeleteSMTPTemplateParams

WithTemplateID adds the templateID to the delete Smtp template params

func (*DeleteSMTPTemplateParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the delete Smtp template params

func (*DeleteSMTPTemplateParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type DeleteSMTPTemplateReader added in v1.1.0

type DeleteSMTPTemplateReader struct {
	// contains filtered or unexported fields
}

DeleteSMTPTemplateReader is a Reader for the DeleteSMTPTemplate structure.

func (*DeleteSMTPTemplateReader) ReadResponse added in v1.1.0

func (o *DeleteSMTPTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetAggregatedSMTPReportBadRequest

type GetAggregatedSMTPReportBadRequest struct {
	Payload *models.ErrorModel
}

GetAggregatedSMTPReportBadRequest handles this case with default header values.

bad request

func NewGetAggregatedSMTPReportBadRequest

func NewGetAggregatedSMTPReportBadRequest() *GetAggregatedSMTPReportBadRequest

NewGetAggregatedSMTPReportBadRequest creates a GetAggregatedSMTPReportBadRequest with default headers values

func (*GetAggregatedSMTPReportBadRequest) Error

type GetAggregatedSMTPReportOK

type GetAggregatedSMTPReportOK struct {
	Payload *models.GetAggregatedReport
}

GetAggregatedSMTPReportOK handles this case with default header values.

Aggregated report informations

func NewGetAggregatedSMTPReportOK

func NewGetAggregatedSMTPReportOK() *GetAggregatedSMTPReportOK

NewGetAggregatedSMTPReportOK creates a GetAggregatedSMTPReportOK with default headers values

func (*GetAggregatedSMTPReportOK) Error

func (o *GetAggregatedSMTPReportOK) Error() string

type GetAggregatedSMTPReportParams

type GetAggregatedSMTPReportParams struct {

	/*Days
	  Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'

	*/
	Days *int64
	/*EndDate
	  Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate

	*/
	EndDate *strfmt.Date
	/*StartDate
	  Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate

	*/
	StartDate *strfmt.Date
	/*Tag
	  Tag of the emails

	*/
	Tag *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetAggregatedSMTPReportParams contains all the parameters to send to the API endpoint for the get aggregated Smtp report operation typically these are written to a http.Request

func NewGetAggregatedSMTPReportParams

func NewGetAggregatedSMTPReportParams() *GetAggregatedSMTPReportParams

NewGetAggregatedSMTPReportParams creates a new GetAggregatedSMTPReportParams object with the default values initialized.

func NewGetAggregatedSMTPReportParamsWithContext

func NewGetAggregatedSMTPReportParamsWithContext(ctx context.Context) *GetAggregatedSMTPReportParams

NewGetAggregatedSMTPReportParamsWithContext creates a new GetAggregatedSMTPReportParams object with the default values initialized, and the ability to set a context for a request

func NewGetAggregatedSMTPReportParamsWithHTTPClient

func NewGetAggregatedSMTPReportParamsWithHTTPClient(client *http.Client) *GetAggregatedSMTPReportParams

NewGetAggregatedSMTPReportParamsWithHTTPClient creates a new GetAggregatedSMTPReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAggregatedSMTPReportParamsWithTimeout

func NewGetAggregatedSMTPReportParamsWithTimeout(timeout time.Duration) *GetAggregatedSMTPReportParams

NewGetAggregatedSMTPReportParamsWithTimeout creates a new GetAggregatedSMTPReportParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAggregatedSMTPReportParams) SetContext

func (o *GetAggregatedSMTPReportParams) SetContext(ctx context.Context)

SetContext adds the context to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) SetDays

func (o *GetAggregatedSMTPReportParams) SetDays(days *int64)

SetDays adds the days to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) SetEndDate

func (o *GetAggregatedSMTPReportParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) SetHTTPClient

func (o *GetAggregatedSMTPReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) SetStartDate

func (o *GetAggregatedSMTPReportParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) SetTag

func (o *GetAggregatedSMTPReportParams) SetTag(tag *string)

SetTag adds the tag to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) SetTimeout

func (o *GetAggregatedSMTPReportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithContext

WithContext adds the context to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithDays

WithDays adds the days to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithEndDate

WithEndDate adds the endDate to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithStartDate

WithStartDate adds the startDate to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithTag

WithTag adds the tag to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WithTimeout

WithTimeout adds the timeout to the get aggregated Smtp report params

func (*GetAggregatedSMTPReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetAggregatedSMTPReportReader

type GetAggregatedSMTPReportReader struct {
	// contains filtered or unexported fields
}

GetAggregatedSMTPReportReader is a Reader for the GetAggregatedSMTPReport structure.

func (*GetAggregatedSMTPReportReader) ReadResponse

func (o *GetAggregatedSMTPReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetEmailEventReportBadRequest

type GetEmailEventReportBadRequest struct {
	Payload *models.ErrorModel
}

GetEmailEventReportBadRequest handles this case with default header values.

bad request

func NewGetEmailEventReportBadRequest

func NewGetEmailEventReportBadRequest() *GetEmailEventReportBadRequest

NewGetEmailEventReportBadRequest creates a GetEmailEventReportBadRequest with default headers values

func (*GetEmailEventReportBadRequest) Error

type GetEmailEventReportOK

type GetEmailEventReportOK struct {
	Payload *models.GetEmailEventReport
}

GetEmailEventReportOK handles this case with default header values.

Email events report informations

func NewGetEmailEventReportOK

func NewGetEmailEventReportOK() *GetEmailEventReportOK

NewGetEmailEventReportOK creates a GetEmailEventReportOK with default headers values

func (*GetEmailEventReportOK) Error

func (o *GetEmailEventReportOK) Error() string

type GetEmailEventReportParams

type GetEmailEventReportParams struct {

	/*Days
	  Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'

	*/
	Days *int64
	/*Email
	  Filter the report for a specific email addresses

	*/
	Email *strfmt.Email
	/*EndDate
	  Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate

	*/
	EndDate *strfmt.Date
	/*Event
	  Filter the report for a specific event type

	*/
	Event *string
	/*Limit
	  Number limitation for the result returned

	*/
	Limit *int64
	/*MessageID
	  Filter on a specific message id

	*/
	MessageID *string
	/*Offset
	  Beginning point in the list to retrieve from.

	*/
	Offset *int64
	/*StartDate
	  Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate

	*/
	StartDate *strfmt.Date
	/*Tags
	  Filter the report for tags (serialized and urlencoded array)

	*/
	Tags *string
	/*TemplateID
	  Filter on a specific template id

	*/
	TemplateID *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetEmailEventReportParams contains all the parameters to send to the API endpoint for the get email event report operation typically these are written to a http.Request

func NewGetEmailEventReportParams

func NewGetEmailEventReportParams() *GetEmailEventReportParams

NewGetEmailEventReportParams creates a new GetEmailEventReportParams object with the default values initialized.

func NewGetEmailEventReportParamsWithContext

func NewGetEmailEventReportParamsWithContext(ctx context.Context) *GetEmailEventReportParams

NewGetEmailEventReportParamsWithContext creates a new GetEmailEventReportParams object with the default values initialized, and the ability to set a context for a request

func NewGetEmailEventReportParamsWithHTTPClient

func NewGetEmailEventReportParamsWithHTTPClient(client *http.Client) *GetEmailEventReportParams

NewGetEmailEventReportParamsWithHTTPClient creates a new GetEmailEventReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetEmailEventReportParamsWithTimeout

func NewGetEmailEventReportParamsWithTimeout(timeout time.Duration) *GetEmailEventReportParams

NewGetEmailEventReportParamsWithTimeout creates a new GetEmailEventReportParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetEmailEventReportParams) SetContext

func (o *GetEmailEventReportParams) SetContext(ctx context.Context)

SetContext adds the context to the get email event report params

func (*GetEmailEventReportParams) SetDays

func (o *GetEmailEventReportParams) SetDays(days *int64)

SetDays adds the days to the get email event report params

func (*GetEmailEventReportParams) SetEmail

func (o *GetEmailEventReportParams) SetEmail(email *strfmt.Email)

SetEmail adds the email to the get email event report params

func (*GetEmailEventReportParams) SetEndDate

func (o *GetEmailEventReportParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get email event report params

func (*GetEmailEventReportParams) SetEvent

func (o *GetEmailEventReportParams) SetEvent(event *string)

SetEvent adds the event to the get email event report params

func (*GetEmailEventReportParams) SetHTTPClient

func (o *GetEmailEventReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get email event report params

func (*GetEmailEventReportParams) SetLimit

func (o *GetEmailEventReportParams) SetLimit(limit *int64)

SetLimit adds the limit to the get email event report params

func (*GetEmailEventReportParams) SetMessageID

func (o *GetEmailEventReportParams) SetMessageID(messageID *string)

SetMessageID adds the messageId to the get email event report params

func (*GetEmailEventReportParams) SetOffset

func (o *GetEmailEventReportParams) SetOffset(offset *int64)

SetOffset adds the offset to the get email event report params

func (*GetEmailEventReportParams) SetStartDate

func (o *GetEmailEventReportParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get email event report params

func (*GetEmailEventReportParams) SetTags

func (o *GetEmailEventReportParams) SetTags(tags *string)

SetTags adds the tags to the get email event report params

func (*GetEmailEventReportParams) SetTemplateID

func (o *GetEmailEventReportParams) SetTemplateID(templateID *int64)

SetTemplateID adds the templateId to the get email event report params

func (*GetEmailEventReportParams) SetTimeout

func (o *GetEmailEventReportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get email event report params

func (*GetEmailEventReportParams) WithContext

WithContext adds the context to the get email event report params

func (*GetEmailEventReportParams) WithDays

WithDays adds the days to the get email event report params

func (*GetEmailEventReportParams) WithEmail

WithEmail adds the email to the get email event report params

func (*GetEmailEventReportParams) WithEndDate

WithEndDate adds the endDate to the get email event report params

func (*GetEmailEventReportParams) WithEvent

WithEvent adds the event to the get email event report params

func (*GetEmailEventReportParams) WithHTTPClient

func (o *GetEmailEventReportParams) WithHTTPClient(client *http.Client) *GetEmailEventReportParams

WithHTTPClient adds the HTTPClient to the get email event report params

func (*GetEmailEventReportParams) WithLimit

WithLimit adds the limit to the get email event report params

func (*GetEmailEventReportParams) WithMessageID

func (o *GetEmailEventReportParams) WithMessageID(messageID *string) *GetEmailEventReportParams

WithMessageID adds the messageID to the get email event report params

func (*GetEmailEventReportParams) WithOffset

WithOffset adds the offset to the get email event report params

func (*GetEmailEventReportParams) WithStartDate

func (o *GetEmailEventReportParams) WithStartDate(startDate *strfmt.Date) *GetEmailEventReportParams

WithStartDate adds the startDate to the get email event report params

func (*GetEmailEventReportParams) WithTags

WithTags adds the tags to the get email event report params

func (*GetEmailEventReportParams) WithTemplateID

func (o *GetEmailEventReportParams) WithTemplateID(templateID *int64) *GetEmailEventReportParams

WithTemplateID adds the templateID to the get email event report params

func (*GetEmailEventReportParams) WithTimeout

WithTimeout adds the timeout to the get email event report params

func (*GetEmailEventReportParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEmailEventReportReader

type GetEmailEventReportReader struct {
	// contains filtered or unexported fields
}

GetEmailEventReportReader is a Reader for the GetEmailEventReport structure.

func (*GetEmailEventReportReader) ReadResponse

func (o *GetEmailEventReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSMTPReportBadRequest

type GetSMTPReportBadRequest struct {
	Payload *models.ErrorModel
}

GetSMTPReportBadRequest handles this case with default header values.

bad request

func NewGetSMTPReportBadRequest

func NewGetSMTPReportBadRequest() *GetSMTPReportBadRequest

NewGetSMTPReportBadRequest creates a GetSMTPReportBadRequest with default headers values

func (*GetSMTPReportBadRequest) Error

func (o *GetSMTPReportBadRequest) Error() string

type GetSMTPReportOK

type GetSMTPReportOK struct {
	Payload *models.GetReports
}

GetSMTPReportOK handles this case with default header values.

Aggregated report informations

func NewGetSMTPReportOK

func NewGetSMTPReportOK() *GetSMTPReportOK

NewGetSMTPReportOK creates a GetSMTPReportOK with default headers values

func (*GetSMTPReportOK) Error

func (o *GetSMTPReportOK) Error() string

type GetSMTPReportParams

type GetSMTPReportParams struct {

	/*Days
	  Number of days in the past including today (positive integer). Not compatible with 'startDate' and 'endDate'

	*/
	Days *int64
	/*EndDate
	  Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)

	*/
	EndDate *strfmt.Date
	/*Limit
	  Number of documents returned per page

	*/
	Limit *int64
	/*Offset
	  Index of the first document on the page

	*/
	Offset *int64
	/*StartDate
	  Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD)

	*/
	StartDate *strfmt.Date
	/*Tag
	  Tag of the emails

	*/
	Tag *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSMTPReportParams contains all the parameters to send to the API endpoint for the get Smtp report operation typically these are written to a http.Request

func NewGetSMTPReportParams

func NewGetSMTPReportParams() *GetSMTPReportParams

NewGetSMTPReportParams creates a new GetSMTPReportParams object with the default values initialized.

func NewGetSMTPReportParamsWithContext

func NewGetSMTPReportParamsWithContext(ctx context.Context) *GetSMTPReportParams

NewGetSMTPReportParamsWithContext creates a new GetSMTPReportParams object with the default values initialized, and the ability to set a context for a request

func NewGetSMTPReportParamsWithHTTPClient

func NewGetSMTPReportParamsWithHTTPClient(client *http.Client) *GetSMTPReportParams

NewGetSMTPReportParamsWithHTTPClient creates a new GetSMTPReportParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSMTPReportParamsWithTimeout

func NewGetSMTPReportParamsWithTimeout(timeout time.Duration) *GetSMTPReportParams

NewGetSMTPReportParamsWithTimeout creates a new GetSMTPReportParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSMTPReportParams) SetContext

func (o *GetSMTPReportParams) SetContext(ctx context.Context)

SetContext adds the context to the get Smtp report params

func (*GetSMTPReportParams) SetDays

func (o *GetSMTPReportParams) SetDays(days *int64)

SetDays adds the days to the get Smtp report params

func (*GetSMTPReportParams) SetEndDate

func (o *GetSMTPReportParams) SetEndDate(endDate *strfmt.Date)

SetEndDate adds the endDate to the get Smtp report params

func (*GetSMTPReportParams) SetHTTPClient

func (o *GetSMTPReportParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Smtp report params

func (*GetSMTPReportParams) SetLimit

func (o *GetSMTPReportParams) SetLimit(limit *int64)

SetLimit adds the limit to the get Smtp report params

func (*GetSMTPReportParams) SetOffset

func (o *GetSMTPReportParams) SetOffset(offset *int64)

SetOffset adds the offset to the get Smtp report params

func (*GetSMTPReportParams) SetStartDate

func (o *GetSMTPReportParams) SetStartDate(startDate *strfmt.Date)

SetStartDate adds the startDate to the get Smtp report params

func (*GetSMTPReportParams) SetTag

func (o *GetSMTPReportParams) SetTag(tag *string)

SetTag adds the tag to the get Smtp report params

func (*GetSMTPReportParams) SetTimeout

func (o *GetSMTPReportParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Smtp report params

func (*GetSMTPReportParams) WithContext

WithContext adds the context to the get Smtp report params

func (*GetSMTPReportParams) WithDays

func (o *GetSMTPReportParams) WithDays(days *int64) *GetSMTPReportParams

WithDays adds the days to the get Smtp report params

func (*GetSMTPReportParams) WithEndDate

func (o *GetSMTPReportParams) WithEndDate(endDate *strfmt.Date) *GetSMTPReportParams

WithEndDate adds the endDate to the get Smtp report params

func (*GetSMTPReportParams) WithHTTPClient

func (o *GetSMTPReportParams) WithHTTPClient(client *http.Client) *GetSMTPReportParams

WithHTTPClient adds the HTTPClient to the get Smtp report params

func (*GetSMTPReportParams) WithLimit

func (o *GetSMTPReportParams) WithLimit(limit *int64) *GetSMTPReportParams

WithLimit adds the limit to the get Smtp report params

func (*GetSMTPReportParams) WithOffset

func (o *GetSMTPReportParams) WithOffset(offset *int64) *GetSMTPReportParams

WithOffset adds the offset to the get Smtp report params

func (*GetSMTPReportParams) WithStartDate

func (o *GetSMTPReportParams) WithStartDate(startDate *strfmt.Date) *GetSMTPReportParams

WithStartDate adds the startDate to the get Smtp report params

func (*GetSMTPReportParams) WithTag

WithTag adds the tag to the get Smtp report params

func (*GetSMTPReportParams) WithTimeout

func (o *GetSMTPReportParams) WithTimeout(timeout time.Duration) *GetSMTPReportParams

WithTimeout adds the timeout to the get Smtp report params

func (*GetSMTPReportParams) WriteToRequest

func (o *GetSMTPReportParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSMTPReportReader

type GetSMTPReportReader struct {
	// contains filtered or unexported fields
}

GetSMTPReportReader is a Reader for the GetSMTPReport structure.

func (*GetSMTPReportReader) ReadResponse

func (o *GetSMTPReportReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSMTPTemplateBadRequest

type GetSMTPTemplateBadRequest struct {
	Payload *models.ErrorModel
}

GetSMTPTemplateBadRequest handles this case with default header values.

bad request

func NewGetSMTPTemplateBadRequest

func NewGetSMTPTemplateBadRequest() *GetSMTPTemplateBadRequest

NewGetSMTPTemplateBadRequest creates a GetSMTPTemplateBadRequest with default headers values

func (*GetSMTPTemplateBadRequest) Error

func (o *GetSMTPTemplateBadRequest) Error() string

type GetSMTPTemplateNotFound

type GetSMTPTemplateNotFound struct {
	Payload *models.ErrorModel
}

GetSMTPTemplateNotFound handles this case with default header values.

Template ID not found

func NewGetSMTPTemplateNotFound

func NewGetSMTPTemplateNotFound() *GetSMTPTemplateNotFound

NewGetSMTPTemplateNotFound creates a GetSMTPTemplateNotFound with default headers values

func (*GetSMTPTemplateNotFound) Error

func (o *GetSMTPTemplateNotFound) Error() string

type GetSMTPTemplateOK

type GetSMTPTemplateOK struct {
	Payload *models.GetSMTPTemplateOverview
}

GetSMTPTemplateOK handles this case with default header values.

Email template informations

func NewGetSMTPTemplateOK

func NewGetSMTPTemplateOK() *GetSMTPTemplateOK

NewGetSMTPTemplateOK creates a GetSMTPTemplateOK with default headers values

func (*GetSMTPTemplateOK) Error

func (o *GetSMTPTemplateOK) Error() string

type GetSMTPTemplateParams

type GetSMTPTemplateParams struct {

	/*TemplateID
	  id of the template

	*/
	TemplateID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSMTPTemplateParams contains all the parameters to send to the API endpoint for the get Smtp template operation typically these are written to a http.Request

func NewGetSMTPTemplateParams

func NewGetSMTPTemplateParams() *GetSMTPTemplateParams

NewGetSMTPTemplateParams creates a new GetSMTPTemplateParams object with the default values initialized.

func NewGetSMTPTemplateParamsWithContext

func NewGetSMTPTemplateParamsWithContext(ctx context.Context) *GetSMTPTemplateParams

NewGetSMTPTemplateParamsWithContext creates a new GetSMTPTemplateParams object with the default values initialized, and the ability to set a context for a request

func NewGetSMTPTemplateParamsWithHTTPClient

func NewGetSMTPTemplateParamsWithHTTPClient(client *http.Client) *GetSMTPTemplateParams

NewGetSMTPTemplateParamsWithHTTPClient creates a new GetSMTPTemplateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSMTPTemplateParamsWithTimeout

func NewGetSMTPTemplateParamsWithTimeout(timeout time.Duration) *GetSMTPTemplateParams

NewGetSMTPTemplateParamsWithTimeout creates a new GetSMTPTemplateParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSMTPTemplateParams) SetContext

func (o *GetSMTPTemplateParams) SetContext(ctx context.Context)

SetContext adds the context to the get Smtp template params

func (*GetSMTPTemplateParams) SetHTTPClient

func (o *GetSMTPTemplateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Smtp template params

func (*GetSMTPTemplateParams) SetTemplateID

func (o *GetSMTPTemplateParams) SetTemplateID(templateID int64)

SetTemplateID adds the templateId to the get Smtp template params

func (*GetSMTPTemplateParams) SetTimeout

func (o *GetSMTPTemplateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Smtp template params

func (*GetSMTPTemplateParams) WithContext

WithContext adds the context to the get Smtp template params

func (*GetSMTPTemplateParams) WithHTTPClient

func (o *GetSMTPTemplateParams) WithHTTPClient(client *http.Client) *GetSMTPTemplateParams

WithHTTPClient adds the HTTPClient to the get Smtp template params

func (*GetSMTPTemplateParams) WithTemplateID

func (o *GetSMTPTemplateParams) WithTemplateID(templateID int64) *GetSMTPTemplateParams

WithTemplateID adds the templateID to the get Smtp template params

func (*GetSMTPTemplateParams) WithTimeout

func (o *GetSMTPTemplateParams) WithTimeout(timeout time.Duration) *GetSMTPTemplateParams

WithTimeout adds the timeout to the get Smtp template params

func (*GetSMTPTemplateParams) WriteToRequest

func (o *GetSMTPTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSMTPTemplateReader

type GetSMTPTemplateReader struct {
	// contains filtered or unexported fields
}

GetSMTPTemplateReader is a Reader for the GetSMTPTemplate structure.

func (*GetSMTPTemplateReader) ReadResponse

func (o *GetSMTPTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSMTPTemplatesBadRequest

type GetSMTPTemplatesBadRequest struct {
	Payload *models.ErrorModel
}

GetSMTPTemplatesBadRequest handles this case with default header values.

bad request

func NewGetSMTPTemplatesBadRequest

func NewGetSMTPTemplatesBadRequest() *GetSMTPTemplatesBadRequest

NewGetSMTPTemplatesBadRequest creates a GetSMTPTemplatesBadRequest with default headers values

func (*GetSMTPTemplatesBadRequest) Error

type GetSMTPTemplatesOK

type GetSMTPTemplatesOK struct {
	Payload *models.GetSMTPTemplates
}

GetSMTPTemplatesOK handles this case with default header values.

SMTP templates informations

func NewGetSMTPTemplatesOK

func NewGetSMTPTemplatesOK() *GetSMTPTemplatesOK

NewGetSMTPTemplatesOK creates a GetSMTPTemplatesOK with default headers values

func (*GetSMTPTemplatesOK) Error

func (o *GetSMTPTemplatesOK) Error() string

type GetSMTPTemplatesParams

type GetSMTPTemplatesParams struct {

	/*Limit
	  Number of documents returned per page

	*/
	Limit *int64
	/*Offset
	  Index of the first document in the page

	*/
	Offset *int64
	/*TemplateStatus
	  Filter on the status of the template. Active = true, inactive = false

	*/
	TemplateStatus *bool

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSMTPTemplatesParams contains all the parameters to send to the API endpoint for the get Smtp templates operation typically these are written to a http.Request

func NewGetSMTPTemplatesParams

func NewGetSMTPTemplatesParams() *GetSMTPTemplatesParams

NewGetSMTPTemplatesParams creates a new GetSMTPTemplatesParams object with the default values initialized.

func NewGetSMTPTemplatesParamsWithContext

func NewGetSMTPTemplatesParamsWithContext(ctx context.Context) *GetSMTPTemplatesParams

NewGetSMTPTemplatesParamsWithContext creates a new GetSMTPTemplatesParams object with the default values initialized, and the ability to set a context for a request

func NewGetSMTPTemplatesParamsWithHTTPClient

func NewGetSMTPTemplatesParamsWithHTTPClient(client *http.Client) *GetSMTPTemplatesParams

NewGetSMTPTemplatesParamsWithHTTPClient creates a new GetSMTPTemplatesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSMTPTemplatesParamsWithTimeout

func NewGetSMTPTemplatesParamsWithTimeout(timeout time.Duration) *GetSMTPTemplatesParams

NewGetSMTPTemplatesParamsWithTimeout creates a new GetSMTPTemplatesParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSMTPTemplatesParams) SetContext

func (o *GetSMTPTemplatesParams) SetContext(ctx context.Context)

SetContext adds the context to the get Smtp templates params

func (*GetSMTPTemplatesParams) SetHTTPClient

func (o *GetSMTPTemplatesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Smtp templates params

func (*GetSMTPTemplatesParams) SetLimit

func (o *GetSMTPTemplatesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get Smtp templates params

func (*GetSMTPTemplatesParams) SetOffset

func (o *GetSMTPTemplatesParams) SetOffset(offset *int64)

SetOffset adds the offset to the get Smtp templates params

func (*GetSMTPTemplatesParams) SetTemplateStatus

func (o *GetSMTPTemplatesParams) SetTemplateStatus(templateStatus *bool)

SetTemplateStatus adds the templateStatus to the get Smtp templates params

func (*GetSMTPTemplatesParams) SetTimeout

func (o *GetSMTPTemplatesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Smtp templates params

func (*GetSMTPTemplatesParams) WithContext

WithContext adds the context to the get Smtp templates params

func (*GetSMTPTemplatesParams) WithHTTPClient

func (o *GetSMTPTemplatesParams) WithHTTPClient(client *http.Client) *GetSMTPTemplatesParams

WithHTTPClient adds the HTTPClient to the get Smtp templates params

func (*GetSMTPTemplatesParams) WithLimit

func (o *GetSMTPTemplatesParams) WithLimit(limit *int64) *GetSMTPTemplatesParams

WithLimit adds the limit to the get Smtp templates params

func (*GetSMTPTemplatesParams) WithOffset

func (o *GetSMTPTemplatesParams) WithOffset(offset *int64) *GetSMTPTemplatesParams

WithOffset adds the offset to the get Smtp templates params

func (*GetSMTPTemplatesParams) WithTemplateStatus

func (o *GetSMTPTemplatesParams) WithTemplateStatus(templateStatus *bool) *GetSMTPTemplatesParams

WithTemplateStatus adds the templateStatus to the get Smtp templates params

func (*GetSMTPTemplatesParams) WithTimeout

WithTimeout adds the timeout to the get Smtp templates params

func (*GetSMTPTemplatesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetSMTPTemplatesReader

type GetSMTPTemplatesReader struct {
	// contains filtered or unexported fields
}

GetSMTPTemplatesReader is a Reader for the GetSMTPTemplates structure.

func (*GetSMTPTemplatesReader) ReadResponse

func (o *GetSMTPTemplatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendTemplateBadRequest

type SendTemplateBadRequest struct {
	Payload *models.PostSendFailed
}

SendTemplateBadRequest handles this case with default header values.

Email could not be sent to the following email addresses

func NewSendTemplateBadRequest

func NewSendTemplateBadRequest() *SendTemplateBadRequest

NewSendTemplateBadRequest creates a SendTemplateBadRequest with default headers values

func (*SendTemplateBadRequest) Error

func (o *SendTemplateBadRequest) Error() string

type SendTemplateCreated

type SendTemplateCreated struct {
	Payload *models.SendTemplateEmail
}

SendTemplateCreated handles this case with default header values.

Email has been sent successfully to all recipients

func NewSendTemplateCreated

func NewSendTemplateCreated() *SendTemplateCreated

NewSendTemplateCreated creates a SendTemplateCreated with default headers values

func (*SendTemplateCreated) Error

func (o *SendTemplateCreated) Error() string

type SendTemplateNotFound

type SendTemplateNotFound struct {
	Payload *models.ErrorModel
}

SendTemplateNotFound handles this case with default header values.

Template ID not found

func NewSendTemplateNotFound

func NewSendTemplateNotFound() *SendTemplateNotFound

NewSendTemplateNotFound creates a SendTemplateNotFound with default headers values

func (*SendTemplateNotFound) Error

func (o *SendTemplateNotFound) Error() string

type SendTemplateParams

type SendTemplateParams struct {

	/*SendEmail*/
	SendEmail *models.SendEmail
	/*TemplateID
	  Id of the template

	*/
	TemplateID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendTemplateParams contains all the parameters to send to the API endpoint for the send template operation typically these are written to a http.Request

func NewSendTemplateParams

func NewSendTemplateParams() *SendTemplateParams

NewSendTemplateParams creates a new SendTemplateParams object with the default values initialized.

func NewSendTemplateParamsWithContext

func NewSendTemplateParamsWithContext(ctx context.Context) *SendTemplateParams

NewSendTemplateParamsWithContext creates a new SendTemplateParams object with the default values initialized, and the ability to set a context for a request

func NewSendTemplateParamsWithHTTPClient

func NewSendTemplateParamsWithHTTPClient(client *http.Client) *SendTemplateParams

NewSendTemplateParamsWithHTTPClient creates a new SendTemplateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendTemplateParamsWithTimeout

func NewSendTemplateParamsWithTimeout(timeout time.Duration) *SendTemplateParams

NewSendTemplateParamsWithTimeout creates a new SendTemplateParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendTemplateParams) SetContext

func (o *SendTemplateParams) SetContext(ctx context.Context)

SetContext adds the context to the send template params

func (*SendTemplateParams) SetHTTPClient

func (o *SendTemplateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send template params

func (*SendTemplateParams) SetSendEmail

func (o *SendTemplateParams) SetSendEmail(sendEmail *models.SendEmail)

SetSendEmail adds the sendEmail to the send template params

func (*SendTemplateParams) SetTemplateID

func (o *SendTemplateParams) SetTemplateID(templateID int64)

SetTemplateID adds the templateId to the send template params

func (*SendTemplateParams) SetTimeout

func (o *SendTemplateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send template params

func (*SendTemplateParams) WithContext

WithContext adds the context to the send template params

func (*SendTemplateParams) WithHTTPClient

func (o *SendTemplateParams) WithHTTPClient(client *http.Client) *SendTemplateParams

WithHTTPClient adds the HTTPClient to the send template params

func (*SendTemplateParams) WithSendEmail

func (o *SendTemplateParams) WithSendEmail(sendEmail *models.SendEmail) *SendTemplateParams

WithSendEmail adds the sendEmail to the send template params

func (*SendTemplateParams) WithTemplateID

func (o *SendTemplateParams) WithTemplateID(templateID int64) *SendTemplateParams

WithTemplateID adds the templateID to the send template params

func (*SendTemplateParams) WithTimeout

func (o *SendTemplateParams) WithTimeout(timeout time.Duration) *SendTemplateParams

WithTimeout adds the timeout to the send template params

func (*SendTemplateParams) WriteToRequest

func (o *SendTemplateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SendTemplateReader

type SendTemplateReader struct {
	// contains filtered or unexported fields
}

SendTemplateReader is a Reader for the SendTemplate structure.

func (*SendTemplateReader) ReadResponse

func (o *SendTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendTestTemplateBadRequest

type SendTestTemplateBadRequest struct {
	Payload *models.PostSendFailed
}

SendTestTemplateBadRequest handles this case with default header values.

Test email could not be sent to the following email addresses

func NewSendTestTemplateBadRequest

func NewSendTestTemplateBadRequest() *SendTestTemplateBadRequest

NewSendTestTemplateBadRequest creates a SendTestTemplateBadRequest with default headers values

func (*SendTestTemplateBadRequest) Error

type SendTestTemplateNoContent

type SendTestTemplateNoContent struct {
}

SendTestTemplateNoContent handles this case with default header values.

Test email has been sent successfully to all recipients

func NewSendTestTemplateNoContent

func NewSendTestTemplateNoContent() *SendTestTemplateNoContent

NewSendTestTemplateNoContent creates a SendTestTemplateNoContent with default headers values

func (*SendTestTemplateNoContent) Error

func (o *SendTestTemplateNoContent) Error() string

type SendTestTemplateNotFound

type SendTestTemplateNotFound struct {
	Payload *models.ErrorModel
}

SendTestTemplateNotFound handles this case with default header values.

Template ID not found

func NewSendTestTemplateNotFound

func NewSendTestTemplateNotFound() *SendTestTemplateNotFound

NewSendTestTemplateNotFound creates a SendTestTemplateNotFound with default headers values

func (*SendTestTemplateNotFound) Error

func (o *SendTestTemplateNotFound) Error() string

type SendTestTemplateParams

type SendTestTemplateParams struct {

	/*SendTestEmail*/
	SendTestEmail *models.SendTestEmail
	/*TemplateID
	  Id of the template

	*/
	TemplateID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendTestTemplateParams contains all the parameters to send to the API endpoint for the send test template operation typically these are written to a http.Request

func NewSendTestTemplateParams

func NewSendTestTemplateParams() *SendTestTemplateParams

NewSendTestTemplateParams creates a new SendTestTemplateParams object with the default values initialized.

func NewSendTestTemplateParamsWithContext

func NewSendTestTemplateParamsWithContext(ctx context.Context) *SendTestTemplateParams

NewSendTestTemplateParamsWithContext creates a new SendTestTemplateParams object with the default values initialized, and the ability to set a context for a request

func NewSendTestTemplateParamsWithHTTPClient

func NewSendTestTemplateParamsWithHTTPClient(client *http.Client) *SendTestTemplateParams

NewSendTestTemplateParamsWithHTTPClient creates a new SendTestTemplateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendTestTemplateParamsWithTimeout

func NewSendTestTemplateParamsWithTimeout(timeout time.Duration) *SendTestTemplateParams

NewSendTestTemplateParamsWithTimeout creates a new SendTestTemplateParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendTestTemplateParams) SetContext

func (o *SendTestTemplateParams) SetContext(ctx context.Context)

SetContext adds the context to the send test template params

func (*SendTestTemplateParams) SetHTTPClient

func (o *SendTestTemplateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send test template params

func (*SendTestTemplateParams) SetSendTestEmail

func (o *SendTestTemplateParams) SetSendTestEmail(sendTestEmail *models.SendTestEmail)

SetSendTestEmail adds the sendTestEmail to the send test template params

func (*SendTestTemplateParams) SetTemplateID

func (o *SendTestTemplateParams) SetTemplateID(templateID int64)

SetTemplateID adds the templateId to the send test template params

func (*SendTestTemplateParams) SetTimeout

func (o *SendTestTemplateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send test template params

func (*SendTestTemplateParams) WithContext

WithContext adds the context to the send test template params

func (*SendTestTemplateParams) WithHTTPClient

func (o *SendTestTemplateParams) WithHTTPClient(client *http.Client) *SendTestTemplateParams

WithHTTPClient adds the HTTPClient to the send test template params

func (*SendTestTemplateParams) WithSendTestEmail

func (o *SendTestTemplateParams) WithSendTestEmail(sendTestEmail *models.SendTestEmail) *SendTestTemplateParams

WithSendTestEmail adds the sendTestEmail to the send test template params

func (*SendTestTemplateParams) WithTemplateID

func (o *SendTestTemplateParams) WithTemplateID(templateID int64) *SendTestTemplateParams

WithTemplateID adds the templateID to the send test template params

func (*SendTestTemplateParams) WithTimeout

WithTimeout adds the timeout to the send test template params

func (*SendTestTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SendTestTemplateReader

type SendTestTemplateReader struct {
	// contains filtered or unexported fields
}

SendTestTemplateReader is a Reader for the SendTestTemplate structure.

func (*SendTestTemplateReader) ReadResponse

func (o *SendTestTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SendTransacEmailBadRequest

type SendTransacEmailBadRequest struct {
	Payload *models.ErrorModel
}

SendTransacEmailBadRequest handles this case with default header values.

bad request

func NewSendTransacEmailBadRequest

func NewSendTransacEmailBadRequest() *SendTransacEmailBadRequest

NewSendTransacEmailBadRequest creates a SendTransacEmailBadRequest with default headers values

func (*SendTransacEmailBadRequest) Error

type SendTransacEmailCreated

type SendTransacEmailCreated struct {
	Payload *models.CreateSMTPEmail
}

SendTransacEmailCreated handles this case with default header values.

SMTP email sent

func NewSendTransacEmailCreated

func NewSendTransacEmailCreated() *SendTransacEmailCreated

NewSendTransacEmailCreated creates a SendTransacEmailCreated with default headers values

func (*SendTransacEmailCreated) Error

func (o *SendTransacEmailCreated) Error() string

type SendTransacEmailParams

type SendTransacEmailParams struct {

	/*SendSMTPEmail
	  Values to send a transactional email

	*/
	SendSMTPEmail *models.SendSMTPEmail

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SendTransacEmailParams contains all the parameters to send to the API endpoint for the send transac email operation typically these are written to a http.Request

func NewSendTransacEmailParams

func NewSendTransacEmailParams() *SendTransacEmailParams

NewSendTransacEmailParams creates a new SendTransacEmailParams object with the default values initialized.

func NewSendTransacEmailParamsWithContext

func NewSendTransacEmailParamsWithContext(ctx context.Context) *SendTransacEmailParams

NewSendTransacEmailParamsWithContext creates a new SendTransacEmailParams object with the default values initialized, and the ability to set a context for a request

func NewSendTransacEmailParamsWithHTTPClient

func NewSendTransacEmailParamsWithHTTPClient(client *http.Client) *SendTransacEmailParams

NewSendTransacEmailParamsWithHTTPClient creates a new SendTransacEmailParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSendTransacEmailParamsWithTimeout

func NewSendTransacEmailParamsWithTimeout(timeout time.Duration) *SendTransacEmailParams

NewSendTransacEmailParamsWithTimeout creates a new SendTransacEmailParams object with the default values initialized, and the ability to set a timeout on a request

func (*SendTransacEmailParams) SetContext

func (o *SendTransacEmailParams) SetContext(ctx context.Context)

SetContext adds the context to the send transac email params

func (*SendTransacEmailParams) SetHTTPClient

func (o *SendTransacEmailParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the send transac email params

func (*SendTransacEmailParams) SetSendSMTPEmail

func (o *SendTransacEmailParams) SetSendSMTPEmail(sendSMTPEmail *models.SendSMTPEmail)

SetSendSMTPEmail adds the sendSmtpEmail to the send transac email params

func (*SendTransacEmailParams) SetTimeout

func (o *SendTransacEmailParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the send transac email params

func (*SendTransacEmailParams) WithContext

WithContext adds the context to the send transac email params

func (*SendTransacEmailParams) WithHTTPClient

func (o *SendTransacEmailParams) WithHTTPClient(client *http.Client) *SendTransacEmailParams

WithHTTPClient adds the HTTPClient to the send transac email params

func (*SendTransacEmailParams) WithSendSMTPEmail

func (o *SendTransacEmailParams) WithSendSMTPEmail(sendSMTPEmail *models.SendSMTPEmail) *SendTransacEmailParams

WithSendSMTPEmail adds the sendSMTPEmail to the send transac email params

func (*SendTransacEmailParams) WithTimeout

WithTimeout adds the timeout to the send transac email params

func (*SendTransacEmailParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SendTransacEmailReader

type SendTransacEmailReader struct {
	// contains filtered or unexported fields
}

SendTransacEmailReader is a Reader for the SendTransacEmail structure.

func (*SendTransacEmailReader) ReadResponse

func (o *SendTransacEmailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateSMTPTemplateBadRequest

type UpdateSMTPTemplateBadRequest struct {
	Payload *models.ErrorModel
}

UpdateSMTPTemplateBadRequest handles this case with default header values.

bad request

func NewUpdateSMTPTemplateBadRequest

func NewUpdateSMTPTemplateBadRequest() *UpdateSMTPTemplateBadRequest

NewUpdateSMTPTemplateBadRequest creates a UpdateSMTPTemplateBadRequest with default headers values

func (*UpdateSMTPTemplateBadRequest) Error

type UpdateSMTPTemplateNoContent

type UpdateSMTPTemplateNoContent struct {
}

UpdateSMTPTemplateNoContent handles this case with default header values.

SMTP template updated

func NewUpdateSMTPTemplateNoContent

func NewUpdateSMTPTemplateNoContent() *UpdateSMTPTemplateNoContent

NewUpdateSMTPTemplateNoContent creates a UpdateSMTPTemplateNoContent with default headers values

func (*UpdateSMTPTemplateNoContent) Error

type UpdateSMTPTemplateNotFound

type UpdateSMTPTemplateNotFound struct {
	Payload *models.ErrorModel
}

UpdateSMTPTemplateNotFound handles this case with default header values.

Template ID not found

func NewUpdateSMTPTemplateNotFound

func NewUpdateSMTPTemplateNotFound() *UpdateSMTPTemplateNotFound

NewUpdateSMTPTemplateNotFound creates a UpdateSMTPTemplateNotFound with default headers values

func (*UpdateSMTPTemplateNotFound) Error

type UpdateSMTPTemplateParams

type UpdateSMTPTemplateParams struct {

	/*SMTPTemplate
	  values to update in smtp template

	*/
	SMTPTemplate *models.UpdateSMTPTemplate
	/*TemplateID
	  id of the template

	*/
	TemplateID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateSMTPTemplateParams contains all the parameters to send to the API endpoint for the update Smtp template operation typically these are written to a http.Request

func NewUpdateSMTPTemplateParams

func NewUpdateSMTPTemplateParams() *UpdateSMTPTemplateParams

NewUpdateSMTPTemplateParams creates a new UpdateSMTPTemplateParams object with the default values initialized.

func NewUpdateSMTPTemplateParamsWithContext

func NewUpdateSMTPTemplateParamsWithContext(ctx context.Context) *UpdateSMTPTemplateParams

NewUpdateSMTPTemplateParamsWithContext creates a new UpdateSMTPTemplateParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateSMTPTemplateParamsWithHTTPClient

func NewUpdateSMTPTemplateParamsWithHTTPClient(client *http.Client) *UpdateSMTPTemplateParams

NewUpdateSMTPTemplateParamsWithHTTPClient creates a new UpdateSMTPTemplateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateSMTPTemplateParamsWithTimeout

func NewUpdateSMTPTemplateParamsWithTimeout(timeout time.Duration) *UpdateSMTPTemplateParams

NewUpdateSMTPTemplateParamsWithTimeout creates a new UpdateSMTPTemplateParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateSMTPTemplateParams) SetContext

func (o *UpdateSMTPTemplateParams) SetContext(ctx context.Context)

SetContext adds the context to the update Smtp template params

func (*UpdateSMTPTemplateParams) SetHTTPClient

func (o *UpdateSMTPTemplateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update Smtp template params

func (*UpdateSMTPTemplateParams) SetSMTPTemplate

func (o *UpdateSMTPTemplateParams) SetSMTPTemplate(sMTPTemplate *models.UpdateSMTPTemplate)

SetSMTPTemplate adds the smtpTemplate to the update Smtp template params

func (*UpdateSMTPTemplateParams) SetTemplateID

func (o *UpdateSMTPTemplateParams) SetTemplateID(templateID int64)

SetTemplateID adds the templateId to the update Smtp template params

func (*UpdateSMTPTemplateParams) SetTimeout

func (o *UpdateSMTPTemplateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update Smtp template params

func (*UpdateSMTPTemplateParams) WithContext

WithContext adds the context to the update Smtp template params

func (*UpdateSMTPTemplateParams) WithHTTPClient

func (o *UpdateSMTPTemplateParams) WithHTTPClient(client *http.Client) *UpdateSMTPTemplateParams

WithHTTPClient adds the HTTPClient to the update Smtp template params

func (*UpdateSMTPTemplateParams) WithSMTPTemplate

func (o *UpdateSMTPTemplateParams) WithSMTPTemplate(sMTPTemplate *models.UpdateSMTPTemplate) *UpdateSMTPTemplateParams

WithSMTPTemplate adds the sMTPTemplate to the update Smtp template params

func (*UpdateSMTPTemplateParams) WithTemplateID

func (o *UpdateSMTPTemplateParams) WithTemplateID(templateID int64) *UpdateSMTPTemplateParams

WithTemplateID adds the templateID to the update Smtp template params

func (*UpdateSMTPTemplateParams) WithTimeout

WithTimeout adds the timeout to the update Smtp template params

func (*UpdateSMTPTemplateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateSMTPTemplateReader

type UpdateSMTPTemplateReader struct {
	// contains filtered or unexported fields
}

UpdateSMTPTemplateReader is a Reader for the UpdateSMTPTemplate structure.

func (*UpdateSMTPTemplateReader) ReadResponse

func (o *UpdateSMTPTemplateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL