global

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: 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 global API

func (*Client) GetGlobal

func (a *Client) GetGlobal(params *GetGlobalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalOK, error)

GetGlobal returns a global part of configuration

Returns global part of configuration.

func (*Client) ReplaceGlobal

ReplaceGlobal replaces global

Replace global 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 {
	GetGlobal(params *GetGlobalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetGlobalOK, error)

	ReplaceGlobal(params *ReplaceGlobalParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceGlobalOK, *ReplaceGlobalAccepted, 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 global API client.

type GetGlobalDefault

type GetGlobalDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewGetGlobalDefault

func NewGetGlobalDefault(code int) *GetGlobalDefault

NewGetGlobalDefault creates a GetGlobalDefault with default headers values

func (*GetGlobalDefault) Code

func (o *GetGlobalDefault) Code() int

Code gets the status code for the get global default response

func (*GetGlobalDefault) Error

func (o *GetGlobalDefault) Error() string

func (*GetGlobalDefault) GetPayload

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

func (*GetGlobalDefault) IsClientError added in v1.1.0

func (o *GetGlobalDefault) IsClientError() bool

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

func (*GetGlobalDefault) IsCode added in v1.1.0

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

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

func (*GetGlobalDefault) IsRedirect added in v1.1.0

func (o *GetGlobalDefault) IsRedirect() bool

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

func (*GetGlobalDefault) IsServerError added in v1.1.0

func (o *GetGlobalDefault) IsServerError() bool

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

func (*GetGlobalDefault) IsSuccess added in v1.1.0

func (o *GetGlobalDefault) IsSuccess() bool

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

func (*GetGlobalDefault) String added in v1.1.0

func (o *GetGlobalDefault) String() string

type GetGlobalOK

type GetGlobalOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetGlobalOKBody
}

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

Successful operation

func NewGetGlobalOK

func NewGetGlobalOK() *GetGlobalOK

NewGetGlobalOK creates a GetGlobalOK with default headers values

func (*GetGlobalOK) Code added in v1.1.5

func (o *GetGlobalOK) Code() int

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

func (*GetGlobalOK) Error

func (o *GetGlobalOK) Error() string

func (*GetGlobalOK) GetPayload

func (o *GetGlobalOK) GetPayload() *GetGlobalOKBody

func (*GetGlobalOK) IsClientError added in v1.1.0

func (o *GetGlobalOK) IsClientError() bool

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

func (*GetGlobalOK) IsCode added in v1.1.0

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

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

func (*GetGlobalOK) IsRedirect added in v1.1.0

func (o *GetGlobalOK) IsRedirect() bool

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

func (*GetGlobalOK) IsServerError added in v1.1.0

func (o *GetGlobalOK) IsServerError() bool

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

func (*GetGlobalOK) IsSuccess added in v1.1.0

func (o *GetGlobalOK) IsSuccess() bool

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

func (*GetGlobalOK) String added in v1.1.0

func (o *GetGlobalOK) String() string

type GetGlobalOKBody

type GetGlobalOKBody struct {

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

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

GetGlobalOKBody get global o k body swagger:model GetGlobalOKBody

func (*GetGlobalOKBody) ContextValidate

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

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

func (*GetGlobalOKBody) MarshalBinary

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

MarshalBinary interface implementation

func (*GetGlobalOKBody) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetGlobalOKBody) Validate

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

Validate validates this get global o k body

type GetGlobalParams

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

GetGlobalParams contains all the parameters to send to the API endpoint

for the get global operation.

Typically these are written to a http.Request.

func NewGetGlobalParams

func NewGetGlobalParams() *GetGlobalParams

NewGetGlobalParams creates a new GetGlobalParams 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 NewGetGlobalParamsWithContext

func NewGetGlobalParamsWithContext(ctx context.Context) *GetGlobalParams

NewGetGlobalParamsWithContext creates a new GetGlobalParams object with the ability to set a context for a request.

func NewGetGlobalParamsWithHTTPClient

func NewGetGlobalParamsWithHTTPClient(client *http.Client) *GetGlobalParams

NewGetGlobalParamsWithHTTPClient creates a new GetGlobalParams object with the ability to set a custom HTTPClient for a request.

func NewGetGlobalParamsWithTimeout

func NewGetGlobalParamsWithTimeout(timeout time.Duration) *GetGlobalParams

NewGetGlobalParamsWithTimeout creates a new GetGlobalParams object with the ability to set a timeout on a request.

func (*GetGlobalParams) SetContext

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

SetContext adds the context to the get global params

func (*GetGlobalParams) SetDefaults

func (o *GetGlobalParams) SetDefaults()

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

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

func (*GetGlobalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get global params

func (*GetGlobalParams) SetTimeout

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

SetTimeout adds the timeout to the get global params

func (*GetGlobalParams) SetTransactionID

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

SetTransactionID adds the transactionId to the get global params

func (*GetGlobalParams) WithContext

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

WithContext adds the context to the get global params

func (*GetGlobalParams) WithDefaults

func (o *GetGlobalParams) WithDefaults() *GetGlobalParams

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

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

func (*GetGlobalParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get global params

func (*GetGlobalParams) WithTimeout

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

WithTimeout adds the timeout to the get global params

func (*GetGlobalParams) WithTransactionID

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

WithTransactionID adds the transactionID to the get global params

func (*GetGlobalParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetGlobalReader

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

GetGlobalReader is a Reader for the GetGlobal structure.

func (*GetGlobalReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceGlobalAccepted

type ReplaceGlobalAccepted struct {

	/* ID of the requested reload
	 */
	ReloadID string

	Payload *models.Global
}

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

Configuration change accepted and reload requested

func NewReplaceGlobalAccepted

func NewReplaceGlobalAccepted() *ReplaceGlobalAccepted

NewReplaceGlobalAccepted creates a ReplaceGlobalAccepted with default headers values

func (*ReplaceGlobalAccepted) Code added in v1.1.5

func (o *ReplaceGlobalAccepted) Code() int

Code gets the status code for the replace global accepted response

func (*ReplaceGlobalAccepted) Error

func (o *ReplaceGlobalAccepted) Error() string

func (*ReplaceGlobalAccepted) GetPayload

func (o *ReplaceGlobalAccepted) GetPayload() *models.Global

func (*ReplaceGlobalAccepted) IsClientError added in v1.1.0

func (o *ReplaceGlobalAccepted) IsClientError() bool

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

func (*ReplaceGlobalAccepted) IsCode added in v1.1.0

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

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

func (*ReplaceGlobalAccepted) IsRedirect added in v1.1.0

func (o *ReplaceGlobalAccepted) IsRedirect() bool

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

func (*ReplaceGlobalAccepted) IsServerError added in v1.1.0

func (o *ReplaceGlobalAccepted) IsServerError() bool

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

func (*ReplaceGlobalAccepted) IsSuccess added in v1.1.0

func (o *ReplaceGlobalAccepted) IsSuccess() bool

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

func (*ReplaceGlobalAccepted) String added in v1.1.0

func (o *ReplaceGlobalAccepted) String() string

type ReplaceGlobalBadRequest

type ReplaceGlobalBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

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

Bad request

func NewReplaceGlobalBadRequest

func NewReplaceGlobalBadRequest() *ReplaceGlobalBadRequest

NewReplaceGlobalBadRequest creates a ReplaceGlobalBadRequest with default headers values

func (*ReplaceGlobalBadRequest) Code added in v1.1.5

func (o *ReplaceGlobalBadRequest) Code() int

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

func (*ReplaceGlobalBadRequest) Error

func (o *ReplaceGlobalBadRequest) Error() string

func (*ReplaceGlobalBadRequest) GetPayload

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

func (*ReplaceGlobalBadRequest) IsClientError added in v1.1.0

func (o *ReplaceGlobalBadRequest) IsClientError() bool

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

func (*ReplaceGlobalBadRequest) IsCode added in v1.1.0

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

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

func (*ReplaceGlobalBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceGlobalBadRequest) IsRedirect() bool

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

func (*ReplaceGlobalBadRequest) IsServerError added in v1.1.0

func (o *ReplaceGlobalBadRequest) IsServerError() bool

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

func (*ReplaceGlobalBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceGlobalBadRequest) IsSuccess() bool

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

func (*ReplaceGlobalBadRequest) String added in v1.1.0

func (o *ReplaceGlobalBadRequest) String() string

type ReplaceGlobalDefault

type ReplaceGlobalDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

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

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

General Error

func NewReplaceGlobalDefault

func NewReplaceGlobalDefault(code int) *ReplaceGlobalDefault

NewReplaceGlobalDefault creates a ReplaceGlobalDefault with default headers values

func (*ReplaceGlobalDefault) Code

func (o *ReplaceGlobalDefault) Code() int

Code gets the status code for the replace global default response

func (*ReplaceGlobalDefault) Error

func (o *ReplaceGlobalDefault) Error() string

func (*ReplaceGlobalDefault) GetPayload

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

func (*ReplaceGlobalDefault) IsClientError added in v1.1.0

func (o *ReplaceGlobalDefault) IsClientError() bool

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

func (*ReplaceGlobalDefault) IsCode added in v1.1.0

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

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

func (*ReplaceGlobalDefault) IsRedirect added in v1.1.0

func (o *ReplaceGlobalDefault) IsRedirect() bool

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

func (*ReplaceGlobalDefault) IsServerError added in v1.1.0

func (o *ReplaceGlobalDefault) IsServerError() bool

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

func (*ReplaceGlobalDefault) IsSuccess added in v1.1.0

func (o *ReplaceGlobalDefault) IsSuccess() bool

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

func (*ReplaceGlobalDefault) String added in v1.1.0

func (o *ReplaceGlobalDefault) String() string

type ReplaceGlobalOK

type ReplaceGlobalOK struct {
	Payload *models.Global
}

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

Global replaced

func NewReplaceGlobalOK

func NewReplaceGlobalOK() *ReplaceGlobalOK

NewReplaceGlobalOK creates a ReplaceGlobalOK with default headers values

func (*ReplaceGlobalOK) Code added in v1.1.5

func (o *ReplaceGlobalOK) Code() int

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

func (*ReplaceGlobalOK) Error

func (o *ReplaceGlobalOK) Error() string

func (*ReplaceGlobalOK) GetPayload

func (o *ReplaceGlobalOK) GetPayload() *models.Global

func (*ReplaceGlobalOK) IsClientError added in v1.1.0

func (o *ReplaceGlobalOK) IsClientError() bool

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

func (*ReplaceGlobalOK) IsCode added in v1.1.0

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

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

func (*ReplaceGlobalOK) IsRedirect added in v1.1.0

func (o *ReplaceGlobalOK) IsRedirect() bool

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

func (*ReplaceGlobalOK) IsServerError added in v1.1.0

func (o *ReplaceGlobalOK) IsServerError() bool

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

func (*ReplaceGlobalOK) IsSuccess added in v1.1.0

func (o *ReplaceGlobalOK) IsSuccess() bool

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

func (*ReplaceGlobalOK) String added in v1.1.0

func (o *ReplaceGlobalOK) String() string

type ReplaceGlobalParams

type ReplaceGlobalParams struct {

	// Data.
	Data *models.Global

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

ReplaceGlobalParams contains all the parameters to send to the API endpoint

for the replace global operation.

Typically these are written to a http.Request.

func NewReplaceGlobalParams

func NewReplaceGlobalParams() *ReplaceGlobalParams

NewReplaceGlobalParams creates a new ReplaceGlobalParams 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 NewReplaceGlobalParamsWithContext

func NewReplaceGlobalParamsWithContext(ctx context.Context) *ReplaceGlobalParams

NewReplaceGlobalParamsWithContext creates a new ReplaceGlobalParams object with the ability to set a context for a request.

func NewReplaceGlobalParamsWithHTTPClient

func NewReplaceGlobalParamsWithHTTPClient(client *http.Client) *ReplaceGlobalParams

NewReplaceGlobalParamsWithHTTPClient creates a new ReplaceGlobalParams object with the ability to set a custom HTTPClient for a request.

func NewReplaceGlobalParamsWithTimeout

func NewReplaceGlobalParamsWithTimeout(timeout time.Duration) *ReplaceGlobalParams

NewReplaceGlobalParamsWithTimeout creates a new ReplaceGlobalParams object with the ability to set a timeout on a request.

func (*ReplaceGlobalParams) SetContext

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

SetContext adds the context to the replace global params

func (*ReplaceGlobalParams) SetData

func (o *ReplaceGlobalParams) SetData(data *models.Global)

SetData adds the data to the replace global params

func (*ReplaceGlobalParams) SetDefaults

func (o *ReplaceGlobalParams) SetDefaults()

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

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

func (*ReplaceGlobalParams) SetForceReload

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

SetForceReload adds the forceReload to the replace global params

func (*ReplaceGlobalParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace global params

func (*ReplaceGlobalParams) SetTimeout

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

SetTimeout adds the timeout to the replace global params

func (*ReplaceGlobalParams) SetTransactionID

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

SetTransactionID adds the transactionId to the replace global params

func (*ReplaceGlobalParams) SetVersion

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

SetVersion adds the version to the replace global params

func (*ReplaceGlobalParams) WithContext

WithContext adds the context to the replace global params

func (*ReplaceGlobalParams) WithData

WithData adds the data to the replace global params

func (*ReplaceGlobalParams) WithDefaults

func (o *ReplaceGlobalParams) WithDefaults() *ReplaceGlobalParams

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

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

func (*ReplaceGlobalParams) WithForceReload

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

WithForceReload adds the forceReload to the replace global params

func (*ReplaceGlobalParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the replace global params

func (*ReplaceGlobalParams) WithTimeout

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

WithTimeout adds the timeout to the replace global params

func (*ReplaceGlobalParams) WithTransactionID

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

WithTransactionID adds the transactionID to the replace global params

func (*ReplaceGlobalParams) WithVersion

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

WithVersion adds the version to the replace global params

func (*ReplaceGlobalParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReplaceGlobalReader

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

ReplaceGlobalReader is a Reader for the ReplaceGlobal structure.

func (*ReplaceGlobalReader) ReadResponse

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