defaults

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for defaults API

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.

func (*Client) ReplaceDefaults

ReplaceDefaults replaces defaults

Replace defaults part of config

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetDefaults(params *GetDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDefaultsOK, error)

	ReplaceDefaults(params *ReplaceDefaultsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceDefaultsOK, *ReplaceDefaultsAccepted, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new defaults API client.

type GetDefaultsDefault

type GetDefaultsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	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

type GetDefaultsOK

type GetDefaultsOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	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) Error

func (o *GetDefaultsOK) Error() string

func (*GetDefaultsOK) GetPayload

func (o *GetDefaultsOK) GetPayload() *GetDefaultsOKBody

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 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) Error

func (o *ReplaceDefaultsAccepted) Error() string

func (*ReplaceDefaultsAccepted) GetPayload

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

type ReplaceDefaultsBadRequest

type ReplaceDefaultsBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	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) Error

func (o *ReplaceDefaultsBadRequest) Error() string

func (*ReplaceDefaultsBadRequest) GetPayload

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

type ReplaceDefaultsDefault

type ReplaceDefaultsDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion int64

	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

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) Error

func (o *ReplaceDefaultsOK) Error() string

func (*ReplaceDefaultsOK) GetPayload

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

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.

Jump to

Keyboard shortcuts

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