email

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 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 email API

func (*Client) DeleteEmailConfiguration

func (a *Client) DeleteEmailConfiguration(params *DeleteEmailConfigurationParams, opts ...ClientOption) (*DeleteEmailConfigurationNoContent, error)

DeleteEmailConfiguration disables and clear the email configuration

func (*Client) GetEmailConfiguration

func (a *Client) GetEmailConfiguration(params *GetEmailConfigurationParams, opts ...ClientOption) (*GetEmailConfigurationOK, error)

GetEmailConfiguration retrieves the current email configuration

func (*Client) SetEmailConfiguration

func (a *Client) SetEmailConfiguration(params *SetEmailConfigurationParams, opts ...ClientOption) (*SetEmailConfigurationNoContent, error)

SetEmailConfiguration sets the current email configuration

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TestEmailConfiguration

func (a *Client) TestEmailConfiguration(params *TestEmailConfigurationParams, opts ...ClientOption) (*TestEmailConfigurationOK, error)

TestEmailConfiguration sends a test email to the email address provided in the request body

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteEmailConfiguration(params *DeleteEmailConfigurationParams, opts ...ClientOption) (*DeleteEmailConfigurationNoContent, error)

	GetEmailConfiguration(params *GetEmailConfigurationParams, opts ...ClientOption) (*GetEmailConfigurationOK, error)

	SetEmailConfiguration(params *SetEmailConfigurationParams, opts ...ClientOption) (*SetEmailConfigurationNoContent, error)

	TestEmailConfiguration(params *TestEmailConfigurationParams, opts ...ClientOption) (*TestEmailConfigurationOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new email API client.

type DeleteEmailConfigurationNoContent

type DeleteEmailConfigurationNoContent struct {
}

DeleteEmailConfigurationNoContent describes a response with status code 204, with default header values.

Email configuration was successfully cleared

func NewDeleteEmailConfigurationNoContent

func NewDeleteEmailConfigurationNoContent() *DeleteEmailConfigurationNoContent

NewDeleteEmailConfigurationNoContent creates a DeleteEmailConfigurationNoContent with default headers values

func (*DeleteEmailConfigurationNoContent) Code

Code gets the status code for the delete email configuration no content response

func (*DeleteEmailConfigurationNoContent) Error

func (*DeleteEmailConfigurationNoContent) IsClientError

func (o *DeleteEmailConfigurationNoContent) IsClientError() bool

IsClientError returns true when this delete email configuration no content response has a 4xx status code

func (*DeleteEmailConfigurationNoContent) IsCode

func (o *DeleteEmailConfigurationNoContent) IsCode(code int) bool

IsCode returns true when this delete email configuration no content response a status code equal to that given

func (*DeleteEmailConfigurationNoContent) IsRedirect

func (o *DeleteEmailConfigurationNoContent) IsRedirect() bool

IsRedirect returns true when this delete email configuration no content response has a 3xx status code

func (*DeleteEmailConfigurationNoContent) IsServerError

func (o *DeleteEmailConfigurationNoContent) IsServerError() bool

IsServerError returns true when this delete email configuration no content response has a 5xx status code

func (*DeleteEmailConfigurationNoContent) IsSuccess

func (o *DeleteEmailConfigurationNoContent) IsSuccess() bool

IsSuccess returns true when this delete email configuration no content response has a 2xx status code

func (*DeleteEmailConfigurationNoContent) String

type DeleteEmailConfigurationParams

type DeleteEmailConfigurationParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteEmailConfigurationParams contains all the parameters to send to the API endpoint

for the delete email configuration operation.

Typically these are written to a http.Request.

func NewDeleteEmailConfigurationParams

func NewDeleteEmailConfigurationParams() *DeleteEmailConfigurationParams

NewDeleteEmailConfigurationParams creates a new DeleteEmailConfigurationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteEmailConfigurationParamsWithContext

func NewDeleteEmailConfigurationParamsWithContext(ctx context.Context) *DeleteEmailConfigurationParams

NewDeleteEmailConfigurationParamsWithContext creates a new DeleteEmailConfigurationParams object with the ability to set a context for a request.

func NewDeleteEmailConfigurationParamsWithHTTPClient

func NewDeleteEmailConfigurationParamsWithHTTPClient(client *http.Client) *DeleteEmailConfigurationParams

NewDeleteEmailConfigurationParamsWithHTTPClient creates a new DeleteEmailConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteEmailConfigurationParamsWithTimeout

func NewDeleteEmailConfigurationParamsWithTimeout(timeout time.Duration) *DeleteEmailConfigurationParams

NewDeleteEmailConfigurationParamsWithTimeout creates a new DeleteEmailConfigurationParams object with the ability to set a timeout on a request.

func (*DeleteEmailConfigurationParams) SetContext

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

SetContext adds the context to the delete email configuration params

func (*DeleteEmailConfigurationParams) SetDefaults

func (o *DeleteEmailConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the delete email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteEmailConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete email configuration params

func (*DeleteEmailConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the delete email configuration params

func (*DeleteEmailConfigurationParams) WithContext

WithContext adds the context to the delete email configuration params

func (*DeleteEmailConfigurationParams) WithDefaults

WithDefaults hydrates default values in the delete email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteEmailConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete email configuration params

func (*DeleteEmailConfigurationParams) WithTimeout

WithTimeout adds the timeout to the delete email configuration params

func (*DeleteEmailConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteEmailConfigurationReader

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

DeleteEmailConfigurationReader is a Reader for the DeleteEmailConfiguration structure.

func (*DeleteEmailConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetEmailConfigurationForbidden

type GetEmailConfigurationForbidden struct {
}

GetEmailConfigurationForbidden describes a response with status code 403, with default header values.

Insufficient permissions to retrieve the email configuration

func NewGetEmailConfigurationForbidden

func NewGetEmailConfigurationForbidden() *GetEmailConfigurationForbidden

NewGetEmailConfigurationForbidden creates a GetEmailConfigurationForbidden with default headers values

func (*GetEmailConfigurationForbidden) Code

Code gets the status code for the get email configuration forbidden response

func (*GetEmailConfigurationForbidden) Error

func (*GetEmailConfigurationForbidden) IsClientError

func (o *GetEmailConfigurationForbidden) IsClientError() bool

IsClientError returns true when this get email configuration forbidden response has a 4xx status code

func (*GetEmailConfigurationForbidden) IsCode

func (o *GetEmailConfigurationForbidden) IsCode(code int) bool

IsCode returns true when this get email configuration forbidden response a status code equal to that given

func (*GetEmailConfigurationForbidden) IsRedirect

func (o *GetEmailConfigurationForbidden) IsRedirect() bool

IsRedirect returns true when this get email configuration forbidden response has a 3xx status code

func (*GetEmailConfigurationForbidden) IsServerError

func (o *GetEmailConfigurationForbidden) IsServerError() bool

IsServerError returns true when this get email configuration forbidden response has a 5xx status code

func (*GetEmailConfigurationForbidden) IsSuccess

func (o *GetEmailConfigurationForbidden) IsSuccess() bool

IsSuccess returns true when this get email configuration forbidden response has a 2xx status code

func (*GetEmailConfigurationForbidden) String

type GetEmailConfigurationOK

type GetEmailConfigurationOK struct {
	Payload *models.APIEmailConfiguration
}

GetEmailConfigurationOK describes a response with status code 200, with default header values.

successful operation

func NewGetEmailConfigurationOK

func NewGetEmailConfigurationOK() *GetEmailConfigurationOK

NewGetEmailConfigurationOK creates a GetEmailConfigurationOK with default headers values

func (*GetEmailConfigurationOK) Code

func (o *GetEmailConfigurationOK) Code() int

Code gets the status code for the get email configuration o k response

func (*GetEmailConfigurationOK) Error

func (o *GetEmailConfigurationOK) Error() string

func (*GetEmailConfigurationOK) GetPayload

func (*GetEmailConfigurationOK) IsClientError

func (o *GetEmailConfigurationOK) IsClientError() bool

IsClientError returns true when this get email configuration o k response has a 4xx status code

func (*GetEmailConfigurationOK) IsCode

func (o *GetEmailConfigurationOK) IsCode(code int) bool

IsCode returns true when this get email configuration o k response a status code equal to that given

func (*GetEmailConfigurationOK) IsRedirect

func (o *GetEmailConfigurationOK) IsRedirect() bool

IsRedirect returns true when this get email configuration o k response has a 3xx status code

func (*GetEmailConfigurationOK) IsServerError

func (o *GetEmailConfigurationOK) IsServerError() bool

IsServerError returns true when this get email configuration o k response has a 5xx status code

func (*GetEmailConfigurationOK) IsSuccess

func (o *GetEmailConfigurationOK) IsSuccess() bool

IsSuccess returns true when this get email configuration o k response has a 2xx status code

func (*GetEmailConfigurationOK) String

func (o *GetEmailConfigurationOK) String() string

type GetEmailConfigurationParams

type GetEmailConfigurationParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetEmailConfigurationParams contains all the parameters to send to the API endpoint

for the get email configuration operation.

Typically these are written to a http.Request.

func NewGetEmailConfigurationParams

func NewGetEmailConfigurationParams() *GetEmailConfigurationParams

NewGetEmailConfigurationParams creates a new GetEmailConfigurationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetEmailConfigurationParamsWithContext

func NewGetEmailConfigurationParamsWithContext(ctx context.Context) *GetEmailConfigurationParams

NewGetEmailConfigurationParamsWithContext creates a new GetEmailConfigurationParams object with the ability to set a context for a request.

func NewGetEmailConfigurationParamsWithHTTPClient

func NewGetEmailConfigurationParamsWithHTTPClient(client *http.Client) *GetEmailConfigurationParams

NewGetEmailConfigurationParamsWithHTTPClient creates a new GetEmailConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewGetEmailConfigurationParamsWithTimeout

func NewGetEmailConfigurationParamsWithTimeout(timeout time.Duration) *GetEmailConfigurationParams

NewGetEmailConfigurationParamsWithTimeout creates a new GetEmailConfigurationParams object with the ability to set a timeout on a request.

func (*GetEmailConfigurationParams) SetContext

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

SetContext adds the context to the get email configuration params

func (*GetEmailConfigurationParams) SetDefaults

func (o *GetEmailConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the get email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*GetEmailConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get email configuration params

func (*GetEmailConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the get email configuration params

func (*GetEmailConfigurationParams) WithContext

WithContext adds the context to the get email configuration params

func (*GetEmailConfigurationParams) WithDefaults

WithDefaults hydrates default values in the get email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*GetEmailConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get email configuration params

func (*GetEmailConfigurationParams) WithTimeout

WithTimeout adds the timeout to the get email configuration params

func (*GetEmailConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetEmailConfigurationReader

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

GetEmailConfigurationReader is a Reader for the GetEmailConfiguration structure.

func (*GetEmailConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetEmailConfigurationBadRequest

type SetEmailConfigurationBadRequest struct {
}

SetEmailConfigurationBadRequest describes a response with status code 400, with default header values.

Invalid request

func NewSetEmailConfigurationBadRequest

func NewSetEmailConfigurationBadRequest() *SetEmailConfigurationBadRequest

NewSetEmailConfigurationBadRequest creates a SetEmailConfigurationBadRequest with default headers values

func (*SetEmailConfigurationBadRequest) Code

Code gets the status code for the set email configuration bad request response

func (*SetEmailConfigurationBadRequest) Error

func (*SetEmailConfigurationBadRequest) IsClientError

func (o *SetEmailConfigurationBadRequest) IsClientError() bool

IsClientError returns true when this set email configuration bad request response has a 4xx status code

func (*SetEmailConfigurationBadRequest) IsCode

func (o *SetEmailConfigurationBadRequest) IsCode(code int) bool

IsCode returns true when this set email configuration bad request response a status code equal to that given

func (*SetEmailConfigurationBadRequest) IsRedirect

func (o *SetEmailConfigurationBadRequest) IsRedirect() bool

IsRedirect returns true when this set email configuration bad request response has a 3xx status code

func (*SetEmailConfigurationBadRequest) IsServerError

func (o *SetEmailConfigurationBadRequest) IsServerError() bool

IsServerError returns true when this set email configuration bad request response has a 5xx status code

func (*SetEmailConfigurationBadRequest) IsSuccess

func (o *SetEmailConfigurationBadRequest) IsSuccess() bool

IsSuccess returns true when this set email configuration bad request response has a 2xx status code

func (*SetEmailConfigurationBadRequest) String

type SetEmailConfigurationForbidden

type SetEmailConfigurationForbidden struct {
}

SetEmailConfigurationForbidden describes a response with status code 403, with default header values.

Insufficient permissions to update the email configuration

func NewSetEmailConfigurationForbidden

func NewSetEmailConfigurationForbidden() *SetEmailConfigurationForbidden

NewSetEmailConfigurationForbidden creates a SetEmailConfigurationForbidden with default headers values

func (*SetEmailConfigurationForbidden) Code

Code gets the status code for the set email configuration forbidden response

func (*SetEmailConfigurationForbidden) Error

func (*SetEmailConfigurationForbidden) IsClientError

func (o *SetEmailConfigurationForbidden) IsClientError() bool

IsClientError returns true when this set email configuration forbidden response has a 4xx status code

func (*SetEmailConfigurationForbidden) IsCode

func (o *SetEmailConfigurationForbidden) IsCode(code int) bool

IsCode returns true when this set email configuration forbidden response a status code equal to that given

func (*SetEmailConfigurationForbidden) IsRedirect

func (o *SetEmailConfigurationForbidden) IsRedirect() bool

IsRedirect returns true when this set email configuration forbidden response has a 3xx status code

func (*SetEmailConfigurationForbidden) IsServerError

func (o *SetEmailConfigurationForbidden) IsServerError() bool

IsServerError returns true when this set email configuration forbidden response has a 5xx status code

func (*SetEmailConfigurationForbidden) IsSuccess

func (o *SetEmailConfigurationForbidden) IsSuccess() bool

IsSuccess returns true when this set email configuration forbidden response has a 2xx status code

func (*SetEmailConfigurationForbidden) String

type SetEmailConfigurationNoContent

type SetEmailConfigurationNoContent struct {
}

SetEmailConfigurationNoContent describes a response with status code 204, with default header values.

Email configuration was successfully updated

func NewSetEmailConfigurationNoContent

func NewSetEmailConfigurationNoContent() *SetEmailConfigurationNoContent

NewSetEmailConfigurationNoContent creates a SetEmailConfigurationNoContent with default headers values

func (*SetEmailConfigurationNoContent) Code

Code gets the status code for the set email configuration no content response

func (*SetEmailConfigurationNoContent) Error

func (*SetEmailConfigurationNoContent) IsClientError

func (o *SetEmailConfigurationNoContent) IsClientError() bool

IsClientError returns true when this set email configuration no content response has a 4xx status code

func (*SetEmailConfigurationNoContent) IsCode

func (o *SetEmailConfigurationNoContent) IsCode(code int) bool

IsCode returns true when this set email configuration no content response a status code equal to that given

func (*SetEmailConfigurationNoContent) IsRedirect

func (o *SetEmailConfigurationNoContent) IsRedirect() bool

IsRedirect returns true when this set email configuration no content response has a 3xx status code

func (*SetEmailConfigurationNoContent) IsServerError

func (o *SetEmailConfigurationNoContent) IsServerError() bool

IsServerError returns true when this set email configuration no content response has a 5xx status code

func (*SetEmailConfigurationNoContent) IsSuccess

func (o *SetEmailConfigurationNoContent) IsSuccess() bool

IsSuccess returns true when this set email configuration no content response has a 2xx status code

func (*SetEmailConfigurationNoContent) String

type SetEmailConfigurationParams

type SetEmailConfigurationParams struct {

	// Body.
	Body *models.APIEmailConfiguration

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

SetEmailConfigurationParams contains all the parameters to send to the API endpoint

for the set email configuration operation.

Typically these are written to a http.Request.

func NewSetEmailConfigurationParams

func NewSetEmailConfigurationParams() *SetEmailConfigurationParams

NewSetEmailConfigurationParams creates a new SetEmailConfigurationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSetEmailConfigurationParamsWithContext

func NewSetEmailConfigurationParamsWithContext(ctx context.Context) *SetEmailConfigurationParams

NewSetEmailConfigurationParamsWithContext creates a new SetEmailConfigurationParams object with the ability to set a context for a request.

func NewSetEmailConfigurationParamsWithHTTPClient

func NewSetEmailConfigurationParamsWithHTTPClient(client *http.Client) *SetEmailConfigurationParams

NewSetEmailConfigurationParamsWithHTTPClient creates a new SetEmailConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewSetEmailConfigurationParamsWithTimeout

func NewSetEmailConfigurationParamsWithTimeout(timeout time.Duration) *SetEmailConfigurationParams

NewSetEmailConfigurationParamsWithTimeout creates a new SetEmailConfigurationParams object with the ability to set a timeout on a request.

func (*SetEmailConfigurationParams) SetBody

SetBody adds the body to the set email configuration params

func (*SetEmailConfigurationParams) SetContext

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

SetContext adds the context to the set email configuration params

func (*SetEmailConfigurationParams) SetDefaults

func (o *SetEmailConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the set email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*SetEmailConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set email configuration params

func (*SetEmailConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the set email configuration params

func (*SetEmailConfigurationParams) WithBody

WithBody adds the body to the set email configuration params

func (*SetEmailConfigurationParams) WithContext

WithContext adds the context to the set email configuration params

func (*SetEmailConfigurationParams) WithDefaults

WithDefaults hydrates default values in the set email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*SetEmailConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the set email configuration params

func (*SetEmailConfigurationParams) WithTimeout

WithTimeout adds the timeout to the set email configuration params

func (*SetEmailConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetEmailConfigurationReader

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

SetEmailConfigurationReader is a Reader for the SetEmailConfiguration structure.

func (*SetEmailConfigurationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TestEmailConfigurationForbidden

type TestEmailConfigurationForbidden struct {
}

TestEmailConfigurationForbidden describes a response with status code 403, with default header values.

Insufficient permissions to verify the email configuration

func NewTestEmailConfigurationForbidden

func NewTestEmailConfigurationForbidden() *TestEmailConfigurationForbidden

NewTestEmailConfigurationForbidden creates a TestEmailConfigurationForbidden with default headers values

func (*TestEmailConfigurationForbidden) Code

Code gets the status code for the test email configuration forbidden response

func (*TestEmailConfigurationForbidden) Error

func (*TestEmailConfigurationForbidden) IsClientError

func (o *TestEmailConfigurationForbidden) IsClientError() bool

IsClientError returns true when this test email configuration forbidden response has a 4xx status code

func (*TestEmailConfigurationForbidden) IsCode

func (o *TestEmailConfigurationForbidden) IsCode(code int) bool

IsCode returns true when this test email configuration forbidden response a status code equal to that given

func (*TestEmailConfigurationForbidden) IsRedirect

func (o *TestEmailConfigurationForbidden) IsRedirect() bool

IsRedirect returns true when this test email configuration forbidden response has a 3xx status code

func (*TestEmailConfigurationForbidden) IsServerError

func (o *TestEmailConfigurationForbidden) IsServerError() bool

IsServerError returns true when this test email configuration forbidden response has a 5xx status code

func (*TestEmailConfigurationForbidden) IsSuccess

func (o *TestEmailConfigurationForbidden) IsSuccess() bool

IsSuccess returns true when this test email configuration forbidden response has a 2xx status code

func (*TestEmailConfigurationForbidden) String

type TestEmailConfigurationOK

type TestEmailConfigurationOK struct {
	Payload *models.APIEmailValidation
}

TestEmailConfigurationOK describes a response with status code 200, with default header values.

Validation was complete, look at the body to determine success

func NewTestEmailConfigurationOK

func NewTestEmailConfigurationOK() *TestEmailConfigurationOK

NewTestEmailConfigurationOK creates a TestEmailConfigurationOK with default headers values

func (*TestEmailConfigurationOK) Code

func (o *TestEmailConfigurationOK) Code() int

Code gets the status code for the test email configuration o k response

func (*TestEmailConfigurationOK) Error

func (o *TestEmailConfigurationOK) Error() string

func (*TestEmailConfigurationOK) GetPayload

func (*TestEmailConfigurationOK) IsClientError

func (o *TestEmailConfigurationOK) IsClientError() bool

IsClientError returns true when this test email configuration o k response has a 4xx status code

func (*TestEmailConfigurationOK) IsCode

func (o *TestEmailConfigurationOK) IsCode(code int) bool

IsCode returns true when this test email configuration o k response a status code equal to that given

func (*TestEmailConfigurationOK) IsRedirect

func (o *TestEmailConfigurationOK) IsRedirect() bool

IsRedirect returns true when this test email configuration o k response has a 3xx status code

func (*TestEmailConfigurationOK) IsServerError

func (o *TestEmailConfigurationOK) IsServerError() bool

IsServerError returns true when this test email configuration o k response has a 5xx status code

func (*TestEmailConfigurationOK) IsSuccess

func (o *TestEmailConfigurationOK) IsSuccess() bool

IsSuccess returns true when this test email configuration o k response has a 2xx status code

func (*TestEmailConfigurationOK) String

func (o *TestEmailConfigurationOK) String() string

type TestEmailConfigurationParams

type TestEmailConfigurationParams struct {

	/* Body.

	   An email address to send a test email to
	*/
	Body string

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

TestEmailConfigurationParams contains all the parameters to send to the API endpoint

for the test email configuration operation.

Typically these are written to a http.Request.

func NewTestEmailConfigurationParams

func NewTestEmailConfigurationParams() *TestEmailConfigurationParams

NewTestEmailConfigurationParams creates a new TestEmailConfigurationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewTestEmailConfigurationParamsWithContext

func NewTestEmailConfigurationParamsWithContext(ctx context.Context) *TestEmailConfigurationParams

NewTestEmailConfigurationParamsWithContext creates a new TestEmailConfigurationParams object with the ability to set a context for a request.

func NewTestEmailConfigurationParamsWithHTTPClient

func NewTestEmailConfigurationParamsWithHTTPClient(client *http.Client) *TestEmailConfigurationParams

NewTestEmailConfigurationParamsWithHTTPClient creates a new TestEmailConfigurationParams object with the ability to set a custom HTTPClient for a request.

func NewTestEmailConfigurationParamsWithTimeout

func NewTestEmailConfigurationParamsWithTimeout(timeout time.Duration) *TestEmailConfigurationParams

NewTestEmailConfigurationParamsWithTimeout creates a new TestEmailConfigurationParams object with the ability to set a timeout on a request.

func (*TestEmailConfigurationParams) SetBody

func (o *TestEmailConfigurationParams) SetBody(body string)

SetBody adds the body to the test email configuration params

func (*TestEmailConfigurationParams) SetContext

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

SetContext adds the context to the test email configuration params

func (*TestEmailConfigurationParams) SetDefaults

func (o *TestEmailConfigurationParams) SetDefaults()

SetDefaults hydrates default values in the test email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*TestEmailConfigurationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the test email configuration params

func (*TestEmailConfigurationParams) SetTimeout

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

SetTimeout adds the timeout to the test email configuration params

func (*TestEmailConfigurationParams) WithBody

WithBody adds the body to the test email configuration params

func (*TestEmailConfigurationParams) WithContext

WithContext adds the context to the test email configuration params

func (*TestEmailConfigurationParams) WithDefaults

WithDefaults hydrates default values in the test email configuration params (not the query body).

All values with no default are reset to their zero value.

func (*TestEmailConfigurationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the test email configuration params

func (*TestEmailConfigurationParams) WithTimeout

WithTimeout adds the timeout to the test email configuration params

func (*TestEmailConfigurationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TestEmailConfigurationReader

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

TestEmailConfigurationReader is a Reader for the TestEmailConfiguration structure.

func (*TestEmailConfigurationReader) ReadResponse

func (o *TestEmailConfigurationReader) 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