mailers

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 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 mailers API

func (*Client) CreateMailersSection

CreateMailersSection adds a new mailers section

Creates a new empty Mailers section

func (*Client) DeleteMailersSection

DeleteMailersSection deletes a mailers section

Deletes a mailers from the configuration by it's name.

func (*Client) EditMailersSection

EditMailersSection modifies a mailers section

Modifies a mailers configuration by it's name.

func (*Client) GetMailersSection

func (a *Client) GetMailersSection(params *GetMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMailersSectionOK, error)

GetMailersSection returns a mailers section

Returns one mailers configuration by it's name.

func (*Client) GetMailersSections

func (a *Client) GetMailersSections(params *GetMailersSectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMailersSectionsOK, error)

GetMailersSections returns an array of mailers sections

Returns an array of all the configured mailers in HAProxy

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new mailers API client.

type CreateMailersSectionAccepted

type CreateMailersSectionAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.MailersSection
}

CreateMailersSectionAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewCreateMailersSectionAccepted

func NewCreateMailersSectionAccepted() *CreateMailersSectionAccepted

NewCreateMailersSectionAccepted creates a CreateMailersSectionAccepted with default headers values

func (*CreateMailersSectionAccepted) Code added in v1.1.5

Code gets the status code for the create mailers section accepted response

func (*CreateMailersSectionAccepted) Error

func (*CreateMailersSectionAccepted) GetPayload

func (*CreateMailersSectionAccepted) IsClientError

func (o *CreateMailersSectionAccepted) IsClientError() bool

IsClientError returns true when this create mailers section accepted response has a 4xx status code

func (*CreateMailersSectionAccepted) IsCode

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

IsCode returns true when this create mailers section accepted response a status code equal to that given

func (*CreateMailersSectionAccepted) IsRedirect

func (o *CreateMailersSectionAccepted) IsRedirect() bool

IsRedirect returns true when this create mailers section accepted response has a 3xx status code

func (*CreateMailersSectionAccepted) IsServerError

func (o *CreateMailersSectionAccepted) IsServerError() bool

IsServerError returns true when this create mailers section accepted response has a 5xx status code

func (*CreateMailersSectionAccepted) IsSuccess

func (o *CreateMailersSectionAccepted) IsSuccess() bool

IsSuccess returns true when this create mailers section accepted response has a 2xx status code

func (*CreateMailersSectionAccepted) String

type CreateMailersSectionBadRequest

type CreateMailersSectionBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreateMailersSectionBadRequest

func NewCreateMailersSectionBadRequest() *CreateMailersSectionBadRequest

NewCreateMailersSectionBadRequest creates a CreateMailersSectionBadRequest with default headers values

func (*CreateMailersSectionBadRequest) Code added in v1.1.5

Code gets the status code for the create mailers section bad request response

func (*CreateMailersSectionBadRequest) Error

func (*CreateMailersSectionBadRequest) GetPayload

func (o *CreateMailersSectionBadRequest) GetPayload() *models.Error

func (*CreateMailersSectionBadRequest) IsClientError

func (o *CreateMailersSectionBadRequest) IsClientError() bool

IsClientError returns true when this create mailers section bad request response has a 4xx status code

func (*CreateMailersSectionBadRequest) IsCode

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

IsCode returns true when this create mailers section bad request response a status code equal to that given

func (*CreateMailersSectionBadRequest) IsRedirect

func (o *CreateMailersSectionBadRequest) IsRedirect() bool

IsRedirect returns true when this create mailers section bad request response has a 3xx status code

func (*CreateMailersSectionBadRequest) IsServerError

func (o *CreateMailersSectionBadRequest) IsServerError() bool

IsServerError returns true when this create mailers section bad request response has a 5xx status code

func (*CreateMailersSectionBadRequest) IsSuccess

func (o *CreateMailersSectionBadRequest) IsSuccess() bool

IsSuccess returns true when this create mailers section bad request response has a 2xx status code

func (*CreateMailersSectionBadRequest) String

type CreateMailersSectionConflict

type CreateMailersSectionConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateMailersSectionConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateMailersSectionConflict

func NewCreateMailersSectionConflict() *CreateMailersSectionConflict

NewCreateMailersSectionConflict creates a CreateMailersSectionConflict with default headers values

func (*CreateMailersSectionConflict) Code added in v1.1.5

Code gets the status code for the create mailers section conflict response

func (*CreateMailersSectionConflict) Error

func (*CreateMailersSectionConflict) GetPayload

func (o *CreateMailersSectionConflict) GetPayload() *models.Error

func (*CreateMailersSectionConflict) IsClientError

func (o *CreateMailersSectionConflict) IsClientError() bool

IsClientError returns true when this create mailers section conflict response has a 4xx status code

func (*CreateMailersSectionConflict) IsCode

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

IsCode returns true when this create mailers section conflict response a status code equal to that given

func (*CreateMailersSectionConflict) IsRedirect

func (o *CreateMailersSectionConflict) IsRedirect() bool

IsRedirect returns true when this create mailers section conflict response has a 3xx status code

func (*CreateMailersSectionConflict) IsServerError

func (o *CreateMailersSectionConflict) IsServerError() bool

IsServerError returns true when this create mailers section conflict response has a 5xx status code

func (*CreateMailersSectionConflict) IsSuccess

func (o *CreateMailersSectionConflict) IsSuccess() bool

IsSuccess returns true when this create mailers section conflict response has a 2xx status code

func (*CreateMailersSectionConflict) String

type CreateMailersSectionCreated

type CreateMailersSectionCreated struct {
	Payload *models.MailersSection
}

CreateMailersSectionCreated describes a response with status code 201, with default header values.

Mailers created

func NewCreateMailersSectionCreated

func NewCreateMailersSectionCreated() *CreateMailersSectionCreated

NewCreateMailersSectionCreated creates a CreateMailersSectionCreated with default headers values

func (*CreateMailersSectionCreated) Code added in v1.1.5

func (o *CreateMailersSectionCreated) Code() int

Code gets the status code for the create mailers section created response

func (*CreateMailersSectionCreated) Error

