Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateChannel(params *CreateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*CreateChannelCreated, *CreateChannelBadRequest, *CreateChannelUnauthorized, ...)
- func (a *Client) DeleteChannel(params *DeleteChannelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteChannelNoContent, *DeleteChannelUnauthorized, *DeleteChannelNotFound, ...)
- func (a *Client) GetChannels(params *GetChannelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetChannelsOK, *GetChannelsUnauthorized, *GetChannelsNotFound, ...)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateChannel(params *UpdateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateChannelOK, *UpdateChannelBadRequest, *UpdateChannelUnauthorized, ...)
- type ClientService
- type CreateChannelBadRequest
- type CreateChannelCreated
- type CreateChannelInternalServerError
- type CreateChannelParams
- func (o *CreateChannelParams) SetBody(body *ugcclientmodels.ModelsChannelRequest)
- func (o *CreateChannelParams) SetContext(ctx context.Context)
- func (o *CreateChannelParams) SetHTTPClient(client *http.Client)
- func (o *CreateChannelParams) SetNamespace(namespace string)
- func (o *CreateChannelParams) SetTimeout(timeout time.Duration)
- func (o *CreateChannelParams) SetUserID(userID string)
- func (o *CreateChannelParams) WithBody(body *ugcclientmodels.ModelsChannelRequest) *CreateChannelParams
- func (o *CreateChannelParams) WithContext(ctx context.Context) *CreateChannelParams
- func (o *CreateChannelParams) WithHTTPClient(client *http.Client) *CreateChannelParams
- func (o *CreateChannelParams) WithNamespace(namespace string) *CreateChannelParams
- func (o *CreateChannelParams) WithTimeout(timeout time.Duration) *CreateChannelParams
- func (o *CreateChannelParams) WithUserID(userID string) *CreateChannelParams
- func (o *CreateChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateChannelReader
- type CreateChannelUnauthorized
- type DeleteChannelInternalServerError
- type DeleteChannelNoContent
- type DeleteChannelNotFound
- type DeleteChannelParams
- func (o *DeleteChannelParams) SetChannelID(channelID string)
- func (o *DeleteChannelParams) SetContext(ctx context.Context)
- func (o *DeleteChannelParams) SetHTTPClient(client *http.Client)
- func (o *DeleteChannelParams) SetNamespace(namespace string)
- func (o *DeleteChannelParams) SetTimeout(timeout time.Duration)
- func (o *DeleteChannelParams) SetUserID(userID string)
- func (o *DeleteChannelParams) WithChannelID(channelID string) *DeleteChannelParams
- func (o *DeleteChannelParams) WithContext(ctx context.Context) *DeleteChannelParams
- func (o *DeleteChannelParams) WithHTTPClient(client *http.Client) *DeleteChannelParams
- func (o *DeleteChannelParams) WithNamespace(namespace string) *DeleteChannelParams
- func (o *DeleteChannelParams) WithTimeout(timeout time.Duration) *DeleteChannelParams
- func (o *DeleteChannelParams) WithUserID(userID string) *DeleteChannelParams
- func (o *DeleteChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteChannelReader
- type DeleteChannelUnauthorized
- type GetChannelsInternalServerError
- type GetChannelsNotFound
- type GetChannelsOK
- type GetChannelsParams
- func (o *GetChannelsParams) SetContext(ctx context.Context)
- func (o *GetChannelsParams) SetHTTPClient(client *http.Client)
- func (o *GetChannelsParams) SetLimit(limit *string)
- func (o *GetChannelsParams) SetNamespace(namespace string)
- func (o *GetChannelsParams) SetOffset(offset *string)
- func (o *GetChannelsParams) SetTimeout(timeout time.Duration)
- func (o *GetChannelsParams) SetUserID(userID string)
- func (o *GetChannelsParams) WithContext(ctx context.Context) *GetChannelsParams
- func (o *GetChannelsParams) WithHTTPClient(client *http.Client) *GetChannelsParams
- func (o *GetChannelsParams) WithLimit(limit *string) *GetChannelsParams
- func (o *GetChannelsParams) WithNamespace(namespace string) *GetChannelsParams
- func (o *GetChannelsParams) WithOffset(offset *string) *GetChannelsParams
- func (o *GetChannelsParams) WithTimeout(timeout time.Duration) *GetChannelsParams
- func (o *GetChannelsParams) WithUserID(userID string) *GetChannelsParams
- func (o *GetChannelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetChannelsReader
- type GetChannelsUnauthorized
- type UpdateChannelBadRequest
- type UpdateChannelInternalServerError
- type UpdateChannelNotFound
- type UpdateChannelOK
- type UpdateChannelParams
- func (o *UpdateChannelParams) SetBody(body *ugcclientmodels.ModelsChannelRequest)
- func (o *UpdateChannelParams) SetChannelID(channelID string)
- func (o *UpdateChannelParams) SetContext(ctx context.Context)
- func (o *UpdateChannelParams) SetHTTPClient(client *http.Client)
- func (o *UpdateChannelParams) SetNamespace(namespace string)
- func (o *UpdateChannelParams) SetTimeout(timeout time.Duration)
- func (o *UpdateChannelParams) SetUserID(userID string)
- func (o *UpdateChannelParams) WithBody(body *ugcclientmodels.ModelsChannelRequest) *UpdateChannelParams
- func (o *UpdateChannelParams) WithChannelID(channelID string) *UpdateChannelParams
- func (o *UpdateChannelParams) WithContext(ctx context.Context) *UpdateChannelParams
- func (o *UpdateChannelParams) WithHTTPClient(client *http.Client) *UpdateChannelParams
- func (o *UpdateChannelParams) WithNamespace(namespace string) *UpdateChannelParams
- func (o *UpdateChannelParams) WithTimeout(timeout time.Duration) *UpdateChannelParams
- func (o *UpdateChannelParams) WithUserID(userID string) *UpdateChannelParams
- func (o *UpdateChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateChannelReader
- type UpdateChannelUnauthorized
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 nr public channel API
func (*Client) CreateChannel ¶
func (a *Client) CreateChannel(params *CreateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*CreateChannelCreated, *CreateChannelBadRequest, *CreateChannelUnauthorized, *CreateChannelInternalServerError, error)
CreateChannel creates channel
Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [CREATE]</b>
func (*Client) DeleteChannel ¶
func (a *Client) DeleteChannel(params *DeleteChannelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteChannelNoContent, *DeleteChannelUnauthorized, *DeleteChannelNotFound, *DeleteChannelInternalServerError, error)
DeleteChannel deletes channel
Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [DELETE]</b>
func (*Client) GetChannels ¶
func (a *Client) GetChannels(params *GetChannelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetChannelsOK, *GetChannelsUnauthorized, *GetChannelsNotFound, *GetChannelsInternalServerError, error)
GetChannels gets channels
Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [READ]</b>
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateChannel ¶
func (a *Client) UpdateChannel(params *UpdateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateChannelOK, *UpdateChannelBadRequest, *UpdateChannelUnauthorized, *UpdateChannelNotFound, *UpdateChannelInternalServerError, error)
UpdateChannel updates channel
Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [UPDATE]</b>
type ClientService ¶
type ClientService interface { CreateChannel(params *CreateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*CreateChannelCreated, *CreateChannelBadRequest, *CreateChannelUnauthorized, *CreateChannelInternalServerError, error) DeleteChannel(params *DeleteChannelParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteChannelNoContent, *DeleteChannelUnauthorized, *DeleteChannelNotFound, *DeleteChannelInternalServerError, error) GetChannels(params *GetChannelsParams, authInfo runtime.ClientAuthInfoWriter) (*GetChannelsOK, *GetChannelsUnauthorized, *GetChannelsNotFound, *GetChannelsInternalServerError, error) UpdateChannel(params *UpdateChannelParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateChannelOK, *UpdateChannelBadRequest, *UpdateChannelUnauthorized, *UpdateChannelNotFound, *UpdateChannelInternalServerError, 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 nr public channel API client.
type CreateChannelBadRequest ¶
type CreateChannelBadRequest struct {
Payload *ugcclientmodels.ResponseError
}
CreateChannelBadRequest handles this case with default header values.
Bad Request
func NewCreateChannelBadRequest ¶
func NewCreateChannelBadRequest() *CreateChannelBadRequest
NewCreateChannelBadRequest creates a CreateChannelBadRequest with default headers values
func (*CreateChannelBadRequest) Error ¶
func (o *CreateChannelBadRequest) Error() string
func (*CreateChannelBadRequest) GetPayload ¶
func (o *CreateChannelBadRequest) GetPayload() *ugcclientmodels.ResponseError
type CreateChannelCreated ¶
type CreateChannelCreated struct {
Payload *ugcclientmodels.ModelsChannelResponse
}
CreateChannelCreated handles this case with default header values.
Created
func NewCreateChannelCreated ¶
func NewCreateChannelCreated() *CreateChannelCreated
NewCreateChannelCreated creates a CreateChannelCreated with default headers values
func (*CreateChannelCreated) Error ¶
func (o *CreateChannelCreated) Error() string
func (*CreateChannelCreated) GetPayload ¶
func (o *CreateChannelCreated) GetPayload() *ugcclientmodels.ModelsChannelResponse
type CreateChannelInternalServerError ¶
type CreateChannelInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
CreateChannelInternalServerError handles this case with default header values.
Internal Server Error
func NewCreateChannelInternalServerError ¶
func NewCreateChannelInternalServerError() *CreateChannelInternalServerError
NewCreateChannelInternalServerError creates a CreateChannelInternalServerError with default headers values
func (*CreateChannelInternalServerError) Error ¶
func (o *CreateChannelInternalServerError) Error() string
func (*CreateChannelInternalServerError) GetPayload ¶
func (o *CreateChannelInternalServerError) GetPayload() *ugcclientmodels.ResponseError
type CreateChannelParams ¶
type CreateChannelParams struct { /*Body*/ Body *ugcclientmodels.ModelsChannelRequest /*Namespace namespace of the game */ Namespace string /*UserID userID */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateChannelParams contains all the parameters to send to the API endpoint for the create channel operation typically these are written to a http.Request
func NewCreateChannelParams ¶
func NewCreateChannelParams() *CreateChannelParams
NewCreateChannelParams creates a new CreateChannelParams object with the default values initialized.
func NewCreateChannelParamsWithContext ¶
func NewCreateChannelParamsWithContext(ctx context.Context) *CreateChannelParams
NewCreateChannelParamsWithContext creates a new CreateChannelParams object with the default values initialized, and the ability to set a context for a request
func NewCreateChannelParamsWithHTTPClient ¶
func NewCreateChannelParamsWithHTTPClient(client *http.Client) *CreateChannelParams
NewCreateChannelParamsWithHTTPClient creates a new CreateChannelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateChannelParamsWithTimeout ¶
func NewCreateChannelParamsWithTimeout(timeout time.Duration) *CreateChannelParams
NewCreateChannelParamsWithTimeout creates a new CreateChannelParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateChannelParams) SetBody ¶
func (o *CreateChannelParams) SetBody(body *ugcclientmodels.ModelsChannelRequest)
SetBody adds the body to the create channel params
func (*CreateChannelParams) SetContext ¶
func (o *CreateChannelParams) SetContext(ctx context.Context)
SetContext adds the context to the create channel params
func (*CreateChannelParams) SetHTTPClient ¶
func (o *CreateChannelParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create channel params
func (*CreateChannelParams) SetNamespace ¶
func (o *CreateChannelParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create channel params
func (*CreateChannelParams) SetTimeout ¶
func (o *CreateChannelParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create channel params
func (*CreateChannelParams) SetUserID ¶
func (o *CreateChannelParams) SetUserID(userID string)
SetUserID adds the userId to the create channel params
func (*CreateChannelParams) WithBody ¶
func (o *CreateChannelParams) WithBody(body *ugcclientmodels.ModelsChannelRequest) *CreateChannelParams
WithBody adds the body to the create channel params
func (*CreateChannelParams) WithContext ¶
func (o *CreateChannelParams) WithContext(ctx context.Context) *CreateChannelParams
WithContext adds the context to the create channel params
func (*CreateChannelParams) WithHTTPClient ¶
func (o *CreateChannelParams) WithHTTPClient(client *http.Client) *CreateChannelParams
WithHTTPClient adds the HTTPClient to the create channel params
func (*CreateChannelParams) WithNamespace ¶
func (o *CreateChannelParams) WithNamespace(namespace string) *CreateChannelParams
WithNamespace adds the namespace to the create channel params
func (*CreateChannelParams) WithTimeout ¶
func (o *CreateChannelParams) WithTimeout(timeout time.Duration) *CreateChannelParams
WithTimeout adds the timeout to the create channel params
func (*CreateChannelParams) WithUserID ¶
func (o *CreateChannelParams) WithUserID(userID string) *CreateChannelParams
WithUserID adds the userID to the create channel params
func (*CreateChannelParams) WriteToRequest ¶
func (o *CreateChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateChannelReader ¶
type CreateChannelReader struct {
// contains filtered or unexported fields
}
CreateChannelReader is a Reader for the CreateChannel structure.
func (*CreateChannelReader) ReadResponse ¶
func (o *CreateChannelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateChannelUnauthorized ¶
type CreateChannelUnauthorized struct {
}CreateChannelUnauthorized handles this case with default header values.
Unauthorized
func NewCreateChannelUnauthorized ¶
func NewCreateChannelUnauthorized() *CreateChannelUnauthorized
NewCreateChannelUnauthorized creates a CreateChannelUnauthorized with default headers values
func (*CreateChannelUnauthorized) Error ¶
func (o *CreateChannelUnauthorized) Error() string
func (*CreateChannelUnauthorized) GetPayload ¶
func (o *CreateChannelUnauthorized) GetPayload() *ugcclientmodels.ResponseError
type DeleteChannelInternalServerError ¶
type DeleteChannelInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
DeleteChannelInternalServerError handles this case with default header values.
Internal Server Error
func NewDeleteChannelInternalServerError ¶
func NewDeleteChannelInternalServerError() *DeleteChannelInternalServerError
NewDeleteChannelInternalServerError creates a DeleteChannelInternalServerError with default headers values
func (*DeleteChannelInternalServerError) Error ¶
func (o *DeleteChannelInternalServerError) Error() string
func (*DeleteChannelInternalServerError) GetPayload ¶
func (o *DeleteChannelInternalServerError) GetPayload() *ugcclientmodels.ResponseError
type DeleteChannelNoContent ¶
type DeleteChannelNoContent struct { }
DeleteChannelNoContent handles this case with default header values.
No Content
func NewDeleteChannelNoContent ¶
func NewDeleteChannelNoContent() *DeleteChannelNoContent
NewDeleteChannelNoContent creates a DeleteChannelNoContent with default headers values
func (*DeleteChannelNoContent) Error ¶
func (o *DeleteChannelNoContent) Error() string
type DeleteChannelNotFound ¶
type DeleteChannelNotFound struct {
Payload *ugcclientmodels.ResponseError
}
DeleteChannelNotFound handles this case with default header values.
Not Found
func NewDeleteChannelNotFound ¶
func NewDeleteChannelNotFound() *DeleteChannelNotFound
NewDeleteChannelNotFound creates a DeleteChannelNotFound with default headers values
func (*DeleteChannelNotFound) Error ¶
func (o *DeleteChannelNotFound) Error() string
func (*DeleteChannelNotFound) GetPayload ¶
func (o *DeleteChannelNotFound) GetPayload() *ugcclientmodels.ResponseError
type DeleteChannelParams ¶
type DeleteChannelParams struct { /*ChannelID channelID */ ChannelID string /*Namespace namespace of the game */ Namespace string /*UserID userID */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteChannelParams contains all the parameters to send to the API endpoint for the delete channel operation typically these are written to a http.Request
func NewDeleteChannelParams ¶
func NewDeleteChannelParams() *DeleteChannelParams
NewDeleteChannelParams creates a new DeleteChannelParams object with the default values initialized.
func NewDeleteChannelParamsWithContext ¶
func NewDeleteChannelParamsWithContext(ctx context.Context) *DeleteChannelParams
NewDeleteChannelParamsWithContext creates a new DeleteChannelParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteChannelParamsWithHTTPClient ¶
func NewDeleteChannelParamsWithHTTPClient(client *http.Client) *DeleteChannelParams
NewDeleteChannelParamsWithHTTPClient creates a new DeleteChannelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteChannelParamsWithTimeout ¶
func NewDeleteChannelParamsWithTimeout(timeout time.Duration) *DeleteChannelParams
NewDeleteChannelParamsWithTimeout creates a new DeleteChannelParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteChannelParams) SetChannelID ¶
func (o *DeleteChannelParams) SetChannelID(channelID string)
SetChannelID adds the channelId to the delete channel params
func (*DeleteChannelParams) SetContext ¶
func (o *DeleteChannelParams) SetContext(ctx context.Context)
SetContext adds the context to the delete channel params
func (*DeleteChannelParams) SetHTTPClient ¶
func (o *DeleteChannelParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete channel params
func (*DeleteChannelParams) SetNamespace ¶
func (o *DeleteChannelParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete channel params
func (*DeleteChannelParams) SetTimeout ¶
func (o *DeleteChannelParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete channel params
func (*DeleteChannelParams) SetUserID ¶
func (o *DeleteChannelParams) SetUserID(userID string)
SetUserID adds the userId to the delete channel params
func (*DeleteChannelParams) WithChannelID ¶
func (o *DeleteChannelParams) WithChannelID(channelID string) *DeleteChannelParams
WithChannelID adds the channelID to the delete channel params
func (*DeleteChannelParams) WithContext ¶
func (o *DeleteChannelParams) WithContext(ctx context.Context) *DeleteChannelParams
WithContext adds the context to the delete channel params
func (*DeleteChannelParams) WithHTTPClient ¶
func (o *DeleteChannelParams) WithHTTPClient(client *http.Client) *DeleteChannelParams
WithHTTPClient adds the HTTPClient to the delete channel params
func (*DeleteChannelParams) WithNamespace ¶
func (o *DeleteChannelParams) WithNamespace(namespace string) *DeleteChannelParams
WithNamespace adds the namespace to the delete channel params
func (*DeleteChannelParams) WithTimeout ¶
func (o *DeleteChannelParams) WithTimeout(timeout time.Duration) *DeleteChannelParams
WithTimeout adds the timeout to the delete channel params
func (*DeleteChannelParams) WithUserID ¶
func (o *DeleteChannelParams) WithUserID(userID string) *DeleteChannelParams
WithUserID adds the userID to the delete channel params
func (*DeleteChannelParams) WriteToRequest ¶
func (o *DeleteChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteChannelReader ¶
type DeleteChannelReader struct {
// contains filtered or unexported fields
}
DeleteChannelReader is a Reader for the DeleteChannel structure.
func (*DeleteChannelReader) ReadResponse ¶
func (o *DeleteChannelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteChannelUnauthorized ¶
type DeleteChannelUnauthorized struct {
}DeleteChannelUnauthorized handles this case with default header values.
Unauthorized
func NewDeleteChannelUnauthorized ¶
func NewDeleteChannelUnauthorized() *DeleteChannelUnauthorized
NewDeleteChannelUnauthorized creates a DeleteChannelUnauthorized with default headers values
func (*DeleteChannelUnauthorized) Error ¶
func (o *DeleteChannelUnauthorized) Error() string
func (*DeleteChannelUnauthorized) GetPayload ¶
func (o *DeleteChannelUnauthorized) GetPayload() *ugcclientmodels.ResponseError
type GetChannelsInternalServerError ¶
type GetChannelsInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
GetChannelsInternalServerError handles this case with default header values.
Internal Server Error
func NewGetChannelsInternalServerError ¶
func NewGetChannelsInternalServerError() *GetChannelsInternalServerError
NewGetChannelsInternalServerError creates a GetChannelsInternalServerError with default headers values
func (*GetChannelsInternalServerError) Error ¶
func (o *GetChannelsInternalServerError) Error() string
func (*GetChannelsInternalServerError) GetPayload ¶
func (o *GetChannelsInternalServerError) GetPayload() *ugcclientmodels.ResponseError
type GetChannelsNotFound ¶
type GetChannelsNotFound struct {
Payload *ugcclientmodels.ResponseError
}
GetChannelsNotFound handles this case with default header values.
Not Found
func NewGetChannelsNotFound ¶
func NewGetChannelsNotFound() *GetChannelsNotFound
NewGetChannelsNotFound creates a GetChannelsNotFound with default headers values
func (*GetChannelsNotFound) Error ¶
func (o *GetChannelsNotFound) Error() string
func (*GetChannelsNotFound) GetPayload ¶
func (o *GetChannelsNotFound) GetPayload() *ugcclientmodels.ResponseError
type GetChannelsOK ¶
type GetChannelsOK struct {
Payload *ugcclientmodels.ModelsPaginatedGetChannelResponse
}
GetChannelsOK handles this case with default header values.
OK
func NewGetChannelsOK ¶
func NewGetChannelsOK() *GetChannelsOK
NewGetChannelsOK creates a GetChannelsOK with default headers values
func (*GetChannelsOK) Error ¶
func (o *GetChannelsOK) Error() string
func (*GetChannelsOK) GetPayload ¶
func (o *GetChannelsOK) GetPayload() *ugcclientmodels.ModelsPaginatedGetChannelResponse
type GetChannelsParams ¶
type GetChannelsParams struct { /*Limit number of content per page */ Limit *string /*Namespace namespace of the game */ Namespace string /*Offset the offset number to retrieve */ Offset *string /*UserID userID */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetChannelsParams contains all the parameters to send to the API endpoint for the get channels operation typically these are written to a http.Request
func NewGetChannelsParams ¶
func NewGetChannelsParams() *GetChannelsParams
NewGetChannelsParams creates a new GetChannelsParams object with the default values initialized.
func NewGetChannelsParamsWithContext ¶
func NewGetChannelsParamsWithContext(ctx context.Context) *GetChannelsParams
NewGetChannelsParamsWithContext creates a new GetChannelsParams object with the default values initialized, and the ability to set a context for a request
func NewGetChannelsParamsWithHTTPClient ¶
func NewGetChannelsParamsWithHTTPClient(client *http.Client) *GetChannelsParams
NewGetChannelsParamsWithHTTPClient creates a new GetChannelsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetChannelsParamsWithTimeout ¶
func NewGetChannelsParamsWithTimeout(timeout time.Duration) *GetChannelsParams
NewGetChannelsParamsWithTimeout creates a new GetChannelsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetChannelsParams) SetContext ¶
func (o *GetChannelsParams) SetContext(ctx context.Context)
SetContext adds the context to the get channels params
func (*GetChannelsParams) SetHTTPClient ¶
func (o *GetChannelsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get channels params
func (*GetChannelsParams) SetLimit ¶
func (o *GetChannelsParams) SetLimit(limit *string)
SetLimit adds the limit to the get channels params
func (*GetChannelsParams) SetNamespace ¶
func (o *GetChannelsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get channels params
func (*GetChannelsParams) SetOffset ¶
func (o *GetChannelsParams) SetOffset(offset *string)
SetOffset adds the offset to the get channels params
func (*GetChannelsParams) SetTimeout ¶
func (o *GetChannelsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get channels params
func (*GetChannelsParams) SetUserID ¶
func (o *GetChannelsParams) SetUserID(userID string)
SetUserID adds the userId to the get channels params
func (*GetChannelsParams) WithContext ¶
func (o *GetChannelsParams) WithContext(ctx context.Context) *GetChannelsParams
WithContext adds the context to the get channels params
func (*GetChannelsParams) WithHTTPClient ¶
func (o *GetChannelsParams) WithHTTPClient(client *http.Client) *GetChannelsParams
WithHTTPClient adds the HTTPClient to the get channels params
func (*GetChannelsParams) WithLimit ¶
func (o *GetChannelsParams) WithLimit(limit *string) *GetChannelsParams
WithLimit adds the limit to the get channels params
func (*GetChannelsParams) WithNamespace ¶
func (o *GetChannelsParams) WithNamespace(namespace string) *GetChannelsParams
WithNamespace adds the namespace to the get channels params
func (*GetChannelsParams) WithOffset ¶
func (o *GetChannelsParams) WithOffset(offset *string) *GetChannelsParams
WithOffset adds the offset to the get channels params
func (*GetChannelsParams) WithTimeout ¶
func (o *GetChannelsParams) WithTimeout(timeout time.Duration) *GetChannelsParams
WithTimeout adds the timeout to the get channels params
func (*GetChannelsParams) WithUserID ¶
func (o *GetChannelsParams) WithUserID(userID string) *GetChannelsParams
WithUserID adds the userID to the get channels params
func (*GetChannelsParams) WriteToRequest ¶
func (o *GetChannelsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetChannelsReader ¶
type GetChannelsReader struct {
// contains filtered or unexported fields
}
GetChannelsReader is a Reader for the GetChannels structure.
func (*GetChannelsReader) ReadResponse ¶
func (o *GetChannelsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetChannelsUnauthorized ¶
type GetChannelsUnauthorized struct {
}GetChannelsUnauthorized handles this case with default header values.
Unauthorized
func NewGetChannelsUnauthorized ¶
func NewGetChannelsUnauthorized() *GetChannelsUnauthorized
NewGetChannelsUnauthorized creates a GetChannelsUnauthorized with default headers values
func (*GetChannelsUnauthorized) Error ¶
func (o *GetChannelsUnauthorized) Error() string
func (*GetChannelsUnauthorized) GetPayload ¶
func (o *GetChannelsUnauthorized) GetPayload() *ugcclientmodels.ResponseError
type UpdateChannelBadRequest ¶
type UpdateChannelBadRequest struct {
Payload *ugcclientmodels.ResponseError
}
UpdateChannelBadRequest handles this case with default header values.
Bad Request
func NewUpdateChannelBadRequest ¶
func NewUpdateChannelBadRequest() *UpdateChannelBadRequest
NewUpdateChannelBadRequest creates a UpdateChannelBadRequest with default headers values
func (*UpdateChannelBadRequest) Error ¶
func (o *UpdateChannelBadRequest) Error() string
func (*UpdateChannelBadRequest) GetPayload ¶
func (o *UpdateChannelBadRequest) GetPayload() *ugcclientmodels.ResponseError
type UpdateChannelInternalServerError ¶
type UpdateChannelInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
UpdateChannelInternalServerError handles this case with default header values.
Internal Server Error
func NewUpdateChannelInternalServerError ¶
func NewUpdateChannelInternalServerError() *UpdateChannelInternalServerError
NewUpdateChannelInternalServerError creates a UpdateChannelInternalServerError with default headers values
func (*UpdateChannelInternalServerError) Error ¶
func (o *UpdateChannelInternalServerError) Error() string
func (*UpdateChannelInternalServerError) GetPayload ¶
func (o *UpdateChannelInternalServerError) GetPayload() *ugcclientmodels.ResponseError
type UpdateChannelNotFound ¶
type UpdateChannelNotFound struct {
Payload *ugcclientmodels.ResponseError
}
UpdateChannelNotFound handles this case with default header values.
Not Found
func NewUpdateChannelNotFound ¶
func NewUpdateChannelNotFound() *UpdateChannelNotFound
NewUpdateChannelNotFound creates a UpdateChannelNotFound with default headers values
func (*UpdateChannelNotFound) Error ¶
func (o *UpdateChannelNotFound) Error() string
func (*UpdateChannelNotFound) GetPayload ¶
func (o *UpdateChannelNotFound) GetPayload() *ugcclientmodels.ResponseError
type UpdateChannelOK ¶
type UpdateChannelOK struct {
Payload *ugcclientmodels.ModelsChannelResponse
}
UpdateChannelOK handles this case with default header values.
OK
func NewUpdateChannelOK ¶
func NewUpdateChannelOK() *UpdateChannelOK
NewUpdateChannelOK creates a UpdateChannelOK with default headers values
func (*UpdateChannelOK) Error ¶
func (o *UpdateChannelOK) Error() string
func (*UpdateChannelOK) GetPayload ¶
func (o *UpdateChannelOK) GetPayload() *ugcclientmodels.ModelsChannelResponse
type UpdateChannelParams ¶
type UpdateChannelParams struct { /*Body*/ Body *ugcclientmodels.ModelsChannelRequest /*ChannelID channelID */ ChannelID string /*Namespace namespace of the game */ Namespace string /*UserID userID */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateChannelParams contains all the parameters to send to the API endpoint for the update channel operation typically these are written to a http.Request
func NewUpdateChannelParams ¶
func NewUpdateChannelParams() *UpdateChannelParams
NewUpdateChannelParams creates a new UpdateChannelParams object with the default values initialized.
func NewUpdateChannelParamsWithContext ¶
func NewUpdateChannelParamsWithContext(ctx context.Context) *UpdateChannelParams
NewUpdateChannelParamsWithContext creates a new UpdateChannelParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateChannelParamsWithHTTPClient ¶
func NewUpdateChannelParamsWithHTTPClient(client *http.Client) *UpdateChannelParams
NewUpdateChannelParamsWithHTTPClient creates a new UpdateChannelParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateChannelParamsWithTimeout ¶
func NewUpdateChannelParamsWithTimeout(timeout time.Duration) *UpdateChannelParams
NewUpdateChannelParamsWithTimeout creates a new UpdateChannelParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateChannelParams) SetBody ¶
func (o *UpdateChannelParams) SetBody(body *ugcclientmodels.ModelsChannelRequest)
SetBody adds the body to the update channel params
func (*UpdateChannelParams) SetChannelID ¶
func (o *UpdateChannelParams) SetChannelID(channelID string)
SetChannelID adds the channelId to the update channel params
func (*UpdateChannelParams) SetContext ¶
func (o *UpdateChannelParams) SetContext(ctx context.Context)
SetContext adds the context to the update channel params
func (*UpdateChannelParams) SetHTTPClient ¶
func (o *UpdateChannelParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update channel params
func (*UpdateChannelParams) SetNamespace ¶
func (o *UpdateChannelParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update channel params
func (*UpdateChannelParams) SetTimeout ¶
func (o *UpdateChannelParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update channel params
func (*UpdateChannelParams) SetUserID ¶
func (o *UpdateChannelParams) SetUserID(userID string)
SetUserID adds the userId to the update channel params
func (*UpdateChannelParams) WithBody ¶
func (o *UpdateChannelParams) WithBody(body *ugcclientmodels.ModelsChannelRequest) *UpdateChannelParams
WithBody adds the body to the update channel params
func (*UpdateChannelParams) WithChannelID ¶
func (o *UpdateChannelParams) WithChannelID(channelID string) *UpdateChannelParams
WithChannelID adds the channelID to the update channel params
func (*UpdateChannelParams) WithContext ¶
func (o *UpdateChannelParams) WithContext(ctx context.Context) *UpdateChannelParams
WithContext adds the context to the update channel params
func (*UpdateChannelParams) WithHTTPClient ¶
func (o *UpdateChannelParams) WithHTTPClient(client *http.Client) *UpdateChannelParams
WithHTTPClient adds the HTTPClient to the update channel params
func (*UpdateChannelParams) WithNamespace ¶
func (o *UpdateChannelParams) WithNamespace(namespace string) *UpdateChannelParams
WithNamespace adds the namespace to the update channel params
func (*UpdateChannelParams) WithTimeout ¶
func (o *UpdateChannelParams) WithTimeout(timeout time.Duration) *UpdateChannelParams
WithTimeout adds the timeout to the update channel params
func (*UpdateChannelParams) WithUserID ¶
func (o *UpdateChannelParams) WithUserID(userID string) *UpdateChannelParams
WithUserID adds the userID to the update channel params
func (*UpdateChannelParams) WriteToRequest ¶
func (o *UpdateChannelParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateChannelReader ¶
type UpdateChannelReader struct {
// contains filtered or unexported fields
}
UpdateChannelReader is a Reader for the UpdateChannel structure.
func (*UpdateChannelReader) ReadResponse ¶
func (o *UpdateChannelReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateChannelUnauthorized ¶
type UpdateChannelUnauthorized struct {
}UpdateChannelUnauthorized handles this case with default header values.
Unauthorized
func NewUpdateChannelUnauthorized ¶
func NewUpdateChannelUnauthorized() *UpdateChannelUnauthorized
NewUpdateChannelUnauthorized creates a UpdateChannelUnauthorized with default headers values
func (*UpdateChannelUnauthorized) Error ¶
func (o *UpdateChannelUnauthorized) Error() string
func (*UpdateChannelUnauthorized) GetPayload ¶
func (o *UpdateChannelUnauthorized) GetPayload() *ugcclientmodels.ResponseError