config

package
v0.0.0-...-cfedc03 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 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 config API

func (*Client) GetConfig

func (a *Client) GetConfig(params *GetConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigOK, error)

GetConfig gets config

Get config data.

func (*Client) GetConfigByVersion

func (a *Client) GetConfigByVersion(params *GetConfigByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigByVersionOK, error)

GetConfigByVersion gets config by version

Get zero or more representations of config specified by version number.

func (*Client) PostConfig

func (a *Client) PostConfig(params *PostConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostConfigOK, *PostConfigCreated, error)

PostConfig creates config

Create or update 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 {
	GetConfig(params *GetConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigOK, error)

	GetConfigByVersion(params *GetConfigByVersionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetConfigByVersionOK, error)

	PostConfig(params *PostConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostConfigOK, *PostConfigCreated, 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 config API client.

type GetConfigBadRequest

type GetConfigBadRequest struct {
	Payload *models.HTTPError
}
GetConfigBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetConfigBadRequest

func NewGetConfigBadRequest() *GetConfigBadRequest

NewGetConfigBadRequest creates a GetConfigBadRequest with default headers values

func (*GetConfigBadRequest) Error

func (o *GetConfigBadRequest) Error() string

func (*GetConfigBadRequest) GetPayload

func (o *GetConfigBadRequest) GetPayload() *models.HTTPError

func (*GetConfigBadRequest) IsClientError

func (o *GetConfigBadRequest) IsClientError() bool

IsClientError returns true when this get config bad request response has a 4xx status code

func (*GetConfigBadRequest) IsCode

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

IsCode returns true when this get config bad request response a status code equal to that given

func (*GetConfigBadRequest) IsRedirect

func (o *GetConfigBadRequest) IsRedirect() bool

IsRedirect returns true when this get config bad request response has a 3xx status code

func (*GetConfigBadRequest) IsServerError

func (o *GetConfigBadRequest) IsServerError() bool

IsServerError returns true when this get config bad request response has a 5xx status code

func (*GetConfigBadRequest) IsSuccess

func (o *GetConfigBadRequest) IsSuccess() bool

IsSuccess returns true when this get config bad request response has a 2xx status code

func (*GetConfigBadRequest) String

func (o *GetConfigBadRequest) String() string

type GetConfigByVersionBadRequest

type GetConfigByVersionBadRequest struct {
	Payload *models.HTTPError
}
GetConfigByVersionBadRequest describes a response with status code 400, with default header values.

bad request

func NewGetConfigByVersionBadRequest

func NewGetConfigByVersionBadRequest() *GetConfigByVersionBadRequest

NewGetConfigByVersionBadRequest creates a GetConfigByVersionBadRequest with default headers values

func (*GetConfigByVersionBadRequest) Error

func (*GetConfigByVersionBadRequest) GetPayload

func (*GetConfigByVersionBadRequest) IsClientError

func (o *GetConfigByVersionBadRequest) IsClientError() bool

IsClientError returns true when this get config by version bad request response has a 4xx status code

func (*GetConfigByVersionBadRequest) IsCode

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

IsCode returns true when this get config by version bad request response a status code equal to that given

func (*GetConfigByVersionBadRequest) IsRedirect

func (o *GetConfigByVersionBadRequest) IsRedirect() bool

IsRedirect returns true when this get config by version bad request response has a 3xx status code

func (*GetConfigByVersionBadRequest) IsServerError

func (o *GetConfigByVersionBadRequest) IsServerError() bool

IsServerError returns true when this get config by version bad request response has a 5xx status code

func (*GetConfigByVersionBadRequest) IsSuccess

func (o *GetConfigByVersionBadRequest) IsSuccess() bool

IsSuccess returns true when this get config by version bad request response has a 2xx status code

func (*GetConfigByVersionBadRequest) String

type GetConfigByVersionForbidden

type GetConfigByVersionForbidden struct {
	Payload *models.HTTPError
}
GetConfigByVersionForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetConfigByVersionForbidden

func NewGetConfigByVersionForbidden() *GetConfigByVersionForbidden

NewGetConfigByVersionForbidden creates a GetConfigByVersionForbidden with default headers values

func (*GetConfigByVersionForbidden) Error

func (*GetConfigByVersionForbidden) GetPayload

func (o *GetConfigByVersionForbidden) GetPayload() *models.HTTPError

func (*GetConfigByVersionForbidden) IsClientError

func (o *GetConfigByVersionForbidden) IsClientError() bool

IsClientError returns true when this get config by version forbidden response has a 4xx status code

func (*GetConfigByVersionForbidden) IsCode

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

IsCode returns true when this get config by version forbidden response a status code equal to that given

func (*GetConfigByVersionForbidden) IsRedirect

func (o *GetConfigByVersionForbidden) IsRedirect() bool

IsRedirect returns true when this get config by version forbidden response has a 3xx status code

func (*GetConfigByVersionForbidden) IsServerError

func (o *GetConfigByVersionForbidden) IsServerError() bool

IsServerError returns true when this get config by version forbidden response has a 5xx status code

func (*GetConfigByVersionForbidden) IsSuccess

func (o *GetConfigByVersionForbidden) IsSuccess() bool

IsSuccess returns true when this get config by version forbidden response has a 2xx status code

func (*GetConfigByVersionForbidden) String

func (o *GetConfigByVersionForbidden) String() string

type GetConfigByVersionInternalServerError

type GetConfigByVersionInternalServerError struct {
	Payload *models.HTTPError
}
GetConfigByVersionInternalServerError describes a response with status code 500, with default header values.

server error

func NewGetConfigByVersionInternalServerError

func NewGetConfigByVersionInternalServerError() *GetConfigByVersionInternalServerError

NewGetConfigByVersionInternalServerError creates a GetConfigByVersionInternalServerError with default headers values

func (*GetConfigByVersionInternalServerError) Error

func (*GetConfigByVersionInternalServerError) GetPayload

func (*GetConfigByVersionInternalServerError) IsClientError

func (o *GetConfigByVersionInternalServerError) IsClientError() bool

IsClientError returns true when this get config by version internal server error response has a 4xx status code

func (*GetConfigByVersionInternalServerError) IsCode

IsCode returns true when this get config by version internal server error response a status code equal to that given

func (*GetConfigByVersionInternalServerError) IsRedirect

IsRedirect returns true when this get config by version internal server error response has a 3xx status code

func (*GetConfigByVersionInternalServerError) IsServerError

func (o *GetConfigByVersionInternalServerError) IsServerError() bool

IsServerError returns true when this get config by version internal server error response has a 5xx status code

func (*GetConfigByVersionInternalServerError) IsSuccess

IsSuccess returns true when this get config by version internal server error response has a 2xx status code

func (*GetConfigByVersionInternalServerError) String

type GetConfigByVersionNotFound

type GetConfigByVersionNotFound struct {
	Payload *models.HTTPError
}
GetConfigByVersionNotFound describes a response with status code 404, with default header values.

not found

func NewGetConfigByVersionNotFound

func NewGetConfigByVersionNotFound() *GetConfigByVersionNotFound

NewGetConfigByVersionNotFound creates a GetConfigByVersionNotFound with default headers values

func (*GetConfigByVersionNotFound) Error

func (*GetConfigByVersionNotFound) GetPayload

func (o *GetConfigByVersionNotFound) GetPayload() *models.HTTPError

func (*GetConfigByVersionNotFound) IsClientError

func (o *GetConfigByVersionNotFound) IsClientError() bool

IsClientError returns true when this get config by version not found response has a 4xx status code

func (*GetConfigByVersionNotFound) IsCode

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

IsCode returns true when this get config by version not found response a status code equal to that given

func (*GetConfigByVersionNotFound) IsRedirect

func (o *GetConfigByVersionNotFound) IsRedirect() bool

IsRedirect returns true when this get config by version not found response has a 3xx status code

func (*GetConfigByVersionNotFound) IsServerError

func (o *GetConfigByVersionNotFound) IsServerError() bool

IsServerError returns true when this get config by version not found response has a 5xx status code

func (*GetConfigByVersionNotFound) IsSuccess

func (o *GetConfigByVersionNotFound) IsSuccess() bool

IsSuccess returns true when this get config by version not found response has a 2xx status code

func (*GetConfigByVersionNotFound) String

func (o *GetConfigByVersionNotFound) String() string

type GetConfigByVersionOK

type GetConfigByVersionOK struct {
	Payload *models.DocumentVersion
}
GetConfigByVersionOK describes a response with status code 200, with default header values.

no error

func NewGetConfigByVersionOK

func NewGetConfigByVersionOK() *GetConfigByVersionOK

NewGetConfigByVersionOK creates a GetConfigByVersionOK with default headers values

func (*GetConfigByVersionOK) Error

func (o *GetConfigByVersionOK) Error() string

func (*GetConfigByVersionOK) GetPayload

func (o *GetConfigByVersionOK) GetPayload() *models.DocumentVersion

func (*GetConfigByVersionOK) IsClientError

func (o *GetConfigByVersionOK) IsClientError() bool

IsClientError returns true when this get config by version o k response has a 4xx status code

func (*GetConfigByVersionOK) IsCode

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

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

func (*GetConfigByVersionOK) IsRedirect

func (o *GetConfigByVersionOK) IsRedirect() bool

IsRedirect returns true when this get config by version o k response has a 3xx status code

func (*GetConfigByVersionOK) IsServerError

func (o *GetConfigByVersionOK) IsServerError() bool

IsServerError returns true when this get config by version o k response has a 5xx status code

func (*GetConfigByVersionOK) IsSuccess

func (o *GetConfigByVersionOK) IsSuccess() bool

IsSuccess returns true when this get config by version o k response has a 2xx status code

func (*GetConfigByVersionOK) String

func (o *GetConfigByVersionOK) String() string

type GetConfigByVersionParams

type GetConfigByVersionParams struct {

	/* Version.

	   Versions to return

	   Format: int64
	*/
	Version int64

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

GetConfigByVersionParams contains all the parameters to send to the API endpoint

for the get config by version operation.

Typically these are written to a http.Request.

func NewGetConfigByVersionParams

func NewGetConfigByVersionParams() *GetConfigByVersionParams

NewGetConfigByVersionParams creates a new GetConfigByVersionParams 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 NewGetConfigByVersionParamsWithContext

func NewGetConfigByVersionParamsWithContext(ctx context.Context) *GetConfigByVersionParams

NewGetConfigByVersionParamsWithContext creates a new GetConfigByVersionParams object with the ability to set a context for a request.

func NewGetConfigByVersionParamsWithHTTPClient

func NewGetConfigByVersionParamsWithHTTPClient(client *http.Client) *GetConfigByVersionParams

NewGetConfigByVersionParamsWithHTTPClient creates a new GetConfigByVersionParams object with the ability to set a custom HTTPClient for a request.

func NewGetConfigByVersionParamsWithTimeout

func NewGetConfigByVersionParamsWithTimeout(timeout time.Duration) *GetConfigByVersionParams

NewGetConfigByVersionParamsWithTimeout creates a new GetConfigByVersionParams object with the ability to set a timeout on a request.

func (*GetConfigByVersionParams) SetContext

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

SetContext adds the context to the get config by version params

func (*GetConfigByVersionParams) SetDefaults

func (o *GetConfigByVersionParams) SetDefaults()

SetDefaults hydrates default values in the get config by version params (not the query body).

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

func (*GetConfigByVersionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config by version params

func (*GetConfigByVersionParams) SetTimeout

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

SetTimeout adds the timeout to the get config by version params

func (*GetConfigByVersionParams) SetVersion

func (o *GetConfigByVersionParams) SetVersion(version int64)

SetVersion adds the version to the get config by version params

func (*GetConfigByVersionParams) WithContext

WithContext adds the context to the get config by version params

func (*GetConfigByVersionParams) WithDefaults

WithDefaults hydrates default values in the get config by version params (not the query body).

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

func (*GetConfigByVersionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config by version params

func (*GetConfigByVersionParams) WithTimeout

WithTimeout adds the timeout to the get config by version params

func (*GetConfigByVersionParams) WithVersion

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

WithVersion adds the version to the get config by version params

func (*GetConfigByVersionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetConfigByVersionReader

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

GetConfigByVersionReader is a Reader for the GetConfigByVersion structure.

func (*GetConfigByVersionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConfigByVersionUnauthorized

type GetConfigByVersionUnauthorized struct {
	Payload *models.HTTPError
}
GetConfigByVersionUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetConfigByVersionUnauthorized

func NewGetConfigByVersionUnauthorized() *GetConfigByVersionUnauthorized

NewGetConfigByVersionUnauthorized creates a GetConfigByVersionUnauthorized with default headers values

func (*GetConfigByVersionUnauthorized) Error

func (*GetConfigByVersionUnauthorized) GetPayload

func (*GetConfigByVersionUnauthorized) IsClientError

func (o *GetConfigByVersionUnauthorized) IsClientError() bool

IsClientError returns true when this get config by version unauthorized response has a 4xx status code

func (*GetConfigByVersionUnauthorized) IsCode

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

IsCode returns true when this get config by version unauthorized response a status code equal to that given

func (*GetConfigByVersionUnauthorized) IsRedirect

func (o *GetConfigByVersionUnauthorized) IsRedirect() bool

IsRedirect returns true when this get config by version unauthorized response has a 3xx status code

func (*GetConfigByVersionUnauthorized) IsServerError

func (o *GetConfigByVersionUnauthorized) IsServerError() bool

IsServerError returns true when this get config by version unauthorized response has a 5xx status code

func (*GetConfigByVersionUnauthorized) IsSuccess

func (o *GetConfigByVersionUnauthorized) IsSuccess() bool

IsSuccess returns true when this get config by version unauthorized response has a 2xx status code

func (*GetConfigByVersionUnauthorized) String

type GetConfigForbidden

type GetConfigForbidden struct {
	Payload *models.HTTPError
}
GetConfigForbidden describes a response with status code 403, with default header values.

forbidden

func NewGetConfigForbidden

func NewGetConfigForbidden() *GetConfigForbidden

NewGetConfigForbidden creates a GetConfigForbidden with default headers values

func (*GetConfigForbidden) Error

func (o *GetConfigForbidden) Error() string

func (*GetConfigForbidden) GetPayload

func (o *GetConfigForbidden) GetPayload() *models.HTTPError

func (*GetConfigForbidden) IsClientError

func (o *GetConfigForbidden) IsClientError() bool

IsClientError returns true when this get config forbidden response has a 4xx status code

func (*GetConfigForbidden) IsCode

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

IsCode returns true when this get config forbidden response a status code equal to that given

func (*GetConfigForbidden) IsRedirect

func (o *GetConfigForbidden) IsRedirect() bool

IsRedirect returns true when this get config forbidden response has a 3xx status code

func (*GetConfigForbidden) IsServerError

func (o *GetConfigForbidden) IsServerError() bool

IsServerError returns true when this get config forbidden response has a 5xx status code

func (*GetConfigForbidden) IsSuccess

func (o *GetConfigForbidden) IsSuccess() bool

IsSuccess returns true when this get config forbidden response has a 2xx status code

func (*GetConfigForbidden) String

func (o *GetConfigForbidden) String() string

type GetConfigInternalServerError

type GetConfigInternalServerError struct {
	Payload *models.HTTPError
}
GetConfigInternalServerError describes a response with status code 500, with default header values.

server error

func NewGetConfigInternalServerError

func NewGetConfigInternalServerError() *GetConfigInternalServerError

NewGetConfigInternalServerError creates a GetConfigInternalServerError with default headers values

func (*GetConfigInternalServerError) Error

func (*GetConfigInternalServerError) GetPayload

func (*GetConfigInternalServerError) IsClientError

func (o *GetConfigInternalServerError) IsClientError() bool

IsClientError returns true when this get config internal server error response has a 4xx status code

func (*GetConfigInternalServerError) IsCode

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

IsCode returns true when this get config internal server error response a status code equal to that given

func (*GetConfigInternalServerError) IsRedirect

func (o *GetConfigInternalServerError) IsRedirect() bool

IsRedirect returns true when this get config internal server error response has a 3xx status code

func (*GetConfigInternalServerError) IsServerError

func (o *GetConfigInternalServerError) IsServerError() bool

IsServerError returns true when this get config internal server error response has a 5xx status code

func (*GetConfigInternalServerError) IsSuccess

func (o *GetConfigInternalServerError) IsSuccess() bool

IsSuccess returns true when this get config internal server error response has a 2xx status code

func (*GetConfigInternalServerError) String

type GetConfigNotFound

type GetConfigNotFound struct {
	Payload *models.HTTPError
}
GetConfigNotFound describes a response with status code 404, with default header values.

not found

func NewGetConfigNotFound

func NewGetConfigNotFound() *GetConfigNotFound

NewGetConfigNotFound creates a GetConfigNotFound with default headers values

func (*GetConfigNotFound) Error

func (o *GetConfigNotFound) Error() string

func (*GetConfigNotFound) GetPayload

func (o *GetConfigNotFound) GetPayload() *models.HTTPError

func (*GetConfigNotFound) IsClientError

func (o *GetConfigNotFound) IsClientError() bool

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

func (*GetConfigNotFound) IsCode

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

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

func (*GetConfigNotFound) IsRedirect

func (o *GetConfigNotFound) IsRedirect() bool

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

func (*GetConfigNotFound) IsServerError

func (o *GetConfigNotFound) IsServerError() bool

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

func (*GetConfigNotFound) IsSuccess

func (o *GetConfigNotFound) IsSuccess() bool

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

func (*GetConfigNotFound) String

func (o *GetConfigNotFound) String() string

type GetConfigOK

type GetConfigOK struct {
	Payload *models.Document
}
GetConfigOK describes a response with status code 200, with default header values.

no error

func NewGetConfigOK

func NewGetConfigOK() *GetConfigOK

NewGetConfigOK creates a GetConfigOK with default headers values

func (*GetConfigOK) Error

func (o *GetConfigOK) Error() string

func (*GetConfigOK) GetPayload

func (o *GetConfigOK) GetPayload() *models.Document

func (*GetConfigOK) IsClientError

func (o *GetConfigOK) IsClientError() bool

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

func (*GetConfigOK) IsCode

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

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

func (*GetConfigOK) IsRedirect

func (o *GetConfigOK) IsRedirect() bool

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

func (*GetConfigOK) IsServerError

func (o *GetConfigOK) IsServerError() bool

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

func (*GetConfigOK) IsSuccess

func (o *GetConfigOK) IsSuccess() bool

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

func (*GetConfigOK) String

func (o *GetConfigOK) String() string

type GetConfigParams

type GetConfigParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetConfigParams contains all the parameters to send to the API endpoint

for the get config operation.

Typically these are written to a http.Request.

func NewGetConfigParams

func NewGetConfigParams() *GetConfigParams

NewGetConfigParams creates a new GetConfigParams 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 NewGetConfigParamsWithContext

func NewGetConfigParamsWithContext(ctx context.Context) *GetConfigParams

NewGetConfigParamsWithContext creates a new GetConfigParams object with the ability to set a context for a request.

func NewGetConfigParamsWithHTTPClient

func NewGetConfigParamsWithHTTPClient(client *http.Client) *GetConfigParams

NewGetConfigParamsWithHTTPClient creates a new GetConfigParams object with the ability to set a custom HTTPClient for a request.

func NewGetConfigParamsWithTimeout

func NewGetConfigParamsWithTimeout(timeout time.Duration) *GetConfigParams

NewGetConfigParamsWithTimeout creates a new GetConfigParams object with the ability to set a timeout on a request.

func (*GetConfigParams) SetContext

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

SetContext adds the context to the get config params

func (*GetConfigParams) SetDefaults

func (o *GetConfigParams) SetDefaults()

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

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

func (*GetConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get config params

func (*GetConfigParams) WithContext

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

WithContext adds the context to the get config params

func (*GetConfigParams) WithDefaults

func (o *GetConfigParams) WithDefaults() *GetConfigParams

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

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

func (*GetConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get config params

func (*GetConfigParams) WithTimeout

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

WithTimeout adds the timeout to the get config params

func (*GetConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetConfigReader

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

GetConfigReader is a Reader for the GetConfig structure.

func (*GetConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetConfigUnauthorized

type GetConfigUnauthorized struct {
	Payload *models.HTTPError
}
GetConfigUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewGetConfigUnauthorized

func NewGetConfigUnauthorized() *GetConfigUnauthorized

NewGetConfigUnauthorized creates a GetConfigUnauthorized with default headers values

func (*GetConfigUnauthorized) Error

func (o *GetConfigUnauthorized) Error() string

func (*GetConfigUnauthorized) GetPayload

func (o *GetConfigUnauthorized) GetPayload() *models.HTTPError

func (*GetConfigUnauthorized) IsClientError

func (o *GetConfigUnauthorized) IsClientError() bool

IsClientError returns true when this get config unauthorized response has a 4xx status code

func (*GetConfigUnauthorized) IsCode

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

IsCode returns true when this get config unauthorized response a status code equal to that given

func (*GetConfigUnauthorized) IsRedirect

func (o *GetConfigUnauthorized) IsRedirect() bool

IsRedirect returns true when this get config unauthorized response has a 3xx status code

func (*GetConfigUnauthorized) IsServerError

func (o *GetConfigUnauthorized) IsServerError() bool

IsServerError returns true when this get config unauthorized response has a 5xx status code

func (*GetConfigUnauthorized) IsSuccess

func (o *GetConfigUnauthorized) IsSuccess() bool

IsSuccess returns true when this get config unauthorized response has a 2xx status code

func (*GetConfigUnauthorized) String

func (o *GetConfigUnauthorized) String() string

type PostConfigBadRequest

type PostConfigBadRequest struct {
	Payload *models.HTTPError
}
PostConfigBadRequest describes a response with status code 400, with default header values.

bad request

func NewPostConfigBadRequest

func NewPostConfigBadRequest() *PostConfigBadRequest

NewPostConfigBadRequest creates a PostConfigBadRequest with default headers values

func (*PostConfigBadRequest) Error

func (o *PostConfigBadRequest) Error() string

func (*PostConfigBadRequest) GetPayload

func (o *PostConfigBadRequest) GetPayload() *models.HTTPError

func (*PostConfigBadRequest) IsClientError

func (o *PostConfigBadRequest) IsClientError() bool

IsClientError returns true when this post config bad request response has a 4xx status code

func (*PostConfigBadRequest) IsCode

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

IsCode returns true when this post config bad request response a status code equal to that given

func (*PostConfigBadRequest) IsRedirect

func (o *PostConfigBadRequest) IsRedirect() bool

IsRedirect returns true when this post config bad request response has a 3xx status code

func (*PostConfigBadRequest) IsServerError

func (o *PostConfigBadRequest) IsServerError() bool

IsServerError returns true when this post config bad request response has a 5xx status code

func (*PostConfigBadRequest) IsSuccess

func (o *PostConfigBadRequest) IsSuccess() bool

IsSuccess returns true when this post config bad request response has a 2xx status code

func (*PostConfigBadRequest) String

func (o *PostConfigBadRequest) String() string

type PostConfigCreated

type PostConfigCreated struct {
	Payload *models.Document
}
PostConfigCreated describes a response with status code 201, with default header values.

no error

func NewPostConfigCreated

func NewPostConfigCreated() *PostConfigCreated

NewPostConfigCreated creates a PostConfigCreated with default headers values

func (*PostConfigCreated) Error

func (o *PostConfigCreated) Error() string

func (*PostConfigCreated) GetPayload

func (o *PostConfigCreated) GetPayload() *models.Document

func (*PostConfigCreated) IsClientError

func (o *PostConfigCreated) IsClientError() bool

IsClientError returns true when this post config created response has a 4xx status code

func (*PostConfigCreated) IsCode

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

IsCode returns true when this post config created response a status code equal to that given

func (*PostConfigCreated) IsRedirect

func (o *PostConfigCreated) IsRedirect() bool

IsRedirect returns true when this post config created response has a 3xx status code

func (*PostConfigCreated) IsServerError

func (o *PostConfigCreated) IsServerError() bool

IsServerError returns true when this post config created response has a 5xx status code

func (*PostConfigCreated) IsSuccess

func (o *PostConfigCreated) IsSuccess() bool

IsSuccess returns true when this post config created response has a 2xx status code

func (*PostConfigCreated) String

func (o *PostConfigCreated) String() string

type PostConfigForbidden

type PostConfigForbidden struct {
	Payload *models.HTTPError
}
PostConfigForbidden describes a response with status code 403, with default header values.

forbidden

func NewPostConfigForbidden

func NewPostConfigForbidden() *PostConfigForbidden

NewPostConfigForbidden creates a PostConfigForbidden with default headers values

func (*PostConfigForbidden) Error

func (o *PostConfigForbidden) Error() string

func (*PostConfigForbidden) GetPayload

func (o *PostConfigForbidden) GetPayload() *models.HTTPError

func (*PostConfigForbidden) IsClientError

func (o *PostConfigForbidden) IsClientError() bool

IsClientError returns true when this post config forbidden response has a 4xx status code

func (*PostConfigForbidden) IsCode

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

IsCode returns true when this post config forbidden response a status code equal to that given

func (*PostConfigForbidden) IsRedirect

func (o *PostConfigForbidden) IsRedirect() bool

IsRedirect returns true when this post config forbidden response has a 3xx status code

func (*PostConfigForbidden) IsServerError

func (o *PostConfigForbidden) IsServerError() bool

IsServerError returns true when this post config forbidden response has a 5xx status code

func (*PostConfigForbidden) IsSuccess

func (o *PostConfigForbidden) IsSuccess() bool

IsSuccess returns true when this post config forbidden response has a 2xx status code

func (*PostConfigForbidden) String

func (o *PostConfigForbidden) String() string

type PostConfigInternalServerError

type PostConfigInternalServerError struct {
	Payload *models.HTTPError
}
PostConfigInternalServerError describes a response with status code 500, with default header values.

server error

func NewPostConfigInternalServerError

func NewPostConfigInternalServerError() *PostConfigInternalServerError

NewPostConfigInternalServerError creates a PostConfigInternalServerError with default headers values

func (*PostConfigInternalServerError) Error

func (*PostConfigInternalServerError) GetPayload

func (*PostConfigInternalServerError) IsClientError

func (o *PostConfigInternalServerError) IsClientError() bool

IsClientError returns true when this post config internal server error response has a 4xx status code

func (*PostConfigInternalServerError) IsCode

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

IsCode returns true when this post config internal server error response a status code equal to that given

func (*PostConfigInternalServerError) IsRedirect

func (o *PostConfigInternalServerError) IsRedirect() bool

IsRedirect returns true when this post config internal server error response has a 3xx status code

func (*PostConfigInternalServerError) IsServerError

func (o *PostConfigInternalServerError) IsServerError() bool

IsServerError returns true when this post config internal server error response has a 5xx status code

func (*PostConfigInternalServerError) IsSuccess

func (o *PostConfigInternalServerError) IsSuccess() bool

IsSuccess returns true when this post config internal server error response has a 2xx status code

func (*PostConfigInternalServerError) String

type PostConfigNotFound

type PostConfigNotFound struct {
	Payload *models.HTTPError
}
PostConfigNotFound describes a response with status code 404, with default header values.

not found

func NewPostConfigNotFound

func NewPostConfigNotFound() *PostConfigNotFound

NewPostConfigNotFound creates a PostConfigNotFound with default headers values

func (*PostConfigNotFound) Error

func (o *PostConfigNotFound) Error() string

func (*PostConfigNotFound) GetPayload

func (o *PostConfigNotFound) GetPayload() *models.HTTPError

func (*PostConfigNotFound) IsClientError

func (o *PostConfigNotFound) IsClientError() bool

IsClientError returns true when this post config not found response has a 4xx status code

func (*PostConfigNotFound) IsCode

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

IsCode returns true when this post config not found response a status code equal to that given

func (*PostConfigNotFound) IsRedirect

func (o *PostConfigNotFound) IsRedirect() bool

IsRedirect returns true when this post config not found response has a 3xx status code

func (*PostConfigNotFound) IsServerError

func (o *PostConfigNotFound) IsServerError() bool

IsServerError returns true when this post config not found response has a 5xx status code

func (*PostConfigNotFound) IsSuccess

func (o *PostConfigNotFound) IsSuccess() bool

IsSuccess returns true when this post config not found response has a 2xx status code

func (*PostConfigNotFound) String

func (o *PostConfigNotFound) String() string

type PostConfigOK

type PostConfigOK struct {
	Payload *models.Document
}
PostConfigOK describes a response with status code 200, with default header values.

no error

func NewPostConfigOK

func NewPostConfigOK() *PostConfigOK

NewPostConfigOK creates a PostConfigOK with default headers values

func (*PostConfigOK) Error

func (o *PostConfigOK) Error() string

func (*PostConfigOK) GetPayload

func (o *PostConfigOK) GetPayload() *models.Document

func (*PostConfigOK) IsClientError

func (o *PostConfigOK) IsClientError() bool

IsClientError returns true when this post config o k response has a 4xx status code

func (*PostConfigOK) IsCode

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

IsCode returns true when this post config o k response a status code equal to that given

func (*PostConfigOK) IsRedirect

func (o *PostConfigOK) IsRedirect() bool

IsRedirect returns true when this post config o k response has a 3xx status code

func (*PostConfigOK) IsServerError

func (o *PostConfigOK) IsServerError() bool

IsServerError returns true when this post config o k response has a 5xx status code

func (*PostConfigOK) IsSuccess

func (o *PostConfigOK) IsSuccess() bool

IsSuccess returns true when this post config o k response has a 2xx status code

func (*PostConfigOK) String

func (o *PostConfigOK) String() string

type PostConfigParams

type PostConfigParams struct {

	// Body.
	Body *models.PostConfigModel

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

PostConfigParams contains all the parameters to send to the API endpoint

for the post config operation.

Typically these are written to a http.Request.

func NewPostConfigParams

func NewPostConfigParams() *PostConfigParams

NewPostConfigParams creates a new PostConfigParams 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 NewPostConfigParamsWithContext

func NewPostConfigParamsWithContext(ctx context.Context) *PostConfigParams

NewPostConfigParamsWithContext creates a new PostConfigParams object with the ability to set a context for a request.

func NewPostConfigParamsWithHTTPClient

func NewPostConfigParamsWithHTTPClient(client *http.Client) *PostConfigParams

NewPostConfigParamsWithHTTPClient creates a new PostConfigParams object with the ability to set a custom HTTPClient for a request.

func NewPostConfigParamsWithTimeout

func NewPostConfigParamsWithTimeout(timeout time.Duration) *PostConfigParams

NewPostConfigParamsWithTimeout creates a new PostConfigParams object with the ability to set a timeout on a request.

func (*PostConfigParams) SetBody

func (o *PostConfigParams) SetBody(body *models.PostConfigModel)

SetBody adds the body to the post config params

func (*PostConfigParams) SetContext

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

SetContext adds the context to the post config params

func (*PostConfigParams) SetDefaults

func (o *PostConfigParams) SetDefaults()

SetDefaults hydrates default values in the post config params (not the query body).

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

func (*PostConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post config params

func (*PostConfigParams) SetTimeout

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

SetTimeout adds the timeout to the post config params

func (*PostConfigParams) WithBody

WithBody adds the body to the post config params

func (*PostConfigParams) WithContext

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

WithContext adds the context to the post config params

func (*PostConfigParams) WithDefaults

func (o *PostConfigParams) WithDefaults() *PostConfigParams

WithDefaults hydrates default values in the post config params (not the query body).

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

func (*PostConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post config params

func (*PostConfigParams) WithTimeout

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

WithTimeout adds the timeout to the post config params

func (*PostConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostConfigReader

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

PostConfigReader is a Reader for the PostConfig structure.

func (*PostConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostConfigUnauthorized

type PostConfigUnauthorized struct {
	Payload *models.HTTPError
}
PostConfigUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewPostConfigUnauthorized

func NewPostConfigUnauthorized() *PostConfigUnauthorized

NewPostConfigUnauthorized creates a PostConfigUnauthorized with default headers values

func (*PostConfigUnauthorized) Error

func (o *PostConfigUnauthorized) Error() string

func (*PostConfigUnauthorized) GetPayload

func (o *PostConfigUnauthorized) GetPayload() *models.HTTPError

func (*PostConfigUnauthorized) IsClientError

func (o *PostConfigUnauthorized) IsClientError() bool

IsClientError returns true when this post config unauthorized response has a 4xx status code

func (*PostConfigUnauthorized) IsCode

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

IsCode returns true when this post config unauthorized response a status code equal to that given

func (*PostConfigUnauthorized) IsRedirect

func (o *PostConfigUnauthorized) IsRedirect() bool

IsRedirect returns true when this post config unauthorized response has a 3xx status code

func (*PostConfigUnauthorized) IsServerError

func (o *PostConfigUnauthorized) IsServerError() bool

IsServerError returns true when this post config unauthorized response has a 5xx status code

func (*PostConfigUnauthorized) IsSuccess

func (o *PostConfigUnauthorized) IsSuccess() bool

IsSuccess returns true when this post config unauthorized response has a 2xx status code

func (*PostConfigUnauthorized) String

func (o *PostConfigUnauthorized) String() string

Jump to

Keyboard shortcuts

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