public

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for public API

func (*Client) GetPublicMetadata

func (a *Client) GetPublicMetadata(params *GetPublicMetadataParams, opts ...ClientOption) (*GetPublicMetadataOK, error)

GetPublicMetadata gets list metadata

Category: (dataset, model, competition) - Type:(language, license, size, tag, task, library, category, reward, status, tag)

func (*Client) GetPublicTokenPrice

func (a *Client) GetPublicTokenPrice(params *GetPublicTokenPriceParams, opts ...ClientOption) (*GetPublicTokenPriceOK, error)

GetPublicTokenPrice gets aioz token price

func (*Client) GetPublicUserByUsernameMedals added in v1.0.4

func (a *Client) GetPublicUserByUsernameMedals(params *GetPublicUserByUsernameMedalsParams, opts ...ClientOption) (*GetPublicUserByUsernameMedalsOK, error)

GetPublicUserByUsernameMedals gets user medals by medal name

Get user medals by medal name. Medal name is allowed [gold, silver, bronze, swag, kudos, knowledge]

func (*Client) GetPublicUserByUsernameMedalsStatistics added in v1.0.4

func (a *Client) GetPublicUserByUsernameMedalsStatistics(params *GetPublicUserByUsernameMedalsStatisticsParams, opts ...ClientOption) (*GetPublicUserByUsernameMedalsStatisticsOK, error)

GetPublicUserByUsernameMedalsStatistics gets user medal statistics by username

Get user medal statistics by username

func (*Client) PostPublicCostEstimating

func (a *Client) PostPublicCostEstimating(params *PostPublicCostEstimatingParams, opts ...ClientOption) (*PostPublicCostEstimatingOK, error)

