test2

package
v0.0.143 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 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 test2 API.

func (*Client) DeleteAPITest2ID

func (a *Client) DeleteAPITest2ID(params *DeleteAPITest2IDParams, opts ...ClientOption) (*DeleteAPITest2IDNoContent, error)

DeleteAPITest2ID удалениеs тестовых данных.

Удаляет запись по её ID.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.DeleteAPITest2IDContext instead.

func (*Client) DeleteAPITest2IDContext

func (a *Client) DeleteAPITest2IDContext(ctx context.Context, params *DeleteAPITest2IDParams, opts ...ClientOption) (*DeleteAPITest2IDNoContent, error)

DeleteAPITest2IDContext удалениеs тестовых данных.

Удаляет запись по её ID.

Do not use the deprecated [DeleteAPITest2IDParams.Context] with this method: it would be ignored.

func (*Client) GetAPITest2ID

func (a *Client) GetAPITest2ID(params *GetAPITest2IDParams, opts ...ClientOption) (*GetAPITest2IDOK, error)

GetAPITest2ID получитьs.

Удаляет запись по её ID (Soft Delete).

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.GetAPITest2IDContext instead.

func (*Client) GetAPITest2IDContext

func (a *Client) GetAPITest2IDContext(ctx context.Context, params *GetAPITest2IDParams, opts ...ClientOption) (*GetAPITest2IDOK, error)

GetAPITest2IDContext получитьs.

Удаляет запись по её ID (Soft Delete).

Do not use the deprecated [GetAPITest2IDParams.Context] with this method: it would be ignored.

func (*Client) PostAPITest2

func (a *Client) PostAPITest2(params *PostAPITest2Params, opts ...ClientOption) (*PostAPITest2Created, error)

PostAPITest2 созданиеs новых тестовых данных.

Сохраняет новые тестовые данные 2.

This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.

If you need to pass a specific context, use Client.PostAPITest2Context instead.

func (*Client) PostAPITest2Context

func (a *Client) PostAPITest2Context(ctx context.Context, params *PostAPITest2Params, opts ...ClientOption) (*PostAPITest2Created, error)

PostAPITest2Context созданиеs новых тестовых данных.

Сохраняет новые тестовые данные 2.