func (*CreateMailersSectionCreated) GetPayload

func (*CreateMailersSectionCreated) IsClientError

func (o *CreateMailersSectionCreated) IsClientError() bool

IsClientError returns true when this create mailers section created response has a 4xx status code

func (*CreateMailersSectionCreated) IsCode

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

IsCode returns true when this create mailers section created response a status code equal to that given

func (*CreateMailersSectionCreated) IsRedirect

func (o *CreateMailersSectionCreated) IsRedirect() bool

IsRedirect returns true when this create mailers section created response has a 3xx status code

func (*CreateMailersSectionCreated) IsServerError

func (o *CreateMailersSectionCreated) IsServerError() bool

IsServerError returns true when this create mailers section created response has a 5xx status code

func (*CreateMailersSectionCreated) IsSuccess

func (o *CreateMailersSectionCreated) IsSuccess() bool

IsSuccess returns true when this create mailers section created response has a 2xx status code

func (*CreateMailersSectionCreated) String

func (o *CreateMailersSectionCreated) String() string

type CreateMailersSectionDefault

type CreateMailersSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateMailersSectionDefault describes a response with status code -1, with default header values.

General Error

func NewCreateMailersSectionDefault

func NewCreateMailersSectionDefault(code int) *CreateMailersSectionDefault

NewCreateMailersSectionDefault creates a CreateMailersSectionDefault with default headers values

func (*CreateMailersSectionDefault) Code

func (o *CreateMailersSectionDefault) Code() int

Code gets the status code for the create mailers section default response

func (*CreateMailersSectionDefault) Error

func (*CreateMailersSectionDefault) GetPayload

func (o *CreateMailersSectionDefault) GetPayload() *models.Error

func (*CreateMailersSectionDefault) IsClientError

func (o *CreateMailersSectionDefault) IsClientError() bool

IsClientError returns true when this create mailers section default response has a 4xx status code

func (*CreateMailersSectionDefault) IsCode

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

IsCode returns true when this create mailers section default response a status code equal to that given

func (*CreateMailersSectionDefault) IsRedirect

func (o *CreateMailersSectionDefault) IsRedirect() bool

IsRedirect returns true when this create mailers section default response has a 3xx status code

func (*CreateMailersSectionDefault) IsServerError

func (o *CreateMailersSectionDefault) IsServerError() bool

IsServerError returns true when this create mailers section default response has a 5xx status code

func (*CreateMailersSectionDefault) IsSuccess

func (o *CreateMailersSectionDefault) IsSuccess() bool

IsSuccess returns true when this create mailers section default response has a 2xx status code

func (*CreateMailersSectionDefault) String

func (o *CreateMailersSectionDefault) String() string

type CreateMailersSectionParams