PostPublicCostEstimating estimates storage cost

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 may be used to customize the behavior of Client methods.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetPublicMetadata(params *GetPublicMetadataParams, opts ...ClientOption) (*GetPublicMetadataOK, error)

	GetPublicTokenPrice(params *GetPublicTokenPriceParams, opts ...ClientOption) (*GetPublicTokenPriceOK, error)

	GetPublicUserByUsernameMedals(params *GetPublicUserByUsernameMedalsParams, opts ...ClientOption) (*GetPublicUserByUsernameMedalsOK, error)

	GetPublicUserByUsernameMedalsStatistics(params *GetPublicUserByUsernameMedalsStatisticsParams, opts ...ClientOption) (*GetPublicUserByUsernameMedalsStatisticsOK, error)

	PostPublicCostEstimating(params *PostPublicCostEstimatingParams, opts ...ClientOption) (*PostPublicCostEstimatingOK, 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 public API client.

func NewClientWithBasicAuth

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

New creates a new public 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 public 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 GetPublicMetadataBadRequest

type GetPublicMetadataBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetPublicMetadataBadRequest

func NewGetPublicMetadataBadRequest() *GetPublicMetadataBadRequest

NewGetPublicMetadataBadRequest creates a GetPublicMetadataBadRequest with default headers values

func (*GetPublicMetadataBadRequest) Code

func (o *GetPublicMetadataBadRequest) Code() int

Code gets the status code for the get public metadata bad request response

func (*GetPublicMetadataBadRequest) Error

func (*GetPublicMetadataBadRequest) GetPayload

func (*GetPublicMetadataBadRequest) IsClientError

func (o *GetPublicMetadataBadRequest) IsClientError() bool

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

func (*GetPublicMetadataBadRequest) IsCode

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

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

func (*GetPublicMetadataBadRequest) IsRedirect

func (o *GetPublicMetadataBadRequest) IsRedirect() bool

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

func (*GetPublicMetadataBadRequest) IsServerError

func (o *GetPublicMetadataBadRequest) IsServerError() bool

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

func (*GetPublicMetadataBadRequest) IsSuccess

func (o *GetPublicMetadataBadRequest) IsSuccess() bool

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

func (*GetPublicMetadataBadRequest) String

func (o *GetPublicMetadataBadRequest) String() string

type GetPublicMetadataInternalServerError

type GetPublicMetadataInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetPublicMetadataInternalServerError

func NewGetPublicMetadataInternalServerError() *GetPublicMetadataInternalServerError

NewGetPublicMetadataInternalServerError creates a GetPublicMetadataInternalServerError with default headers values

func (*GetPublicMetadataInternalServerError) Code

Code gets the status code for the get public metadata internal server error response

func (*GetPublicMetadataInternalServerError) Error

func (*GetPublicMetadataInternalServerError) GetPayload

func (*GetPublicMetadataInternalServerError) IsClientError

func (o *GetPublicMetadataInternalServerError) IsClientError() bool

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

func (*GetPublicMetadataInternalServerError) IsCode

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

func (*GetPublicMetadataInternalServerError) IsRedirect

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

func (*GetPublicMetadataInternalServerError) IsServerError

func (o *GetPublicMetadataInternalServerError) IsServerError() bool

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

func (*GetPublicMetadataInternalServerError) IsSuccess

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

func (*GetPublicMetadataInternalServerError) String

type GetPublicMetadataOK

type GetPublicMetadataOK struct {
	Payload *models.ResponseGetListMetadataResponse
}

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

OK

func NewGetPublicMetadataOK

func NewGetPublicMetadataOK() *GetPublicMetadataOK

NewGetPublicMetadataOK creates a GetPublicMetadataOK with default headers values

func (*GetPublicMetadataOK) Code

func (o *GetPublicMetadataOK) Code() int

Code gets the status code for the get public metadata o k response

func (*GetPublicMetadataOK) Error

func (o *GetPublicMetadataOK) Error() string

func (*GetPublicMetadataOK) GetPayload

func (*GetPublicMetadataOK) IsClientError

func (o *GetPublicMetadataOK) IsClientError() bool

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

func (*GetPublicMetadataOK) IsCode

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

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

func (*GetPublicMetadataOK) IsRedirect

func (o *GetPublicMetadataOK) IsRedirect() bool

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

func (*GetPublicMetadataOK) IsServerError

func (o *GetPublicMetadataOK) IsServerError() bool

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

func (*GetPublicMetadataOK) IsSuccess

func (o *GetPublicMetadataOK) IsSuccess() bool

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

func (*GetPublicMetadataOK) String

func (o *GetPublicMetadataOK) String() string

type GetPublicMetadataParams

type GetPublicMetadataParams struct {

	// Category.
	Category *string

	// Types.
	Types []string

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

GetPublicMetadataParams contains all the parameters to send to the API endpoint

for the get public metadata operation.

Typically these are written to a http.Request.

func NewGetPublicMetadataParams

func NewGetPublicMetadataParams() *GetPublicMetadataParams

NewGetPublicMetadataParams creates a new GetPublicMetadataParams 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 NewGetPublicMetadataParamsWithContext

func NewGetPublicMetadataParamsWithContext(ctx context.Context) *GetPublicMetadataParams

NewGetPublicMetadataParamsWithContext creates a new GetPublicMetadataParams object with the ability to set a context for a request.

func NewGetPublicMetadataParamsWithHTTPClient

func NewGetPublicMetadataParamsWithHTTPClient(client *http.Client) *GetPublicMetadataParams

NewGetPublicMetadataParamsWithHTTPClient creates a new GetPublicMetadataParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublicMetadataParamsWithTimeout

func NewGetPublicMetadataParamsWithTimeout(timeout time.Duration) *GetPublicMetadataParams

NewGetPublicMetadataParamsWithTimeout creates a new GetPublicMetadataParams object with the ability to set a timeout on a request.

func (*GetPublicMetadataParams) SetCategory

func (o *GetPublicMetadataParams) SetCategory(category *string)

SetCategory adds the category to the get public metadata params

func (*GetPublicMetadataParams) SetContext

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

SetContext adds the context to the get public metadata params

func (*GetPublicMetadataParams) SetDefaults

func (o *GetPublicMetadataParams) SetDefaults()

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

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

func (*GetPublicMetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public metadata params

func (*GetPublicMetadataParams) SetTimeout

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

SetTimeout adds the timeout to the get public metadata params

func (*GetPublicMetadataParams) SetTypes

func (o *GetPublicMetadataParams) SetTypes(types []string)

SetTypes adds the types to the get public metadata params

func (*GetPublicMetadataParams) WithCategory

func (o *GetPublicMetadataParams) WithCategory(category *string) *GetPublicMetadataParams

WithCategory adds the category to the get public metadata params

func (*GetPublicMetadataParams) WithContext

WithContext adds the context to the get public metadata params

func (*GetPublicMetadataParams) WithDefaults

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

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

func (*GetPublicMetadataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get public metadata params

func (*GetPublicMetadataParams) WithTimeout

WithTimeout adds the timeout to the get public metadata params

func (*GetPublicMetadataParams) WithTypes

WithTypes adds the types to the get public metadata params

func (*GetPublicMetadataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicMetadataReader

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

GetPublicMetadataReader is a Reader for the GetPublicMetadata structure.

func (*GetPublicMetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicTokenPriceBadRequest

type GetPublicTokenPriceBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetPublicTokenPriceBadRequest

func NewGetPublicTokenPriceBadRequest() *GetPublicTokenPriceBadRequest

NewGetPublicTokenPriceBadRequest creates a GetPublicTokenPriceBadRequest with default headers values

func (*GetPublicTokenPriceBadRequest) Code

Code gets the status code for the get public token price bad request response

func (*GetPublicTokenPriceBadRequest) Error

func (*GetPublicTokenPriceBadRequest) GetPayload

func (*GetPublicTokenPriceBadRequest) IsClientError

func (o *GetPublicTokenPriceBadRequest) IsClientError() bool

IsClientError returns true when this get public token price bad request response has a 4xx status code

func (*GetPublicTokenPriceBadRequest) IsCode

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

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

func (*GetPublicTokenPriceBadRequest) IsRedirect

func (o *GetPublicTokenPriceBadRequest) IsRedirect() bool

IsRedirect returns true when this get public token price bad request response has a 3xx status code

func (*GetPublicTokenPriceBadRequest) IsServerError

func (o *GetPublicTokenPriceBadRequest) IsServerError() bool

IsServerError returns true when this get public token price bad request response has a 5xx status code

func (*GetPublicTokenPriceBadRequest) IsSuccess

func (o *GetPublicTokenPriceBadRequest) IsSuccess() bool

IsSuccess returns true when this get public token price bad request response has a 2xx status code

func (*GetPublicTokenPriceBadRequest) String

type GetPublicTokenPriceInternalServerError

type GetPublicTokenPriceInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetPublicTokenPriceInternalServerError

func NewGetPublicTokenPriceInternalServerError() *GetPublicTokenPriceInternalServerError

NewGetPublicTokenPriceInternalServerError creates a GetPublicTokenPriceInternalServerError with default headers values

func (*GetPublicTokenPriceInternalServerError) Code

Code gets the status code for the get public token price internal server error response

func (*GetPublicTokenPriceInternalServerError) Error

func (*GetPublicTokenPriceInternalServerError) GetPayload

func (*GetPublicTokenPriceInternalServerError) IsClientError

func (o *GetPublicTokenPriceInternalServerError) IsClientError() bool

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

func (*GetPublicTokenPriceInternalServerError) IsCode

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

func (*GetPublicTokenPriceInternalServerError) IsRedirect

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

func (*GetPublicTokenPriceInternalServerError) IsServerError

func (o *GetPublicTokenPriceInternalServerError) IsServerError() bool

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

func (*GetPublicTokenPriceInternalServerError) IsSuccess

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

func (*GetPublicTokenPriceInternalServerError) String

type GetPublicTokenPriceOK

type GetPublicTokenPriceOK struct {
	Payload *models.ResponseGetTokenPriceResponse
}

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

OK

func NewGetPublicTokenPriceOK

func NewGetPublicTokenPriceOK() *GetPublicTokenPriceOK

NewGetPublicTokenPriceOK creates a GetPublicTokenPriceOK with default headers values

func (*GetPublicTokenPriceOK) Code

func (o *GetPublicTokenPriceOK) Code() int

Code gets the status code for the get public token price o k response

func (*GetPublicTokenPriceOK) Error

func (o *GetPublicTokenPriceOK) Error() string

func (*GetPublicTokenPriceOK) GetPayload

func (*GetPublicTokenPriceOK) IsClientError

func (o *GetPublicTokenPriceOK) IsClientError() bool

IsClientError returns true when this get public token price o k response has a 4xx status code

func (*GetPublicTokenPriceOK) IsCode

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

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

func (*GetPublicTokenPriceOK) IsRedirect

func (o *GetPublicTokenPriceOK) IsRedirect() bool

IsRedirect returns true when this get public token price o k response has a 3xx status code

func (*GetPublicTokenPriceOK) IsServerError

func (o *GetPublicTokenPriceOK) IsServerError() bool

IsServerError returns true when this get public token price o k response has a 5xx status code

func (*GetPublicTokenPriceOK) IsSuccess

func (o *GetPublicTokenPriceOK) IsSuccess() bool

IsSuccess returns true when this get public token price o k response has a 2xx status code

func (*GetPublicTokenPriceOK) String

func (o *GetPublicTokenPriceOK) String() string

type GetPublicTokenPriceParams

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

GetPublicTokenPriceParams contains all the parameters to send to the API endpoint

for the get public token price operation.

Typically these are written to a http.Request.

func NewGetPublicTokenPriceParams

func NewGetPublicTokenPriceParams() *GetPublicTokenPriceParams

NewGetPublicTokenPriceParams creates a new GetPublicTokenPriceParams 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 NewGetPublicTokenPriceParamsWithContext

func NewGetPublicTokenPriceParamsWithContext(ctx context.Context) *GetPublicTokenPriceParams

NewGetPublicTokenPriceParamsWithContext creates a new GetPublicTokenPriceParams object with the ability to set a context for a request.

func NewGetPublicTokenPriceParamsWithHTTPClient

func NewGetPublicTokenPriceParamsWithHTTPClient(client *http.Client) *GetPublicTokenPriceParams

NewGetPublicTokenPriceParamsWithHTTPClient creates a new GetPublicTokenPriceParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublicTokenPriceParamsWithTimeout

func NewGetPublicTokenPriceParamsWithTimeout(timeout time.Duration) *GetPublicTokenPriceParams

NewGetPublicTokenPriceParamsWithTimeout creates a new GetPublicTokenPriceParams object with the ability to set a timeout on a request.

func (*GetPublicTokenPriceParams) SetContext

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

SetContext adds the context to the get public token price params

func (*GetPublicTokenPriceParams) SetDefaults

func (o *GetPublicTokenPriceParams) SetDefaults()

SetDefaults hydrates default values in the get public token price params (not the query body).

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

func (*GetPublicTokenPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get public token price params

func (*GetPublicTokenPriceParams) SetTimeout

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

SetTimeout adds the timeout to the get public token price params

func (*GetPublicTokenPriceParams) WithContext

WithContext adds the context to the get public token price params

func (*GetPublicTokenPriceParams) WithDefaults

WithDefaults hydrates default values in the get public token price params (not the query body).

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

func (*GetPublicTokenPriceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get public token price params

func (*GetPublicTokenPriceParams) WithTimeout

WithTimeout adds the timeout to the get public token price params

func (*GetPublicTokenPriceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPublicTokenPriceReader

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

GetPublicTokenPriceReader is a Reader for the GetPublicTokenPrice structure.

func (*GetPublicTokenPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPublicUserByUsernameMedalsBadRequest added in v1.0.4

type GetPublicUserByUsernameMedalsBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetPublicUserByUsernameMedalsBadRequest added in v1.0.4

func NewGetPublicUserByUsernameMedalsBadRequest() *GetPublicUserByUsernameMedalsBadRequest

NewGetPublicUserByUsernameMedalsBadRequest creates a GetPublicUserByUsernameMedalsBadRequest with default headers values

func (*GetPublicUserByUsernameMedalsBadRequest) Code added in v1.0.4

Code gets the status code for the get public user by username medals bad request response

func (*GetPublicUserByUsernameMedalsBadRequest) Error added in v1.0.4

func (*GetPublicUserByUsernameMedalsBadRequest) GetPayload added in v1.0.4

func (*GetPublicUserByUsernameMedalsBadRequest) IsClientError added in v1.0.4

func (o *GetPublicUserByUsernameMedalsBadRequest) IsClientError() bool

IsClientError returns true when this get public user by username medals bad request response has a 4xx status code

func (*GetPublicUserByUsernameMedalsBadRequest) IsCode added in v1.0.4

IsCode returns true when this get public user by username medals bad request response a status code equal to that given

func (*GetPublicUserByUsernameMedalsBadRequest) IsRedirect added in v1.0.4

IsRedirect returns true when this get public user by username medals bad request response has a 3xx status code

func (*GetPublicUserByUsernameMedalsBadRequest) IsServerError added in v1.0.4

func (o *GetPublicUserByUsernameMedalsBadRequest) IsServerError() bool

IsServerError returns true when this get public user by username medals bad request response has a 5xx status code

func (*GetPublicUserByUsernameMedalsBadRequest) IsSuccess added in v1.0.4

IsSuccess returns true when this get public user by username medals bad request response has a 2xx status code

func (*GetPublicUserByUsernameMedalsBadRequest) String added in v1.0.4

type GetPublicUserByUsernameMedalsInternalServerError added in v1.0.4

type GetPublicUserByUsernameMedalsInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetPublicUserByUsernameMedalsInternalServerError added in v1.0.4

func NewGetPublicUserByUsernameMedalsInternalServerError() *GetPublicUserByUsernameMedalsInternalServerError

NewGetPublicUserByUsernameMedalsInternalServerError creates a GetPublicUserByUsernameMedalsInternalServerError with default headers values

func (*GetPublicUserByUsernameMedalsInternalServerError) Code added in v1.0.4

Code gets the status code for the get public user by username medals internal server error response

func (*GetPublicUserByUsernameMedalsInternalServerError) Error added in v1.0.4

func (*GetPublicUserByUsernameMedalsInternalServerError) GetPayload added in v1.0.4

func (*GetPublicUserByUsernameMedalsInternalServerError) IsClientError added in v1.0.4

IsClientError returns true when this get public user by username medals internal server error response has a 4xx status code

func (*GetPublicUserByUsernameMedalsInternalServerError) IsCode added in v1.0.4

IsCode returns true when this get public user by username medals internal server error response a status code equal to that given

func (*GetPublicUserByUsernameMedalsInternalServerError) IsRedirect added in v1.0.4

IsRedirect returns true when this get public user by username medals internal server error response has a 3xx status code

func (*GetPublicUserByUsernameMedalsInternalServerError) IsServerError added in v1.0.4

IsServerError returns true when this get public user by username medals internal server error response has a 5xx status code

func (*GetPublicUserByUsernameMedalsInternalServerError) IsSuccess added in v1.0.4

IsSuccess returns true when this get public user by username medals internal server error response has a 2xx status code

func (*GetPublicUserByUsernameMedalsInternalServerError) String added in v1.0.4

type GetPublicUserByUsernameMedalsOK added in v1.0.4

type GetPublicUserByUsernameMedalsOK struct {
	Payload *models.ResponseUserMedalListResponse
}

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

OK

func NewGetPublicUserByUsernameMedalsOK added in v1.0.4

func NewGetPublicUserByUsernameMedalsOK() *GetPublicUserByUsernameMedalsOK

NewGetPublicUserByUsernameMedalsOK creates a GetPublicUserByUsernameMedalsOK with default headers values

func (*GetPublicUserByUsernameMedalsOK) Code added in v1.0.4

Code gets the status code for the get public user by username medals o k response

func (*GetPublicUserByUsernameMedalsOK) Error added in v1.0.4

func (*GetPublicUserByUsernameMedalsOK) GetPayload added in v1.0.4

func (*GetPublicUserByUsernameMedalsOK) IsClientError added in v1.0.4

func (o *GetPublicUserByUsernameMedalsOK) IsClientError() bool

IsClientError returns true when this get public user by username medals o k response has a 4xx status code

func (*GetPublicUserByUsernameMedalsOK) IsCode added in v1.0.4

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

IsCode returns true when this get public user by username medals o k response a status code equal to that given

func (*GetPublicUserByUsernameMedalsOK) IsRedirect added in v1.0.4

func (o *GetPublicUserByUsernameMedalsOK) IsRedirect() bool

IsRedirect returns true when this get public user by username medals o k response has a 3xx status code

func (*GetPublicUserByUsernameMedalsOK) IsServerError added in v1.0.4

func (o *GetPublicUserByUsernameMedalsOK) IsServerError() bool

IsServerError returns true when this get public user by username medals o k response has a 5xx status code

func (*GetPublicUserByUsernameMedalsOK) IsSuccess added in v1.0.4

func (o *GetPublicUserByUsernameMedalsOK) IsSuccess() bool

IsSuccess returns true when this get public user by username medals o k response has a 2xx status code

func (*GetPublicUserByUsernameMedalsOK) String added in v1.0.4

type GetPublicUserByUsernameMedalsParams added in v1.0.4

type GetPublicUserByUsernameMedalsParams struct {

	// Limit.
	//
	// Default: 10
	Limit *int64

	// MedalName.
	MedalName string

	// Offset.
	Offset *int64

	/* Username.

	   Username
	*/
	Username string

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

GetPublicUserByUsernameMedalsParams contains all the parameters to send to the API endpoint

for the get public user by username medals operation.

Typically these are written to a http.Request.

func NewGetPublicUserByUsernameMedalsParams added in v1.0.4

func NewGetPublicUserByUsernameMedalsParams() *GetPublicUserByUsernameMedalsParams

NewGetPublicUserByUsernameMedalsParams creates a new GetPublicUserByUsernameMedalsParams 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 NewGetPublicUserByUsernameMedalsParamsWithContext added in v1.0.4

func NewGetPublicUserByUsernameMedalsParamsWithContext(ctx context.Context) *GetPublicUserByUsernameMedalsParams

NewGetPublicUserByUsernameMedalsParamsWithContext creates a new GetPublicUserByUsernameMedalsParams object with the ability to set a context for a request.

func NewGetPublicUserByUsernameMedalsParamsWithHTTPClient added in v1.0.4

func NewGetPublicUserByUsernameMedalsParamsWithHTTPClient(client *http.Client) *GetPublicUserByUsernameMedalsParams

NewGetPublicUserByUsernameMedalsParamsWithHTTPClient creates a new GetPublicUserByUsernameMedalsParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublicUserByUsernameMedalsParamsWithTimeout added in v1.0.4

func NewGetPublicUserByUsernameMedalsParamsWithTimeout(timeout time.Duration) *GetPublicUserByUsernameMedalsParams

NewGetPublicUserByUsernameMedalsParamsWithTimeout creates a new GetPublicUserByUsernameMedalsParams object with the ability to set a timeout on a request.

func (*GetPublicUserByUsernameMedalsParams) SetContext added in v1.0.4

SetContext adds the context to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) SetDefaults added in v1.0.4

func (o *GetPublicUserByUsernameMedalsParams) SetDefaults()

SetDefaults hydrates default values in the get public user by username medals params (not the query body).

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

func (*GetPublicUserByUsernameMedalsParams) SetHTTPClient added in v1.0.4

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

SetHTTPClient adds the HTTPClient to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) SetLimit added in v1.0.4

func (o *GetPublicUserByUsernameMedalsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) SetMedalName added in v1.0.4

func (o *GetPublicUserByUsernameMedalsParams) SetMedalName(medalName string)

SetMedalName adds the medalName to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) SetOffset added in v1.0.4

func (o *GetPublicUserByUsernameMedalsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) SetTimeout added in v1.0.4

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

SetTimeout adds the timeout to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) SetUsername added in v1.0.4

func (o *GetPublicUserByUsernameMedalsParams) SetUsername(username string)

SetUsername adds the username to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithContext added in v1.0.4

WithContext adds the context to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithDefaults added in v1.0.4

WithDefaults hydrates default values in the get public user by username medals params (not the query body).

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

func (*GetPublicUserByUsernameMedalsParams) WithHTTPClient added in v1.0.4

WithHTTPClient adds the HTTPClient to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithLimit added in v1.0.4

WithLimit adds the limit to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithMedalName added in v1.0.4

WithMedalName adds the medalName to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithOffset added in v1.0.4

WithOffset adds the offset to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithTimeout added in v1.0.4

WithTimeout adds the timeout to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WithUsername added in v1.0.4

WithUsername adds the username to the get public user by username medals params

func (*GetPublicUserByUsernameMedalsParams) WriteToRequest added in v1.0.4

WriteToRequest writes these params to a swagger request

type GetPublicUserByUsernameMedalsReader added in v1.0.4

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

GetPublicUserByUsernameMedalsReader is a Reader for the GetPublicUserByUsernameMedals structure.

func (*GetPublicUserByUsernameMedalsReader) ReadResponse added in v1.0.4

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

ReadResponse reads a server response into the received o.

type GetPublicUserByUsernameMedalsStatisticsBadRequest added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetPublicUserByUsernameMedalsStatisticsBadRequest added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsBadRequest() *GetPublicUserByUsernameMedalsStatisticsBadRequest

NewGetPublicUserByUsernameMedalsStatisticsBadRequest creates a GetPublicUserByUsernameMedalsStatisticsBadRequest with default headers values

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) Code added in v1.0.4

Code gets the status code for the get public user by username medals statistics bad request response

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) Error added in v1.0.4

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) GetPayload added in v1.0.4

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) IsClientError added in v1.0.4

IsClientError returns true when this get public user by username medals statistics bad request response has a 4xx status code

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) IsCode added in v1.0.4

IsCode returns true when this get public user by username medals statistics bad request response a status code equal to that given

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) IsRedirect added in v1.0.4

IsRedirect returns true when this get public user by username medals statistics bad request response has a 3xx status code

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) IsServerError added in v1.0.4

