defaults

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 defaults API

func (*Client) CreateDefaultsSection added in v1.1.0

CreateDefaultsSection adds a defaults section

Adds a new defaults section to the configuration file.

func (*Client) DeleteDefaultsSection added in v1.1.0

DeleteDefaultsSection deletes a defaults section

Deletes a defaults section from the configuration by it's name.

func (*Client) GetDefaults

func (a *Client) GetDefaults(params *GetDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultsOK, error)

GetDefaults returns defaults part of configuration

Returns defaults part of configuration, this has been deprecated, use named_defaults instead.

func (*Client) GetDefaultsSection added in v1.1.0

func (a *Client) GetDefaultsSection(params *GetDefaultsSectionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultsSectionOK, error)

GetDefaultsSection returns a defaults section

Returns one defaults section configuration by it's name.

func (*Client) GetDefaultsSections added in v1.1.0

func (a *Client) GetDefaultsSections(params *GetDefaultsSectionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultsSectionsOK, error)

GetDefaultsSections returns an array of defaults

Returns an array of all configured defaults.

func (*Client) ReplaceDefaults

ReplaceDefaults replaces defaults

Replace defaults part of config, this has been deprecated, use named_defaults instead.

func (*Client) ReplaceDefaultsSection added in v1.1.0

ReplaceDefaultsSection replaces a defatults section

Replaces a defatults section configuration by it's name.

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 defaults API client.

type CreateDefaultsSectionAccepted added in v1.1.0

type CreateDefaultsSectionAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Defaults
}

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

Configuration change accepted and reload requested

func NewCreateDefaultsSectionAccepted added in v1.1.0

func NewCreateDefaultsSectionAccepted() *CreateDefaultsSectionAccepted

NewCreateDefaultsSectionAccepted creates a CreateDefaultsSectionAccepted with default headers values

func (*CreateDefaultsSectionAccepted) Code added in v1.1.5

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

func (*CreateDefaultsSectionAccepted) Error added in v1.1.0

func (*CreateDefaultsSectionAccepted) GetPayload added in v1.1.0

func (*CreateDefaultsSectionAccepted) IsClientError added in v1.1.0

func (o *CreateDefaultsSectionAccepted) IsClientError() bool

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

func (*CreateDefaultsSectionAccepted) IsCode added in v1.1.0

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

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

func (*CreateDefaultsSectionAccepted) IsRedirect added in v1.1.0

func (o *CreateDefaultsSectionAccepted) IsRedirect() bool

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

func (*CreateDefaultsSectionAccepted) IsServerError added in v1.1.0

func (o *CreateDefaultsSectionAccepted) IsServerError() bool

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

func (*CreateDefaultsSectionAccepted) IsSuccess added in v1.1.0

func (o *CreateDefaultsSectionAccepted) IsSuccess() bool

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

func (*CreateDefaultsSectionAccepted) String added in v1.1.0

type CreateDefaultsSectionBadRequest added in v1.1.0

type CreateDefaultsSectionBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewCreateDefaultsSectionBadRequest added in v1.1.0

func NewCreateDefaultsSectionBadRequest() *CreateDefaultsSectionBadRequest

NewCreateDefaultsSectionBadRequest creates a CreateDefaultsSectionBadRequest with default headers values

func (*CreateDefaultsSectionBadRequest) Code added in v1.1.5

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

func (*CreateDefaultsSectionBadRequest) Error added in v1.1.0

func (*CreateDefaultsSectionBadRequest) GetPayload added in v1.1.0

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

func (*CreateDefaultsSectionBadRequest) IsClientError added in v1.1.0

func (o *CreateDefaultsSectionBadRequest) IsClientError() bool

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

func (*CreateDefaultsSectionBadRequest) IsCode added in v1.1.0

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

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

func (*CreateDefaultsSectionBadRequest) IsRedirect added in v1.1.0

func (o *CreateDefaultsSectionBadRequest) IsRedirect() bool

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

func (*CreateDefaultsSectionBadRequest) IsServerError added in v1.1.0

func (o *CreateDefaultsSectionBadRequest) IsServerError() bool

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

func (*CreateDefaultsSectionBadRequest) IsSuccess added in v1.1.0

func (o *CreateDefaultsSectionBadRequest) IsSuccess() bool

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

func (*CreateDefaultsSectionBadRequest) String added in v1.1.0

type CreateDefaultsSectionConflict added in v1.1.0

type CreateDefaultsSectionConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource already exists

func NewCreateDefaultsSectionConflict added in v1.1.0

func NewCreateDefaultsSectionConflict() *CreateDefaultsSectionConflict

NewCreateDefaultsSectionConflict creates a CreateDefaultsSectionConflict with default headers values

func (*CreateDefaultsSectionConflict) Code added in v1.1.5

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

func (*CreateDefaultsSectionConflict) Error added in v1.1.0

func (*CreateDefaultsSectionConflict) GetPayload added in v1.1.0

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

func (*CreateDefaultsSectionConflict) IsClientError added in v1.1.0

func (o *CreateDefaultsSectionConflict) IsClientError() bool

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

func (*CreateDefaultsSectionConflict) IsCode added in v1.1.0

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

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

func (*CreateDefaultsSectionConflict) IsRedirect added in v1.1.0

func (o *CreateDefaultsSectionConflict) IsRedirect() bool

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

func (*CreateDefaultsSectionConflict) IsServerError added in v1.1.0

func (o *CreateDefaultsSectionConflict) IsServerError() bool

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

func (*CreateDefaultsSectionConflict) IsSuccess added in v1.1.0

func (o *CreateDefaultsSectionConflict) IsSuccess() bool

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

func (*CreateDefaultsSectionConflict) String added in v1.1.0

type CreateDefaultsSectionCreated added in v1.1.0

type CreateDefaultsSectionCreated struct {
	Payload *models.Defaults
}

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

Defaults created

func NewCreateDefaultsSectionCreated added in v1.1.0

func NewCreateDefaultsSectionCreated() *CreateDefaultsSectionCreated

NewCreateDefaultsSectionCreated creates a CreateDefaultsSectionCreated with default headers values

func (*CreateDefaultsSectionCreated) Code added in v1.1.5

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

func (*CreateDefaultsSectionCreated) Error added in v1.1.0

func (*CreateDefaultsSectionCreated) GetPayload added in v1.1.0

func (o *CreateDefaultsSectionCreated) GetPayload() *models.Defaults

func (*CreateDefaultsSectionCreated) IsClientError added in v1.1.0

func (o *CreateDefaultsSectionCreated) IsClientError() bool

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

func (*CreateDefaultsSectionCreated) IsCode added in v1.1.0

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

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

func (*CreateDefaultsSectionCreated) IsRedirect added in v1.1.0

func (o *CreateDefaultsSectionCreated) IsRedirect() bool

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

func (*CreateDefaultsSectionCreated) IsServerError added in v1.1.0

func (o *CreateDefaultsSectionCreated) IsServerError() bool

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

func (*CreateDefaultsSectionCreated) IsSuccess added in v1.1.0

func (o *CreateDefaultsSectionCreated) IsSuccess() bool

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

func (*CreateDefaultsSectionCreated) String added in v1.1.0

type CreateDefaultsSectionDefault added in v1.1.0

type CreateDefaultsSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewCreateDefaultsSectionDefault added in v1.1.0

func NewCreateDefaultsSectionDefault(code int) *CreateDefaultsSectionDefault

NewCreateDefaultsSectionDefault creates a CreateDefaultsSectionDefault with default headers values

func (*CreateDefaultsSectionDefault) Code added in v1.1.0

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

func (*CreateDefaultsSectionDefault) Error added in v1.1.0

func (*CreateDefaultsSectionDefault) GetPayload added in v1.1.0

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

func (*CreateDefaultsSectionDefault) IsClientError added in v1.1.0

func (o *CreateDefaultsSectionDefault) IsClientError() bool

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