type CreateMailersSectionParams struct {

	// Data.
	Data *models.MailersSection

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

CreateMailersSectionParams contains all the parameters to send to the API endpoint

for the create mailers section operation.

Typically these are written to a http.Request.

func NewCreateMailersSectionParams

func NewCreateMailersSectionParams() *CreateMailersSectionParams

NewCreateMailersSectionParams creates a new CreateMailersSectionParams 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 NewCreateMailersSectionParamsWithContext

func NewCreateMailersSectionParamsWithContext(ctx context.Context) *CreateMailersSectionParams

NewCreateMailersSectionParamsWithContext creates a new CreateMailersSectionParams object with the ability to set a context for a request.

func NewCreateMailersSectionParamsWithHTTPClient

func NewCreateMailersSectionParamsWithHTTPClient(client *http.Client) *CreateMailersSectionParams

NewCreateMailersSectionParamsWithHTTPClient creates a new CreateMailersSectionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateMailersSectionParamsWithTimeout

func NewCreateMailersSectionParamsWithTimeout(timeout time.Duration) *CreateMailersSectionParams

NewCreateMailersSectionParamsWithTimeout creates a new CreateMailersSectionParams object with the ability to set a timeout on a request.

func (*CreateMailersSectionParams) SetContext

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

SetContext adds the context to the create mailers section params

func (*CreateMailersSectionParams) SetData

SetData adds the data to the create mailers section params

func (*CreateMailersSectionParams) SetDefaults

func (o *CreateMailersSectionParams) SetDefaults()

SetDefaults hydrates default values in the create mailers section params (not the query body).

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

func (*CreateMailersSectionParams) SetForceReload

func (o *CreateMailersSectionParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create mailers section params

func (*CreateMailersSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create mailers section params

func (*CreateMailersSectionParams) SetTimeout

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

SetTimeout adds the timeout to the create mailers section params

func (*CreateMailersSectionParams) SetTransactionID

func (o *CreateMailersSectionParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create mailers section params

func (*CreateMailersSectionParams) SetVersion

func (o *CreateMailersSectionParams) SetVersion(version *int64)

SetVersion adds the version to the create mailers section params

func (*CreateMailersSectionParams) WithContext

WithContext adds the context to the create mailers section params

func (*CreateMailersSectionParams) WithData

WithData adds the data to the create mailers section params

func (*CreateMailersSectionParams) WithDefaults

WithDefaults hydrates default values in the create mailers section params (not the query body).

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

func (*CreateMailersSectionParams) WithForceReload

func (o *CreateMailersSectionParams) WithForceReload(forceReload *bool) *CreateMailersSectionParams

WithForceReload adds the forceReload to the create mailers section params

func (*CreateMailersSectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create mailers section params

func (*CreateMailersSectionParams) WithTimeout

WithTimeout adds the timeout to the create mailers section params

func (*CreateMailersSectionParams) WithTransactionID

func (o *CreateMailersSectionParams) WithTransactionID(transactionID *string) *CreateMailersSectionParams

WithTransactionID adds the transactionID to the create mailers section params

func (*CreateMailersSectionParams) WithVersion

WithVersion adds the version to the create mailers section params

func (*CreateMailersSectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateMailersSectionReader

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

CreateMailersSectionReader is a Reader for the CreateMailersSection structure.

func (*CreateMailersSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMailersSectionAccepted

type DeleteMailersSectionAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string
}

DeleteMailersSectionAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewDeleteMailersSectionAccepted

func NewDeleteMailersSectionAccepted() *DeleteMailersSectionAccepted

NewDeleteMailersSectionAccepted creates a DeleteMailersSectionAccepted with default headers values

func (*DeleteMailersSectionAccepted) Code added in v1.1.5

Code gets the status code for the delete mailers section accepted response

func (*DeleteMailersSectionAccepted) Error

func (*DeleteMailersSectionAccepted) IsClientError

func (o *DeleteMailersSectionAccepted) IsClientError() bool

IsClientError returns true when this delete mailers section accepted response has a 4xx status code

func (*DeleteMailersSectionAccepted) IsCode

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

IsCode returns true when this delete mailers section accepted response a status code equal to that given

func (*DeleteMailersSectionAccepted) IsRedirect

func (o *DeleteMailersSectionAccepted) IsRedirect() bool

IsRedirect returns true when this delete mailers section accepted response has a 3xx status code

func (*DeleteMailersSectionAccepted) IsServerError

func (o *DeleteMailersSectionAccepted) IsServerError() bool

IsServerError returns true when this delete mailers section accepted response has a 5xx status code

func (*DeleteMailersSectionAccepted) IsSuccess

func (o *DeleteMailersSectionAccepted) IsSuccess() bool

IsSuccess returns true when this delete mailers section accepted response has a 2xx status code

func (*DeleteMailersSectionAccepted) String

type DeleteMailersSectionDefault

type DeleteMailersSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteMailersSectionDefault describes a response with status code -1, with default header values.

General Error

func NewDeleteMailersSectionDefault

func NewDeleteMailersSectionDefault(code int) *DeleteMailersSectionDefault

NewDeleteMailersSectionDefault creates a DeleteMailersSectionDefault with default headers values

func (*DeleteMailersSectionDefault) Code

func (o *DeleteMailersSectionDefault) Code() int

Code gets the status code for the delete mailers section default response

func (*DeleteMailersSectionDefault) Error

func (*DeleteMailersSectionDefault) GetPayload

func (o *DeleteMailersSectionDefault) GetPayload() *models.Error

func (*DeleteMailersSectionDefault) IsClientError

func (o *DeleteMailersSectionDefault) IsClientError() bool

IsClientError returns true when this delete mailers section default response has a 4xx status code

func (*DeleteMailersSectionDefault) IsCode

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

IsCode returns true when this delete mailers section default response a status code equal to that given

func (*DeleteMailersSectionDefault) IsRedirect

func (o *DeleteMailersSectionDefault) IsRedirect() bool

IsRedirect returns true when this delete mailers section default response has a 3xx status code

func (*DeleteMailersSectionDefault) IsServerError

func (o *DeleteMailersSectionDefault) IsServerError() bool

IsServerError returns true when this delete mailers section default response has a 5xx status code

func (*DeleteMailersSectionDefault) IsSuccess

func (o *DeleteMailersSectionDefault) IsSuccess() bool

IsSuccess returns true when this delete mailers section default response has a 2xx status code

func (*DeleteMailersSectionDefault) String

func (o *DeleteMailersSectionDefault) String() string

type DeleteMailersSectionNoContent

type DeleteMailersSectionNoContent struct {
}

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

Mailers deleted

func NewDeleteMailersSectionNoContent

func NewDeleteMailersSectionNoContent() *DeleteMailersSectionNoContent

NewDeleteMailersSectionNoContent creates a DeleteMailersSectionNoContent with default headers values

func (*DeleteMailersSectionNoContent) Code added in v1.1.5

Code gets the status code for the delete mailers section no content response

func (*DeleteMailersSectionNoContent) Error

func (*DeleteMailersSectionNoContent) IsClientError

func (o *DeleteMailersSectionNoContent) IsClientError() bool

IsClientError returns true when this delete mailers section no content response has a 4xx status code

func (*DeleteMailersSectionNoContent) IsCode

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

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

func (*DeleteMailersSectionNoContent) IsRedirect

func (o *DeleteMailersSectionNoContent) IsRedirect() bool

IsRedirect returns true when this delete mailers section no content response has a 3xx status code

func (*DeleteMailersSectionNoContent) IsServerError

func (o *DeleteMailersSectionNoContent) IsServerError() bool

IsServerError returns true when this delete mailers section no content response has a 5xx status code

func (*DeleteMailersSectionNoContent) IsSuccess

func (o *DeleteMailersSectionNoContent) IsSuccess() bool

IsSuccess returns true when this delete mailers section no content response has a 2xx status code

func (*DeleteMailersSectionNoContent) String

type DeleteMailersSectionNotFound

type DeleteMailersSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteMailersSectionNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewDeleteMailersSectionNotFound

func NewDeleteMailersSectionNotFound() *DeleteMailersSectionNotFound

NewDeleteMailersSectionNotFound creates a DeleteMailersSectionNotFound with default headers values

func (*DeleteMailersSectionNotFound) Code added in v1.1.5

Code gets the status code for the delete mailers section not found response

func (*DeleteMailersSectionNotFound) Error

func (*DeleteMailersSectionNotFound) GetPayload

func (o *DeleteMailersSectionNotFound) GetPayload() *models.Error

func (*DeleteMailersSectionNotFound) IsClientError

func (o *DeleteMailersSectionNotFound) IsClientError() bool

IsClientError returns true when this delete mailers section not found response has a 4xx status code

func (*DeleteMailersSectionNotFound) IsCode

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

IsCode returns true when this delete mailers section not found response a status code equal to that given

func (*DeleteMailersSectionNotFound) IsRedirect

func (o *DeleteMailersSectionNotFound) IsRedirect() bool

IsRedirect returns true when this delete mailers section not found response has a 3xx status code

func (*DeleteMailersSectionNotFound) IsServerError

func (o *DeleteMailersSectionNotFound) IsServerError() bool

IsServerError returns true when this delete mailers section not found response has a 5xx status code

func (*DeleteMailersSectionNotFound) IsSuccess

func (o *DeleteMailersSectionNotFound) IsSuccess() bool

IsSuccess returns true when this delete mailers section not found response has a 2xx status code

func (*DeleteMailersSectionNotFound) String

type DeleteMailersSectionParams

type DeleteMailersSectionParams struct {

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Mailers name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

DeleteMailersSectionParams contains all the parameters to send to the API endpoint

for the delete mailers section operation.

Typically these are written to a http.Request.

func NewDeleteMailersSectionParams

func NewDeleteMailersSectionParams() *DeleteMailersSectionParams

NewDeleteMailersSectionParams creates a new DeleteMailersSectionParams 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 NewDeleteMailersSectionParamsWithContext

func NewDeleteMailersSectionParamsWithContext(ctx context.Context) *DeleteMailersSectionParams

NewDeleteMailersSectionParamsWithContext creates a new DeleteMailersSectionParams object with the ability to set a context for a request.

func NewDeleteMailersSectionParamsWithHTTPClient

func NewDeleteMailersSectionParamsWithHTTPClient(client *http.Client) *DeleteMailersSectionParams

NewDeleteMailersSectionParamsWithHTTPClient creates a new DeleteMailersSectionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteMailersSectionParamsWithTimeout

func NewDeleteMailersSectionParamsWithTimeout(timeout time.Duration) *DeleteMailersSectionParams

NewDeleteMailersSectionParamsWithTimeout creates a new DeleteMailersSectionParams object with the ability to set a timeout on a request.

func (*DeleteMailersSectionParams) SetContext

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

SetContext adds the context to the delete mailers section params

func (*DeleteMailersSectionParams) SetDefaults

func (o *DeleteMailersSectionParams) SetDefaults()

SetDefaults hydrates default values in the delete mailers section params (not the query body).

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

func (*DeleteMailersSectionParams) SetForceReload

func (o *DeleteMailersSectionParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete mailers section params

func (*DeleteMailersSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete mailers section params

func (*DeleteMailersSectionParams) SetName

func (o *DeleteMailersSectionParams) SetName(name string)

SetName adds the name to the delete mailers section params

func (*DeleteMailersSectionParams) SetTimeout

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

SetTimeout adds the timeout to the delete mailers section params

func (*DeleteMailersSectionParams) SetTransactionID

func (o *DeleteMailersSectionParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete mailers section params

func (*DeleteMailersSectionParams) SetVersion

func (o *DeleteMailersSectionParams) SetVersion(version *int64)

SetVersion adds the version to the delete mailers section params

func (*DeleteMailersSectionParams) WithContext

WithContext adds the context to the delete mailers section params

func (*DeleteMailersSectionParams) WithDefaults

WithDefaults hydrates default values in the delete mailers section params (not the query body).

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

func (*DeleteMailersSectionParams) WithForceReload

func (o *DeleteMailersSectionParams) WithForceReload(forceReload *bool) *DeleteMailersSectionParams

WithForceReload adds the forceReload to the delete mailers section params

func (*DeleteMailersSectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete mailers section params

func (*DeleteMailersSectionParams) WithName

WithName adds the name to the delete mailers section params

func (*DeleteMailersSectionParams) WithTimeout

WithTimeout adds the timeout to the delete mailers section params

func (*DeleteMailersSectionParams) WithTransactionID

func (o *DeleteMailersSectionParams) WithTransactionID(transactionID *string) *DeleteMailersSectionParams

WithTransactionID adds the transactionID to the delete mailers section params

func (*DeleteMailersSectionParams) WithVersion

WithVersion adds the version to the delete mailers section params

func (*DeleteMailersSectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteMailersSectionReader

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

DeleteMailersSectionReader is a Reader for the DeleteMailersSection structure.

func (*DeleteMailersSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type EditMailersSectionAccepted

type EditMailersSectionAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.MailersSection
}

EditMailersSectionAccepted describes a response with status code 202, with default header values.

Configuration change accepted and reload requested

func NewEditMailersSectionAccepted

func NewEditMailersSectionAccepted() *EditMailersSectionAccepted

NewEditMailersSectionAccepted creates a EditMailersSectionAccepted with default headers values

func (*EditMailersSectionAccepted) Code added in v1.1.5

func (o *EditMailersSectionAccepted) Code() int

Code gets the status code for the edit mailers section accepted response

func (*EditMailersSectionAccepted) Error

func (*EditMailersSectionAccepted) GetPayload

func (*EditMailersSectionAccepted) IsClientError

func (o *EditMailersSectionAccepted) IsClientError() bool

IsClientError returns true when this edit mailers section accepted response has a 4xx status code

func (*EditMailersSectionAccepted) IsCode

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

IsCode returns true when this edit mailers section accepted response a status code equal to that given

func (*EditMailersSectionAccepted) IsRedirect

func (o *EditMailersSectionAccepted) IsRedirect() bool

IsRedirect returns true when this edit mailers section accepted response has a 3xx status code

func (*EditMailersSectionAccepted) IsServerError

func (o *EditMailersSectionAccepted) IsServerError() bool

IsServerError returns true when this edit mailers section accepted response has a 5xx status code

func (*EditMailersSectionAccepted) IsSuccess

func (o *EditMailersSectionAccepted) IsSuccess() bool

IsSuccess returns true when this edit mailers section accepted response has a 2xx status code

func (*EditMailersSectionAccepted) String

func (o *EditMailersSectionAccepted) String() string

type EditMailersSectionBadRequest

type EditMailersSectionBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewEditMailersSectionBadRequest

func NewEditMailersSectionBadRequest() *EditMailersSectionBadRequest

NewEditMailersSectionBadRequest creates a EditMailersSectionBadRequest with default headers values

func (*EditMailersSectionBadRequest) Code added in v1.1.5

Code gets the status code for the edit mailers section bad request response

func (*EditMailersSectionBadRequest) Error

func (*EditMailersSectionBadRequest) GetPayload

func (o *EditMailersSectionBadRequest) GetPayload() *models.Error

func (*EditMailersSectionBadRequest) IsClientError

func (o *EditMailersSectionBadRequest) IsClientError() bool

IsClientError returns true when this edit mailers section bad request response has a 4xx status code

func (*EditMailersSectionBadRequest) IsCode

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

IsCode returns true when this edit mailers section bad request response a status code equal to that given

func (*EditMailersSectionBadRequest) IsRedirect

func (o *EditMailersSectionBadRequest) IsRedirect() bool

IsRedirect returns true when this edit mailers section bad request response has a 3xx status code

func (*EditMailersSectionBadRequest) IsServerError

func (o *EditMailersSectionBadRequest) IsServerError() bool

IsServerError returns true when this edit mailers section bad request response has a 5xx status code

func (*EditMailersSectionBadRequest) IsSuccess

func (o *EditMailersSectionBadRequest) IsSuccess() bool

IsSuccess returns true when this edit mailers section bad request response has a 2xx status code

func (*EditMailersSectionBadRequest) String

type EditMailersSectionDefault

type EditMailersSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

EditMailersSectionDefault describes a response with status code -1, with default header values.

General Error

func NewEditMailersSectionDefault

func NewEditMailersSectionDefault(code int) *EditMailersSectionDefault

NewEditMailersSectionDefault creates a EditMailersSectionDefault with default headers values

func (*EditMailersSectionDefault) Code

func (o *EditMailersSectionDefault) Code() int

Code gets the status code for the edit mailers section default response

func (*EditMailersSectionDefault) Error

func (o *EditMailersSectionDefault) Error() string

func (*EditMailersSectionDefault) GetPayload

func (o *EditMailersSectionDefault) GetPayload() *models.Error

func (*EditMailersSectionDefault) IsClientError

func (o *EditMailersSectionDefault) IsClientError() bool

IsClientError returns true when this edit mailers section default response has a 4xx status code

func (*EditMailersSectionDefault) IsCode

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

IsCode returns true when this edit mailers section default response a status code equal to that given

func (*EditMailersSectionDefault) IsRedirect

func (o *EditMailersSectionDefault) IsRedirect() bool

IsRedirect returns true when this edit mailers section default response has a 3xx status code

func (*EditMailersSectionDefault) IsServerError

func (o *EditMailersSectionDefault) IsServerError() bool

IsServerError returns true when this edit mailers section default response has a 5xx status code

func (*EditMailersSectionDefault) IsSuccess

func (o *EditMailersSectionDefault) IsSuccess() bool

IsSuccess returns true when this edit mailers section default response has a 2xx status code

func (*EditMailersSectionDefault) String

func (o *EditMailersSectionDefault) String() string

type EditMailersSectionNotFound

type EditMailersSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

EditMailersSectionNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewEditMailersSectionNotFound

func NewEditMailersSectionNotFound() *EditMailersSectionNotFound

NewEditMailersSectionNotFound creates a EditMailersSectionNotFound with default headers values

func (*EditMailersSectionNotFound) Code added in v1.1.5

func (o *EditMailersSectionNotFound) Code() int

Code gets the status code for the edit mailers section not found response

func (*EditMailersSectionNotFound) Error

func (*EditMailersSectionNotFound) GetPayload

func (o *EditMailersSectionNotFound) GetPayload() *models.Error

func (*EditMailersSectionNotFound) IsClientError

func (o *EditMailersSectionNotFound) IsClientError() bool

IsClientError returns true when this edit mailers section not found response has a 4xx status code

func (*EditMailersSectionNotFound) IsCode

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

IsCode returns true when this edit mailers section not found response a status code equal to that given

func (*EditMailersSectionNotFound) IsRedirect

func (o *EditMailersSectionNotFound) IsRedirect() bool

IsRedirect returns true when this edit mailers section not found response has a 3xx status code

func (*EditMailersSectionNotFound) IsServerError

func (o *EditMailersSectionNotFound) IsServerError() bool

IsServerError returns true when this edit mailers section not found response has a 5xx status code

func (*EditMailersSectionNotFound) IsSuccess

func (o *EditMailersSectionNotFound) IsSuccess() bool

IsSuccess returns true when this edit mailers section not found response has a 2xx status code

func (*EditMailersSectionNotFound) String

func (o *EditMailersSectionNotFound) String() string

type EditMailersSectionOK

type EditMailersSectionOK struct {
	Payload *models.MailersSection
}

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

Mailers configuration updated

func NewEditMailersSectionOK

func NewEditMailersSectionOK() *EditMailersSectionOK

NewEditMailersSectionOK creates a EditMailersSectionOK with default headers values

func (*EditMailersSectionOK) Code added in v1.1.5

func (o *EditMailersSectionOK) Code() int

Code gets the status code for the edit mailers section o k response

func (*EditMailersSectionOK) Error

func (o *EditMailersSectionOK) Error() string

func (*EditMailersSectionOK) GetPayload

func (o *EditMailersSectionOK) GetPayload() *models.MailersSection

func (*EditMailersSectionOK) IsClientError

func (o *EditMailersSectionOK) IsClientError() bool

IsClientError returns true when this edit mailers section o k response has a 4xx status code

func (*EditMailersSectionOK) IsCode

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

IsCode returns true when this edit mailers section o k response a status code equal to that given

func (*EditMailersSectionOK) IsRedirect

func (o *EditMailersSectionOK) IsRedirect() bool

IsRedirect returns true when this edit mailers section o k response has a 3xx status code

func (*EditMailersSectionOK) IsServerError

func (o *EditMailersSectionOK) IsServerError() bool

IsServerError returns true when this edit mailers section o k response has a 5xx status code

func (*EditMailersSectionOK) IsSuccess

func (o *EditMailersSectionOK) IsSuccess() bool

IsSuccess returns true when this edit mailers section o k response has a 2xx status code

func (*EditMailersSectionOK) String

func (o *EditMailersSectionOK) String() string

type EditMailersSectionParams

type EditMailersSectionParams struct {

	// Data.
	Data *models.MailersSection

	/* ForceReload.

	   If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.
	*/
	ForceReload *bool

	/* Name.

	   Mailers name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

	/* Version.

	   Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.
	*/
	Version *int64

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

EditMailersSectionParams contains all the parameters to send to the API endpoint

for the edit mailers section operation.

Typically these are written to a http.Request.

func NewEditMailersSectionParams

func NewEditMailersSectionParams() *EditMailersSectionParams

NewEditMailersSectionParams creates a new EditMailersSectionParams 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 NewEditMailersSectionParamsWithContext

func NewEditMailersSectionParamsWithContext(ctx context.Context) *EditMailersSectionParams

NewEditMailersSectionParamsWithContext creates a new EditMailersSectionParams object with the ability to set a context for a request.

func NewEditMailersSectionParamsWithHTTPClient

func NewEditMailersSectionParamsWithHTTPClient(client *http.Client) *EditMailersSectionParams

NewEditMailersSectionParamsWithHTTPClient creates a new EditMailersSectionParams object with the ability to set a custom HTTPClient for a request.

func NewEditMailersSectionParamsWithTimeout

func NewEditMailersSectionParamsWithTimeout(timeout time.Duration) *EditMailersSectionParams

NewEditMailersSectionParamsWithTimeout creates a new EditMailersSectionParams object with the ability to set a timeout on a request.

func (*EditMailersSectionParams) SetContext

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

SetContext adds the context to the edit mailers section params

func (*EditMailersSectionParams) SetData

SetData adds the data to the edit mailers section params

func (*EditMailersSectionParams) SetDefaults

func (o *EditMailersSectionParams) SetDefaults()

SetDefaults hydrates default values in the edit mailers section params (not the query body).

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

func (*EditMailersSectionParams) SetForceReload

func (o *EditMailersSectionParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the edit mailers section params

func (*EditMailersSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the edit mailers section params

func (*EditMailersSectionParams) SetName

func (o *EditMailersSectionParams) SetName(name string)

SetName adds the name to the edit mailers section params

func (*EditMailersSectionParams) SetTimeout

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

SetTimeout adds the timeout to the edit mailers section params

func (*EditMailersSectionParams) SetTransactionID

func (o *EditMailersSectionParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the edit mailers section params

func (*EditMailersSectionParams) SetVersion

func (o *EditMailersSectionParams) SetVersion(version *int64)

SetVersion adds the version to the edit mailers section params

func (*EditMailersSectionParams) WithContext

WithContext adds the context to the edit mailers section params

func (*EditMailersSectionParams) WithData

WithData adds the data to the edit mailers section params

func (*EditMailersSectionParams) WithDefaults

WithDefaults hydrates default values in the edit mailers section params (not the query body).

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

func (*EditMailersSectionParams) WithForceReload

func (o *EditMailersSectionParams) WithForceReload(forceReload *bool) *EditMailersSectionParams

WithForceReload adds the forceReload to the edit mailers section params

func (*EditMailersSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the edit mailers section params

func (*EditMailersSectionParams) WithName

WithName adds the name to the edit mailers section params

func (*EditMailersSectionParams) WithTimeout

WithTimeout adds the timeout to the edit mailers section params

func (*EditMailersSectionParams) WithTransactionID

func (o *EditMailersSectionParams) WithTransactionID(transactionID *string) *EditMailersSectionParams

WithTransactionID adds the transactionID to the edit mailers section params

func (*EditMailersSectionParams) WithVersion

func (o *EditMailersSectionParams) WithVersion(version *int64) *EditMailersSectionParams

WithVersion adds the version to the edit mailers section params

func (*EditMailersSectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type EditMailersSectionReader

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

EditMailersSectionReader is a Reader for the EditMailersSection structure.

func (*EditMailersSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMailersSectionDefault

type GetMailersSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetMailersSectionDefault describes a response with status code -1, with default header values.

General Error

func NewGetMailersSectionDefault

func NewGetMailersSectionDefault(code int) *GetMailersSectionDefault

NewGetMailersSectionDefault creates a GetMailersSectionDefault with default headers values

func (*GetMailersSectionDefault) Code

func (o *GetMailersSectionDefault) Code() int

Code gets the status code for the get mailers section default response

func (*GetMailersSectionDefault) Error

func (o *GetMailersSectionDefault) Error() string

func (*GetMailersSectionDefault) GetPayload

func (o *GetMailersSectionDefault) GetPayload() *models.Error

func (*GetMailersSectionDefault) IsClientError

func (o *GetMailersSectionDefault) IsClientError() bool

IsClientError returns true when this get mailers section default response has a 4xx status code

func (*GetMailersSectionDefault) IsCode

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

IsCode returns true when this get mailers section default response a status code equal to that given

func (*GetMailersSectionDefault) IsRedirect

func (o *GetMailersSectionDefault) IsRedirect() bool

IsRedirect returns true when this get mailers section default response has a 3xx status code

func (*GetMailersSectionDefault) IsServerError

func (o *GetMailersSectionDefault) IsServerError() bool

IsServerError returns true when this get mailers section default response has a 5xx status code

func (*GetMailersSectionDefault) IsSuccess

func (o *GetMailersSectionDefault) IsSuccess() bool

IsSuccess returns true when this get mailers section default response has a 2xx status code

func (*GetMailersSectionDefault) String

func (o *GetMailersSectionDefault) String() string

type GetMailersSectionNotFound

type GetMailersSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetMailersSectionNotFound describes a response with status code 404, with default header values.

The specified resource was not found

func NewGetMailersSectionNotFound

func NewGetMailersSectionNotFound() *GetMailersSectionNotFound

NewGetMailersSectionNotFound creates a GetMailersSectionNotFound with default headers values

func (*GetMailersSectionNotFound) Code added in v1.1.5

func (o *GetMailersSectionNotFound) Code() int

Code gets the status code for the get mailers section not found response

func (*GetMailersSectionNotFound) Error

func (o *GetMailersSectionNotFound) Error() string

func (*GetMailersSectionNotFound) GetPayload

func (o *GetMailersSectionNotFound) GetPayload() *models.Error

func (*GetMailersSectionNotFound) IsClientError

func (o *GetMailersSectionNotFound) IsClientError() bool

IsClientError returns true when this get mailers section not found response has a 4xx status code

func (*GetMailersSectionNotFound) IsCode

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

IsCode returns true when this get mailers section not found response a status code equal to that given

func (*GetMailersSectionNotFound) IsRedirect

func (o *GetMailersSectionNotFound) IsRedirect() bool

IsRedirect returns true when this get mailers section not found response has a 3xx status code

func (*GetMailersSectionNotFound) IsServerError

func (o *GetMailersSectionNotFound) IsServerError() bool

IsServerError returns true when this get mailers section not found response has a 5xx status code

func (*GetMailersSectionNotFound) IsSuccess

func (o *GetMailersSectionNotFound) IsSuccess() bool

IsSuccess returns true when this get mailers section not found response has a 2xx status code

func (*GetMailersSectionNotFound) String

func (o *GetMailersSectionNotFound) String() string

type GetMailersSectionOK

type GetMailersSectionOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetMailersSectionOKBody
}

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

Successful operation

func NewGetMailersSectionOK

func NewGetMailersSectionOK() *GetMailersSectionOK

NewGetMailersSectionOK creates a GetMailersSectionOK with default headers values

func (*GetMailersSectionOK) Code added in v1.1.5

func (o *GetMailersSectionOK) Code() int

Code gets the status code for the get mailers section o k response

func (*GetMailersSectionOK) Error

func (o *GetMailersSectionOK) Error() string

func (*GetMailersSectionOK) GetPayload

func (*GetMailersSectionOK) IsClientError

func (o *GetMailersSectionOK) IsClientError() bool

IsClientError returns true when this get mailers section o k response has a 4xx status code

func (*GetMailersSectionOK) IsCode

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

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

func (*GetMailersSectionOK) IsRedirect

func (o *GetMailersSectionOK) IsRedirect() bool

IsRedirect returns true when this get mailers section o k response has a 3xx status code

func (*GetMailersSectionOK) IsServerError

func (o *GetMailersSectionOK) IsServerError() bool

IsServerError returns true when this get mailers section o k response has a 5xx status code

func (*GetMailersSectionOK) IsSuccess

func (o *GetMailersSectionOK) IsSuccess() bool

IsSuccess returns true when this get mailers section o k response has a 2xx status code

func (*GetMailersSectionOK) String

func (o *GetMailersSectionOK) String() string

type GetMailersSectionOKBody

type GetMailersSectionOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.MailersSection `json:"data,omitempty"`
}

GetMailersSectionOKBody get mailers section o k body swagger:model GetMailersSectionOKBody

func (*GetMailersSectionOKBody) ContextValidate

func (o *GetMailersSectionOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get mailers section o k body based on the context it is used

func (*GetMailersSectionOKBody) MarshalBinary

func (o *GetMailersSectionOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMailersSectionOKBody) UnmarshalBinary

func (o *GetMailersSectionOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMailersSectionOKBody) Validate

func (o *GetMailersSectionOKBody) Validate(formats strfmt.Registry) error

Validate validates this get mailers section o k body

type GetMailersSectionParams

type GetMailersSectionParams struct {

	/* Name.

	   Mailers name
	*/
	Name string

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetMailersSectionParams contains all the parameters to send to the API endpoint

for the get mailers section operation.

Typically these are written to a http.Request.

func NewGetMailersSectionParams

func NewGetMailersSectionParams() *GetMailersSectionParams

NewGetMailersSectionParams creates a new GetMailersSectionParams 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 NewGetMailersSectionParamsWithContext

func NewGetMailersSectionParamsWithContext(ctx context.Context) *GetMailersSectionParams

NewGetMailersSectionParamsWithContext creates a new GetMailersSectionParams object with the ability to set a context for a request.

func NewGetMailersSectionParamsWithHTTPClient

func NewGetMailersSectionParamsWithHTTPClient(client *http.Client) *GetMailersSectionParams

NewGetMailersSectionParamsWithHTTPClient creates a new GetMailersSectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetMailersSectionParamsWithTimeout

func NewGetMailersSectionParamsWithTimeout(timeout time.Duration) *GetMailersSectionParams

NewGetMailersSectionParamsWithTimeout creates a new GetMailersSectionParams object with the ability to set a timeout on a request.

func (*GetMailersSectionParams) SetContext

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

SetContext adds the context to the get mailers section params

func (*GetMailersSectionParams) SetDefaults

func (o *GetMailersSectionParams) SetDefaults()

SetDefaults hydrates default values in the get mailers section params (not the query body).

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

func (*GetMailersSectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get mailers section params

func (*GetMailersSectionParams) SetName

func (o *GetMailersSectionParams) SetName(name string)

SetName adds the name to the get mailers section params

func (*GetMailersSectionParams) SetTimeout

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

SetTimeout adds the timeout to the get mailers section params

func (*GetMailersSectionParams) SetTransactionID

func (o *GetMailersSectionParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get mailers section params

func (*GetMailersSectionParams) WithContext

WithContext adds the context to the get mailers section params

func (*GetMailersSectionParams) WithDefaults

WithDefaults hydrates default values in the get mailers section params (not the query body).

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

func (*GetMailersSectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get mailers section params

func (*GetMailersSectionParams) WithName

WithName adds the name to the get mailers section params

func (*GetMailersSectionParams) WithTimeout

WithTimeout adds the timeout to the get mailers section params

func (*GetMailersSectionParams) WithTransactionID

func (o *GetMailersSectionParams) WithTransactionID(transactionID *string) *GetMailersSectionParams

WithTransactionID adds the transactionID to the get mailers section params

func (*GetMailersSectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMailersSectionReader

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

GetMailersSectionReader is a Reader for the GetMailersSection structure.

func (*GetMailersSectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMailersSectionsDefault

type GetMailersSectionsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

GetMailersSectionsDefault describes a response with status code -1, with default header values.

General Error

func NewGetMailersSectionsDefault

func NewGetMailersSectionsDefault(code int) *GetMailersSectionsDefault

NewGetMailersSectionsDefault creates a GetMailersSectionsDefault with default headers values

func (*GetMailersSectionsDefault) Code

func (o *GetMailersSectionsDefault) Code() int

Code gets the status code for the get mailers sections default response

func (*GetMailersSectionsDefault) Error

func (o *GetMailersSectionsDefault) Error() string

func (*GetMailersSectionsDefault) GetPayload

func (o *GetMailersSectionsDefault) GetPayload() *models.Error

func (*GetMailersSectionsDefault) IsClientError

func (o *GetMailersSectionsDefault) IsClientError() bool

IsClientError returns true when this get mailers sections default response has a 4xx status code

func (*GetMailersSectionsDefault) IsCode

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

IsCode returns true when this get mailers sections default response a status code equal to that given

func (*GetMailersSectionsDefault) IsRedirect

func (o *GetMailersSectionsDefault) IsRedirect() bool

IsRedirect returns true when this get mailers sections default response has a 3xx status code

func (*GetMailersSectionsDefault) IsServerError

func (o *GetMailersSectionsDefault) IsServerError() bool

IsServerError returns true when this get mailers sections default response has a 5xx status code

func (*GetMailersSectionsDefault) IsSuccess

func (o *GetMailersSectionsDefault) IsSuccess() bool

IsSuccess returns true when this get mailers sections default response has a 2xx status code

func (*GetMailersSectionsDefault) String

func (o *GetMailersSectionsDefault) String() string

type GetMailersSectionsOK

type GetMailersSectionsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetMailersSectionsOKBody
}

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

Successful operation

func NewGetMailersSectionsOK

func NewGetMailersSectionsOK() *GetMailersSectionsOK

NewGetMailersSectionsOK creates a GetMailersSectionsOK with default headers values

func (*GetMailersSectionsOK) Code added in v1.1.5

func (o *GetMailersSectionsOK) Code() int

Code gets the status code for the get mailers sections o k response

func (*GetMailersSectionsOK) Error

func (o *GetMailersSectionsOK) Error() string

func (*GetMailersSectionsOK) GetPayload

func (*GetMailersSectionsOK) IsClientError

func (o *GetMailersSectionsOK) IsClientError() bool

IsClientError returns true when this get mailers sections o k response has a 4xx status code

func (*GetMailersSectionsOK) IsCode

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

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

func (*GetMailersSectionsOK) IsRedirect

func (o *GetMailersSectionsOK) IsRedirect() bool

IsRedirect returns true when this get mailers sections o k response has a 3xx status code

func (*GetMailersSectionsOK) IsServerError

func (o *GetMailersSectionsOK) IsServerError() bool

IsServerError returns true when this get mailers sections o k response has a 5xx status code

func (*GetMailersSectionsOK) IsSuccess

func (o *GetMailersSectionsOK) IsSuccess() bool

IsSuccess returns true when this get mailers sections o k response has a 2xx status code

func (*GetMailersSectionsOK) String

func (o *GetMailersSectionsOK) String() string

type GetMailersSectionsOKBody

type GetMailersSectionsOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.MailersSections `json:"data"`
}

GetMailersSectionsOKBody get mailers sections o k body swagger:model GetMailersSectionsOKBody

func (*GetMailersSectionsOKBody) ContextValidate

func (o *GetMailersSectionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get mailers sections o k body based on the context it is used

func (*GetMailersSectionsOKBody) MarshalBinary

func (o *GetMailersSectionsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMailersSectionsOKBody) UnmarshalBinary

func (o *GetMailersSectionsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMailersSectionsOKBody) Validate

func (o *GetMailersSectionsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get mailers sections o k body

type GetMailersSectionsParams

type GetMailersSectionsParams struct {

	/* TransactionID.

	   ID of the transaction where we want to add the operation. Cannot be used when version is specified.
	*/
	TransactionID *string

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

GetMailersSectionsParams contains all the parameters to send to the API endpoint

for the get mailers sections operation.

Typically these are written to a http.Request.

func NewGetMailersSectionsParams

func NewGetMailersSectionsParams() *GetMailersSectionsParams

NewGetMailersSectionsParams creates a new GetMailersSectionsParams 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 NewGetMailersSectionsParamsWithContext

func NewGetMailersSectionsParamsWithContext(ctx context.Context) *GetMailersSectionsParams

NewGetMailersSectionsParamsWithContext creates a new GetMailersSectionsParams object with the ability to set a context for a request.

func NewGetMailersSectionsParamsWithHTTPClient

func NewGetMailersSectionsParamsWithHTTPClient(client *http.Client) *GetMailersSectionsParams

NewGetMailersSectionsParamsWithHTTPClient creates a new GetMailersSectionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetMailersSectionsParamsWithTimeout

func NewGetMailersSectionsParamsWithTimeout(timeout time.Duration) *GetMailersSectionsParams

NewGetMailersSectionsParamsWithTimeout creates a new GetMailersSectionsParams object with the ability to set a timeout on a request.

func (*GetMailersSectionsParams) SetContext

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

SetContext adds the context to the get mailers sections params

func (*GetMailersSectionsParams) SetDefaults

func (o *GetMailersSectionsParams) SetDefaults()

SetDefaults hydrates default values in the get mailers sections params (not the query body).

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

func (*GetMailersSectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get mailers sections params

func (*GetMailersSectionsParams) SetTimeout

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

SetTimeout adds the timeout to the get mailers sections params

func (*GetMailersSectionsParams) SetTransactionID

func (o *GetMailersSectionsParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get mailers sections params

func (*GetMailersSectionsParams) WithContext

WithContext adds the context to the get mailers sections params

func (*GetMailersSectionsParams) WithDefaults

WithDefaults hydrates default values in the get mailers sections params (not the query body).

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

func (*GetMailersSectionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get mailers sections params

func (*GetMailersSectionsParams) WithTimeout

WithTimeout adds the timeout to the get mailers sections params

func (*GetMailersSectionsParams) WithTransactionID

func (o *GetMailersSectionsParams) WithTransactionID(transactionID *string) *GetMailersSectionsParams

WithTransactionID adds the transactionID to the get mailers sections params

func (*GetMailersSectionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMailersSectionsReader

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

GetMailersSectionsReader is a Reader for the GetMailersSections structure.

func (*GetMailersSectionsReader) ReadResponse

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