IsServerError returns true when this get public user by username medals statistics bad request response has a 5xx status code

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) IsSuccess added in v1.0.4

IsSuccess returns true when this get public user by username medals statistics bad request response has a 2xx status code

func (*GetPublicUserByUsernameMedalsStatisticsBadRequest) String added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsInternalServerError added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetPublicUserByUsernameMedalsStatisticsInternalServerError added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsInternalServerError() *GetPublicUserByUsernameMedalsStatisticsInternalServerError

NewGetPublicUserByUsernameMedalsStatisticsInternalServerError creates a GetPublicUserByUsernameMedalsStatisticsInternalServerError with default headers values

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) Code added in v1.0.4

Code gets the status code for the get public user by username medals statistics internal server error response

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) Error added in v1.0.4

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) GetPayload added in v1.0.4

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) IsClientError added in v1.0.4

IsClientError returns true when this get public user by username medals statistics internal server error response has a 4xx status code

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) IsCode added in v1.0.4

IsCode returns true when this get public user by username medals statistics internal server error response a status code equal to that given

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) IsRedirect added in v1.0.4

IsRedirect returns true when this get public user by username medals statistics internal server error response has a 3xx status code

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) IsServerError added in v1.0.4

IsServerError returns true when this get public user by username medals statistics internal server error response has a 5xx status code

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) IsSuccess added in v1.0.4

