nr_public_channel

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 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 nr public channel API

func (*Client) CreateChannel

CreateChannel creates channel

Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [CREATE]</b>

func (*Client) DeleteChannel

DeleteChannel deletes channel

Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [DELETE]</b>

func (*Client) GetChannels

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

UpdateChannel updates channel

Required permission <b>NAMESPACE:{namespace}:USER:{userId}:CHANNEL [UPDATE]</b>

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

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

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 (*CreateChannelInternalServerError) GetPayload

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

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

WithBody adds the body to the create channel params

func (*CreateChannelParams) WithContext

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 {
	Payload *ugcclientmodels.ResponseError
}

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

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 (*DeleteChannelInternalServerError) GetPayload

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

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

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 {
	Payload *ugcclientmodels.ResponseError
}

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

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 (*GetChannelsInternalServerError) GetPayload

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

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

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 {
	Payload *ugcclientmodels.ResponseError
}

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

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

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 (*UpdateChannelInternalServerError) GetPayload

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

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

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

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

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

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 {
	Payload *ugcclientmodels.ResponseError
}

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

Jump to

Keyboard shortcuts

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