Do not use the deprecated [PostAPITest2Params.Context] with this method: it would be ignored.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {

	// DeleteAPITest2ID удаление тестовых данных.
	DeleteAPITest2ID(params *DeleteAPITest2IDParams, opts ...ClientOption) (*DeleteAPITest2IDNoContent, error)

	// DeleteAPITest2IDContext удаление тестовых данных.
	DeleteAPITest2IDContext(ctx context.Context, params *DeleteAPITest2IDParams, opts ...ClientOption) (*DeleteAPITest2IDNoContent, error)

	// GetAPITest2ID получить.
	GetAPITest2ID(params *GetAPITest2IDParams, opts ...ClientOption) (*GetAPITest2IDOK, error)

	// GetAPITest2IDContext получить.
	GetAPITest2IDContext(ctx context.Context, params *GetAPITest2IDParams, opts ...ClientOption) (*GetAPITest2IDOK, error)

	// PostAPITest2 создание новых тестовых данных.
	PostAPITest2(params *PostAPITest2Params, opts ...ClientOption) (*PostAPITest2Created, error)

	// PostAPITest2Context создание новых тестовых данных.
	PostAPITest2Context(ctx context.Context, params *PostAPITest2Params, opts ...ClientOption) (*PostAPITest2Created, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new test2 API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new test2 API client with basic auth credentials.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new test2 API client with a bearer token for authentication.

It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DeleteAPITest2IDInternalServerError

type DeleteAPITest2IDInternalServerError struct {
}

DeleteAPITest2IDInternalServerError describes a response with status code 500, with default header values.

Внутренняя ошибка сервера (пустое тело)

func NewDeleteAPITest2IDInternalServerError

func NewDeleteAPITest2IDInternalServerError() *DeleteAPITest2IDInternalServerError

NewDeleteAPITest2IDInternalServerError creates a DeleteAPITest2IDInternalServerError with default headers values

func (*DeleteAPITest2IDInternalServerError) Code

Code gets the status code for the delete Api test2 Id internal server error response

func (*DeleteAPITest2IDInternalServerError) Error

func (*DeleteAPITest2IDInternalServerError) IsClientError

func (o *DeleteAPITest2IDInternalServerError) IsClientError() bool

IsClientError returns true when this delete Api test2 Id internal server error response has a 4xx status code

func (*DeleteAPITest2IDInternalServerError) IsCode

IsCode returns true when this delete Api test2 Id internal server error response a status code equal to that given

func (*DeleteAPITest2IDInternalServerError) IsRedirect

func (o *DeleteAPITest2IDInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete Api test2 Id internal server error response has a 3xx status code

func (*DeleteAPITest2IDInternalServerError) IsServerError

func (o *DeleteAPITest2IDInternalServerError) IsServerError() bool

IsServerError returns true when this delete Api test2 Id internal server error response has a 5xx status code

func (*DeleteAPITest2IDInternalServerError) IsSuccess

IsSuccess returns true when this delete Api test2 Id internal server error response has a 2xx status code

func (*DeleteAPITest2IDInternalServerError) String

type DeleteAPITest2IDNoContent

type DeleteAPITest2IDNoContent struct {
}

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

Запись успешно удалена, тело ответа отсутствует

func NewDeleteAPITest2IDNoContent

func NewDeleteAPITest2IDNoContent() *DeleteAPITest2IDNoContent

NewDeleteAPITest2IDNoContent creates a DeleteAPITest2IDNoContent with default headers values

func (*DeleteAPITest2IDNoContent) Code

func (o *DeleteAPITest2IDNoContent) Code() int

Code gets the status code for the delete Api test2 Id no content response

func (*DeleteAPITest2IDNoContent) Error

func (o *DeleteAPITest2IDNoContent) Error() string

func (*DeleteAPITest2IDNoContent) IsClientError

func (o *DeleteAPITest2IDNoContent) IsClientError() bool

IsClientError returns true when this delete Api test2 Id no content response has a 4xx status code

func (*DeleteAPITest2IDNoContent) IsCode

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

IsCode returns true when this delete Api test2 Id no content response a status code equal to that given

func (*DeleteAPITest2IDNoContent) IsRedirect

func (o *DeleteAPITest2IDNoContent) IsRedirect() bool

IsRedirect returns true when this delete Api test2 Id no content response has a 3xx status code

func (*DeleteAPITest2IDNoContent) IsServerError

func (o *DeleteAPITest2IDNoContent) IsServerError() bool

IsServerError returns true when this delete Api test2 Id no content response has a 5xx status code

func (*DeleteAPITest2IDNoContent) IsSuccess

func (o *DeleteAPITest2IDNoContent) IsSuccess() bool

IsSuccess returns true when this delete Api test2 Id no content response has a 2xx status code

func (*DeleteAPITest2IDNoContent) String

func (o *DeleteAPITest2IDNoContent) String() string

type DeleteAPITest2IDNotFound

type DeleteAPITest2IDNotFound struct {
	Payload *models.ErrorDTO
}

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

Запись не найдена

func NewDeleteAPITest2IDNotFound

func NewDeleteAPITest2IDNotFound() *DeleteAPITest2IDNotFound

NewDeleteAPITest2IDNotFound creates a DeleteAPITest2IDNotFound with default headers values

func (*DeleteAPITest2IDNotFound) Code

func (o *DeleteAPITest2IDNotFound) Code() int

Code gets the status code for the delete Api test2 Id not found response

func (*DeleteAPITest2IDNotFound) Error

func (o *DeleteAPITest2IDNotFound) Error() string

func (*DeleteAPITest2IDNotFound) GetPayload

func (o *DeleteAPITest2IDNotFound) GetPayload() *models.ErrorDTO

func (*DeleteAPITest2IDNotFound) IsClientError

func (o *DeleteAPITest2IDNotFound) IsClientError() bool

IsClientError returns true when this delete Api test2 Id not found response has a 4xx status code

func (*DeleteAPITest2IDNotFound) IsCode

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

IsCode returns true when this delete Api test2 Id not found response a status code equal to that given

func (*DeleteAPITest2IDNotFound) IsRedirect

func (o *DeleteAPITest2IDNotFound) IsRedirect() bool

IsRedirect returns true when this delete Api test2 Id not found response has a 3xx status code

func (*DeleteAPITest2IDNotFound) IsServerError

func (o *DeleteAPITest2IDNotFound) IsServerError() bool

IsServerError returns true when this delete Api test2 Id not found response has a 5xx status code

func (*DeleteAPITest2IDNotFound) IsSuccess

func (o *DeleteAPITest2IDNotFound) IsSuccess() bool

IsSuccess returns true when this delete Api test2 Id not found response has a 2xx status code

func (*DeleteAPITest2IDNotFound) String

func (o *DeleteAPITest2IDNotFound) String() string

type DeleteAPITest2IDParams

type DeleteAPITest2IDParams struct {

	// ID.
	//
	// ID записи
	//
	// Format: string
	ID string

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

DeleteAPITest2IDParams contains all the parameters to send to the API endpoint

for the delete API test2 ID operation.

Typically these are written to a http.Request.

func NewDeleteAPITest2IDParams

func NewDeleteAPITest2IDParams() *DeleteAPITest2IDParams

NewDeleteAPITest2IDParams creates a new DeleteAPITest2IDParams 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 NewDeleteAPITest2IDParamsWithContext deprecated

func NewDeleteAPITest2IDParamsWithContext(ctx context.Context) *DeleteAPITest2IDParams

NewDeleteAPITest2IDParamsWithContext creates a new DeleteAPITest2IDParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of DeleteAPITest2IDParams.

func NewDeleteAPITest2IDParamsWithHTTPClient

func NewDeleteAPITest2IDParamsWithHTTPClient(client *http.Client) *DeleteAPITest2IDParams

NewDeleteAPITest2IDParamsWithHTTPClient creates a new DeleteAPITest2IDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAPITest2IDParamsWithTimeout

func NewDeleteAPITest2IDParamsWithTimeout(timeout time.Duration) *DeleteAPITest2IDParams

NewDeleteAPITest2IDParamsWithTimeout creates a new DeleteAPITest2IDParams object with the ability to set a timeout on a request.

func (*DeleteAPITest2IDParams) SetContext deprecated

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

SetContext adds the context to the delete API test2 ID params.

Deprecated: use the operation call with context to pass the context instead of DeleteAPITest2IDParams.

func (*DeleteAPITest2IDParams) SetDefaults

func (o *DeleteAPITest2IDParams) SetDefaults()

SetDefaults hydrates default values in the delete API test2 ID params (not the query body).

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

func (*DeleteAPITest2IDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete API test2 ID params.

func (*DeleteAPITest2IDParams) SetID

func (o *DeleteAPITest2IDParams) SetID(id string)

SetID adds the id to the delete API test2 ID params.

func (*DeleteAPITest2IDParams) SetTimeout

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

SetTimeout adds the timeout to the delete API test2 ID params.

func (*DeleteAPITest2IDParams) WithContext deprecated

WithContext adds the context to the delete API test2 ID params.

Deprecated: use the operation call with context to pass the context instead of DeleteAPITest2IDParams.

func (*DeleteAPITest2IDParams) WithDefaults

WithDefaults hydrates default values in the delete API test2 ID params (not the query body).

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

func (*DeleteAPITest2IDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete API test2 ID params.

func (*DeleteAPITest2IDParams) WithID

WithID adds the id to the delete API test2 ID params.

func (*DeleteAPITest2IDParams) WithTimeout

WithTimeout adds the timeout to the delete API test2 ID params.

func (*DeleteAPITest2IDParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type DeleteAPITest2IDReader

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

DeleteAPITest2IDReader is a Reader for the DeleteAPITest2ID structure.

func (*DeleteAPITest2IDReader) ReadResponse

func (o *DeleteAPITest2IDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetAPITest2IDInternalServerError

type GetAPITest2IDInternalServerError struct {
}

GetAPITest2IDInternalServerError describes a response with status code 500, with default header values.

Внутренняя ошибка сервера (пустое тело)

func NewGetAPITest2IDInternalServerError

func NewGetAPITest2IDInternalServerError() *GetAPITest2IDInternalServerError

NewGetAPITest2IDInternalServerError creates a GetAPITest2IDInternalServerError with default headers values

func (*GetAPITest2IDInternalServerError) Code

Code gets the status code for the get Api test2 Id internal server error response

func (*GetAPITest2IDInternalServerError) Error

func (*GetAPITest2IDInternalServerError) IsClientError

func (o *GetAPITest2IDInternalServerError) IsClientError() bool

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

func (*GetAPITest2IDInternalServerError) IsCode

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

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

func (*GetAPITest2IDInternalServerError) IsRedirect

func (o *GetAPITest2IDInternalServerError) IsRedirect() bool

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

func (*GetAPITest2IDInternalServerError) IsServerError

func (o *GetAPITest2IDInternalServerError) IsServerError() bool

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

func (*GetAPITest2IDInternalServerError) IsSuccess

func (o *GetAPITest2IDInternalServerError) IsSuccess() bool

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

func (*GetAPITest2IDInternalServerError) String

type GetAPITest2IDNotFound

type GetAPITest2IDNotFound struct {
	Payload *models.ErrorDTO
}

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

Запись не найдена

func NewGetAPITest2IDNotFound

func NewGetAPITest2IDNotFound() *GetAPITest2IDNotFound

NewGetAPITest2IDNotFound creates a GetAPITest2IDNotFound with default headers values

func (*GetAPITest2IDNotFound) Code

func (o *GetAPITest2IDNotFound) Code() int

Code gets the status code for the get Api test2 Id not found response

func (*GetAPITest2IDNotFound) Error

func (o *GetAPITest2IDNotFound) Error() string

func (*GetAPITest2IDNotFound) GetPayload

func (o *GetAPITest2IDNotFound) GetPayload() *models.ErrorDTO

func (*GetAPITest2IDNotFound) IsClientError

func (o *GetAPITest2IDNotFound) IsClientError() bool

IsClientError returns true when this get Api test2 Id not found response has a 4xx status code

func (*GetAPITest2IDNotFound) IsCode

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

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

func (*GetAPITest2IDNotFound) IsRedirect

func (o *GetAPITest2IDNotFound) IsRedirect() bool

IsRedirect returns true when this get Api test2 Id not found response has a 3xx status code

func (*GetAPITest2IDNotFound) IsServerError

func (o *GetAPITest2IDNotFound) IsServerError() bool

IsServerError returns true when this get Api test2 Id not found response has a 5xx status code

func (*GetAPITest2IDNotFound) IsSuccess

func (o *GetAPITest2IDNotFound) IsSuccess() bool

IsSuccess returns true when this get Api test2 Id not found response has a 2xx status code

func (*GetAPITest2IDNotFound) String

func (o *GetAPITest2IDNotFound) String() string

type GetAPITest2IDOK

type GetAPITest2IDOK struct {
	Payload *models.Test2
}

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

Тестовые данные 2

func NewGetAPITest2IDOK

func NewGetAPITest2IDOK() *GetAPITest2IDOK

NewGetAPITest2IDOK creates a GetAPITest2IDOK with default headers values

func (*GetAPITest2IDOK) Code

func (o *GetAPITest2IDOK) Code() int

Code gets the status code for the get Api test2 Id o k response

func (*GetAPITest2IDOK) Error

func (o *GetAPITest2IDOK) Error() string

func (*GetAPITest2IDOK) GetPayload

func (o *GetAPITest2IDOK) GetPayload() *models.Test2

func (*GetAPITest2IDOK) IsClientError

func (o *GetAPITest2IDOK) IsClientError() bool

IsClientError returns true when this get Api test2 Id o k response has a 4xx status code

func (*GetAPITest2IDOK) IsCode

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

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

func (*GetAPITest2IDOK) IsRedirect

func (o *GetAPITest2IDOK) IsRedirect() bool

IsRedirect returns true when this get Api test2 Id o k response has a 3xx status code

func (*GetAPITest2IDOK) IsServerError

func (o *GetAPITest2IDOK) IsServerError() bool

IsServerError returns true when this get Api test2 Id o k response has a 5xx status code

func (*GetAPITest2IDOK) IsSuccess

func (o *GetAPITest2IDOK) IsSuccess() bool

IsSuccess returns true when this get Api test2 Id o k response has a 2xx status code

func (*GetAPITest2IDOK) String

func (o *GetAPITest2IDOK) String() string

type GetAPITest2IDParams

type GetAPITest2IDParams struct {

	// ID.
	//
	// ID записи
	//
	// Format: string
	ID string

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

GetAPITest2IDParams contains all the parameters to send to the API endpoint

for the get API test2 ID operation.

Typically these are written to a http.Request.

func NewGetAPITest2IDParams

func NewGetAPITest2IDParams() *GetAPITest2IDParams

NewGetAPITest2IDParams creates a new GetAPITest2IDParams 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 NewGetAPITest2IDParamsWithContext deprecated

func NewGetAPITest2IDParamsWithContext(ctx context.Context) *GetAPITest2IDParams

NewGetAPITest2IDParamsWithContext creates a new GetAPITest2IDParams object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of GetAPITest2IDParams.

func NewGetAPITest2IDParamsWithHTTPClient

func NewGetAPITest2IDParamsWithHTTPClient(client *http.Client) *GetAPITest2IDParams

NewGetAPITest2IDParamsWithHTTPClient creates a new GetAPITest2IDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAPITest2IDParamsWithTimeout

func NewGetAPITest2IDParamsWithTimeout(timeout time.Duration) *GetAPITest2IDParams

NewGetAPITest2IDParamsWithTimeout creates a new GetAPITest2IDParams object with the ability to set a timeout on a request.

func (*GetAPITest2IDParams) SetContext deprecated

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

SetContext adds the context to the get API test2 ID params.

Deprecated: use the operation call with context to pass the context instead of GetAPITest2IDParams.

func (*GetAPITest2IDParams) SetDefaults

func (o *GetAPITest2IDParams) SetDefaults()

SetDefaults hydrates default values in the get API test2 ID params (not the query body).

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

func (*GetAPITest2IDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get API test2 ID params.

func (*GetAPITest2IDParams) SetID

func (o *GetAPITest2IDParams) SetID(id string)

SetID adds the id to the get API test2 ID params.

func (*GetAPITest2IDParams) SetTimeout

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

SetTimeout adds the timeout to the get API test2 ID params.

func (*GetAPITest2IDParams) WithContext deprecated

WithContext adds the context to the get API test2 ID params.

Deprecated: use the operation call with context to pass the context instead of GetAPITest2IDParams.

func (*GetAPITest2IDParams) WithDefaults

func (o *GetAPITest2IDParams) WithDefaults() *GetAPITest2IDParams

WithDefaults hydrates default values in the get API test2 ID params (not the query body).

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

func (*GetAPITest2IDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get API test2 ID params.

func (*GetAPITest2IDParams) WithID

WithID adds the id to the get API test2 ID params.

func (*GetAPITest2IDParams) WithTimeout

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

WithTimeout adds the timeout to the get API test2 ID params.

func (*GetAPITest2IDParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type GetAPITest2IDReader

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

GetAPITest2IDReader is a Reader for the GetAPITest2ID structure.

func (*GetAPITest2IDReader) ReadResponse

func (o *GetAPITest2IDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type PostAPITest2BadRequest

type PostAPITest2BadRequest struct {
	Payload *models.ErrorDTO
}

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

Bad Request

func NewPostAPITest2BadRequest

func NewPostAPITest2BadRequest() *PostAPITest2BadRequest

NewPostAPITest2BadRequest creates a PostAPITest2BadRequest with default headers values

func (*PostAPITest2BadRequest) Code

func (o *PostAPITest2BadRequest) Code() int

Code gets the status code for the post Api test2 bad request response

func (*PostAPITest2BadRequest) Error

func (o *PostAPITest2BadRequest) Error() string

func (*PostAPITest2BadRequest) GetPayload

func (o *PostAPITest2BadRequest) GetPayload() *models.ErrorDTO

func (*PostAPITest2BadRequest) IsClientError

func (o *PostAPITest2BadRequest) IsClientError() bool

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

func (*PostAPITest2BadRequest) IsCode

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

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

func (*PostAPITest2BadRequest) IsRedirect

func (o *PostAPITest2BadRequest) IsRedirect() bool

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

func (*PostAPITest2BadRequest) IsServerError

func (o *PostAPITest2BadRequest) IsServerError() bool

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

func (*PostAPITest2BadRequest) IsSuccess

func (o *PostAPITest2BadRequest) IsSuccess() bool

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

func (*PostAPITest2BadRequest) String

func (o *PostAPITest2BadRequest) String() string

type PostAPITest2Conflict

type PostAPITest2Conflict struct {
	Payload *models.ErrorDTO
}

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

Conflict

func NewPostAPITest2Conflict

func NewPostAPITest2Conflict() *PostAPITest2Conflict

NewPostAPITest2Conflict creates a PostAPITest2Conflict with default headers values

func (*PostAPITest2Conflict) Code

func (o *PostAPITest2Conflict) Code() int

Code gets the status code for the post Api test2 conflict response

func (*PostAPITest2Conflict) Error

func (o *PostAPITest2Conflict) Error() string

func (*PostAPITest2Conflict) GetPayload

func (o *PostAPITest2Conflict) GetPayload() *models.ErrorDTO

func (*PostAPITest2Conflict) IsClientError

func (o *PostAPITest2Conflict) IsClientError() bool

IsClientError returns true when this post Api test2 conflict response has a 4xx status code

func (*PostAPITest2Conflict) IsCode

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

IsCode returns true when this post Api test2 conflict response a status code equal to that given

func (*PostAPITest2Conflict) IsRedirect

func (o *PostAPITest2Conflict) IsRedirect() bool

IsRedirect returns true when this post Api test2 conflict response has a 3xx status code

func (*PostAPITest2Conflict) IsServerError

func (o *PostAPITest2Conflict) IsServerError() bool

IsServerError returns true when this post Api test2 conflict response has a 5xx status code

func (*PostAPITest2Conflict) IsSuccess

func (o *PostAPITest2Conflict) IsSuccess() bool

IsSuccess returns true when this post Api test2 conflict response has a 2xx status code

func (*PostAPITest2Conflict) String

func (o *PostAPITest2Conflict) String() string

type PostAPITest2Created

type PostAPITest2Created struct {
	Payload *models.Test2
}

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

Created

func NewPostAPITest2Created

func NewPostAPITest2Created() *PostAPITest2Created

NewPostAPITest2Created creates a PostAPITest2Created with default headers values

func (*PostAPITest2Created) Code

func (o *PostAPITest2Created) Code() int

Code gets the status code for the post Api test2 created response

func (*PostAPITest2Created) Error

func (o *PostAPITest2Created) Error() string

func (*PostAPITest2Created) GetPayload

func (o *PostAPITest2Created) GetPayload() *models.Test2

func (*PostAPITest2Created) IsClientError

func (o *PostAPITest2Created) IsClientError() bool

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

func (*PostAPITest2Created) IsCode

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

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

func (*PostAPITest2Created) IsRedirect

func (o *PostAPITest2Created) IsRedirect() bool

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

func (*PostAPITest2Created) IsServerError

func (o *PostAPITest2Created) IsServerError() bool

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

func (*PostAPITest2Created) IsSuccess

func (o *PostAPITest2Created) IsSuccess() bool

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

func (*PostAPITest2Created) String

func (o *PostAPITest2Created) String() string

type PostAPITest2InternalServerError

type PostAPITest2InternalServerError struct {
}

PostAPITest2InternalServerError describes a response with status code 500, with default header values.

Внутренняя ошибка сервера (пустое тело)

func NewPostAPITest2InternalServerError

func NewPostAPITest2InternalServerError() *PostAPITest2InternalServerError

NewPostAPITest2InternalServerError creates a PostAPITest2InternalServerError with default headers values

func (*PostAPITest2InternalServerError) Code

Code gets the status code for the post Api test2 internal server error response

func (*PostAPITest2InternalServerError) Error

func (*PostAPITest2InternalServerError) IsClientError

func (o *PostAPITest2InternalServerError) IsClientError() bool

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

func (*PostAPITest2InternalServerError) IsCode

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

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

func (*PostAPITest2InternalServerError) IsRedirect

func (o *PostAPITest2InternalServerError) IsRedirect() bool

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

func (*PostAPITest2InternalServerError) IsServerError

func (o *PostAPITest2InternalServerError) IsServerError() bool

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

func (*PostAPITest2InternalServerError) IsSuccess

func (o *PostAPITest2InternalServerError) IsSuccess() bool

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

func (*PostAPITest2InternalServerError) String

type PostAPITest2Params

type PostAPITest2Params struct {

	// Input.
	//
	// Тестовые данные
	Input *models.Test2

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

PostAPITest2Params contains all the parameters to send to the API endpoint

for the post API test2 operation.

Typically these are written to a http.Request.

func NewPostAPITest2Params

func NewPostAPITest2Params() *PostAPITest2Params

NewPostAPITest2Params creates a new PostAPITest2Params 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 NewPostAPITest2ParamsWithContext deprecated

func NewPostAPITest2ParamsWithContext(ctx context.Context) *PostAPITest2Params

NewPostAPITest2ParamsWithContext creates a new PostAPITest2Params object with the ability to set a context for a request.

Deprecated: use the operation call with context to pass the context instead of PostAPITest2Params.

func NewPostAPITest2ParamsWithHTTPClient

func NewPostAPITest2ParamsWithHTTPClient(client *http.Client) *PostAPITest2Params

NewPostAPITest2ParamsWithHTTPClient creates a new PostAPITest2Params object with the ability to set a custom HTTPClient for a request.

func NewPostAPITest2ParamsWithTimeout

func NewPostAPITest2ParamsWithTimeout(timeout time.Duration) *PostAPITest2Params

NewPostAPITest2ParamsWithTimeout creates a new PostAPITest2Params object with the ability to set a timeout on a request.

func (*PostAPITest2Params) SetContext deprecated

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

SetContext adds the context to the post API test2 params.

Deprecated: use the operation call with context to pass the context instead of PostAPITest2Params.

func (*PostAPITest2Params) SetDefaults

func (o *PostAPITest2Params) SetDefaults()

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

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

func (*PostAPITest2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post API test2 params.

func (*PostAPITest2Params) SetInput

func (o *PostAPITest2Params) SetInput(input *models.Test2)

SetInput adds the input to the post API test2 params.

func (*PostAPITest2Params) SetTimeout

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

SetTimeout adds the timeout to the post API test2 params.

func (*PostAPITest2Params) WithContext deprecated

WithContext adds the context to the post API test2 params.

Deprecated: use the operation call with context to pass the context instead of PostAPITest2Params.

func (*PostAPITest2Params) WithDefaults

func (o *PostAPITest2Params) WithDefaults() *PostAPITest2Params

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

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

func (*PostAPITest2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post API test2 params.

func (*PostAPITest2Params) WithInput

func (o *PostAPITest2Params) WithInput(input *models.Test2) *PostAPITest2Params

WithInput adds the input to the post API test2 params.

func (*PostAPITest2Params) WithTimeout

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

WithTimeout adds the timeout to the post API test2 params.

func (*PostAPITest2Params) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type PostAPITest2Reader

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

PostAPITest2Reader is a Reader for the PostAPITest2 structure.

func (*PostAPITest2Reader) ReadResponse

func (o *PostAPITest2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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
⌂ 换网址