IsSuccess returns true when this get public user by username medals statistics internal server error response has a 2xx status code

func (*GetPublicUserByUsernameMedalsStatisticsInternalServerError) String added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsOK added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsOK struct {
	Payload *models.ResponseMedalStatisticResponse
}

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

OK

func NewGetPublicUserByUsernameMedalsStatisticsOK added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsOK() *GetPublicUserByUsernameMedalsStatisticsOK

NewGetPublicUserByUsernameMedalsStatisticsOK creates a GetPublicUserByUsernameMedalsStatisticsOK with default headers values

func (*GetPublicUserByUsernameMedalsStatisticsOK) Code added in v1.0.4

Code gets the status code for the get public user by username medals statistics o k response

func (*GetPublicUserByUsernameMedalsStatisticsOK) Error added in v1.0.4

func (*GetPublicUserByUsernameMedalsStatisticsOK) GetPayload added in v1.0.4

func (*GetPublicUserByUsernameMedalsStatisticsOK) IsClientError added in v1.0.4

IsClientError returns true when this get public user by username medals statistics o k response has a 4xx status code

func (*GetPublicUserByUsernameMedalsStatisticsOK) IsCode added in v1.0.4

IsCode returns true when this get public user by username medals statistics o k response a status code equal to that given

func (*GetPublicUserByUsernameMedalsStatisticsOK) IsRedirect added in v1.0.4