func (*CreateDefaultsSectionDefault) IsCode added in v1.1.0

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

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

func (*CreateDefaultsSectionDefault) IsRedirect added in v1.1.0

func (o *CreateDefaultsSectionDefault) IsRedirect() bool

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

func (*CreateDefaultsSectionDefault) IsServerError added in v1.1.0

func (o *CreateDefaultsSectionDefault) IsServerError() bool

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

func (*CreateDefaultsSectionDefault) IsSuccess added in v1.1.0

func (o *CreateDefaultsSectionDefault) IsSuccess() bool

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

func (*CreateDefaultsSectionDefault) String added in v1.1.0

type CreateDefaultsSectionParams added in v1.1.0

type CreateDefaultsSectionParams struct {

	// Data.
	Data *models.Defaults

	/* 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
}

CreateDefaultsSectionParams contains all the parameters to send to the API endpoint

for the create defaults section operation.

Typically these are written to a http.Request.

func NewCreateDefaultsSectionParams added in v1.1.0

func NewCreateDefaultsSectionParams() *CreateDefaultsSectionParams

NewCreateDefaultsSectionParams creates a new CreateDefaultsSectionParams 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 NewCreateDefaultsSectionParamsWithContext added in v1.1.0

func NewCreateDefaultsSectionParamsWithContext(ctx context.Context) *CreateDefaultsSectionParams

NewCreateDefaultsSectionParamsWithContext creates a new CreateDefaultsSectionParams object with the ability to set a context for a request.

func NewCreateDefaultsSectionParamsWithHTTPClient added in v1.1.0

func NewCreateDefaultsSectionParamsWithHTTPClient(client *http.Client) *CreateDefaultsSectionParams

NewCreateDefaultsSectionParamsWithHTTPClient creates a new CreateDefaultsSectionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDefaultsSectionParamsWithTimeout added in v1.1.0

func NewCreateDefaultsSectionParamsWithTimeout(timeout time.Duration) *CreateDefaultsSectionParams

NewCreateDefaultsSectionParamsWithTimeout creates a new CreateDefaultsSectionParams object with the ability to set a timeout on a request.

func (*CreateDefaultsSectionParams) SetContext added in v1.1.0

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

SetContext adds the context to the create defaults section params

func (*CreateDefaultsSectionParams) SetData added in v1.1.0

func (o *CreateDefaultsSectionParams) SetData(data *models.Defaults)

SetData adds the data to the create defaults section params

func (*CreateDefaultsSectionParams) SetDefaults added in v1.1.0

func (o *CreateDefaultsSectionParams) SetDefaults()

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

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

func (*CreateDefaultsSectionParams) SetForceReload added in v1.1.0

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

SetForceReload adds the forceReload to the create defaults section params

func (*CreateDefaultsSectionParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the create defaults section params

func (*CreateDefaultsSectionParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the create defaults section params

func (*CreateDefaultsSectionParams) SetTransactionID added in v1.1.0

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

SetTransactionID adds the transactionId to the create defaults section params

func (*CreateDefaultsSectionParams) SetVersion added in v1.1.0

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

SetVersion adds the version to the create defaults section params

func (*CreateDefaultsSectionParams) WithContext added in v1.1.0

WithContext adds the context to the create defaults section params

func (*CreateDefaultsSectionParams) WithData added in v1.1.0

WithData adds the data to the create defaults section params

func (*CreateDefaultsSectionParams) WithDefaults added in v1.1.0

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

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

func (*CreateDefaultsSectionParams) WithForceReload added in v1.1.0

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

WithForceReload adds the forceReload to the create defaults section params

func (*CreateDefaultsSectionParams) WithHTTPClient added in v1.1.0

WithHTTPClient adds the HTTPClient to the create defaults section params

func (*CreateDefaultsSectionParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the create defaults section params

func (*CreateDefaultsSectionParams) WithTransactionID added in v1.1.0

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

WithTransactionID adds the transactionID to the create defaults section params

func (*CreateDefaultsSectionParams) WithVersion added in v1.1.0

WithVersion adds the version to the create defaults section params

func (*CreateDefaultsSectionParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type CreateDefaultsSectionReader added in v1.1.0

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

CreateDefaultsSectionReader is a Reader for the CreateDefaultsSection structure.

func (*CreateDefaultsSectionReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type DeleteDefaultsSectionAccepted added in v1.1.0

type DeleteDefaultsSectionAccepted struct {

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

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

Configuration change accepted and reload requested

func NewDeleteDefaultsSectionAccepted added in v1.1.0

func NewDeleteDefaultsSectionAccepted() *DeleteDefaultsSectionAccepted

NewDeleteDefaultsSectionAccepted creates a DeleteDefaultsSectionAccepted with default headers values

func (*DeleteDefaultsSectionAccepted) Code added in v1.1.5

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

func (*DeleteDefaultsSectionAccepted) Error added in v1.1.0

func (*DeleteDefaultsSectionAccepted) IsClientError added in v1.1.0

func (o *DeleteDefaultsSectionAccepted) IsClientError() bool

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

func (*DeleteDefaultsSectionAccepted) IsCode added in v1.1.0

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

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

func (*DeleteDefaultsSectionAccepted) IsRedirect added in v1.1.0

func (o *DeleteDefaultsSectionAccepted) IsRedirect() bool

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

func (*DeleteDefaultsSectionAccepted) IsServerError added in v1.1.0

func (o *DeleteDefaultsSectionAccepted) IsServerError() bool

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

func (*DeleteDefaultsSectionAccepted) IsSuccess added in v1.1.0

func (o *DeleteDefaultsSectionAccepted) IsSuccess() bool

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

func (*DeleteDefaultsSectionAccepted) String added in v1.1.0

type DeleteDefaultsSectionDefault added in v1.1.0

type DeleteDefaultsSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewDeleteDefaultsSectionDefault added in v1.1.0

func NewDeleteDefaultsSectionDefault(code int) *DeleteDefaultsSectionDefault

NewDeleteDefaultsSectionDefault creates a DeleteDefaultsSectionDefault with default headers values

func (*DeleteDefaultsSectionDefault) Code added in v1.1.0

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

func (*DeleteDefaultsSectionDefault) Error added in v1.1.0

func (*DeleteDefaultsSectionDefault) GetPayload added in v1.1.0

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

func (*DeleteDefaultsSectionDefault) IsClientError added in v1.1.0

func (o *DeleteDefaultsSectionDefault) IsClientError() bool

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

func (*DeleteDefaultsSectionDefault) IsCode added in v1.1.0

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

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

func (*DeleteDefaultsSectionDefault) IsRedirect added in v1.1.0

func (o *DeleteDefaultsSectionDefault) IsRedirect() bool

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

func (*DeleteDefaultsSectionDefault) IsServerError added in v1.1.0

func (o *DeleteDefaultsSectionDefault) IsServerError() bool

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

func (*DeleteDefaultsSectionDefault) IsSuccess added in v1.1.0

func (o *DeleteDefaultsSectionDefault) IsSuccess() bool

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

func (*DeleteDefaultsSectionDefault) String added in v1.1.0

type DeleteDefaultsSectionNoContent added in v1.1.0

type DeleteDefaultsSectionNoContent struct {
}

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

Defaults section deleted

func NewDeleteDefaultsSectionNoContent added in v1.1.0

func NewDeleteDefaultsSectionNoContent() *DeleteDefaultsSectionNoContent

NewDeleteDefaultsSectionNoContent creates a DeleteDefaultsSectionNoContent with default headers values

func (*DeleteDefaultsSectionNoContent) Code added in v1.1.5

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

func (*DeleteDefaultsSectionNoContent) Error added in v1.1.0

func (*DeleteDefaultsSectionNoContent) IsClientError added in v1.1.0

func (o *DeleteDefaultsSectionNoContent) IsClientError() bool

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

func (*DeleteDefaultsSectionNoContent) IsCode added in v1.1.0

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

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

func (*DeleteDefaultsSectionNoContent) IsRedirect added in v1.1.0

func (o *DeleteDefaultsSectionNoContent) IsRedirect() bool

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

func (*DeleteDefaultsSectionNoContent) IsServerError added in v1.1.0

func (o *DeleteDefaultsSectionNoContent) IsServerError() bool

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

func (*DeleteDefaultsSectionNoContent) IsSuccess added in v1.1.0

func (o *DeleteDefaultsSectionNoContent) IsSuccess() bool

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

func (*DeleteDefaultsSectionNoContent) String added in v1.1.0

type DeleteDefaultsSectionNotFound added in v1.1.0

type DeleteDefaultsSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewDeleteDefaultsSectionNotFound added in v1.1.0

func NewDeleteDefaultsSectionNotFound() *DeleteDefaultsSectionNotFound

NewDeleteDefaultsSectionNotFound creates a DeleteDefaultsSectionNotFound with default headers values

func (*DeleteDefaultsSectionNotFound) Code added in v1.1.5

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

func (*DeleteDefaultsSectionNotFound) Error added in v1.1.0

func (*DeleteDefaultsSectionNotFound) GetPayload added in v1.1.0

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

func (*DeleteDefaultsSectionNotFound) IsClientError added in v1.1.0

func (o *DeleteDefaultsSectionNotFound) IsClientError() bool

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

func (*DeleteDefaultsSectionNotFound) IsCode added in v1.1.0

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

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

func (*DeleteDefaultsSectionNotFound) IsRedirect added in v1.1.0

func (o *DeleteDefaultsSectionNotFound) IsRedirect() bool

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

func (*DeleteDefaultsSectionNotFound) IsServerError added in v1.1.0

func (o *DeleteDefaultsSectionNotFound) IsServerError() bool

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

func (*DeleteDefaultsSectionNotFound) IsSuccess added in v1.1.0

func (o *DeleteDefaultsSectionNotFound) IsSuccess() bool

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

func (*DeleteDefaultsSectionNotFound) String added in v1.1.0

type DeleteDefaultsSectionParams added in v1.1.0

type DeleteDefaultsSectionParams 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.

	   Defaults 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
}

DeleteDefaultsSectionParams contains all the parameters to send to the API endpoint

for the delete defaults section operation.

Typically these are written to a http.Request.

func NewDeleteDefaultsSectionParams added in v1.1.0

func NewDeleteDefaultsSectionParams() *DeleteDefaultsSectionParams

NewDeleteDefaultsSectionParams creates a new DeleteDefaultsSectionParams 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 NewDeleteDefaultsSectionParamsWithContext added in v1.1.0

func NewDeleteDefaultsSectionParamsWithContext(ctx context.Context) *DeleteDefaultsSectionParams

NewDeleteDefaultsSectionParamsWithContext creates a new DeleteDefaultsSectionParams object with the ability to set a context for a request.

func NewDeleteDefaultsSectionParamsWithHTTPClient added in v1.1.0

func NewDeleteDefaultsSectionParamsWithHTTPClient(client *http.Client) *DeleteDefaultsSectionParams

NewDeleteDefaultsSectionParamsWithHTTPClient creates a new DeleteDefaultsSectionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDefaultsSectionParamsWithTimeout added in v1.1.0

func NewDeleteDefaultsSectionParamsWithTimeout(timeout time.Duration) *DeleteDefaultsSectionParams

NewDeleteDefaultsSectionParamsWithTimeout creates a new DeleteDefaultsSectionParams object with the ability to set a timeout on a request.

func (*DeleteDefaultsSectionParams) SetContext added in v1.1.0

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

SetContext adds the context to the delete defaults section params

func (*DeleteDefaultsSectionParams) SetDefaults added in v1.1.0

func (o *DeleteDefaultsSectionParams) SetDefaults()

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

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

func (*DeleteDefaultsSectionParams) SetForceReload added in v1.1.0

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

SetForceReload adds the forceReload to the delete defaults section params

func (*DeleteDefaultsSectionParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the delete defaults section params

func (*DeleteDefaultsSectionParams) SetName added in v1.1.0

func (o *DeleteDefaultsSectionParams) SetName(name string)

SetName adds the name to the delete defaults section params

func (*DeleteDefaultsSectionParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the delete defaults section params

func (*DeleteDefaultsSectionParams) SetTransactionID added in v1.1.0

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

SetTransactionID adds the transactionId to the delete defaults section params

func (*DeleteDefaultsSectionParams) SetVersion added in v1.1.0

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

SetVersion adds the version to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithContext added in v1.1.0

WithContext adds the context to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithDefaults added in v1.1.0

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

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

func (*DeleteDefaultsSectionParams) WithForceReload added in v1.1.0

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

WithForceReload adds the forceReload to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithHTTPClient added in v1.1.0

WithHTTPClient adds the HTTPClient to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithName added in v1.1.0

WithName adds the name to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithTransactionID added in v1.1.0

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

WithTransactionID adds the transactionID to the delete defaults section params

func (*DeleteDefaultsSectionParams) WithVersion added in v1.1.0

WithVersion adds the version to the delete defaults section params

func (*DeleteDefaultsSectionParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type DeleteDefaultsSectionReader added in v1.1.0

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

DeleteDefaultsSectionReader is a Reader for the DeleteDefaultsSection structure.

func (*DeleteDefaultsSectionReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type GetDefaultsDefault

type GetDefaultsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetDefaultsDefault

func NewGetDefaultsDefault(code int) *GetDefaultsDefault

NewGetDefaultsDefault creates a GetDefaultsDefault with default headers values

func (*GetDefaultsDefault) Code

func (o *GetDefaultsDefault) Code() int

Code gets the status code for the get defaults default response

func (*GetDefaultsDefault) Error

func (o *GetDefaultsDefault) Error() string

func (*GetDefaultsDefault) GetPayload

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

func (*GetDefaultsDefault) IsClientError added in v1.1.0

func (o *GetDefaultsDefault) IsClientError() bool

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

func (*GetDefaultsDefault) IsCode added in v1.1.0

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

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

func (*GetDefaultsDefault) IsRedirect added in v1.1.0

func (o *GetDefaultsDefault) IsRedirect() bool

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

func (*GetDefaultsDefault) IsServerError added in v1.1.0

func (o *GetDefaultsDefault) IsServerError() bool

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

func (*GetDefaultsDefault) IsSuccess added in v1.1.0

func (o *GetDefaultsDefault) IsSuccess() bool

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

func (*GetDefaultsDefault) String added in v1.1.0

func (o *GetDefaultsDefault) String() string

type GetDefaultsOK

type GetDefaultsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetDefaultsOKBody
}

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

Successful operation

func NewGetDefaultsOK

func NewGetDefaultsOK() *GetDefaultsOK

NewGetDefaultsOK creates a GetDefaultsOK with default headers values

func (*GetDefaultsOK) Code added in v1.1.5

func (o *GetDefaultsOK) Code() int

Code gets the status code for the get defaults o k response

func (*GetDefaultsOK) Error

func (o *GetDefaultsOK) Error() string

func (*GetDefaultsOK) GetPayload

func (o *GetDefaultsOK) GetPayload() *GetDefaultsOKBody

func (*GetDefaultsOK) IsClientError added in v1.1.0

func (o *GetDefaultsOK) IsClientError() bool

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

func (*GetDefaultsOK) IsCode added in v1.1.0

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

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

func (*GetDefaultsOK) IsRedirect added in v1.1.0

func (o *GetDefaultsOK) IsRedirect() bool

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

func (*GetDefaultsOK) IsServerError added in v1.1.0

func (o *GetDefaultsOK) IsServerError() bool

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

func (*GetDefaultsOK) IsSuccess added in v1.1.0

func (o *GetDefaultsOK) IsSuccess() bool

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

func (*GetDefaultsOK) String added in v1.1.0

func (o *GetDefaultsOK) String() string

type GetDefaultsOKBody

type GetDefaultsOKBody struct {

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

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

GetDefaultsOKBody get defaults o k body swagger:model GetDefaultsOKBody

func (*GetDefaultsOKBody) ContextValidate

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

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

func (*GetDefaultsOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDefaultsOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDefaultsOKBody) Validate

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

Validate validates this get defaults o k body

type GetDefaultsParams

type GetDefaultsParams 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
}

GetDefaultsParams contains all the parameters to send to the API endpoint

for the get defaults operation.

Typically these are written to a http.Request.

func NewGetDefaultsParams

func NewGetDefaultsParams() *GetDefaultsParams

NewGetDefaultsParams creates a new GetDefaultsParams 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 NewGetDefaultsParamsWithContext

func NewGetDefaultsParamsWithContext(ctx context.Context) *GetDefaultsParams

NewGetDefaultsParamsWithContext creates a new GetDefaultsParams object with the ability to set a context for a request.

func NewGetDefaultsParamsWithHTTPClient

func NewGetDefaultsParamsWithHTTPClient(client *http.Client) *GetDefaultsParams

NewGetDefaultsParamsWithHTTPClient creates a new GetDefaultsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDefaultsParamsWithTimeout

func NewGetDefaultsParamsWithTimeout(timeout time.Duration) *GetDefaultsParams

NewGetDefaultsParamsWithTimeout creates a new GetDefaultsParams object with the ability to set a timeout on a request.

func (*GetDefaultsParams) SetContext

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

SetContext adds the context to the get defaults params

func (*GetDefaultsParams) SetDefaults

func (o *GetDefaultsParams) SetDefaults()

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

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

func (*GetDefaultsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get defaults params

func (*GetDefaultsParams) SetTimeout

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

SetTimeout adds the timeout to the get defaults params

func (*GetDefaultsParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get defaults params

func (*GetDefaultsParams) WithContext

func (o *GetDefaultsParams) WithContext(ctx context.Context) *GetDefaultsParams

WithContext adds the context to the get defaults params

func (*GetDefaultsParams) WithDefaults

func (o *GetDefaultsParams) WithDefaults() *GetDefaultsParams

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

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

func (*GetDefaultsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get defaults params

func (*GetDefaultsParams) WithTimeout

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

WithTimeout adds the timeout to the get defaults params

func (*GetDefaultsParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get defaults params

func (*GetDefaultsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetDefaultsReader

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

GetDefaultsReader is a Reader for the GetDefaults structure.

func (*GetDefaultsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDefaultsSectionDefault added in v1.1.0

type GetDefaultsSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetDefaultsSectionDefault added in v1.1.0

func NewGetDefaultsSectionDefault(code int) *GetDefaultsSectionDefault

NewGetDefaultsSectionDefault creates a GetDefaultsSectionDefault with default headers values

func (*GetDefaultsSectionDefault) Code added in v1.1.0

func (o *GetDefaultsSectionDefault) Code() int

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

func (*GetDefaultsSectionDefault) Error added in v1.1.0

func (o *GetDefaultsSectionDefault) Error() string

func (*GetDefaultsSectionDefault) GetPayload added in v1.1.0

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

func (*GetDefaultsSectionDefault) IsClientError added in v1.1.0

func (o *GetDefaultsSectionDefault) IsClientError() bool

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

func (*GetDefaultsSectionDefault) IsCode added in v1.1.0

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

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

func (*GetDefaultsSectionDefault) IsRedirect added in v1.1.0

func (o *GetDefaultsSectionDefault) IsRedirect() bool

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

func (*GetDefaultsSectionDefault) IsServerError added in v1.1.0

func (o *GetDefaultsSectionDefault) IsServerError() bool

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

func (*GetDefaultsSectionDefault) IsSuccess added in v1.1.0

func (o *GetDefaultsSectionDefault) IsSuccess() bool

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

func (*GetDefaultsSectionDefault) String added in v1.1.0

func (o *GetDefaultsSectionDefault) String() string

type GetDefaultsSectionNotFound added in v1.1.0

type GetDefaultsSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewGetDefaultsSectionNotFound added in v1.1.0

func NewGetDefaultsSectionNotFound() *GetDefaultsSectionNotFound

NewGetDefaultsSectionNotFound creates a GetDefaultsSectionNotFound with default headers values

func (*GetDefaultsSectionNotFound) Code added in v1.1.5

func (o *GetDefaultsSectionNotFound) Code() int

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

func (*GetDefaultsSectionNotFound) Error added in v1.1.0

func (*GetDefaultsSectionNotFound) GetPayload added in v1.1.0

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

func (*GetDefaultsSectionNotFound) IsClientError added in v1.1.0

func (o *GetDefaultsSectionNotFound) IsClientError() bool

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

func (*GetDefaultsSectionNotFound) IsCode added in v1.1.0

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

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

func (*GetDefaultsSectionNotFound) IsRedirect added in v1.1.0

func (o *GetDefaultsSectionNotFound) IsRedirect() bool

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

func (*GetDefaultsSectionNotFound) IsServerError added in v1.1.0

func (o *GetDefaultsSectionNotFound) IsServerError() bool

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

func (*GetDefaultsSectionNotFound) IsSuccess added in v1.1.0

func (o *GetDefaultsSectionNotFound) IsSuccess() bool

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

func (*GetDefaultsSectionNotFound) String added in v1.1.0

func (o *GetDefaultsSectionNotFound) String() string

type GetDefaultsSectionOK added in v1.1.0

type GetDefaultsSectionOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetDefaultsSectionOKBody
}

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

Successful operation

func NewGetDefaultsSectionOK added in v1.1.0

func NewGetDefaultsSectionOK() *GetDefaultsSectionOK

NewGetDefaultsSectionOK creates a GetDefaultsSectionOK with default headers values

func (*GetDefaultsSectionOK) Code added in v1.1.5

func (o *GetDefaultsSectionOK) Code() int

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

func (*GetDefaultsSectionOK) Error added in v1.1.0

func (o *GetDefaultsSectionOK) Error() string

func (*GetDefaultsSectionOK) GetPayload added in v1.1.0

func (*GetDefaultsSectionOK) IsClientError added in v1.1.0

func (o *GetDefaultsSectionOK) IsClientError() bool

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

func (*GetDefaultsSectionOK) IsCode added in v1.1.0

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

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

func (*GetDefaultsSectionOK) IsRedirect added in v1.1.0

func (o *GetDefaultsSectionOK) IsRedirect() bool

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

func (*GetDefaultsSectionOK) IsServerError added in v1.1.0

func (o *GetDefaultsSectionOK) IsServerError() bool

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

func (*GetDefaultsSectionOK) IsSuccess added in v1.1.0

func (o *GetDefaultsSectionOK) IsSuccess() bool

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

func (*GetDefaultsSectionOK) String added in v1.1.0

func (o *GetDefaultsSectionOK) String() string

type GetDefaultsSectionOKBody added in v1.1.0

type GetDefaultsSectionOKBody struct {

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

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

GetDefaultsSectionOKBody get defaults section o k body swagger:model GetDefaultsSectionOKBody

func (*GetDefaultsSectionOKBody) ContextValidate added in v1.1.0

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

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

func (*GetDefaultsSectionOKBody) MarshalBinary added in v1.1.0

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

MarshalBinary interface implementation

func (*GetDefaultsSectionOKBody) UnmarshalBinary added in v1.1.0

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

UnmarshalBinary interface implementation

func (*GetDefaultsSectionOKBody) Validate added in v1.1.0

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

Validate validates this get defaults section o k body

type GetDefaultsSectionParams added in v1.1.0

type GetDefaultsSectionParams struct {

	/* Name.

	   Defaults 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
}

GetDefaultsSectionParams contains all the parameters to send to the API endpoint

for the get defaults section operation.

Typically these are written to a http.Request.

func NewGetDefaultsSectionParams added in v1.1.0

func NewGetDefaultsSectionParams() *GetDefaultsSectionParams

NewGetDefaultsSectionParams creates a new GetDefaultsSectionParams 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 NewGetDefaultsSectionParamsWithContext added in v1.1.0

func NewGetDefaultsSectionParamsWithContext(ctx context.Context) *GetDefaultsSectionParams

NewGetDefaultsSectionParamsWithContext creates a new GetDefaultsSectionParams object with the ability to set a context for a request.

func NewGetDefaultsSectionParamsWithHTTPClient added in v1.1.0

func NewGetDefaultsSectionParamsWithHTTPClient(client *http.Client) *GetDefaultsSectionParams

NewGetDefaultsSectionParamsWithHTTPClient creates a new GetDefaultsSectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetDefaultsSectionParamsWithTimeout added in v1.1.0

func NewGetDefaultsSectionParamsWithTimeout(timeout time.Duration) *GetDefaultsSectionParams

NewGetDefaultsSectionParamsWithTimeout creates a new GetDefaultsSectionParams object with the ability to set a timeout on a request.

func (*GetDefaultsSectionParams) SetContext added in v1.1.0

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

SetContext adds the context to the get defaults section params

func (*GetDefaultsSectionParams) SetDefaults added in v1.1.0

func (o *GetDefaultsSectionParams) SetDefaults()

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

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

func (*GetDefaultsSectionParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the get defaults section params

func (*GetDefaultsSectionParams) SetName added in v1.1.0

func (o *GetDefaultsSectionParams) SetName(name string)

SetName adds the name to the get defaults section params

func (*GetDefaultsSectionParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the get defaults section params

func (*GetDefaultsSectionParams) SetTransactionID added in v1.1.0

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

SetTransactionID adds the transactionId to the get defaults section params

func (*GetDefaultsSectionParams) WithContext added in v1.1.0

WithContext adds the context to the get defaults section params

func (*GetDefaultsSectionParams) WithDefaults added in v1.1.0

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

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

func (*GetDefaultsSectionParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the get defaults section params

func (*GetDefaultsSectionParams) WithName added in v1.1.0

WithName adds the name to the get defaults section params

func (*GetDefaultsSectionParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the get defaults section params

func (*GetDefaultsSectionParams) WithTransactionID added in v1.1.0

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

WithTransactionID adds the transactionID to the get defaults section params

func (*GetDefaultsSectionParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type GetDefaultsSectionReader added in v1.1.0

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

GetDefaultsSectionReader is a Reader for the GetDefaultsSection structure.

func (*GetDefaultsSectionReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type GetDefaultsSectionsDefault added in v1.1.0

type GetDefaultsSectionsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetDefaultsSectionsDefault added in v1.1.0

func NewGetDefaultsSectionsDefault(code int) *GetDefaultsSectionsDefault

NewGetDefaultsSectionsDefault creates a GetDefaultsSectionsDefault with default headers values

func (*GetDefaultsSectionsDefault) Code added in v1.1.0

func (o *GetDefaultsSectionsDefault) Code() int

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

func (*GetDefaultsSectionsDefault) Error added in v1.1.0

func (*GetDefaultsSectionsDefault) GetPayload added in v1.1.0

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

func (*GetDefaultsSectionsDefault) IsClientError added in v1.1.0

func (o *GetDefaultsSectionsDefault) IsClientError() bool

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

func (*GetDefaultsSectionsDefault) IsCode added in v1.1.0

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

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

func (*GetDefaultsSectionsDefault) IsRedirect added in v1.1.0

func (o *GetDefaultsSectionsDefault) IsRedirect() bool

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

func (*GetDefaultsSectionsDefault) IsServerError added in v1.1.0

func (o *GetDefaultsSectionsDefault) IsServerError() bool

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

func (*GetDefaultsSectionsDefault) IsSuccess added in v1.1.0

func (o *GetDefaultsSectionsDefault) IsSuccess() bool

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

func (*GetDefaultsSectionsDefault) String added in v1.1.0

func (o *GetDefaultsSectionsDefault) String() string

type GetDefaultsSectionsOK added in v1.1.0

type GetDefaultsSectionsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetDefaultsSectionsOKBody
}

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

Successful operation

func NewGetDefaultsSectionsOK added in v1.1.0

func NewGetDefaultsSectionsOK() *GetDefaultsSectionsOK

NewGetDefaultsSectionsOK creates a GetDefaultsSectionsOK with default headers values

func (*GetDefaultsSectionsOK) Code added in v1.1.5

func (o *GetDefaultsSectionsOK) Code() int

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

func (*GetDefaultsSectionsOK) Error added in v1.1.0

func (o *GetDefaultsSectionsOK) Error() string

func (*GetDefaultsSectionsOK) GetPayload added in v1.1.0

func (*GetDefaultsSectionsOK) IsClientError added in v1.1.0

func (o *GetDefaultsSectionsOK) IsClientError() bool

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

func (*GetDefaultsSectionsOK) IsCode added in v1.1.0

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

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

func (*GetDefaultsSectionsOK) IsRedirect added in v1.1.0

func (o *GetDefaultsSectionsOK) IsRedirect() bool

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

func (*GetDefaultsSectionsOK) IsServerError added in v1.1.0

func (o *GetDefaultsSectionsOK) IsServerError() bool

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

func (*GetDefaultsSectionsOK) IsSuccess added in v1.1.0

func (o *GetDefaultsSectionsOK) IsSuccess() bool

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

func (*GetDefaultsSectionsOK) String added in v1.1.0

func (o *GetDefaultsSectionsOK) String() string

type GetDefaultsSectionsOKBody added in v1.1.0

type GetDefaultsSectionsOKBody struct {

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

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

GetDefaultsSectionsOKBody get defaults sections o k body swagger:model GetDefaultsSectionsOKBody

func (*GetDefaultsSectionsOKBody) ContextValidate added in v1.1.0

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

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

func (*GetDefaultsSectionsOKBody) MarshalBinary added in v1.1.0

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

MarshalBinary interface implementation

func (*GetDefaultsSectionsOKBody) UnmarshalBinary added in v1.1.0

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

UnmarshalBinary interface implementation

func (*GetDefaultsSectionsOKBody) Validate added in v1.1.0

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

Validate validates this get defaults sections o k body

type GetDefaultsSectionsParams added in v1.1.0

type GetDefaultsSectionsParams 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
}

GetDefaultsSectionsParams contains all the parameters to send to the API endpoint

for the get defaults sections operation.

Typically these are written to a http.Request.

func NewGetDefaultsSectionsParams added in v1.1.0

func NewGetDefaultsSectionsParams() *GetDefaultsSectionsParams

NewGetDefaultsSectionsParams creates a new GetDefaultsSectionsParams 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 NewGetDefaultsSectionsParamsWithContext added in v1.1.0

func NewGetDefaultsSectionsParamsWithContext(ctx context.Context) *GetDefaultsSectionsParams

NewGetDefaultsSectionsParamsWithContext creates a new GetDefaultsSectionsParams object with the ability to set a context for a request.

func NewGetDefaultsSectionsParamsWithHTTPClient added in v1.1.0

func NewGetDefaultsSectionsParamsWithHTTPClient(client *http.Client) *GetDefaultsSectionsParams

NewGetDefaultsSectionsParamsWithHTTPClient creates a new GetDefaultsSectionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetDefaultsSectionsParamsWithTimeout added in v1.1.0

func NewGetDefaultsSectionsParamsWithTimeout(timeout time.Duration) *GetDefaultsSectionsParams

NewGetDefaultsSectionsParamsWithTimeout creates a new GetDefaultsSectionsParams object with the ability to set a timeout on a request.

func (*GetDefaultsSectionsParams) SetContext added in v1.1.0

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

SetContext adds the context to the get defaults sections params

func (*GetDefaultsSectionsParams) SetDefaults added in v1.1.0

func (o *GetDefaultsSectionsParams) SetDefaults()

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

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

func (*GetDefaultsSectionsParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the get defaults sections params

func (*GetDefaultsSectionsParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the get defaults sections params

func (*GetDefaultsSectionsParams) SetTransactionID added in v1.1.0

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

SetTransactionID adds the transactionId to the get defaults sections params

func (*GetDefaultsSectionsParams) WithContext added in v1.1.0

WithContext adds the context to the get defaults sections params

func (*GetDefaultsSectionsParams) WithDefaults added in v1.1.0

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

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

func (*GetDefaultsSectionsParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the get defaults sections params

func (*GetDefaultsSectionsParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the get defaults sections params

func (*GetDefaultsSectionsParams) WithTransactionID added in v1.1.0

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

WithTransactionID adds the transactionID to the get defaults sections params

func (*GetDefaultsSectionsParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type GetDefaultsSectionsReader added in v1.1.0

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

GetDefaultsSectionsReader is a Reader for the GetDefaultsSections structure.

func (*GetDefaultsSectionsReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type ReplaceDefaultsAccepted

type ReplaceDefaultsAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Defaults
}

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

Configuration change accepted and reload requested

func NewReplaceDefaultsAccepted

func NewReplaceDefaultsAccepted() *ReplaceDefaultsAccepted

NewReplaceDefaultsAccepted creates a ReplaceDefaultsAccepted with default headers values

func (*ReplaceDefaultsAccepted) Code added in v1.1.5

func (o *ReplaceDefaultsAccepted) Code() int

Code gets the status code for the replace defaults accepted response

func (*ReplaceDefaultsAccepted) Error

func (o *ReplaceDefaultsAccepted) Error() string

func (*ReplaceDefaultsAccepted) GetPayload

func (o *ReplaceDefaultsAccepted) GetPayload() *models.Defaults

func (*ReplaceDefaultsAccepted) IsClientError added in v1.1.0

func (o *ReplaceDefaultsAccepted) IsClientError() bool

IsClientError returns true when this replace defaults accepted response has a 4xx status code

func (*ReplaceDefaultsAccepted) IsCode added in v1.1.0

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

IsCode returns true when this replace defaults accepted response a status code equal to that given

func (*ReplaceDefaultsAccepted) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsAccepted) IsRedirect() bool

IsRedirect returns true when this replace defaults accepted response has a 3xx status code

func (*ReplaceDefaultsAccepted) IsServerError added in v1.1.0

func (o *ReplaceDefaultsAccepted) IsServerError() bool

IsServerError returns true when this replace defaults accepted response has a 5xx status code

func (*ReplaceDefaultsAccepted) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsAccepted) IsSuccess() bool

IsSuccess returns true when this replace defaults accepted response has a 2xx status code

func (*ReplaceDefaultsAccepted) String added in v1.1.0

func (o *ReplaceDefaultsAccepted) String() string

type ReplaceDefaultsBadRequest

type ReplaceDefaultsBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceDefaultsBadRequest

func NewReplaceDefaultsBadRequest() *ReplaceDefaultsBadRequest

NewReplaceDefaultsBadRequest creates a ReplaceDefaultsBadRequest with default headers values

func (*ReplaceDefaultsBadRequest) Code added in v1.1.5

func (o *ReplaceDefaultsBadRequest) Code() int

Code gets the status code for the replace defaults bad request response

func (*ReplaceDefaultsBadRequest) Error

func (o *ReplaceDefaultsBadRequest) Error() string

func (*ReplaceDefaultsBadRequest) GetPayload

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

func (*ReplaceDefaultsBadRequest) IsClientError added in v1.1.0

func (o *ReplaceDefaultsBadRequest) IsClientError() bool

IsClientError returns true when this replace defaults bad request response has a 4xx status code

func (*ReplaceDefaultsBadRequest) IsCode added in v1.1.0

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

IsCode returns true when this replace defaults bad request response a status code equal to that given

func (*ReplaceDefaultsBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsBadRequest) IsRedirect() bool

IsRedirect returns true when this replace defaults bad request response has a 3xx status code

func (*ReplaceDefaultsBadRequest) IsServerError added in v1.1.0

func (o *ReplaceDefaultsBadRequest) IsServerError() bool

IsServerError returns true when this replace defaults bad request response has a 5xx status code

func (*ReplaceDefaultsBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsBadRequest) IsSuccess() bool

IsSuccess returns true when this replace defaults bad request response has a 2xx status code

func (*ReplaceDefaultsBadRequest) String added in v1.1.0

func (o *ReplaceDefaultsBadRequest) String() string

type ReplaceDefaultsDefault

type ReplaceDefaultsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewReplaceDefaultsDefault

func NewReplaceDefaultsDefault(code int) *ReplaceDefaultsDefault

NewReplaceDefaultsDefault creates a ReplaceDefaultsDefault with default headers values

func (*ReplaceDefaultsDefault) Code

func (o *ReplaceDefaultsDefault) Code() int

Code gets the status code for the replace defaults default response

func (*ReplaceDefaultsDefault) Error

func (o *ReplaceDefaultsDefault) Error() string

func (*ReplaceDefaultsDefault) GetPayload

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

func (*ReplaceDefaultsDefault) IsClientError added in v1.1.0

func (o *ReplaceDefaultsDefault) IsClientError() bool

IsClientError returns true when this replace defaults default response has a 4xx status code

func (*ReplaceDefaultsDefault) IsCode added in v1.1.0

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

IsCode returns true when this replace defaults default response a status code equal to that given

func (*ReplaceDefaultsDefault) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsDefault) IsRedirect() bool

IsRedirect returns true when this replace defaults default response has a 3xx status code

func (*ReplaceDefaultsDefault) IsServerError added in v1.1.0

func (o *ReplaceDefaultsDefault) IsServerError() bool

IsServerError returns true when this replace defaults default response has a 5xx status code

func (*ReplaceDefaultsDefault) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsDefault) IsSuccess() bool

IsSuccess returns true when this replace defaults default response has a 2xx status code

func (*ReplaceDefaultsDefault) String added in v1.1.0

func (o *ReplaceDefaultsDefault) String() string

type ReplaceDefaultsOK

type ReplaceDefaultsOK struct {
	Payload *models.Defaults
}

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

Defaults replaced

func NewReplaceDefaultsOK

func NewReplaceDefaultsOK() *ReplaceDefaultsOK

NewReplaceDefaultsOK creates a ReplaceDefaultsOK with default headers values

func (*ReplaceDefaultsOK) Code added in v1.1.5

func (o *ReplaceDefaultsOK) Code() int

Code gets the status code for the replace defaults o k response

func (*ReplaceDefaultsOK) Error

func (o *ReplaceDefaultsOK) Error() string

func (*ReplaceDefaultsOK) GetPayload

func (o *ReplaceDefaultsOK) GetPayload() *models.Defaults

func (*ReplaceDefaultsOK) IsClientError added in v1.1.0

func (o *ReplaceDefaultsOK) IsClientError() bool

IsClientError returns true when this replace defaults o k response has a 4xx status code

func (*ReplaceDefaultsOK) IsCode added in v1.1.0

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

IsCode returns true when this replace defaults o k response a status code equal to that given

func (*ReplaceDefaultsOK) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsOK) IsRedirect() bool

IsRedirect returns true when this replace defaults o k response has a 3xx status code

func (*ReplaceDefaultsOK) IsServerError added in v1.1.0

func (o *ReplaceDefaultsOK) IsServerError() bool

IsServerError returns true when this replace defaults o k response has a 5xx status code

func (*ReplaceDefaultsOK) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsOK) IsSuccess() bool

IsSuccess returns true when this replace defaults o k response has a 2xx status code

func (*ReplaceDefaultsOK) String added in v1.1.0

func (o *ReplaceDefaultsOK) String() string

type ReplaceDefaultsParams

type ReplaceDefaultsParams struct {

	// Data.
	Data *models.Defaults

	/* 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
}

ReplaceDefaultsParams contains all the parameters to send to the API endpoint

for the replace defaults operation.

Typically these are written to a http.Request.

func NewReplaceDefaultsParams

func NewReplaceDefaultsParams() *ReplaceDefaultsParams

NewReplaceDefaultsParams creates a new ReplaceDefaultsParams 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 NewReplaceDefaultsParamsWithContext

func NewReplaceDefaultsParamsWithContext(ctx context.Context) *ReplaceDefaultsParams

NewReplaceDefaultsParamsWithContext creates a new ReplaceDefaultsParams object with the ability to set a context for a request.

func NewReplaceDefaultsParamsWithHTTPClient

func NewReplaceDefaultsParamsWithHTTPClient(client *http.Client) *ReplaceDefaultsParams

NewReplaceDefaultsParamsWithHTTPClient creates a new ReplaceDefaultsParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceDefaultsParamsWithTimeout

func NewReplaceDefaultsParamsWithTimeout(timeout time.Duration) *ReplaceDefaultsParams

NewReplaceDefaultsParamsWithTimeout creates a new ReplaceDefaultsParams object with the ability to set a timeout on a request.

func (*ReplaceDefaultsParams) SetContext

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

SetContext adds the context to the replace defaults params

func (*ReplaceDefaultsParams) SetData

func (o *ReplaceDefaultsParams) SetData(data *models.Defaults)

SetData adds the data to the replace defaults params

func (*ReplaceDefaultsParams) SetDefaults

func (o *ReplaceDefaultsParams) SetDefaults()

SetDefaults hydrates default values in the replace defaults params (not the query body).

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

func (*ReplaceDefaultsParams) SetForceReload

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

SetForceReload adds the forceReload to the replace defaults params

func (*ReplaceDefaultsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace defaults params

func (*ReplaceDefaultsParams) SetTimeout

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

SetTimeout adds the timeout to the replace defaults params

func (*ReplaceDefaultsParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace defaults params

func (*ReplaceDefaultsParams) SetVersion

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

SetVersion adds the version to the replace defaults params

func (*ReplaceDefaultsParams) WithContext

WithContext adds the context to the replace defaults params

func (*ReplaceDefaultsParams) WithData

WithData adds the data to the replace defaults params

func (*ReplaceDefaultsParams) WithDefaults

func (o *ReplaceDefaultsParams) WithDefaults() *ReplaceDefaultsParams

WithDefaults hydrates default values in the replace defaults params (not the query body).

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

func (*ReplaceDefaultsParams) WithForceReload

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

WithForceReload adds the forceReload to the replace defaults params

func (*ReplaceDefaultsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace defaults params

func (*ReplaceDefaultsParams) WithTimeout

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

WithTimeout adds the timeout to the replace defaults params

func (*ReplaceDefaultsParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace defaults params

func (*ReplaceDefaultsParams) WithVersion

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

WithVersion adds the version to the replace defaults params

func (*ReplaceDefaultsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceDefaultsReader

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

ReplaceDefaultsReader is a Reader for the ReplaceDefaults structure.

func (*ReplaceDefaultsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceDefaultsSectionAccepted added in v1.1.0

type ReplaceDefaultsSectionAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Defaults
}

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

Configuration change accepted and reload requested

func NewReplaceDefaultsSectionAccepted added in v1.1.0

func NewReplaceDefaultsSectionAccepted() *ReplaceDefaultsSectionAccepted

NewReplaceDefaultsSectionAccepted creates a ReplaceDefaultsSectionAccepted with default headers values

func (*ReplaceDefaultsSectionAccepted) Code added in v1.1.5

Code gets the status code for the replace defaults section accepted response

func (*ReplaceDefaultsSectionAccepted) Error added in v1.1.0

func (*ReplaceDefaultsSectionAccepted) GetPayload added in v1.1.0

func (*ReplaceDefaultsSectionAccepted) IsClientError added in v1.1.0

func (o *ReplaceDefaultsSectionAccepted) IsClientError() bool

IsClientError returns true when this replace defaults section accepted response has a 4xx status code

func (*ReplaceDefaultsSectionAccepted) IsCode added in v1.1.0

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

IsCode returns true when this replace defaults section accepted response a status code equal to that given

func (*ReplaceDefaultsSectionAccepted) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsSectionAccepted) IsRedirect() bool

IsRedirect returns true when this replace defaults section accepted response has a 3xx status code

func (*ReplaceDefaultsSectionAccepted) IsServerError added in v1.1.0

func (o *ReplaceDefaultsSectionAccepted) IsServerError() bool

IsServerError returns true when this replace defaults section accepted response has a 5xx status code

func (*ReplaceDefaultsSectionAccepted) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsSectionAccepted) IsSuccess() bool

IsSuccess returns true when this replace defaults section accepted response has a 2xx status code

func (*ReplaceDefaultsSectionAccepted) String added in v1.1.0

type ReplaceDefaultsSectionBadRequest added in v1.1.0

type ReplaceDefaultsSectionBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceDefaultsSectionBadRequest added in v1.1.0

func NewReplaceDefaultsSectionBadRequest() *ReplaceDefaultsSectionBadRequest

NewReplaceDefaultsSectionBadRequest creates a ReplaceDefaultsSectionBadRequest with default headers values

func (*ReplaceDefaultsSectionBadRequest) Code added in v1.1.5

Code gets the status code for the replace defaults section bad request response

func (*ReplaceDefaultsSectionBadRequest) Error added in v1.1.0

func (*ReplaceDefaultsSectionBadRequest) GetPayload added in v1.1.0

func (*ReplaceDefaultsSectionBadRequest) IsClientError added in v1.1.0

func (o *ReplaceDefaultsSectionBadRequest) IsClientError() bool

IsClientError returns true when this replace defaults section bad request response has a 4xx status code

func (*ReplaceDefaultsSectionBadRequest) IsCode added in v1.1.0

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

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

func (*ReplaceDefaultsSectionBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsSectionBadRequest) IsRedirect() bool

IsRedirect returns true when this replace defaults section bad request response has a 3xx status code

func (*ReplaceDefaultsSectionBadRequest) IsServerError added in v1.1.0

func (o *ReplaceDefaultsSectionBadRequest) IsServerError() bool

IsServerError returns true when this replace defaults section bad request response has a 5xx status code

func (*ReplaceDefaultsSectionBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsSectionBadRequest) IsSuccess() bool

IsSuccess returns true when this replace defaults section bad request response has a 2xx status code

func (*ReplaceDefaultsSectionBadRequest) String added in v1.1.0

type ReplaceDefaultsSectionDefault added in v1.1.0

type ReplaceDefaultsSectionDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewReplaceDefaultsSectionDefault added in v1.1.0

func NewReplaceDefaultsSectionDefault(code int) *ReplaceDefaultsSectionDefault

NewReplaceDefaultsSectionDefault creates a ReplaceDefaultsSectionDefault with default headers values

func (*ReplaceDefaultsSectionDefault) Code added in v1.1.0

Code gets the status code for the replace defaults section default response

func (*ReplaceDefaultsSectionDefault) Error added in v1.1.0

func (*ReplaceDefaultsSectionDefault) GetPayload added in v1.1.0

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

func (*ReplaceDefaultsSectionDefault) IsClientError added in v1.1.0

func (o *ReplaceDefaultsSectionDefault) IsClientError() bool

IsClientError returns true when this replace defaults section default response has a 4xx status code

func (*ReplaceDefaultsSectionDefault) IsCode added in v1.1.0

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

IsCode returns true when this replace defaults section default response a status code equal to that given

func (*ReplaceDefaultsSectionDefault) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsSectionDefault) IsRedirect() bool

IsRedirect returns true when this replace defaults section default response has a 3xx status code

func (*ReplaceDefaultsSectionDefault) IsServerError added in v1.1.0

func (o *ReplaceDefaultsSectionDefault) IsServerError() bool

IsServerError returns true when this replace defaults section default response has a 5xx status code

func (*ReplaceDefaultsSectionDefault) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsSectionDefault) IsSuccess() bool

IsSuccess returns true when this replace defaults section default response has a 2xx status code

func (*ReplaceDefaultsSectionDefault) String added in v1.1.0

type ReplaceDefaultsSectionNotFound added in v1.1.0

type ReplaceDefaultsSectionNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

The specified resource was not found

func NewReplaceDefaultsSectionNotFound added in v1.1.0

func NewReplaceDefaultsSectionNotFound() *ReplaceDefaultsSectionNotFound

NewReplaceDefaultsSectionNotFound creates a ReplaceDefaultsSectionNotFound with default headers values

func (*ReplaceDefaultsSectionNotFound) Code added in v1.1.5

Code gets the status code for the replace defaults section not found response

func (*ReplaceDefaultsSectionNotFound) Error added in v1.1.0

func (*ReplaceDefaultsSectionNotFound) GetPayload added in v1.1.0

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

func (*ReplaceDefaultsSectionNotFound) IsClientError added in v1.1.0

func (o *ReplaceDefaultsSectionNotFound) IsClientError() bool

IsClientError returns true when this replace defaults section not found response has a 4xx status code

func (*ReplaceDefaultsSectionNotFound) IsCode added in v1.1.0

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

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

func (*ReplaceDefaultsSectionNotFound) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsSectionNotFound) IsRedirect() bool

IsRedirect returns true when this replace defaults section not found response has a 3xx status code

func (*ReplaceDefaultsSectionNotFound) IsServerError added in v1.1.0

func (o *ReplaceDefaultsSectionNotFound) IsServerError() bool

IsServerError returns true when this replace defaults section not found response has a 5xx status code

func (*ReplaceDefaultsSectionNotFound) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsSectionNotFound) IsSuccess() bool

IsSuccess returns true when this replace defaults section not found response has a 2xx status code

func (*ReplaceDefaultsSectionNotFound) String added in v1.1.0

type ReplaceDefaultsSectionOK added in v1.1.0

type ReplaceDefaultsSectionOK struct {
	Payload *models.Defaults
}

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

Defaults section replaced

func NewReplaceDefaultsSectionOK added in v1.1.0

func NewReplaceDefaultsSectionOK() *ReplaceDefaultsSectionOK

NewReplaceDefaultsSectionOK creates a ReplaceDefaultsSectionOK with default headers values

func (*ReplaceDefaultsSectionOK) Code added in v1.1.5

func (o *ReplaceDefaultsSectionOK) Code() int

Code gets the status code for the replace defaults section o k response

func (*ReplaceDefaultsSectionOK) Error added in v1.1.0

func (o *ReplaceDefaultsSectionOK) Error() string

func (*ReplaceDefaultsSectionOK) GetPayload added in v1.1.0

func (o *ReplaceDefaultsSectionOK) GetPayload() *models.Defaults

func (*ReplaceDefaultsSectionOK) IsClientError added in v1.1.0

func (o *ReplaceDefaultsSectionOK) IsClientError() bool

IsClientError returns true when this replace defaults section o k response has a 4xx status code

func (*ReplaceDefaultsSectionOK) IsCode added in v1.1.0

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

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

func (*ReplaceDefaultsSectionOK) IsRedirect added in v1.1.0

func (o *ReplaceDefaultsSectionOK) IsRedirect() bool

IsRedirect returns true when this replace defaults section o k response has a 3xx status code

func (*ReplaceDefaultsSectionOK) IsServerError added in v1.1.0

func (o *ReplaceDefaultsSectionOK) IsServerError() bool

IsServerError returns true when this replace defaults section o k response has a 5xx status code

func (*ReplaceDefaultsSectionOK) IsSuccess added in v1.1.0

func (o *ReplaceDefaultsSectionOK) IsSuccess() bool

IsSuccess returns true when this replace defaults section o k response has a 2xx status code

func (*ReplaceDefaultsSectionOK) String added in v1.1.0

func (o *ReplaceDefaultsSectionOK) String() string

type ReplaceDefaultsSectionParams added in v1.1.0

type ReplaceDefaultsSectionParams struct {

	// Data.
	Data *models.Defaults

	/* 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.

	   Defaults 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
}

ReplaceDefaultsSectionParams contains all the parameters to send to the API endpoint

for the replace defaults section operation.

Typically these are written to a http.Request.

func NewReplaceDefaultsSectionParams added in v1.1.0

func NewReplaceDefaultsSectionParams() *ReplaceDefaultsSectionParams

NewReplaceDefaultsSectionParams creates a new ReplaceDefaultsSectionParams 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 NewReplaceDefaultsSectionParamsWithContext added in v1.1.0

func NewReplaceDefaultsSectionParamsWithContext(ctx context.Context) *ReplaceDefaultsSectionParams

NewReplaceDefaultsSectionParamsWithContext creates a new ReplaceDefaultsSectionParams object with the ability to set a context for a request.

func NewReplaceDefaultsSectionParamsWithHTTPClient added in v1.1.0

func NewReplaceDefaultsSectionParamsWithHTTPClient(client *http.Client) *ReplaceDefaultsSectionParams

NewReplaceDefaultsSectionParamsWithHTTPClient creates a new ReplaceDefaultsSectionParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceDefaultsSectionParamsWithTimeout added in v1.1.0

func NewReplaceDefaultsSectionParamsWithTimeout(timeout time.Duration) *ReplaceDefaultsSectionParams

NewReplaceDefaultsSectionParamsWithTimeout creates a new ReplaceDefaultsSectionParams object with the ability to set a timeout on a request.

func (*ReplaceDefaultsSectionParams) SetContext added in v1.1.0

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

SetContext adds the context to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetData added in v1.1.0

func (o *ReplaceDefaultsSectionParams) SetData(data *models.Defaults)

SetData adds the data to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetDefaults added in v1.1.0

func (o *ReplaceDefaultsSectionParams) SetDefaults()

SetDefaults hydrates default values in the replace defaults section params (not the query body).

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

func (*ReplaceDefaultsSectionParams) SetForceReload added in v1.1.0

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

SetForceReload adds the forceReload to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetName added in v1.1.0

func (o *ReplaceDefaultsSectionParams) SetName(name string)

SetName adds the name to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetTransactionID added in v1.1.0

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

SetTransactionID adds the transactionId to the replace defaults section params

func (*ReplaceDefaultsSectionParams) SetVersion added in v1.1.0

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

SetVersion adds the version to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithContext added in v1.1.0

WithContext adds the context to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithData added in v1.1.0

WithData adds the data to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithDefaults added in v1.1.0

WithDefaults hydrates default values in the replace defaults section params (not the query body).

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

func (*ReplaceDefaultsSectionParams) WithForceReload added in v1.1.0

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

WithForceReload adds the forceReload to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithHTTPClient added in v1.1.0

WithHTTPClient adds the HTTPClient to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithName added in v1.1.0

WithName adds the name to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithTimeout added in v1.1.0

WithTimeout adds the timeout to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithTransactionID added in v1.1.0

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

WithTransactionID adds the transactionID to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WithVersion added in v1.1.0

WithVersion adds the version to the replace defaults section params

func (*ReplaceDefaultsSectionParams) WriteToRequest added in v1.1.0

WriteToRequest writes these params to a swagger request

type ReplaceDefaultsSectionReader added in v1.1.0

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

ReplaceDefaultsSectionReader is a Reader for the ReplaceDefaultsSection structure.

func (*ReplaceDefaultsSectionReader) ReadResponse added in v1.1.0

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