Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateMailersSection(params *CreateMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateMailersSectionCreated, *CreateMailersSectionAccepted, error)
- func (a *Client) DeleteMailersSection(params *DeleteMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteMailersSectionAccepted, *DeleteMailersSectionNoContent, error)
- func (a *Client) EditMailersSection(params *EditMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*EditMailersSectionOK, *EditMailersSectionAccepted, error)
- func (a *Client) GetMailersSection(params *GetMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetMailersSectionOK, error)
- func (a *Client) GetMailersSections(params *GetMailersSectionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetMailersSectionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateMailersSectionAccepted
- func (o *CreateMailersSectionAccepted) Code() int
- func (o *CreateMailersSectionAccepted) Error() string
- func (o *CreateMailersSectionAccepted) GetPayload() *models.MailersSection
- func (o *CreateMailersSectionAccepted) IsClientError() bool
- func (o *CreateMailersSectionAccepted) IsCode(code int) bool
- func (o *CreateMailersSectionAccepted) IsRedirect() bool
- func (o *CreateMailersSectionAccepted) IsServerError() bool
- func (o *CreateMailersSectionAccepted) IsSuccess() bool
- func (o *CreateMailersSectionAccepted) String() string
- type CreateMailersSectionBadRequest
- func (o *CreateMailersSectionBadRequest) Code() int
- func (o *CreateMailersSectionBadRequest) Error() string
- func (o *CreateMailersSectionBadRequest) GetPayload() *models.Error
- func (o *CreateMailersSectionBadRequest) IsClientError() bool
- func (o *CreateMailersSectionBadRequest) IsCode(code int) bool
- func (o *CreateMailersSectionBadRequest) IsRedirect() bool
- func (o *CreateMailersSectionBadRequest) IsServerError() bool
- func (o *CreateMailersSectionBadRequest) IsSuccess() bool
- func (o *CreateMailersSectionBadRequest) String() string
- type CreateMailersSectionConflict
- func (o *CreateMailersSectionConflict) Code() int
- func (o *CreateMailersSectionConflict) Error() string
- func (o *CreateMailersSectionConflict) GetPayload() *models.Error
- func (o *CreateMailersSectionConflict) IsClientError() bool
- func (o *CreateMailersSectionConflict) IsCode(code int) bool
- func (o *CreateMailersSectionConflict) IsRedirect() bool
- func (o *CreateMailersSectionConflict) IsServerError() bool
- func (o *CreateMailersSectionConflict) IsSuccess() bool
- func (o *CreateMailersSectionConflict) String() string
- type CreateMailersSectionCreated
- func (o *CreateMailersSectionCreated) Code() int
- func (o *CreateMailersSectionCreated) Error() string
- func (o *CreateMailersSectionCreated) GetPayload() *models.MailersSection
- func (o *CreateMailersSectionCreated) IsClientError() bool
- func (o *CreateMailersSectionCreated) IsCode(code int) bool
- func (o *CreateMailersSectionCreated) IsRedirect() bool
- func (o *CreateMailersSectionCreated) IsServerError() bool
- func (o *CreateMailersSectionCreated) IsSuccess() bool
- func (o *CreateMailersSectionCreated) String() string
- type CreateMailersSectionDefault
- func (o *CreateMailersSectionDefault) Code() int
- func (o *CreateMailersSectionDefault) Error() string
- func (o *CreateMailersSectionDefault) GetPayload() *models.Error
- func (o *CreateMailersSectionDefault) IsClientError() bool
- func (o *CreateMailersSectionDefault) IsCode(code int) bool
- func (o *CreateMailersSectionDefault) IsRedirect() bool
- func (o *CreateMailersSectionDefault) IsServerError() bool
- func (o *CreateMailersSectionDefault) IsSuccess() bool
- func (o *CreateMailersSectionDefault) String() string
- type CreateMailersSectionParams
- func NewCreateMailersSectionParams() *CreateMailersSectionParams
- func NewCreateMailersSectionParamsWithContext(ctx context.Context) *CreateMailersSectionParams
- func NewCreateMailersSectionParamsWithHTTPClient(client *http.Client) *CreateMailersSectionParams
- func NewCreateMailersSectionParamsWithTimeout(timeout time.Duration) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) SetContext(ctx context.Context)
- func (o *CreateMailersSectionParams) SetData(data *models.MailersSection)
- func (o *CreateMailersSectionParams) SetDefaults()
- func (o *CreateMailersSectionParams) SetForceReload(forceReload *bool)
- func (o *CreateMailersSectionParams) SetHTTPClient(client *http.Client)
- func (o *CreateMailersSectionParams) SetTimeout(timeout time.Duration)
- func (o *CreateMailersSectionParams) SetTransactionID(transactionID *string)
- func (o *CreateMailersSectionParams) SetVersion(version *int64)
- func (o *CreateMailersSectionParams) WithContext(ctx context.Context) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithData(data *models.MailersSection) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithDefaults() *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithForceReload(forceReload *bool) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithHTTPClient(client *http.Client) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithTimeout(timeout time.Duration) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithTransactionID(transactionID *string) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WithVersion(version *int64) *CreateMailersSectionParams
- func (o *CreateMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateMailersSectionReader
- type DeleteMailersSectionAccepted
- func (o *DeleteMailersSectionAccepted) Code() int
- func (o *DeleteMailersSectionAccepted) Error() string
- func (o *DeleteMailersSectionAccepted) IsClientError() bool
- func (o *DeleteMailersSectionAccepted) IsCode(code int) bool
- func (o *DeleteMailersSectionAccepted) IsRedirect() bool
- func (o *DeleteMailersSectionAccepted) IsServerError() bool
- func (o *DeleteMailersSectionAccepted) IsSuccess() bool
- func (o *DeleteMailersSectionAccepted) String() string
- type DeleteMailersSectionDefault
- func (o *DeleteMailersSectionDefault) Code() int
- func (o *DeleteMailersSectionDefault) Error() string
- func (o *DeleteMailersSectionDefault) GetPayload() *models.Error
- func (o *DeleteMailersSectionDefault) IsClientError() bool
- func (o *DeleteMailersSectionDefault) IsCode(code int) bool
- func (o *DeleteMailersSectionDefault) IsRedirect() bool
- func (o *DeleteMailersSectionDefault) IsServerError() bool
- func (o *DeleteMailersSectionDefault) IsSuccess() bool
- func (o *DeleteMailersSectionDefault) String() string
- type DeleteMailersSectionNoContent
- func (o *DeleteMailersSectionNoContent) Code() int
- func (o *DeleteMailersSectionNoContent) Error() string
- func (o *DeleteMailersSectionNoContent) IsClientError() bool
- func (o *DeleteMailersSectionNoContent) IsCode(code int) bool
- func (o *DeleteMailersSectionNoContent) IsRedirect() bool
- func (o *DeleteMailersSectionNoContent) IsServerError() bool
- func (o *DeleteMailersSectionNoContent) IsSuccess() bool
- func (o *DeleteMailersSectionNoContent) String() string
- type DeleteMailersSectionNotFound
- func (o *DeleteMailersSectionNotFound) Code() int
- func (o *DeleteMailersSectionNotFound) Error() string
- func (o *DeleteMailersSectionNotFound) GetPayload() *models.Error
- func (o *DeleteMailersSectionNotFound) IsClientError() bool
- func (o *DeleteMailersSectionNotFound) IsCode(code int) bool
- func (o *DeleteMailersSectionNotFound) IsRedirect() bool
- func (o *DeleteMailersSectionNotFound) IsServerError() bool
- func (o *DeleteMailersSectionNotFound) IsSuccess() bool
- func (o *DeleteMailersSectionNotFound) String() string
- type DeleteMailersSectionParams
- func NewDeleteMailersSectionParams() *DeleteMailersSectionParams
- func NewDeleteMailersSectionParamsWithContext(ctx context.Context) *DeleteMailersSectionParams
- func NewDeleteMailersSectionParamsWithHTTPClient(client *http.Client) *DeleteMailersSectionParams
- func NewDeleteMailersSectionParamsWithTimeout(timeout time.Duration) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) SetContext(ctx context.Context)
- func (o *DeleteMailersSectionParams) SetDefaults()
- func (o *DeleteMailersSectionParams) SetForceReload(forceReload *bool)
- func (o *DeleteMailersSectionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMailersSectionParams) SetName(name string)
- func (o *DeleteMailersSectionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMailersSectionParams) SetTransactionID(transactionID *string)
- func (o *DeleteMailersSectionParams) SetVersion(version *int64)
- func (o *DeleteMailersSectionParams) WithContext(ctx context.Context) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithDefaults() *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithForceReload(forceReload *bool) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithHTTPClient(client *http.Client) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithName(name string) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithTimeout(timeout time.Duration) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithTransactionID(transactionID *string) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WithVersion(version *int64) *DeleteMailersSectionParams
- func (o *DeleteMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMailersSectionReader
- type EditMailersSectionAccepted
- func (o *EditMailersSectionAccepted) Code() int
- func (o *EditMailersSectionAccepted) Error() string
- func (o *EditMailersSectionAccepted) GetPayload() *models.MailersSection
- func (o *EditMailersSectionAccepted) IsClientError() bool
- func (o *EditMailersSectionAccepted) IsCode(code int) bool
- func (o *EditMailersSectionAccepted) IsRedirect() bool
- func (o *EditMailersSectionAccepted) IsServerError() bool
- func (o *EditMailersSectionAccepted) IsSuccess() bool
- func (o *EditMailersSectionAccepted) String() string
- type EditMailersSectionBadRequest
- func (o *EditMailersSectionBadRequest) Code() int
- func (o *EditMailersSectionBadRequest) Error() string
- func (o *EditMailersSectionBadRequest) GetPayload() *models.Error
- func (o *EditMailersSectionBadRequest) IsClientError() bool
- func (o *EditMailersSectionBadRequest) IsCode(code int) bool
- func (o *EditMailersSectionBadRequest) IsRedirect() bool
- func (o *EditMailersSectionBadRequest) IsServerError() bool
- func (o *EditMailersSectionBadRequest) IsSuccess() bool
- func (o *EditMailersSectionBadRequest) String() string
- type EditMailersSectionDefault
- func (o *EditMailersSectionDefault) Code() int
- func (o *EditMailersSectionDefault) Error() string
- func (o *EditMailersSectionDefault) GetPayload() *models.Error
- func (o *EditMailersSectionDefault) IsClientError() bool
- func (o *EditMailersSectionDefault) IsCode(code int) bool
- func (o *EditMailersSectionDefault) IsRedirect() bool
- func (o *EditMailersSectionDefault) IsServerError() bool
- func (o *EditMailersSectionDefault) IsSuccess() bool
- func (o *EditMailersSectionDefault) String() string
- type EditMailersSectionNotFound
- func (o *EditMailersSectionNotFound) Code() int
- func (o *EditMailersSectionNotFound) Error() string
- func (o *EditMailersSectionNotFound) GetPayload() *models.Error
- func (o *EditMailersSectionNotFound) IsClientError() bool
- func (o *EditMailersSectionNotFound) IsCode(code int) bool
- func (o *EditMailersSectionNotFound) IsRedirect() bool
- func (o *EditMailersSectionNotFound) IsServerError() bool
- func (o *EditMailersSectionNotFound) IsSuccess() bool
- func (o *EditMailersSectionNotFound) String() string
- type EditMailersSectionOK
- func (o *EditMailersSectionOK) Code() int
- func (o *EditMailersSectionOK) Error() string
- func (o *EditMailersSectionOK) GetPayload() *models.MailersSection
- func (o *EditMailersSectionOK) IsClientError() bool
- func (o *EditMailersSectionOK) IsCode(code int) bool
- func (o *EditMailersSectionOK) IsRedirect() bool
- func (o *EditMailersSectionOK) IsServerError() bool
- func (o *EditMailersSectionOK) IsSuccess() bool
- func (o *EditMailersSectionOK) String() string
- type EditMailersSectionParams
- func NewEditMailersSectionParams() *EditMailersSectionParams
- func NewEditMailersSectionParamsWithContext(ctx context.Context) *EditMailersSectionParams
- func NewEditMailersSectionParamsWithHTTPClient(client *http.Client) *EditMailersSectionParams
- func NewEditMailersSectionParamsWithTimeout(timeout time.Duration) *EditMailersSectionParams
- func (o *EditMailersSectionParams) SetContext(ctx context.Context)
- func (o *EditMailersSectionParams) SetData(data *models.MailersSection)
- func (o *EditMailersSectionParams) SetDefaults()
- func (o *EditMailersSectionParams) SetForceReload(forceReload *bool)
- func (o *EditMailersSectionParams) SetHTTPClient(client *http.Client)
- func (o *EditMailersSectionParams) SetName(name string)
- func (o *EditMailersSectionParams) SetTimeout(timeout time.Duration)
- func (o *EditMailersSectionParams) SetTransactionID(transactionID *string)
- func (o *EditMailersSectionParams) SetVersion(version *int64)
- func (o *EditMailersSectionParams) WithContext(ctx context.Context) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithData(data *models.MailersSection) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithDefaults() *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithForceReload(forceReload *bool) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithHTTPClient(client *http.Client) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithName(name string) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithTimeout(timeout time.Duration) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithTransactionID(transactionID *string) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WithVersion(version *int64) *EditMailersSectionParams
- func (o *EditMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EditMailersSectionReader
- type GetMailersSectionDefault
- func (o *GetMailersSectionDefault) Code() int
- func (o *GetMailersSectionDefault) Error() string
- func (o *GetMailersSectionDefault) GetPayload() *models.Error
- func (o *GetMailersSectionDefault) IsClientError() bool
- func (o *GetMailersSectionDefault) IsCode(code int) bool
- func (o *GetMailersSectionDefault) IsRedirect() bool
- func (o *GetMailersSectionDefault) IsServerError() bool
- func (o *GetMailersSectionDefault) IsSuccess() bool
- func (o *GetMailersSectionDefault) String() string
- type GetMailersSectionNotFound
- func (o *GetMailersSectionNotFound) Code() int
- func (o *GetMailersSectionNotFound) Error() string
- func (o *GetMailersSectionNotFound) GetPayload() *models.Error
- func (o *GetMailersSectionNotFound) IsClientError() bool
- func (o *GetMailersSectionNotFound) IsCode(code int) bool
- func (o *GetMailersSectionNotFound) IsRedirect() bool
- func (o *GetMailersSectionNotFound) IsServerError() bool
- func (o *GetMailersSectionNotFound) IsSuccess() bool
- func (o *GetMailersSectionNotFound) String() string
- type GetMailersSectionOK
- func (o *GetMailersSectionOK) Code() int
- func (o *GetMailersSectionOK) Error() string
- func (o *GetMailersSectionOK) GetPayload() *GetMailersSectionOKBody
- func (o *GetMailersSectionOK) IsClientError() bool
- func (o *GetMailersSectionOK) IsCode(code int) bool
- func (o *GetMailersSectionOK) IsRedirect() bool
- func (o *GetMailersSectionOK) IsServerError() bool
- func (o *GetMailersSectionOK) IsSuccess() bool
- func (o *GetMailersSectionOK) String() string
- type GetMailersSectionOKBody
- func (o *GetMailersSectionOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetMailersSectionOKBody) MarshalBinary() ([]byte, error)
- func (o *GetMailersSectionOKBody) UnmarshalBinary(b []byte) error
- func (o *GetMailersSectionOKBody) Validate(formats strfmt.Registry) error
- type GetMailersSectionParams
- func NewGetMailersSectionParams() *GetMailersSectionParams
- func NewGetMailersSectionParamsWithContext(ctx context.Context) *GetMailersSectionParams
- func NewGetMailersSectionParamsWithHTTPClient(client *http.Client) *GetMailersSectionParams
- func NewGetMailersSectionParamsWithTimeout(timeout time.Duration) *GetMailersSectionParams
- func (o *GetMailersSectionParams) SetContext(ctx context.Context)
- func (o *GetMailersSectionParams) SetDefaults()
- func (o *GetMailersSectionParams) SetHTTPClient(client *http.Client)
- func (o *GetMailersSectionParams) SetName(name string)
- func (o *GetMailersSectionParams) SetTimeout(timeout time.Duration)
- func (o *GetMailersSectionParams) SetTransactionID(transactionID *string)
- func (o *GetMailersSectionParams) WithContext(ctx context.Context) *GetMailersSectionParams
- func (o *GetMailersSectionParams) WithDefaults() *GetMailersSectionParams
- func (o *GetMailersSectionParams) WithHTTPClient(client *http.Client) *GetMailersSectionParams
- func (o *GetMailersSectionParams) WithName(name string) *GetMailersSectionParams
- func (o *GetMailersSectionParams) WithTimeout(timeout time.Duration) *GetMailersSectionParams
- func (o *GetMailersSectionParams) WithTransactionID(transactionID *string) *GetMailersSectionParams
- func (o *GetMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMailersSectionReader
- type GetMailersSectionsDefault
- func (o *GetMailersSectionsDefault) Code() int
- func (o *GetMailersSectionsDefault) Error() string
- func (o *GetMailersSectionsDefault) GetPayload() *models.Error
- func (o *GetMailersSectionsDefault) IsClientError() bool
- func (o *GetMailersSectionsDefault) IsCode(code int) bool
- func (o *GetMailersSectionsDefault) IsRedirect() bool
- func (o *GetMailersSectionsDefault) IsServerError() bool
- func (o *GetMailersSectionsDefault) IsSuccess() bool
- func (o *GetMailersSectionsDefault) String() string
- type GetMailersSectionsOK
- func (o *GetMailersSectionsOK) Code() int
- func (o *GetMailersSectionsOK) Error() string
- func (o *GetMailersSectionsOK) GetPayload() *GetMailersSectionsOKBody
- func (o *GetMailersSectionsOK) IsClientError() bool
- func (o *GetMailersSectionsOK) IsCode(code int) bool
- func (o *GetMailersSectionsOK) IsRedirect() bool
- func (o *GetMailersSectionsOK) IsServerError() bool
- func (o *GetMailersSectionsOK) IsSuccess() bool
- func (o *GetMailersSectionsOK) String() string
- type GetMailersSectionsOKBody
- func (o *GetMailersSectionsOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetMailersSectionsOKBody) MarshalBinary() ([]byte, error)
- func (o *GetMailersSectionsOKBody) UnmarshalBinary(b []byte) error
- func (o *GetMailersSectionsOKBody) Validate(formats strfmt.Registry) error
- type GetMailersSectionsParams
- func NewGetMailersSectionsParams() *GetMailersSectionsParams
- func NewGetMailersSectionsParamsWithContext(ctx context.Context) *GetMailersSectionsParams
- func NewGetMailersSectionsParamsWithHTTPClient(client *http.Client) *GetMailersSectionsParams
- func NewGetMailersSectionsParamsWithTimeout(timeout time.Duration) *GetMailersSectionsParams
- func (o *GetMailersSectionsParams) SetContext(ctx context.Context)
- func (o *GetMailersSectionsParams) SetDefaults()
- func (o *GetMailersSectionsParams) SetHTTPClient(client *http.Client)
- func (o *GetMailersSectionsParams) SetTimeout(timeout time.Duration)
- func (o *GetMailersSectionsParams) SetTransactionID(transactionID *string)
- func (o *GetMailersSectionsParams) WithContext(ctx context.Context) *GetMailersSectionsParams
- func (o *GetMailersSectionsParams) WithDefaults() *GetMailersSectionsParams
- func (o *GetMailersSectionsParams) WithHTTPClient(client *http.Client) *GetMailersSectionsParams
- func (o *GetMailersSectionsParams) WithTimeout(timeout time.Duration) *GetMailersSectionsParams
- func (o *GetMailersSectionsParams) WithTransactionID(transactionID *string) *GetMailersSectionsParams
- func (o *GetMailersSectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMailersSectionsReader
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 ¶
func (a *Client) CreateMailersSection(params *CreateMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateMailersSectionCreated, *CreateMailersSectionAccepted, error)
CreateMailersSection adds a new mailers section
Creates a new empty Mailers section
func (*Client) DeleteMailersSection ¶
func (a *Client) DeleteMailersSection(params *DeleteMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMailersSectionAccepted, *DeleteMailersSectionNoContent, error)
DeleteMailersSection deletes a mailers section
Deletes a mailers from the configuration by it's name.
func (*Client) EditMailersSection ¶
func (a *Client) EditMailersSection(params *EditMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EditMailersSectionOK, *EditMailersSectionAccepted, error)
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 ¶
type ClientService interface { CreateMailersSection(params *CreateMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateMailersSectionCreated, *CreateMailersSectionAccepted, error) DeleteMailersSection(params *DeleteMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMailersSectionAccepted, *DeleteMailersSectionNoContent, error) EditMailersSection(params *EditMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*EditMailersSectionOK, *EditMailersSectionAccepted, error) GetMailersSection(params *GetMailersSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMailersSectionOK, error) GetMailersSections(params *GetMailersSectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetMailersSectionsOK, 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 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
func (o *CreateMailersSectionAccepted) Code() int
Code gets the status code for the create mailers section accepted response
func (*CreateMailersSectionAccepted) Error ¶
func (o *CreateMailersSectionAccepted) Error() string
func (*CreateMailersSectionAccepted) GetPayload ¶
func (o *CreateMailersSectionAccepted) GetPayload() *models.MailersSection
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 ¶
func (o *CreateMailersSectionAccepted) String() 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
func (o *CreateMailersSectionBadRequest) Code() int
Code gets the status code for the create mailers section bad request response
func (*CreateMailersSectionBadRequest) Error ¶
func (o *CreateMailersSectionBadRequest) Error() string
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 ¶
func (o *CreateMailersSectionBadRequest) String() 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
func (o *CreateMailersSectionConflict) Code() int
Code gets the status code for the create mailers section conflict response
func (*CreateMailersSectionConflict) Error ¶
func (o *CreateMailersSectionConflict) Error() string
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 ¶
func (o *CreateMailersSectionConflict) String() 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 (o *CreateMailersSectionCreated) Error() string
func (*CreateMailersSectionCreated) GetPayload ¶
func (o *CreateMailersSectionCreated) GetPayload() *models.MailersSection
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 (o *CreateMailersSectionDefault) Error() string
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 ¶
func (o *CreateMailersSectionParams) SetData(data *models.MailersSection)
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 ¶
func (o *CreateMailersSectionParams) WithContext(ctx context.Context) *CreateMailersSectionParams
WithContext adds the context to the create mailers section params
func (*CreateMailersSectionParams) WithData ¶
func (o *CreateMailersSectionParams) WithData(data *models.MailersSection) *CreateMailersSectionParams
WithData adds the data to the create mailers section params
func (*CreateMailersSectionParams) WithDefaults ¶
func (o *CreateMailersSectionParams) WithDefaults() *CreateMailersSectionParams
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 ¶
func (o *CreateMailersSectionParams) WithHTTPClient(client *http.Client) *CreateMailersSectionParams
WithHTTPClient adds the HTTPClient to the create mailers section params
func (*CreateMailersSectionParams) WithTimeout ¶
func (o *CreateMailersSectionParams) WithTimeout(timeout time.Duration) *CreateMailersSectionParams
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 ¶
func (o *CreateMailersSectionParams) WithVersion(version *int64) *CreateMailersSectionParams
WithVersion adds the version to the create mailers section params
func (*CreateMailersSectionParams) WriteToRequest ¶
func (o *CreateMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *DeleteMailersSectionAccepted) Code() int
Code gets the status code for the delete mailers section accepted response
func (*DeleteMailersSectionAccepted) Error ¶
func (o *DeleteMailersSectionAccepted) Error() string
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 ¶
func (o *DeleteMailersSectionAccepted) String() 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 (o *DeleteMailersSectionDefault) Error() string
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
func (o *DeleteMailersSectionNoContent) Code() int
Code gets the status code for the delete mailers section no content response
func (*DeleteMailersSectionNoContent) Error ¶
func (o *DeleteMailersSectionNoContent) Error() string
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 ¶
func (o *DeleteMailersSectionNoContent) String() 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
func (o *DeleteMailersSectionNotFound) Code() int
Code gets the status code for the delete mailers section not found response
func (*DeleteMailersSectionNotFound) Error ¶
func (o *DeleteMailersSectionNotFound) Error() string
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 ¶
func (o *DeleteMailersSectionNotFound) String() 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 ¶
func (o *DeleteMailersSectionParams) WithContext(ctx context.Context) *DeleteMailersSectionParams
WithContext adds the context to the delete mailers section params
func (*DeleteMailersSectionParams) WithDefaults ¶
func (o *DeleteMailersSectionParams) WithDefaults() *DeleteMailersSectionParams
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 ¶
func (o *DeleteMailersSectionParams) WithHTTPClient(client *http.Client) *DeleteMailersSectionParams
WithHTTPClient adds the HTTPClient to the delete mailers section params
func (*DeleteMailersSectionParams) WithName ¶
func (o *DeleteMailersSectionParams) WithName(name string) *DeleteMailersSectionParams
WithName adds the name to the delete mailers section params
func (*DeleteMailersSectionParams) WithTimeout ¶
func (o *DeleteMailersSectionParams) WithTimeout(timeout time.Duration) *DeleteMailersSectionParams
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 ¶
func (o *DeleteMailersSectionParams) WithVersion(version *int64) *DeleteMailersSectionParams
WithVersion adds the version to the delete mailers section params
func (*DeleteMailersSectionParams) WriteToRequest ¶
func (o *DeleteMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *EditMailersSectionAccepted) Error() string
func (*EditMailersSectionAccepted) GetPayload ¶
func (o *EditMailersSectionAccepted) GetPayload() *models.MailersSection
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
func (o *EditMailersSectionBadRequest) Code() int
Code gets the status code for the edit mailers section bad request response
func (*EditMailersSectionBadRequest) Error ¶
func (o *EditMailersSectionBadRequest) Error() string
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 ¶
func (o *EditMailersSectionBadRequest) String() 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 (o *EditMailersSectionNotFound) Error() string
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 ¶
func (o *EditMailersSectionParams) SetData(data *models.MailersSection)
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 ¶
func (o *EditMailersSectionParams) WithContext(ctx context.Context) *EditMailersSectionParams
WithContext adds the context to the edit mailers section params
func (*EditMailersSectionParams) WithData ¶
func (o *EditMailersSectionParams) WithData(data *models.MailersSection) *EditMailersSectionParams
WithData adds the data to the edit mailers section params
func (*EditMailersSectionParams) WithDefaults ¶
func (o *EditMailersSectionParams) WithDefaults() *EditMailersSectionParams
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 ¶
func (o *EditMailersSectionParams) WithName(name string) *EditMailersSectionParams
WithName adds the name to the edit mailers section params
func (*EditMailersSectionParams) WithTimeout ¶
func (o *EditMailersSectionParams) WithTimeout(timeout time.Duration) *EditMailersSectionParams
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 ¶
func (o *EditMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetMailersSectionOK) GetPayload() *GetMailersSectionOKBody
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
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 ¶
func (o *GetMailersSectionParams) WithContext(ctx context.Context) *GetMailersSectionParams
WithContext adds the context to the get mailers section params
func (*GetMailersSectionParams) WithDefaults ¶
func (o *GetMailersSectionParams) WithDefaults() *GetMailersSectionParams
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 ¶
func (o *GetMailersSectionParams) WithName(name string) *GetMailersSectionParams
WithName adds the name to the get mailers section params
func (*GetMailersSectionParams) WithTimeout ¶
func (o *GetMailersSectionParams) WithTimeout(timeout time.Duration) *GetMailersSectionParams
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 ¶
func (o *GetMailersSectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetMailersSectionsOK) GetPayload() *GetMailersSectionsOKBody
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
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 ¶
func (o *GetMailersSectionsParams) WithContext(ctx context.Context) *GetMailersSectionsParams
WithContext adds the context to the get mailers sections params
func (*GetMailersSectionsParams) WithDefaults ¶
func (o *GetMailersSectionsParams) WithDefaults() *GetMailersSectionsParams
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 ¶
func (o *GetMailersSectionsParams) WithTimeout(timeout time.Duration) *GetMailersSectionsParams
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 ¶
func (o *GetMailersSectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_mailers_section_parameters.go
- create_mailers_section_responses.go
- delete_mailers_section_parameters.go
- delete_mailers_section_responses.go
- edit_mailers_section_parameters.go
- edit_mailers_section_responses.go
- get_mailers_section_parameters.go
- get_mailers_section_responses.go
- get_mailers_sections_parameters.go
- get_mailers_sections_responses.go
- mailers_client.go