IsRedirect returns true when this get public user by username medals statistics o k response has a 3xx status code

func (*GetPublicUserByUsernameMedalsStatisticsOK) IsServerError added in v1.0.4

IsServerError returns true when this get public user by username medals statistics o k response has a 5xx status code

func (*GetPublicUserByUsernameMedalsStatisticsOK) IsSuccess added in v1.0.4

IsSuccess returns true when this get public user by username medals statistics o k response has a 2xx status code

func (*GetPublicUserByUsernameMedalsStatisticsOK) String added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsParams added in v1.0.4

type GetPublicUserByUsernameMedalsStatisticsParams struct {

	/* Username.

	   Username
	*/
	Username string

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

GetPublicUserByUsernameMedalsStatisticsParams contains all the parameters to send to the API endpoint

for the get public user by username medals statistics operation.

Typically these are written to a http.Request.

func NewGetPublicUserByUsernameMedalsStatisticsParams added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsParams() *GetPublicUserByUsernameMedalsStatisticsParams

NewGetPublicUserByUsernameMedalsStatisticsParams creates a new GetPublicUserByUsernameMedalsStatisticsParams 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 NewGetPublicUserByUsernameMedalsStatisticsParamsWithContext added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsParamsWithContext(ctx context.Context) *GetPublicUserByUsernameMedalsStatisticsParams

NewGetPublicUserByUsernameMedalsStatisticsParamsWithContext creates a new GetPublicUserByUsernameMedalsStatisticsParams object with the ability to set a context for a request.

func NewGetPublicUserByUsernameMedalsStatisticsParamsWithHTTPClient added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsParamsWithHTTPClient(client *http.Client) *GetPublicUserByUsernameMedalsStatisticsParams

NewGetPublicUserByUsernameMedalsStatisticsParamsWithHTTPClient creates a new GetPublicUserByUsernameMedalsStatisticsParams object with the ability to set a custom HTTPClient for a request.

func NewGetPublicUserByUsernameMedalsStatisticsParamsWithTimeout added in v1.0.4

func NewGetPublicUserByUsernameMedalsStatisticsParamsWithTimeout(timeout time.Duration) *GetPublicUserByUsernameMedalsStatisticsParams

NewGetPublicUserByUsernameMedalsStatisticsParamsWithTimeout creates a new GetPublicUserByUsernameMedalsStatisticsParams object with the ability to set a timeout on a request.

func (*GetPublicUserByUsernameMedalsStatisticsParams) SetContext added in v1.0.4

SetContext adds the context to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) SetDefaults added in v1.0.4

