Documentation ¶
Index ¶
- type Client
- func (a *Client) GetType(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, *GetTypeUnauthorized, *GetTypeNotFound, ...)deprecated
- func (a *Client) GetTypeShort(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetTypeInternalServerError
- type GetTypeNotFound
- type GetTypeOK
- type GetTypeParams
- func (o *GetTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetTypeParams) SetContext(ctx context.Context)
- func (o *GetTypeParams) SetHTTPClient(client *http.Client)
- func (o *GetTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetTypeParams) SetLimit(limit *int64)
- func (o *GetTypeParams) SetNamespace(namespace string)
- func (o *GetTypeParams) SetOffset(offset *int64)
- func (o *GetTypeParams) SetTimeout(timeout time.Duration)
- func (o *GetTypeParams) WithContext(ctx context.Context) *GetTypeParams
- func (o *GetTypeParams) WithHTTPClient(client *http.Client) *GetTypeParams
- func (o *GetTypeParams) WithLimit(limit *int64) *GetTypeParams
- func (o *GetTypeParams) WithNamespace(namespace string) *GetTypeParams
- func (o *GetTypeParams) WithOffset(offset *int64) *GetTypeParams
- func (o *GetTypeParams) WithTimeout(timeout time.Duration) *GetTypeParams
- func (o *GetTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTypeReader
- type GetTypeUnauthorized
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
deprecated
func (a *Client) GetType(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, *GetTypeUnauthorized, *GetTypeNotFound, *GetTypeInternalServerError, error)
Deprecated: 2022-08-10 - Use GetTypeShort instead.
GetType get types Requires valid user token
func (*Client) GetTypeShort ¶
func (a *Client) GetTypeShort(params *GetTypeParams, authInfo runtime.ClientAuthInfoWriter) (*GetTypeOK, error)
GetTypeShort get types Requires valid user token
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 (o *GetTypeInternalServerError) Error() string
func (*GetTypeInternalServerError) GetPayload ¶
func (o *GetTypeInternalServerError) GetPayload() *ugcclientmodels.ResponseError
func (*GetTypeInternalServerError) ToJSONString ¶ added in v0.25.0
func (o *GetTypeInternalServerError) ToJSONString() string
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 ¶
func (o *GetTypeNotFound) GetPayload() *ugcclientmodels.ResponseError
func (*GetTypeNotFound) ToJSONString ¶ added in v0.25.0
func (o *GetTypeNotFound) ToJSONString() string
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) GetPayload ¶
func (o *GetTypeOK) GetPayload() *ugcclientmodels.ModelsPaginatedGetTypeResponse
func (*GetTypeOK) ToJSONString ¶ added in v0.25.0
type GetTypeParams ¶
type GetTypeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace namespace of the game */ Namespace string /*Limit number of content per page */ Limit *int64 /*Offset the offset number to retrieve */ Offset *int64 AuthInfoWriter runtime.ClientAuthInfoWriter 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) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GetTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get type params
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) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GetTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get type params
func (*GetTypeParams) SetLimit ¶
func (o *GetTypeParams) SetLimit(limit *int64)
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 *int64)
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 *int64) *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 *int64) *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 {
}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 ¶
func (o *GetTypeUnauthorized) GetPayload() *ugcclientmodels.ResponseError
func (*GetTypeUnauthorized) ToJSONString ¶ added in v0.25.0
func (o *GetTypeUnauthorized) ToJSONString() string