admin

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: GPL-3.0 Imports: 13 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 admin API.

func (*Client) DeleteAdminParserID

func (a *Client) DeleteAdminParserID(params *DeleteAdminParserIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAdminParserIDNoContent, error)

DeleteAdminParserID deletes a parser.

delete a parser by 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.DeleteAdminParserIDContext instead.

func (*Client) DeleteAdminParserIDContext

func (a *Client) DeleteAdminParserIDContext(ctx context.Context, params *DeleteAdminParserIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAdminParserIDNoContent, error)

DeleteAdminParserIDContext deletes a parser.

delete a parser by ID.

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

func (*Client) PostAdminParser

func (a *Client) PostAdminParser(params *PostAdminParserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAdminParserCreated, error)

PostAdminParser creates a new parser.

create a new parser.

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.PostAdminParserContext instead.

func (*Client) PostAdminParserContext

func (a *Client) PostAdminParserContext(ctx context.Context, params *PostAdminParserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAdminParserCreated, error)

PostAdminParserContext creates a new parser.

create a new parser.

Do not use the deprecated [PostAdminParserParams.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 {

	// DeleteAdminParserID delete a parser.
	DeleteAdminParserID(params *DeleteAdminParserIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAdminParserIDNoContent, error)

	// DeleteAdminParserIDContext delete a parser.
	DeleteAdminParserIDContext(ctx context.Context, params *DeleteAdminParserIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAdminParserIDNoContent, error)

	// PostAdminParser create a new parser.
	PostAdminParser(params *PostAdminParserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAdminParserCreated, error)

	// PostAdminParserContext create a new parser.
	PostAdminParserContext(ctx context.Context, params *PostAdminParserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAdminParserCreated, error)

	SetTransport(transport runtime.ContextualTransport)
}

ClientService is the interface for Client methods.

func New

New creates a new admin API client.

func NewClientWithBasicAuth

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

New creates a new admin 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 admin 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 DeleteAdminParserIDBadRequest

type DeleteAdminParserIDBadRequest struct {
	Payload *models.DtoErrorResponse
}

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

Bad Request

func NewDeleteAdminParserIDBadRequest

func NewDeleteAdminParserIDBadRequest() *DeleteAdminParserIDBadRequest

NewDeleteAdminParserIDBadRequest creates a DeleteAdminParserIDBadRequest with default headers values

func (*DeleteAdminParserIDBadRequest) Code

Code gets the status code for the delete admin parser Id bad request response

func (*DeleteAdminParserIDBadRequest) Error

func (*DeleteAdminParserIDBadRequest) GetPayload

func (*DeleteAdminParserIDBadRequest) IsClientError

func (o *DeleteAdminParserIDBadRequest) IsClientError() bool

IsClientError returns true when this delete admin parser Id bad request response has a 4xx status code

func (*DeleteAdminParserIDBadRequest) IsCode

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

IsCode returns true when this delete admin parser Id bad request response a status code equal to that given

func (*DeleteAdminParserIDBadRequest) IsRedirect

func (o *DeleteAdminParserIDBadRequest) IsRedirect() bool

IsRedirect returns true when this delete admin parser Id bad request response has a 3xx status code

func (*DeleteAdminParserIDBadRequest) IsServerError

func (o *DeleteAdminParserIDBadRequest) IsServerError() bool

IsServerError returns true when this delete admin parser Id bad request response has a 5xx status code

func (*DeleteAdminParserIDBadRequest) IsSuccess

func (o *DeleteAdminParserIDBadRequest) IsSuccess() bool

IsSuccess returns true when this delete admin parser Id bad request response has a 2xx status code

func (*DeleteAdminParserIDBadRequest) String

type DeleteAdminParserIDInternalServerError

type DeleteAdminParserIDInternalServerError struct {
	Payload *models.DtoErrorResponse
}

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

Internal Server Error

func NewDeleteAdminParserIDInternalServerError

func NewDeleteAdminParserIDInternalServerError() *DeleteAdminParserIDInternalServerError

NewDeleteAdminParserIDInternalServerError creates a DeleteAdminParserIDInternalServerError with default headers values

func (*DeleteAdminParserIDInternalServerError) Code

Code gets the status code for the delete admin parser Id internal server error response

func (*DeleteAdminParserIDInternalServerError) Error

func (*DeleteAdminParserIDInternalServerError) GetPayload

func (*DeleteAdminParserIDInternalServerError) IsClientError

func (o *DeleteAdminParserIDInternalServerError) IsClientError() bool

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

func (*DeleteAdminParserIDInternalServerError) IsCode

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

func (*DeleteAdminParserIDInternalServerError) IsRedirect

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

func (*DeleteAdminParserIDInternalServerError) IsServerError

func (o *DeleteAdminParserIDInternalServerError) IsServerError() bool

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

func (*DeleteAdminParserIDInternalServerError) IsSuccess

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

func (*DeleteAdminParserIDInternalServerError) String

type DeleteAdminParserIDNoContent

type DeleteAdminParserIDNoContent struct {
}

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

No Content

func NewDeleteAdminParserIDNoContent

func NewDeleteAdminParserIDNoContent() *DeleteAdminParserIDNoContent

NewDeleteAdminParserIDNoContent creates a DeleteAdminParserIDNoContent with default headers values

func (*DeleteAdminParserIDNoContent) Code

Code gets the status code for the delete admin parser Id no content response

func (*DeleteAdminParserIDNoContent) Error

func (*DeleteAdminParserIDNoContent) IsClientError

func (o *DeleteAdminParserIDNoContent) IsClientError() bool

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

func (*DeleteAdminParserIDNoContent) IsCode

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

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

func (*DeleteAdminParserIDNoContent) IsRedirect

func (o *DeleteAdminParserIDNoContent) IsRedirect() bool

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

func (*DeleteAdminParserIDNoContent) IsServerError

func (o *DeleteAdminParserIDNoContent) IsServerError() bool

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

func (*DeleteAdminParserIDNoContent) IsSuccess

func (o *DeleteAdminParserIDNoContent) IsSuccess() bool

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

func (*DeleteAdminParserIDNoContent) String

type DeleteAdminParserIDNotFound

type DeleteAdminParserIDNotFound struct {
	Payload *models.DtoErrorResponse
}

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

Not Found

func NewDeleteAdminParserIDNotFound

func NewDeleteAdminParserIDNotFound() *DeleteAdminParserIDNotFound

NewDeleteAdminParserIDNotFound creates a DeleteAdminParserIDNotFound with default headers values

func (*DeleteAdminParserIDNotFound) Code

func (o *DeleteAdminParserIDNotFound) Code() int

Code gets the status code for the delete admin parser Id not found response

func (*DeleteAdminParserIDNotFound) Error

func (*DeleteAdminParserIDNotFound) GetPayload

func (*DeleteAdminParserIDNotFound) IsClientError

func (o *DeleteAdminParserIDNotFound) IsClientError() bool

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

func (*DeleteAdminParserIDNotFound) IsCode

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

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

func (*DeleteAdminParserIDNotFound) IsRedirect

func (o *DeleteAdminParserIDNotFound) IsRedirect() bool

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

func (*DeleteAdminParserIDNotFound) IsServerError

func (o *DeleteAdminParserIDNotFound) IsServerError() bool

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

func (*DeleteAdminParserIDNotFound) IsSuccess

func (o *DeleteAdminParserIDNotFound) IsSuccess() bool

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

func (*DeleteAdminParserIDNotFound) String

func (o *DeleteAdminParserIDNotFound) String() string

type DeleteAdminParserIDParams

type DeleteAdminParserIDParams struct {

	// ID.
	//
	// Parser ID
	ID int64

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

DeleteAdminParserIDParams contains all the parameters to send to the API endpoint

for the delete admin parser ID operation.

Typically these are written to a http.Request.

func NewDeleteAdminParserIDParams

func NewDeleteAdminParserIDParams() *DeleteAdminParserIDParams

NewDeleteAdminParserIDParams creates a new DeleteAdminParserIDParams 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 NewDeleteAdminParserIDParamsWithContext deprecated

func NewDeleteAdminParserIDParamsWithContext(ctx context.Context) *DeleteAdminParserIDParams

NewDeleteAdminParserIDParamsWithContext creates a new DeleteAdminParserIDParams object with the ability to set a context for a request.

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

func NewDeleteAdminParserIDParamsWithHTTPClient

func NewDeleteAdminParserIDParamsWithHTTPClient(client *http.Client) *DeleteAdminParserIDParams

NewDeleteAdminParserIDParamsWithHTTPClient creates a new DeleteAdminParserIDParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAdminParserIDParamsWithTimeout

func NewDeleteAdminParserIDParamsWithTimeout(timeout time.Duration) *DeleteAdminParserIDParams

NewDeleteAdminParserIDParamsWithTimeout creates a new DeleteAdminParserIDParams object with the ability to set a timeout on a request.

func (*DeleteAdminParserIDParams) SetContext deprecated

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

SetContext adds the context to the delete admin parser ID params.

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

func (*DeleteAdminParserIDParams) SetDefaults

func (o *DeleteAdminParserIDParams) SetDefaults()

SetDefaults hydrates default values in the delete admin parser ID params (not the query body).

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

func (*DeleteAdminParserIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete admin parser ID params.

func (*DeleteAdminParserIDParams) SetID

func (o *DeleteAdminParserIDParams) SetID(id int64)

SetID adds the id to the delete admin parser ID params.

func (*DeleteAdminParserIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete admin parser ID params.

func (*DeleteAdminParserIDParams) WithContext deprecated

WithContext adds the context to the delete admin parser ID params.

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

func (*DeleteAdminParserIDParams) WithDefaults

WithDefaults hydrates default values in the delete admin parser ID params (not the query body).

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

func (*DeleteAdminParserIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete admin parser ID params.

func (*DeleteAdminParserIDParams) WithID

WithID adds the id to the delete admin parser ID params.

func (*DeleteAdminParserIDParams) WithTimeout

WithTimeout adds the timeout to the delete admin parser ID params.

func (*DeleteAdminParserIDParams) WriteToRequest

WriteToRequest writes these params to a runtime.ClientRequest.

type DeleteAdminParserIDReader

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

DeleteAdminParserIDReader is a Reader for the DeleteAdminParserID structure.

func (*DeleteAdminParserIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAdminParserIDUnauthorized

type DeleteAdminParserIDUnauthorized struct {
	Payload *models.DtoErrorResponse
}

DeleteAdminParserIDUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteAdminParserIDUnauthorized

func NewDeleteAdminParserIDUnauthorized() *DeleteAdminParserIDUnauthorized

NewDeleteAdminParserIDUnauthorized creates a DeleteAdminParserIDUnauthorized with default headers values

func (*DeleteAdminParserIDUnauthorized) Code

Code gets the status code for the delete admin parser Id unauthorized response

func (*DeleteAdminParserIDUnauthorized) Error

func (*DeleteAdminParserIDUnauthorized) GetPayload

func (*DeleteAdminParserIDUnauthorized) IsClientError

func (o *DeleteAdminParserIDUnauthorized) IsClientError() bool

IsClientError returns true when this delete admin parser Id unauthorized response has a 4xx status code

func (*DeleteAdminParserIDUnauthorized) IsCode

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

IsCode returns true when this delete admin parser Id unauthorized response a status code equal to that given

func (*DeleteAdminParserIDUnauthorized) IsRedirect

func (o *DeleteAdminParserIDUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete admin parser Id unauthorized response has a 3xx status code

func (*DeleteAdminParserIDUnauthorized) IsServerError

func (o *DeleteAdminParserIDUnauthorized) IsServerError() bool

IsServerError returns true when this delete admin parser Id unauthorized response has a 5xx status code

func (*DeleteAdminParserIDUnauthorized) IsSuccess

func (o *DeleteAdminParserIDUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete admin parser Id unauthorized response has a 2xx status code

func (*DeleteAdminParserIDUnauthorized) String

type PostAdminParserBadRequest

type PostAdminParserBadRequest struct {
	Payload *models.DtoErrorResponse
}

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

Bad Request

func NewPostAdminParserBadRequest

func NewPostAdminParserBadRequest() *PostAdminParserBadRequest

NewPostAdminParserBadRequest creates a PostAdminParserBadRequest with default headers values

func (*PostAdminParserBadRequest) Code

func (o *PostAdminParserBadRequest) Code() int

Code gets the status code for the post admin parser bad request response

func (*PostAdminParserBadRequest) Error

func (o *PostAdminParserBadRequest) Error() string

func (*PostAdminParserBadRequest) GetPayload

func (*PostAdminParserBadRequest) IsClientError

func (o *PostAdminParserBadRequest) IsClientError() bool

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

func (*PostAdminParserBadRequest) IsCode

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

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

func (*PostAdminParserBadRequest) IsRedirect

func (o *PostAdminParserBadRequest) IsRedirect() bool

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

func (*PostAdminParserBadRequest) IsServerError

func (o *PostAdminParserBadRequest) IsServerError() bool

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

func (*PostAdminParserBadRequest) IsSuccess

func (o *PostAdminParserBadRequest) IsSuccess() bool

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

func (*PostAdminParserBadRequest) String

func (o *PostAdminParserBadRequest) String() string

type PostAdminParserConflict

type PostAdminParserConflict struct {
	Payload *models.DtoErrorResponse
}

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

Conflict

func NewPostAdminParserConflict

func NewPostAdminParserConflict() *PostAdminParserConflict

NewPostAdminParserConflict creates a PostAdminParserConflict with default headers values

func (*PostAdminParserConflict) Code

func (o *PostAdminParserConflict) Code() int

Code gets the status code for the post admin parser conflict response

func (*PostAdminParserConflict) Error

func (o *PostAdminParserConflict) Error() string

func (*PostAdminParserConflict) GetPayload

func (*PostAdminParserConflict) IsClientError

func (o *PostAdminParserConflict) IsClientError() bool

IsClientError returns true when this post admin parser conflict response has a 4xx status code

func (*PostAdminParserConflict) IsCode

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

IsCode returns true when this post admin parser conflict response a status code equal to that given

func (*PostAdminParserConflict) IsRedirect

func (o *PostAdminParserConflict) IsRedirect() bool

IsRedirect returns true when this post admin parser conflict response has a 3xx status code

func (*PostAdminParserConflict) IsServerError

func (o *PostAdminParserConflict) IsServerError() bool

IsServerError returns true when this post admin parser conflict response has a 5xx status code

func (*PostAdminParserConflict) IsSuccess

func (o *PostAdminParserConflict) IsSuccess() bool

IsSuccess returns true when this post admin parser conflict response has a 2xx status code

func (*PostAdminParserConflict) String

func (o *PostAdminParserConflict) String() string

type PostAdminParserCreated

type PostAdminParserCreated struct {
	Payload *models.DtoNewParserResponse
}

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

Created

func NewPostAdminParserCreated

func NewPostAdminParserCreated() *PostAdminParserCreated

NewPostAdminParserCreated creates a PostAdminParserCreated with default headers values

func (*PostAdminParserCreated) Code

func (o *PostAdminParserCreated) Code() int

Code gets the status code for the post admin parser created response

func (*PostAdminParserCreated) Error

func (o *PostAdminParserCreated) Error() string

func (*PostAdminParserCreated) GetPayload

func (*PostAdminParserCreated) IsClientError

func (o *PostAdminParserCreated) IsClientError() bool

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

func (*PostAdminParserCreated) IsCode

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

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

func (*PostAdminParserCreated) IsRedirect

func (o *PostAdminParserCreated) IsRedirect() bool

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

func (*PostAdminParserCreated) IsServerError

func (o *PostAdminParserCreated) IsServerError() bool

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

func (*PostAdminParserCreated) IsSuccess

func (o *PostAdminParserCreated) IsSuccess() bool

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

func (*PostAdminParserCreated) String

func (o *PostAdminParserCreated) String() string

type PostAdminParserInternalServerError

type PostAdminParserInternalServerError struct {
	Payload *models.DtoErrorResponse
}

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

Internal Server Error

func NewPostAdminParserInternalServerError

func NewPostAdminParserInternalServerError() *PostAdminParserInternalServerError

NewPostAdminParserInternalServerError creates a PostAdminParserInternalServerError with default headers values

func (*PostAdminParserInternalServerError) Code

Code gets the status code for the post admin parser internal server error response

func (*PostAdminParserInternalServerError) Error

func (*PostAdminParserInternalServerError) GetPayload

func (*PostAdminParserInternalServerError) IsClientError

func (o *PostAdminParserInternalServerError) IsClientError() bool

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

func (*PostAdminParserInternalServerError) IsCode

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

func (*PostAdminParserInternalServerError) IsRedirect

func (o *PostAdminParserInternalServerError) IsRedirect() bool

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

func (*PostAdminParserInternalServerError) IsServerError

func (o *PostAdminParserInternalServerError) IsServerError() bool

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

func (*PostAdminParserInternalServerError) IsSuccess

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

func (*PostAdminParserInternalServerError) String

type PostAdminParserParams

type PostAdminParserParams struct {

	// NewParserRequest.
	//
	// new parser request
	NewParserRequest *models.DtoNewParserRequest

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

PostAdminParserParams contains all the parameters to send to the API endpoint

for the post admin parser operation.

Typically these are written to a http.Request.

func NewPostAdminParserParams

func NewPostAdminParserParams() *PostAdminParserParams

NewPostAdminParserParams creates a new PostAdminParserParams 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 NewPostAdminParserParamsWithContext deprecated

func NewPostAdminParserParamsWithContext(ctx context.Context) *PostAdminParserParams

NewPostAdminParserParamsWithContext creates a new PostAdminParserParams object with the ability to set a context for a request.

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

func NewPostAdminParserParamsWithHTTPClient

func NewPostAdminParserParamsWithHTTPClient(client *http.Client) *PostAdminParserParams

NewPostAdminParserParamsWithHTTPClient creates a new PostAdminParserParams object with the ability to set a custom HTTPClient for a request.

func NewPostAdminParserParamsWithTimeout

func NewPostAdminParserParamsWithTimeout(timeout time.Duration) *PostAdminParserParams

NewPostAdminParserParamsWithTimeout creates a new PostAdminParserParams object with the ability to set a timeout on a request.

func (*PostAdminParserParams) SetContext deprecated

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

SetContext adds the context to the post admin parser params.

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

func (*PostAdminParserParams) SetDefaults

func (o *PostAdminParserParams) SetDefaults()

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

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

func (*PostAdminParserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post admin parser params.

func (*PostAdminParserParams) SetNewParserRequest

func (o *PostAdminParserParams) SetNewParserRequest(newParserRequest *models.DtoNewParserRequest)

SetNewParserRequest adds the newParserRequest to the post admin parser params.

func (*PostAdminParserParams) SetTimeout

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

SetTimeout adds the timeout to the post admin parser params.

func (*PostAdminParserParams) WithContext deprecated

WithContext adds the context to the post admin parser params.

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

func (*PostAdminParserParams) WithDefaults

func (o *PostAdminParserParams) WithDefaults() *PostAdminParserParams

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

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

func (*PostAdminParserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post admin parser params.

func (*PostAdminParserParams) WithNewParserRequest

func (o *PostAdminParserParams) WithNewParserRequest(newParserRequest *models.DtoNewParserRequest) *PostAdminParserParams

WithNewParserRequest adds the newParserRequest to the post admin parser params.

func (*PostAdminParserParams) WithTimeout

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

WithTimeout adds the timeout to the post admin parser params.

func (*PostAdminParserParams) WriteToRequest

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

WriteToRequest writes these params to a runtime.ClientRequest.

type PostAdminParserReader

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

PostAdminParserReader is a Reader for the PostAdminParser structure.

func (*PostAdminParserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostAdminParserUnauthorized

type PostAdminParserUnauthorized struct {
	Payload *models.DtoErrorResponse
}

PostAdminParserUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostAdminParserUnauthorized

func NewPostAdminParserUnauthorized() *PostAdminParserUnauthorized

NewPostAdminParserUnauthorized creates a PostAdminParserUnauthorized with default headers values

func (*PostAdminParserUnauthorized) Code

func (o *PostAdminParserUnauthorized) Code() int

Code gets the status code for the post admin parser unauthorized response

func (*PostAdminParserUnauthorized) Error

func (*PostAdminParserUnauthorized) GetPayload

func (*PostAdminParserUnauthorized) IsClientError

func (o *PostAdminParserUnauthorized) IsClientError() bool

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

func (*PostAdminParserUnauthorized) IsCode

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

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

func (*PostAdminParserUnauthorized) IsRedirect

func (o *PostAdminParserUnauthorized) IsRedirect() bool

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

func (*PostAdminParserUnauthorized) IsServerError

func (o *PostAdminParserUnauthorized) IsServerError() bool

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

func (*PostAdminParserUnauthorized) IsSuccess

func (o *PostAdminParserUnauthorized) IsSuccess() bool

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

func (*PostAdminParserUnauthorized) String

func (o *PostAdminParserUnauthorized) String() string

Jump to

Keyboard shortcuts

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