SetDefaults hydrates default values in the get public user by username medals statistics params (not the query body).

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

func (*GetPublicUserByUsernameMedalsStatisticsParams) SetHTTPClient added in v1.0.4

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

SetHTTPClient adds the HTTPClient to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) SetTimeout added in v1.0.4

SetTimeout adds the timeout to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) SetUsername added in v1.0.4

func (o *GetPublicUserByUsernameMedalsStatisticsParams) SetUsername(username string)

SetUsername adds the username to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) WithContext added in v1.0.4

WithContext adds the context to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) WithDefaults added in v1.0.4

WithDefaults hydrates default values in the get public user by username medals statistics params (not the query body).

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

func (*GetPublicUserByUsernameMedalsStatisticsParams) WithHTTPClient added in v1.0.4

WithHTTPClient adds the HTTPClient to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) WithTimeout added in v1.0.4

WithTimeout adds the timeout to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) WithUsername added in v1.0.4

WithUsername adds the username to the get public user by username medals statistics params

func (*GetPublicUserByUsernameMedalsStatisticsParams) WriteToRequest added in v1.0.4

WriteToRequest writes these params to a swagger request

type GetPublicUserByUsernameMedalsStatisticsReader added in v1.0.4

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

GetPublicUserByUsernameMedalsStatisticsReader is a Reader for the GetPublicUserByUsernameMedalsStatistics structure.

