public_type

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT 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 public type API

func (*Client) GetType

GetType gets types

Requires valid user token

func (*Client) GetTypeShort

func (a *Client) GetTypeShort(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetType(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, *GetTypeUnauthorized, *GetTypeNotFound, *GetTypeInternalServerError, error)
	GetTypeShort(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, 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 type API client.

type GetTypeInternalServerError

type GetTypeInternalServerError struct {
	Payload *ugcclientmodels.ResponseError
}

GetTypeInternalServerError handles this case with default header values.

Internal Server Error

func NewGetTypeInternalServerError

func NewGetTypeInternalServerError() *GetTypeInternalServerError

NewGetTypeInternalServerError creates a GetTypeInternalServerError with default headers values

func (*GetTypeInternalServerError) Error

func (*GetTypeInternalServerError) GetPayload

type GetTypeNotFound

type GetTypeNotFound struct {
	Payload *ugcclientmodels.ResponseError
}

GetTypeNotFound handles this case with default header values.

Not Found

func NewGetTypeNotFound

func NewGetTypeNotFound() *GetTypeNotFound

NewGetTypeNotFound creates a GetTypeNotFound with default headers values

func (*GetTypeNotFound) Error

func (o *GetTypeNotFound) Error() string

func (*GetTypeNotFound) GetPayload

type GetTypeOK

type GetTypeOK struct {
	Payload *ugcclientmodels.ModelsPaginatedGetTypeResponse
}

GetTypeOK handles this case with default header values.

OK

func NewGetTypeOK

func NewGetTypeOK() *GetTypeOK

NewGetTypeOK creates a GetTypeOK with default headers values

func (*GetTypeOK) Error

func (o *GetTypeOK) Error() string

func (*GetTypeOK) GetPayload

type GetTypeParams

type GetTypeParams struct {

	/*Limit
	  number of content per page

	*/
	Limit *string
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*Offset
	  the offset number to retrieve

	*/
	Offset *string

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

GetTypeParams contains all the parameters to send to the API endpoint for the get type operation typically these are written to a http.Request

func NewGetTypeParams

func NewGetTypeParams() *GetTypeParams

NewGetTypeParams creates a new GetTypeParams object with the default values initialized.

func NewGetTypeParamsWithContext

func NewGetTypeParamsWithContext(ctx context.Context) *GetTypeParams

NewGetTypeParamsWithContext creates a new GetTypeParams object with the default values initialized, and the ability to set a context for a request

func NewGetTypeParamsWithHTTPClient

func NewGetTypeParamsWithHTTPClient(client *http.Client) *GetTypeParams

NewGetTypeParamsWithHTTPClient creates a new GetTypeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetTypeParamsWithTimeout

func NewGetTypeParamsWithTimeout(timeout time.Duration) *GetTypeParams

NewGetTypeParamsWithTimeout creates a new GetTypeParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetTypeParams) SetContext

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

SetContext adds the context to the get type params

func (*GetTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get type params

func (*GetTypeParams) SetLimit

func (o *GetTypeParams) SetLimit(limit *string)

SetLimit adds the limit to the get type params

func (*GetTypeParams) SetNamespace

func (o *GetTypeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get type params

func (*GetTypeParams) SetOffset

func (o *GetTypeParams) SetOffset(offset *string)

SetOffset adds the offset to the get type params

func (*GetTypeParams) SetTimeout

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

SetTimeout adds the timeout to the get type params

func (*GetTypeParams) WithContext

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

WithContext adds the context to the get type params

func (*GetTypeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get type params

func (*GetTypeParams) WithLimit

func (o *GetTypeParams) WithLimit(limit *string) *GetTypeParams

WithLimit adds the limit to the get type params

func (*GetTypeParams) WithNamespace

func (o *GetTypeParams) WithNamespace(namespace string) *GetTypeParams

WithNamespace adds the namespace to the get type params

func (*GetTypeParams) WithOffset

func (o *GetTypeParams) WithOffset(offset *string) *GetTypeParams

WithOffset adds the offset to the get type params

func (*GetTypeParams) WithTimeout

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

WithTimeout adds the timeout to the get type params

func (*GetTypeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTypeReader

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

GetTypeReader is a Reader for the GetType structure.

func (*GetTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTypeUnauthorized

type GetTypeUnauthorized struct {
	Payload *ugcclientmodels.ResponseError
}

GetTypeUnauthorized handles this case with default header values.

Unauthorized

func NewGetTypeUnauthorized

func NewGetTypeUnauthorized() *GetTypeUnauthorized

NewGetTypeUnauthorized creates a GetTypeUnauthorized with default headers values

func (*GetTypeUnauthorized) Error

func (o *GetTypeUnauthorized) Error() string

func (*GetTypeUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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