func (*GetPublicUserByUsernameMedalsStatisticsReader) ReadResponse added in v1.0.4

ReadResponse reads a server response into the received o.

type PostPublicCostEstimatingBadRequest

type PostPublicCostEstimatingBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewPostPublicCostEstimatingBadRequest

func NewPostPublicCostEstimatingBadRequest() *PostPublicCostEstimatingBadRequest

NewPostPublicCostEstimatingBadRequest creates a PostPublicCostEstimatingBadRequest with default headers values

func (*PostPublicCostEstimatingBadRequest) Code

Code gets the status code for the post public cost estimating bad request response

func (*PostPublicCostEstimatingBadRequest) Error

func (*PostPublicCostEstimatingBadRequest) GetPayload

func (*PostPublicCostEstimatingBadRequest) IsClientError

func (o *PostPublicCostEstimatingBadRequest) IsClientError() bool

IsClientError returns true when this post public cost estimating bad request response has a 4xx status code

func (*PostPublicCostEstimatingBadRequest) IsCode

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

func (*PostPublicCostEstimatingBadRequest) IsRedirect

func (o *PostPublicCostEstimatingBadRequest) IsRedirect() bool

IsRedirect returns true when this post public cost estimating bad request response has a 3xx status code

func (*PostPublicCostEstimatingBadRequest) IsServerError

func (o *PostPublicCostEstimatingBadRequest) IsServerError() bool

IsServerError returns true when this post public cost estimating bad request response has a 5xx status code

func (*PostPublicCostEstimatingBadRequest) IsSuccess

IsSuccess returns true when this post public cost estimating bad request response has a 2xx status code

func (*PostPublicCostEstimatingBadRequest) String

type PostPublicCostEstimatingInternalServerError

type PostPublicCostEstimatingInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewPostPublicCostEstimatingInternalServerError

func NewPostPublicCostEstimatingInternalServerError() *PostPublicCostEstimatingInternalServerError

NewPostPublicCostEstimatingInternalServerError creates a PostPublicCostEstimatingInternalServerError with default headers values

func (*PostPublicCostEstimatingInternalServerError) Code

Code gets the status code for the post public cost estimating internal server error response

func (*PostPublicCostEstimatingInternalServerError) Error

func (*PostPublicCostEstimatingInternalServerError) GetPayload

func (*PostPublicCostEstimatingInternalServerError) IsClientError

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

func (*PostPublicCostEstimatingInternalServerError) IsCode

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

func (*PostPublicCostEstimatingInternalServerError) IsRedirect

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

func (*PostPublicCostEstimatingInternalServerError) IsServerError

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

func (*PostPublicCostEstimatingInternalServerError) IsSuccess

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

func (*PostPublicCostEstimatingInternalServerError) String

type PostPublicCostEstimatingOK

type PostPublicCostEstimatingOK struct {
	Payload *models.ResponseEstimateStorageCostResponse
}

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

OK

func NewPostPublicCostEstimatingOK

func NewPostPublicCostEstimatingOK() *PostPublicCostEstimatingOK

NewPostPublicCostEstimatingOK creates a PostPublicCostEstimatingOK with default headers values

func (*PostPublicCostEstimatingOK) Code

func (o *PostPublicCostEstimatingOK) Code() int

Code gets the status code for the post public cost estimating o k response

func (*PostPublicCostEstimatingOK) Error

func (*PostPublicCostEstimatingOK) GetPayload

func (*PostPublicCostEstimatingOK) IsClientError

func (o *PostPublicCostEstimatingOK) IsClientError() bool

IsClientError returns true when this post public cost estimating o k response has a 4xx status code

func (*PostPublicCostEstimatingOK) IsCode

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

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

func (*PostPublicCostEstimatingOK) IsRedirect

func (o *PostPublicCostEstimatingOK) IsRedirect() bool

IsRedirect returns true when this post public cost estimating o k response has a 3xx status code

func (*PostPublicCostEstimatingOK) IsServerError

func (o *PostPublicCostEstimatingOK) IsServerError() bool

IsServerError returns true when this post public cost estimating o k response has a 5xx status code

func (*PostPublicCostEstimatingOK) IsSuccess

func (o *PostPublicCostEstimatingOK) IsSuccess() bool

IsSuccess returns true when this post public cost estimating o k response has a 2xx status code

func (*PostPublicCostEstimatingOK) String

func (o *PostPublicCostEstimatingOK) String() string

type PostPublicCostEstimatingParams

type PostPublicCostEstimatingParams struct {

	/* Data.

	   total_size is measured in bytes
	*/
	Data *models.RequestEstimateCostRequest

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

PostPublicCostEstimatingParams contains all the parameters to send to the API endpoint

for the post public cost estimating operation.

Typically these are written to a http.Request.

func NewPostPublicCostEstimatingParams

func NewPostPublicCostEstimatingParams() *PostPublicCostEstimatingParams

NewPostPublicCostEstimatingParams creates a new PostPublicCostEstimatingParams 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 NewPostPublicCostEstimatingParamsWithContext

func NewPostPublicCostEstimatingParamsWithContext(ctx context.Context) *PostPublicCostEstimatingParams

NewPostPublicCostEstimatingParamsWithContext creates a new PostPublicCostEstimatingParams object with the ability to set a context for a request.

func NewPostPublicCostEstimatingParamsWithHTTPClient

func NewPostPublicCostEstimatingParamsWithHTTPClient(client *http.Client) *PostPublicCostEstimatingParams

NewPostPublicCostEstimatingParamsWithHTTPClient creates a new PostPublicCostEstimatingParams object with the ability to set a custom HTTPClient for a request.

func NewPostPublicCostEstimatingParamsWithTimeout

func NewPostPublicCostEstimatingParamsWithTimeout(timeout time.Duration) *PostPublicCostEstimatingParams

NewPostPublicCostEstimatingParamsWithTimeout creates a new PostPublicCostEstimatingParams object with the ability to set a timeout on a request.

func (*PostPublicCostEstimatingParams) SetContext

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

SetContext adds the context to the post public cost estimating params

func (*PostPublicCostEstimatingParams) SetData

SetData adds the data to the post public cost estimating params

func (*PostPublicCostEstimatingParams) SetDefaults

func (o *PostPublicCostEstimatingParams) SetDefaults()

SetDefaults hydrates default values in the post public cost estimating params (not the query body).

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

func (*PostPublicCostEstimatingParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post public cost estimating params

func (*PostPublicCostEstimatingParams) SetTimeout

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

SetTimeout adds the timeout to the post public cost estimating params

func (*PostPublicCostEstimatingParams) WithContext

WithContext adds the context to the post public cost estimating params

func (*PostPublicCostEstimatingParams) WithData

WithData adds the data to the post public cost estimating params

func (*PostPublicCostEstimatingParams) WithDefaults

WithDefaults hydrates default values in the post public cost estimating params (not the query body).

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

func (*PostPublicCostEstimatingParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post public cost estimating params

func (*PostPublicCostEstimatingParams) WithTimeout

WithTimeout adds the timeout to the post public cost estimating params

func (*PostPublicCostEstimatingParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostPublicCostEstimatingReader

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

PostPublicCostEstimatingReader is a Reader for the PostPublicCostEstimating structure.

func (*PostPublicCostEstimatingReader) ReadResponse

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