admin_users

package
v0.0.0-...-8d7e1f1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCreateUserBadRequest

type AdminCreateUserBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewAdminCreateUserBadRequest

func NewAdminCreateUserBadRequest() *AdminCreateUserBadRequest

NewAdminCreateUserBadRequest creates a AdminCreateUserBadRequest with default headers values

func (*AdminCreateUserBadRequest) Code

func (o *AdminCreateUserBadRequest) Code() int

Code gets the status code for the admin create user bad request response

func (*AdminCreateUserBadRequest) Error

func (o *AdminCreateUserBadRequest) Error() string

func (*AdminCreateUserBadRequest) GetPayload

func (*AdminCreateUserBadRequest) IsClientError

func (o *AdminCreateUserBadRequest) IsClientError() bool

IsClientError returns true when this admin create user bad request response has a 4xx status code

func (*AdminCreateUserBadRequest) IsCode

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

IsCode returns true when this admin create user bad request response a status code equal to that given

func (*AdminCreateUserBadRequest) IsRedirect

func (o *AdminCreateUserBadRequest) IsRedirect() bool

IsRedirect returns true when this admin create user bad request response has a 3xx status code

func (*AdminCreateUserBadRequest) IsServerError

func (o *AdminCreateUserBadRequest) IsServerError() bool

IsServerError returns true when this admin create user bad request response has a 5xx status code

func (*AdminCreateUserBadRequest) IsSuccess

func (o *AdminCreateUserBadRequest) IsSuccess() bool

IsSuccess returns true when this admin create user bad request response has a 2xx status code

func (*AdminCreateUserBadRequest) String

func (o *AdminCreateUserBadRequest) String() string

type AdminCreateUserForbidden

type AdminCreateUserForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminCreateUserForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminCreateUserForbidden

func NewAdminCreateUserForbidden() *AdminCreateUserForbidden

NewAdminCreateUserForbidden creates a AdminCreateUserForbidden with default headers values

func (*AdminCreateUserForbidden) Code

func (o *AdminCreateUserForbidden) Code() int

Code gets the status code for the admin create user forbidden response

func (*AdminCreateUserForbidden) Error

func (o *AdminCreateUserForbidden) Error() string

func (*AdminCreateUserForbidden) GetPayload

func (*AdminCreateUserForbidden) IsClientError

func (o *AdminCreateUserForbidden) IsClientError() bool

IsClientError returns true when this admin create user forbidden response has a 4xx status code

func (*AdminCreateUserForbidden) IsCode

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

IsCode returns true when this admin create user forbidden response a status code equal to that given

func (*AdminCreateUserForbidden) IsRedirect

func (o *AdminCreateUserForbidden) IsRedirect() bool

IsRedirect returns true when this admin create user forbidden response has a 3xx status code

func (*AdminCreateUserForbidden) IsServerError

func (o *AdminCreateUserForbidden) IsServerError() bool

IsServerError returns true when this admin create user forbidden response has a 5xx status code

func (*AdminCreateUserForbidden) IsSuccess

func (o *AdminCreateUserForbidden) IsSuccess() bool

IsSuccess returns true when this admin create user forbidden response has a 2xx status code

func (*AdminCreateUserForbidden) String

func (o *AdminCreateUserForbidden) String() string

type AdminCreateUserInternalServerError

type AdminCreateUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminCreateUserInternalServerError

func NewAdminCreateUserInternalServerError() *AdminCreateUserInternalServerError

NewAdminCreateUserInternalServerError creates a AdminCreateUserInternalServerError with default headers values

func (*AdminCreateUserInternalServerError) Code

Code gets the status code for the admin create user internal server error response

func (*AdminCreateUserInternalServerError) Error

func (*AdminCreateUserInternalServerError) GetPayload

func (*AdminCreateUserInternalServerError) IsClientError

func (o *AdminCreateUserInternalServerError) IsClientError() bool

IsClientError returns true when this admin create user internal server error response has a 4xx status code

func (*AdminCreateUserInternalServerError) IsCode

IsCode returns true when this admin create user internal server error response a status code equal to that given

func (*AdminCreateUserInternalServerError) IsRedirect

func (o *AdminCreateUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this admin create user internal server error response has a 3xx status code

func (*AdminCreateUserInternalServerError) IsServerError

func (o *AdminCreateUserInternalServerError) IsServerError() bool

IsServerError returns true when this admin create user internal server error response has a 5xx status code

func (*AdminCreateUserInternalServerError) IsSuccess

IsSuccess returns true when this admin create user internal server error response has a 2xx status code

func (*AdminCreateUserInternalServerError) String

type AdminCreateUserOK

type AdminCreateUserOK struct {
	Payload *models.AdminCreateUserResponse
}

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

(empty)

func NewAdminCreateUserOK

func NewAdminCreateUserOK() *AdminCreateUserOK

NewAdminCreateUserOK creates a AdminCreateUserOK with default headers values

func (*AdminCreateUserOK) Code

func (o *AdminCreateUserOK) Code() int

Code gets the status code for the admin create user Ok response

func (*AdminCreateUserOK) Error

func (o *AdminCreateUserOK) Error() string

func (*AdminCreateUserOK) GetPayload

func (*AdminCreateUserOK) IsClientError

func (o *AdminCreateUserOK) IsClientError() bool

IsClientError returns true when this admin create user Ok response has a 4xx status code

func (*AdminCreateUserOK) IsCode

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

IsCode returns true when this admin create user Ok response a status code equal to that given

func (*AdminCreateUserOK) IsRedirect

func (o *AdminCreateUserOK) IsRedirect() bool

IsRedirect returns true when this admin create user Ok response has a 3xx status code

func (*AdminCreateUserOK) IsServerError

func (o *AdminCreateUserOK) IsServerError() bool

IsServerError returns true when this admin create user Ok response has a 5xx status code

func (*AdminCreateUserOK) IsSuccess

func (o *AdminCreateUserOK) IsSuccess() bool

IsSuccess returns true when this admin create user Ok response has a 2xx status code

func (*AdminCreateUserOK) String

func (o *AdminCreateUserOK) String() string

type AdminCreateUserParams

type AdminCreateUserParams struct {

	// Body.
	Body *models.AdminCreateUserForm

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

AdminCreateUserParams contains all the parameters to send to the API endpoint

for the admin create user operation.

Typically these are written to a http.Request.

func NewAdminCreateUserParams

func NewAdminCreateUserParams() *AdminCreateUserParams

NewAdminCreateUserParams creates a new AdminCreateUserParams 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 NewAdminCreateUserParamsWithContext

func NewAdminCreateUserParamsWithContext(ctx context.Context) *AdminCreateUserParams

NewAdminCreateUserParamsWithContext creates a new AdminCreateUserParams object with the ability to set a context for a request.

func NewAdminCreateUserParamsWithHTTPClient

func NewAdminCreateUserParamsWithHTTPClient(client *http.Client) *AdminCreateUserParams

NewAdminCreateUserParamsWithHTTPClient creates a new AdminCreateUserParams object with the ability to set a custom HTTPClient for a request.

func NewAdminCreateUserParamsWithTimeout

func NewAdminCreateUserParamsWithTimeout(timeout time.Duration) *AdminCreateUserParams

NewAdminCreateUserParamsWithTimeout creates a new AdminCreateUserParams object with the ability to set a timeout on a request.

func (*AdminCreateUserParams) SetBody

SetBody adds the body to the admin create user params

func (*AdminCreateUserParams) SetContext

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

SetContext adds the context to the admin create user params

func (*AdminCreateUserParams) SetDefaults

func (o *AdminCreateUserParams) SetDefaults()

SetDefaults hydrates default values in the admin create user params (not the query body).

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

func (*AdminCreateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin create user params

func (*AdminCreateUserParams) SetTimeout

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

SetTimeout adds the timeout to the admin create user params

func (*AdminCreateUserParams) WithBody

WithBody adds the body to the admin create user params

func (*AdminCreateUserParams) WithContext

WithContext adds the context to the admin create user params

func (*AdminCreateUserParams) WithDefaults

func (o *AdminCreateUserParams) WithDefaults() *AdminCreateUserParams

WithDefaults hydrates default values in the admin create user params (not the query body).

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

func (*AdminCreateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin create user params

func (*AdminCreateUserParams) WithTimeout

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

WithTimeout adds the timeout to the admin create user params

func (*AdminCreateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminCreateUserPreconditionFailed

type AdminCreateUserPreconditionFailed struct {
	Payload *models.ErrorResponseBody
}

AdminCreateUserPreconditionFailed describes a response with status code 412, with default header values.

PreconditionFailedError

func NewAdminCreateUserPreconditionFailed

func NewAdminCreateUserPreconditionFailed() *AdminCreateUserPreconditionFailed

NewAdminCreateUserPreconditionFailed creates a AdminCreateUserPreconditionFailed with default headers values

func (*AdminCreateUserPreconditionFailed) Code

Code gets the status code for the admin create user precondition failed response

func (*AdminCreateUserPreconditionFailed) Error

func (*AdminCreateUserPreconditionFailed) GetPayload

func (*AdminCreateUserPreconditionFailed) IsClientError

func (o *AdminCreateUserPreconditionFailed) IsClientError() bool

IsClientError returns true when this admin create user precondition failed response has a 4xx status code

func (*AdminCreateUserPreconditionFailed) IsCode

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

IsCode returns true when this admin create user precondition failed response a status code equal to that given

func (*AdminCreateUserPreconditionFailed) IsRedirect

func (o *AdminCreateUserPreconditionFailed) IsRedirect() bool

IsRedirect returns true when this admin create user precondition failed response has a 3xx status code

func (*AdminCreateUserPreconditionFailed) IsServerError

func (o *AdminCreateUserPreconditionFailed) IsServerError() bool

IsServerError returns true when this admin create user precondition failed response has a 5xx status code

func (*AdminCreateUserPreconditionFailed) IsSuccess

func (o *AdminCreateUserPreconditionFailed) IsSuccess() bool

IsSuccess returns true when this admin create user precondition failed response has a 2xx status code

func (*AdminCreateUserPreconditionFailed) String

type AdminCreateUserReader

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

AdminCreateUserReader is a Reader for the AdminCreateUser structure.

func (*AdminCreateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminCreateUserUnauthorized

type AdminCreateUserUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminCreateUserUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminCreateUserUnauthorized

func NewAdminCreateUserUnauthorized() *AdminCreateUserUnauthorized

NewAdminCreateUserUnauthorized creates a AdminCreateUserUnauthorized with default headers values

func (*AdminCreateUserUnauthorized) Code

func (o *AdminCreateUserUnauthorized) Code() int

Code gets the status code for the admin create user unauthorized response

func (*AdminCreateUserUnauthorized) Error

func (*AdminCreateUserUnauthorized) GetPayload

func (*AdminCreateUserUnauthorized) IsClientError

func (o *AdminCreateUserUnauthorized) IsClientError() bool

IsClientError returns true when this admin create user unauthorized response has a 4xx status code

func (*AdminCreateUserUnauthorized) IsCode

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

IsCode returns true when this admin create user unauthorized response a status code equal to that given

func (*AdminCreateUserUnauthorized) IsRedirect

func (o *AdminCreateUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin create user unauthorized response has a 3xx status code

func (*AdminCreateUserUnauthorized) IsServerError

func (o *AdminCreateUserUnauthorized) IsServerError() bool

IsServerError returns true when this admin create user unauthorized response has a 5xx status code

func (*AdminCreateUserUnauthorized) IsSuccess

func (o *AdminCreateUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this admin create user unauthorized response has a 2xx status code

func (*AdminCreateUserUnauthorized) String

func (o *AdminCreateUserUnauthorized) String() string

type AdminDeleteUserForbidden

type AdminDeleteUserForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminDeleteUserForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminDeleteUserForbidden

func NewAdminDeleteUserForbidden() *AdminDeleteUserForbidden

NewAdminDeleteUserForbidden creates a AdminDeleteUserForbidden with default headers values

func (*AdminDeleteUserForbidden) Code

func (o *AdminDeleteUserForbidden) Code() int

Code gets the status code for the admin delete user forbidden response

func (*AdminDeleteUserForbidden) Error

func (o *AdminDeleteUserForbidden) Error() string

func (*AdminDeleteUserForbidden) GetPayload

func (*AdminDeleteUserForbidden) IsClientError

func (o *AdminDeleteUserForbidden) IsClientError() bool

IsClientError returns true when this admin delete user forbidden response has a 4xx status code

func (*AdminDeleteUserForbidden) IsCode

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

IsCode returns true when this admin delete user forbidden response a status code equal to that given

func (*AdminDeleteUserForbidden) IsRedirect

func (o *AdminDeleteUserForbidden) IsRedirect() bool

IsRedirect returns true when this admin delete user forbidden response has a 3xx status code

func (*AdminDeleteUserForbidden) IsServerError

func (o *AdminDeleteUserForbidden) IsServerError() bool

IsServerError returns true when this admin delete user forbidden response has a 5xx status code

func (*AdminDeleteUserForbidden) IsSuccess

func (o *AdminDeleteUserForbidden) IsSuccess() bool

IsSuccess returns true when this admin delete user forbidden response has a 2xx status code

func (*AdminDeleteUserForbidden) String

func (o *AdminDeleteUserForbidden) String() string

type AdminDeleteUserInternalServerError

type AdminDeleteUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminDeleteUserInternalServerError

func NewAdminDeleteUserInternalServerError() *AdminDeleteUserInternalServerError

NewAdminDeleteUserInternalServerError creates a AdminDeleteUserInternalServerError with default headers values

func (*AdminDeleteUserInternalServerError) Code

Code gets the status code for the admin delete user internal server error response

func (*AdminDeleteUserInternalServerError) Error

func (*AdminDeleteUserInternalServerError) GetPayload

func (*AdminDeleteUserInternalServerError) IsClientError

func (o *AdminDeleteUserInternalServerError) IsClientError() bool

IsClientError returns true when this admin delete user internal server error response has a 4xx status code

func (*AdminDeleteUserInternalServerError) IsCode

IsCode returns true when this admin delete user internal server error response a status code equal to that given

func (*AdminDeleteUserInternalServerError) IsRedirect

func (o *AdminDeleteUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this admin delete user internal server error response has a 3xx status code

func (*AdminDeleteUserInternalServerError) IsServerError

func (o *AdminDeleteUserInternalServerError) IsServerError() bool

IsServerError returns true when this admin delete user internal server error response has a 5xx status code

func (*AdminDeleteUserInternalServerError) IsSuccess

IsSuccess returns true when this admin delete user internal server error response has a 2xx status code

func (*AdminDeleteUserInternalServerError) String

type AdminDeleteUserNotFound

type AdminDeleteUserNotFound struct {
	Payload *models.ErrorResponseBody
}

AdminDeleteUserNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewAdminDeleteUserNotFound

func NewAdminDeleteUserNotFound() *AdminDeleteUserNotFound

NewAdminDeleteUserNotFound creates a AdminDeleteUserNotFound with default headers values

func (*AdminDeleteUserNotFound) Code

func (o *AdminDeleteUserNotFound) Code() int

Code gets the status code for the admin delete user not found response

func (*AdminDeleteUserNotFound) Error

func (o *AdminDeleteUserNotFound) Error() string

func (*AdminDeleteUserNotFound) GetPayload

func (*AdminDeleteUserNotFound) IsClientError

func (o *AdminDeleteUserNotFound) IsClientError() bool

IsClientError returns true when this admin delete user not found response has a 4xx status code

func (*AdminDeleteUserNotFound) IsCode

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

IsCode returns true when this admin delete user not found response a status code equal to that given

func (*AdminDeleteUserNotFound) IsRedirect

func (o *AdminDeleteUserNotFound) IsRedirect() bool

IsRedirect returns true when this admin delete user not found response has a 3xx status code

func (*AdminDeleteUserNotFound) IsServerError

func (o *AdminDeleteUserNotFound) IsServerError() bool

IsServerError returns true when this admin delete user not found response has a 5xx status code

func (*AdminDeleteUserNotFound) IsSuccess

func (o *AdminDeleteUserNotFound) IsSuccess() bool

IsSuccess returns true when this admin delete user not found response has a 2xx status code

func (*AdminDeleteUserNotFound) String

func (o *AdminDeleteUserNotFound) String() string

type AdminDeleteUserOK

type AdminDeleteUserOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminDeleteUserOK

func NewAdminDeleteUserOK() *AdminDeleteUserOK

NewAdminDeleteUserOK creates a AdminDeleteUserOK with default headers values

func (*AdminDeleteUserOK) Code

func (o *AdminDeleteUserOK) Code() int

Code gets the status code for the admin delete user Ok response

func (*AdminDeleteUserOK) Error

func (o *AdminDeleteUserOK) Error() string

func (*AdminDeleteUserOK) GetPayload

func (o *AdminDeleteUserOK) GetPayload() *models.SuccessResponseBody

func (*AdminDeleteUserOK) IsClientError

func (o *AdminDeleteUserOK) IsClientError() bool

IsClientError returns true when this admin delete user Ok response has a 4xx status code

func (*AdminDeleteUserOK) IsCode

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

IsCode returns true when this admin delete user Ok response a status code equal to that given

func (*AdminDeleteUserOK) IsRedirect

func (o *AdminDeleteUserOK) IsRedirect() bool

IsRedirect returns true when this admin delete user Ok response has a 3xx status code

func (*AdminDeleteUserOK) IsServerError

func (o *AdminDeleteUserOK) IsServerError() bool

IsServerError returns true when this admin delete user Ok response has a 5xx status code

func (*AdminDeleteUserOK) IsSuccess

func (o *AdminDeleteUserOK) IsSuccess() bool

IsSuccess returns true when this admin delete user Ok response has a 2xx status code

func (*AdminDeleteUserOK) String

func (o *AdminDeleteUserOK) String() string

type AdminDeleteUserParams

type AdminDeleteUserParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminDeleteUserParams contains all the parameters to send to the API endpoint

for the admin delete user operation.

Typically these are written to a http.Request.

func NewAdminDeleteUserParams

func NewAdminDeleteUserParams() *AdminDeleteUserParams

NewAdminDeleteUserParams creates a new AdminDeleteUserParams 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 NewAdminDeleteUserParamsWithContext

func NewAdminDeleteUserParamsWithContext(ctx context.Context) *AdminDeleteUserParams

NewAdminDeleteUserParamsWithContext creates a new AdminDeleteUserParams object with the ability to set a context for a request.

func NewAdminDeleteUserParamsWithHTTPClient

func NewAdminDeleteUserParamsWithHTTPClient(client *http.Client) *AdminDeleteUserParams

NewAdminDeleteUserParamsWithHTTPClient creates a new AdminDeleteUserParams object with the ability to set a custom HTTPClient for a request.

func NewAdminDeleteUserParamsWithTimeout

func NewAdminDeleteUserParamsWithTimeout(timeout time.Duration) *AdminDeleteUserParams

NewAdminDeleteUserParamsWithTimeout creates a new AdminDeleteUserParams object with the ability to set a timeout on a request.

func (*AdminDeleteUserParams) SetContext

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

SetContext adds the context to the admin delete user params

func (*AdminDeleteUserParams) SetDefaults

func (o *AdminDeleteUserParams) SetDefaults()

SetDefaults hydrates default values in the admin delete user params (not the query body).

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

func (*AdminDeleteUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin delete user params

func (*AdminDeleteUserParams) SetTimeout

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

SetTimeout adds the timeout to the admin delete user params

func (*AdminDeleteUserParams) SetUserID

func (o *AdminDeleteUserParams) SetUserID(userID int64)

SetUserID adds the userId to the admin delete user params

func (*AdminDeleteUserParams) WithContext

WithContext adds the context to the admin delete user params

func (*AdminDeleteUserParams) WithDefaults

func (o *AdminDeleteUserParams) WithDefaults() *AdminDeleteUserParams

WithDefaults hydrates default values in the admin delete user params (not the query body).

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

func (*AdminDeleteUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin delete user params

func (*AdminDeleteUserParams) WithTimeout

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

WithTimeout adds the timeout to the admin delete user params

func (*AdminDeleteUserParams) WithUserID

func (o *AdminDeleteUserParams) WithUserID(userID int64) *AdminDeleteUserParams

WithUserID adds the userID to the admin delete user params

func (*AdminDeleteUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminDeleteUserReader

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

AdminDeleteUserReader is a Reader for the AdminDeleteUser structure.

func (*AdminDeleteUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminDeleteUserUnauthorized

type AdminDeleteUserUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminDeleteUserUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminDeleteUserUnauthorized

func NewAdminDeleteUserUnauthorized() *AdminDeleteUserUnauthorized

NewAdminDeleteUserUnauthorized creates a AdminDeleteUserUnauthorized with default headers values

func (*AdminDeleteUserUnauthorized) Code

func (o *AdminDeleteUserUnauthorized) Code() int

Code gets the status code for the admin delete user unauthorized response

func (*AdminDeleteUserUnauthorized) Error

func (*AdminDeleteUserUnauthorized) GetPayload

func (*AdminDeleteUserUnauthorized) IsClientError

func (o *AdminDeleteUserUnauthorized) IsClientError() bool

IsClientError returns true when this admin delete user unauthorized response has a 4xx status code

func (*AdminDeleteUserUnauthorized) IsCode

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

IsCode returns true when this admin delete user unauthorized response a status code equal to that given

func (*AdminDeleteUserUnauthorized) IsRedirect

func (o *AdminDeleteUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin delete user unauthorized response has a 3xx status code

func (*AdminDeleteUserUnauthorized) IsServerError

func (o *AdminDeleteUserUnauthorized) IsServerError() bool

IsServerError returns true when this admin delete user unauthorized response has a 5xx status code

func (*AdminDeleteUserUnauthorized) IsSuccess

func (o *AdminDeleteUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this admin delete user unauthorized response has a 2xx status code

func (*AdminDeleteUserUnauthorized) String

func (o *AdminDeleteUserUnauthorized) String() string

type AdminDisableUserForbidden

type AdminDisableUserForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminDisableUserForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminDisableUserForbidden

func NewAdminDisableUserForbidden() *AdminDisableUserForbidden

NewAdminDisableUserForbidden creates a AdminDisableUserForbidden with default headers values

func (*AdminDisableUserForbidden) Code

func (o *AdminDisableUserForbidden) Code() int

Code gets the status code for the admin disable user forbidden response

func (*AdminDisableUserForbidden) Error

func (o *AdminDisableUserForbidden) Error() string

func (*AdminDisableUserForbidden) GetPayload

func (*AdminDisableUserForbidden) IsClientError

func (o *AdminDisableUserForbidden) IsClientError() bool

IsClientError returns true when this admin disable user forbidden response has a 4xx status code

func (*AdminDisableUserForbidden) IsCode

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

IsCode returns true when this admin disable user forbidden response a status code equal to that given

func (*AdminDisableUserForbidden) IsRedirect

func (o *AdminDisableUserForbidden) IsRedirect() bool

IsRedirect returns true when this admin disable user forbidden response has a 3xx status code

func (*AdminDisableUserForbidden) IsServerError

func (o *AdminDisableUserForbidden) IsServerError() bool

IsServerError returns true when this admin disable user forbidden response has a 5xx status code

func (*AdminDisableUserForbidden) IsSuccess

func (o *AdminDisableUserForbidden) IsSuccess() bool

IsSuccess returns true when this admin disable user forbidden response has a 2xx status code

func (*AdminDisableUserForbidden) String

func (o *AdminDisableUserForbidden) String() string

type AdminDisableUserInternalServerError

type AdminDisableUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminDisableUserInternalServerError

func NewAdminDisableUserInternalServerError() *AdminDisableUserInternalServerError

NewAdminDisableUserInternalServerError creates a AdminDisableUserInternalServerError with default headers values

func (*AdminDisableUserInternalServerError) Code

Code gets the status code for the admin disable user internal server error response

func (*AdminDisableUserInternalServerError) Error

func (*AdminDisableUserInternalServerError) GetPayload

func (*AdminDisableUserInternalServerError) IsClientError

func (o *AdminDisableUserInternalServerError) IsClientError() bool

IsClientError returns true when this admin disable user internal server error response has a 4xx status code

func (*AdminDisableUserInternalServerError) IsCode

IsCode returns true when this admin disable user internal server error response a status code equal to that given

func (*AdminDisableUserInternalServerError) IsRedirect

func (o *AdminDisableUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this admin disable user internal server error response has a 3xx status code

func (*AdminDisableUserInternalServerError) IsServerError

func (o *AdminDisableUserInternalServerError) IsServerError() bool

IsServerError returns true when this admin disable user internal server error response has a 5xx status code

func (*AdminDisableUserInternalServerError) IsSuccess

IsSuccess returns true when this admin disable user internal server error response has a 2xx status code

func (*AdminDisableUserInternalServerError) String

type AdminDisableUserNotFound

type AdminDisableUserNotFound struct {
	Payload *models.ErrorResponseBody
}

AdminDisableUserNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewAdminDisableUserNotFound

func NewAdminDisableUserNotFound() *AdminDisableUserNotFound

NewAdminDisableUserNotFound creates a AdminDisableUserNotFound with default headers values

func (*AdminDisableUserNotFound) Code

func (o *AdminDisableUserNotFound) Code() int

Code gets the status code for the admin disable user not found response

func (*AdminDisableUserNotFound) Error

func (o *AdminDisableUserNotFound) Error() string

func (*AdminDisableUserNotFound) GetPayload

func (*AdminDisableUserNotFound) IsClientError

func (o *AdminDisableUserNotFound) IsClientError() bool

IsClientError returns true when this admin disable user not found response has a 4xx status code

func (*AdminDisableUserNotFound) IsCode

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

IsCode returns true when this admin disable user not found response a status code equal to that given

func (*AdminDisableUserNotFound) IsRedirect

func (o *AdminDisableUserNotFound) IsRedirect() bool

IsRedirect returns true when this admin disable user not found response has a 3xx status code

func (*AdminDisableUserNotFound) IsServerError

func (o *AdminDisableUserNotFound) IsServerError() bool

IsServerError returns true when this admin disable user not found response has a 5xx status code

func (*AdminDisableUserNotFound) IsSuccess

func (o *AdminDisableUserNotFound) IsSuccess() bool

IsSuccess returns true when this admin disable user not found response has a 2xx status code

func (*AdminDisableUserNotFound) String

func (o *AdminDisableUserNotFound) String() string

type AdminDisableUserOK

type AdminDisableUserOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminDisableUserOK

func NewAdminDisableUserOK() *AdminDisableUserOK

NewAdminDisableUserOK creates a AdminDisableUserOK with default headers values

func (*AdminDisableUserOK) Code

func (o *AdminDisableUserOK) Code() int

Code gets the status code for the admin disable user Ok response

func (*AdminDisableUserOK) Error

func (o *AdminDisableUserOK) Error() string

func (*AdminDisableUserOK) GetPayload

func (*AdminDisableUserOK) IsClientError

func (o *AdminDisableUserOK) IsClientError() bool

IsClientError returns true when this admin disable user Ok response has a 4xx status code

func (*AdminDisableUserOK) IsCode

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

IsCode returns true when this admin disable user Ok response a status code equal to that given

func (*AdminDisableUserOK) IsRedirect

func (o *AdminDisableUserOK) IsRedirect() bool

IsRedirect returns true when this admin disable user Ok response has a 3xx status code

func (*AdminDisableUserOK) IsServerError

func (o *AdminDisableUserOK) IsServerError() bool

IsServerError returns true when this admin disable user Ok response has a 5xx status code

func (*AdminDisableUserOK) IsSuccess

func (o *AdminDisableUserOK) IsSuccess() bool

IsSuccess returns true when this admin disable user Ok response has a 2xx status code

func (*AdminDisableUserOK) String

func (o *AdminDisableUserOK) String() string

type AdminDisableUserParams

type AdminDisableUserParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminDisableUserParams contains all the parameters to send to the API endpoint

for the admin disable user operation.

Typically these are written to a http.Request.

func NewAdminDisableUserParams

func NewAdminDisableUserParams() *AdminDisableUserParams

NewAdminDisableUserParams creates a new AdminDisableUserParams 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 NewAdminDisableUserParamsWithContext

func NewAdminDisableUserParamsWithContext(ctx context.Context) *AdminDisableUserParams

NewAdminDisableUserParamsWithContext creates a new AdminDisableUserParams object with the ability to set a context for a request.

func NewAdminDisableUserParamsWithHTTPClient

func NewAdminDisableUserParamsWithHTTPClient(client *http.Client) *AdminDisableUserParams

NewAdminDisableUserParamsWithHTTPClient creates a new AdminDisableUserParams object with the ability to set a custom HTTPClient for a request.

func NewAdminDisableUserParamsWithTimeout

func NewAdminDisableUserParamsWithTimeout(timeout time.Duration) *AdminDisableUserParams

NewAdminDisableUserParamsWithTimeout creates a new AdminDisableUserParams object with the ability to set a timeout on a request.

func (*AdminDisableUserParams) SetContext

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

SetContext adds the context to the admin disable user params

func (*AdminDisableUserParams) SetDefaults

func (o *AdminDisableUserParams) SetDefaults()

SetDefaults hydrates default values in the admin disable user params (not the query body).

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

func (*AdminDisableUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin disable user params

func (*AdminDisableUserParams) SetTimeout

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

SetTimeout adds the timeout to the admin disable user params

func (*AdminDisableUserParams) SetUserID

func (o *AdminDisableUserParams) SetUserID(userID int64)

SetUserID adds the userId to the admin disable user params

func (*AdminDisableUserParams) WithContext

WithContext adds the context to the admin disable user params

func (*AdminDisableUserParams) WithDefaults

WithDefaults hydrates default values in the admin disable user params (not the query body).

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

func (*AdminDisableUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin disable user params

func (*AdminDisableUserParams) WithTimeout

WithTimeout adds the timeout to the admin disable user params

func (*AdminDisableUserParams) WithUserID

func (o *AdminDisableUserParams) WithUserID(userID int64) *AdminDisableUserParams

WithUserID adds the userID to the admin disable user params

func (*AdminDisableUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminDisableUserReader

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

AdminDisableUserReader is a Reader for the AdminDisableUser structure.

func (*AdminDisableUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminDisableUserUnauthorized

type AdminDisableUserUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminDisableUserUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminDisableUserUnauthorized

func NewAdminDisableUserUnauthorized() *AdminDisableUserUnauthorized

NewAdminDisableUserUnauthorized creates a AdminDisableUserUnauthorized with default headers values

func (*AdminDisableUserUnauthorized) Code

Code gets the status code for the admin disable user unauthorized response

func (*AdminDisableUserUnauthorized) Error

func (*AdminDisableUserUnauthorized) GetPayload

func (*AdminDisableUserUnauthorized) IsClientError

func (o *AdminDisableUserUnauthorized) IsClientError() bool

IsClientError returns true when this admin disable user unauthorized response has a 4xx status code

func (*AdminDisableUserUnauthorized) IsCode

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

IsCode returns true when this admin disable user unauthorized response a status code equal to that given

func (*AdminDisableUserUnauthorized) IsRedirect

func (o *AdminDisableUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin disable user unauthorized response has a 3xx status code

func (*AdminDisableUserUnauthorized) IsServerError

func (o *AdminDisableUserUnauthorized) IsServerError() bool

IsServerError returns true when this admin disable user unauthorized response has a 5xx status code

func (*AdminDisableUserUnauthorized) IsSuccess

func (o *AdminDisableUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this admin disable user unauthorized response has a 2xx status code

func (*AdminDisableUserUnauthorized) String

type AdminEnableUserForbidden

type AdminEnableUserForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminEnableUserForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminEnableUserForbidden

func NewAdminEnableUserForbidden() *AdminEnableUserForbidden

NewAdminEnableUserForbidden creates a AdminEnableUserForbidden with default headers values

func (*AdminEnableUserForbidden) Code

func (o *AdminEnableUserForbidden) Code() int

Code gets the status code for the admin enable user forbidden response

func (*AdminEnableUserForbidden) Error

func (o *AdminEnableUserForbidden) Error() string

func (*AdminEnableUserForbidden) GetPayload

func (*AdminEnableUserForbidden) IsClientError

func (o *AdminEnableUserForbidden) IsClientError() bool

IsClientError returns true when this admin enable user forbidden response has a 4xx status code

func (*AdminEnableUserForbidden) IsCode

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

IsCode returns true when this admin enable user forbidden response a status code equal to that given

func (*AdminEnableUserForbidden) IsRedirect

func (o *AdminEnableUserForbidden) IsRedirect() bool

IsRedirect returns true when this admin enable user forbidden response has a 3xx status code

func (*AdminEnableUserForbidden) IsServerError

func (o *AdminEnableUserForbidden) IsServerError() bool

IsServerError returns true when this admin enable user forbidden response has a 5xx status code

func (*AdminEnableUserForbidden) IsSuccess

func (o *AdminEnableUserForbidden) IsSuccess() bool

IsSuccess returns true when this admin enable user forbidden response has a 2xx status code

func (*AdminEnableUserForbidden) String

func (o *AdminEnableUserForbidden) String() string

type AdminEnableUserInternalServerError

type AdminEnableUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminEnableUserInternalServerError

func NewAdminEnableUserInternalServerError() *AdminEnableUserInternalServerError

NewAdminEnableUserInternalServerError creates a AdminEnableUserInternalServerError with default headers values

func (*AdminEnableUserInternalServerError) Code

Code gets the status code for the admin enable user internal server error response

func (*AdminEnableUserInternalServerError) Error

func (*AdminEnableUserInternalServerError) GetPayload

func (*AdminEnableUserInternalServerError) IsClientError

func (o *AdminEnableUserInternalServerError) IsClientError() bool

IsClientError returns true when this admin enable user internal server error response has a 4xx status code

func (*AdminEnableUserInternalServerError) IsCode

IsCode returns true when this admin enable user internal server error response a status code equal to that given

func (*AdminEnableUserInternalServerError) IsRedirect

func (o *AdminEnableUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this admin enable user internal server error response has a 3xx status code

func (*AdminEnableUserInternalServerError) IsServerError

func (o *AdminEnableUserInternalServerError) IsServerError() bool

IsServerError returns true when this admin enable user internal server error response has a 5xx status code

func (*AdminEnableUserInternalServerError) IsSuccess

IsSuccess returns true when this admin enable user internal server error response has a 2xx status code

func (*AdminEnableUserInternalServerError) String

type AdminEnableUserNotFound

type AdminEnableUserNotFound struct {
	Payload *models.ErrorResponseBody
}

AdminEnableUserNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewAdminEnableUserNotFound

func NewAdminEnableUserNotFound() *AdminEnableUserNotFound

NewAdminEnableUserNotFound creates a AdminEnableUserNotFound with default headers values

func (*AdminEnableUserNotFound) Code

func (o *AdminEnableUserNotFound) Code() int

Code gets the status code for the admin enable user not found response

func (*AdminEnableUserNotFound) Error

func (o *AdminEnableUserNotFound) Error() string

func (*AdminEnableUserNotFound) GetPayload

func (*AdminEnableUserNotFound) IsClientError

func (o *AdminEnableUserNotFound) IsClientError() bool

IsClientError returns true when this admin enable user not found response has a 4xx status code

func (*AdminEnableUserNotFound) IsCode

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

IsCode returns true when this admin enable user not found response a status code equal to that given

func (*AdminEnableUserNotFound) IsRedirect

func (o *AdminEnableUserNotFound) IsRedirect() bool

IsRedirect returns true when this admin enable user not found response has a 3xx status code

func (*AdminEnableUserNotFound) IsServerError

func (o *AdminEnableUserNotFound) IsServerError() bool

IsServerError returns true when this admin enable user not found response has a 5xx status code

func (*AdminEnableUserNotFound) IsSuccess

func (o *AdminEnableUserNotFound) IsSuccess() bool

IsSuccess returns true when this admin enable user not found response has a 2xx status code

func (*AdminEnableUserNotFound) String

func (o *AdminEnableUserNotFound) String() string

type AdminEnableUserOK

type AdminEnableUserOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminEnableUserOK

func NewAdminEnableUserOK() *AdminEnableUserOK

NewAdminEnableUserOK creates a AdminEnableUserOK with default headers values

func (*AdminEnableUserOK) Code

func (o *AdminEnableUserOK) Code() int

Code gets the status code for the admin enable user Ok response

func (*AdminEnableUserOK) Error

func (o *AdminEnableUserOK) Error() string

func (*AdminEnableUserOK) GetPayload

func (o *AdminEnableUserOK) GetPayload() *models.SuccessResponseBody

func (*AdminEnableUserOK) IsClientError

func (o *AdminEnableUserOK) IsClientError() bool

IsClientError returns true when this admin enable user Ok response has a 4xx status code

func (*AdminEnableUserOK) IsCode

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

IsCode returns true when this admin enable user Ok response a status code equal to that given

func (*AdminEnableUserOK) IsRedirect

func (o *AdminEnableUserOK) IsRedirect() bool

IsRedirect returns true when this admin enable user Ok response has a 3xx status code

func (*AdminEnableUserOK) IsServerError

func (o *AdminEnableUserOK) IsServerError() bool

IsServerError returns true when this admin enable user Ok response has a 5xx status code

func (*AdminEnableUserOK) IsSuccess

func (o *AdminEnableUserOK) IsSuccess() bool

IsSuccess returns true when this admin enable user Ok response has a 2xx status code

func (*AdminEnableUserOK) String

func (o *AdminEnableUserOK) String() string

type AdminEnableUserParams

type AdminEnableUserParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminEnableUserParams contains all the parameters to send to the API endpoint

for the admin enable user operation.

Typically these are written to a http.Request.

func NewAdminEnableUserParams

func NewAdminEnableUserParams() *AdminEnableUserParams

NewAdminEnableUserParams creates a new AdminEnableUserParams 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 NewAdminEnableUserParamsWithContext

func NewAdminEnableUserParamsWithContext(ctx context.Context) *AdminEnableUserParams

NewAdminEnableUserParamsWithContext creates a new AdminEnableUserParams object with the ability to set a context for a request.

func NewAdminEnableUserParamsWithHTTPClient

func NewAdminEnableUserParamsWithHTTPClient(client *http.Client) *AdminEnableUserParams

NewAdminEnableUserParamsWithHTTPClient creates a new AdminEnableUserParams object with the ability to set a custom HTTPClient for a request.

func NewAdminEnableUserParamsWithTimeout

func NewAdminEnableUserParamsWithTimeout(timeout time.Duration) *AdminEnableUserParams

NewAdminEnableUserParamsWithTimeout creates a new AdminEnableUserParams object with the ability to set a timeout on a request.

func (*AdminEnableUserParams) SetContext

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

SetContext adds the context to the admin enable user params

func (*AdminEnableUserParams) SetDefaults

func (o *AdminEnableUserParams) SetDefaults()

SetDefaults hydrates default values in the admin enable user params (not the query body).

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

func (*AdminEnableUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin enable user params

func (*AdminEnableUserParams) SetTimeout

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

SetTimeout adds the timeout to the admin enable user params

func (*AdminEnableUserParams) SetUserID

func (o *AdminEnableUserParams) SetUserID(userID int64)

SetUserID adds the userId to the admin enable user params

func (*AdminEnableUserParams) WithContext

WithContext adds the context to the admin enable user params

func (*AdminEnableUserParams) WithDefaults

func (o *AdminEnableUserParams) WithDefaults() *AdminEnableUserParams

WithDefaults hydrates default values in the admin enable user params (not the query body).

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

func (*AdminEnableUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin enable user params

func (*AdminEnableUserParams) WithTimeout

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

WithTimeout adds the timeout to the admin enable user params

func (*AdminEnableUserParams) WithUserID

func (o *AdminEnableUserParams) WithUserID(userID int64) *AdminEnableUserParams

WithUserID adds the userID to the admin enable user params

func (*AdminEnableUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminEnableUserReader

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

AdminEnableUserReader is a Reader for the AdminEnableUser structure.

func (*AdminEnableUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminEnableUserUnauthorized

type AdminEnableUserUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminEnableUserUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminEnableUserUnauthorized

func NewAdminEnableUserUnauthorized() *AdminEnableUserUnauthorized

NewAdminEnableUserUnauthorized creates a AdminEnableUserUnauthorized with default headers values

func (*AdminEnableUserUnauthorized) Code

func (o *AdminEnableUserUnauthorized) Code() int

Code gets the status code for the admin enable user unauthorized response

func (*AdminEnableUserUnauthorized) Error

func (*AdminEnableUserUnauthorized) GetPayload

func (*AdminEnableUserUnauthorized) IsClientError

func (o *AdminEnableUserUnauthorized) IsClientError() bool

IsClientError returns true when this admin enable user unauthorized response has a 4xx status code

func (*AdminEnableUserUnauthorized) IsCode

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

IsCode returns true when this admin enable user unauthorized response a status code equal to that given

func (*AdminEnableUserUnauthorized) IsRedirect

func (o *AdminEnableUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin enable user unauthorized response has a 3xx status code

func (*AdminEnableUserUnauthorized) IsServerError

func (o *AdminEnableUserUnauthorized) IsServerError() bool

IsServerError returns true when this admin enable user unauthorized response has a 5xx status code

func (*AdminEnableUserUnauthorized) IsSuccess

func (o *AdminEnableUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this admin enable user unauthorized response has a 2xx status code

func (*AdminEnableUserUnauthorized) String

func (o *AdminEnableUserUnauthorized) String() string

type AdminGetUserAuthTokensForbidden

type AdminGetUserAuthTokensForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminGetUserAuthTokensForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminGetUserAuthTokensForbidden

func NewAdminGetUserAuthTokensForbidden() *AdminGetUserAuthTokensForbidden

NewAdminGetUserAuthTokensForbidden creates a AdminGetUserAuthTokensForbidden with default headers values

func (*AdminGetUserAuthTokensForbidden) Code

Code gets the status code for the admin get user auth tokens forbidden response

func (*AdminGetUserAuthTokensForbidden) Error

func (*AdminGetUserAuthTokensForbidden) GetPayload

func (*AdminGetUserAuthTokensForbidden) IsClientError

func (o *AdminGetUserAuthTokensForbidden) IsClientError() bool

IsClientError returns true when this admin get user auth tokens forbidden response has a 4xx status code

func (*AdminGetUserAuthTokensForbidden) IsCode

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

IsCode returns true when this admin get user auth tokens forbidden response a status code equal to that given

func (*AdminGetUserAuthTokensForbidden) IsRedirect

func (o *AdminGetUserAuthTokensForbidden) IsRedirect() bool

IsRedirect returns true when this admin get user auth tokens forbidden response has a 3xx status code

func (*AdminGetUserAuthTokensForbidden) IsServerError

func (o *AdminGetUserAuthTokensForbidden) IsServerError() bool

IsServerError returns true when this admin get user auth tokens forbidden response has a 5xx status code

func (*AdminGetUserAuthTokensForbidden) IsSuccess

func (o *AdminGetUserAuthTokensForbidden) IsSuccess() bool

IsSuccess returns true when this admin get user auth tokens forbidden response has a 2xx status code

func (*AdminGetUserAuthTokensForbidden) String

type AdminGetUserAuthTokensInternalServerError

type AdminGetUserAuthTokensInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminGetUserAuthTokensInternalServerError

func NewAdminGetUserAuthTokensInternalServerError() *AdminGetUserAuthTokensInternalServerError

NewAdminGetUserAuthTokensInternalServerError creates a AdminGetUserAuthTokensInternalServerError with default headers values

func (*AdminGetUserAuthTokensInternalServerError) Code

Code gets the status code for the admin get user auth tokens internal server error response

func (*AdminGetUserAuthTokensInternalServerError) Error

func (*AdminGetUserAuthTokensInternalServerError) GetPayload

func (*AdminGetUserAuthTokensInternalServerError) IsClientError

IsClientError returns true when this admin get user auth tokens internal server error response has a 4xx status code

func (*AdminGetUserAuthTokensInternalServerError) IsCode

IsCode returns true when this admin get user auth tokens internal server error response a status code equal to that given

func (*AdminGetUserAuthTokensInternalServerError) IsRedirect

IsRedirect returns true when this admin get user auth tokens internal server error response has a 3xx status code

func (*AdminGetUserAuthTokensInternalServerError) IsServerError

IsServerError returns true when this admin get user auth tokens internal server error response has a 5xx status code

func (*AdminGetUserAuthTokensInternalServerError) IsSuccess

IsSuccess returns true when this admin get user auth tokens internal server error response has a 2xx status code

func (*AdminGetUserAuthTokensInternalServerError) String

type AdminGetUserAuthTokensOK

type AdminGetUserAuthTokensOK struct {
	Payload []*models.UserToken
}

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

(empty)

func NewAdminGetUserAuthTokensOK

func NewAdminGetUserAuthTokensOK() *AdminGetUserAuthTokensOK

NewAdminGetUserAuthTokensOK creates a AdminGetUserAuthTokensOK with default headers values

func (*AdminGetUserAuthTokensOK) Code

func (o *AdminGetUserAuthTokensOK) Code() int

Code gets the status code for the admin get user auth tokens Ok response

func (*AdminGetUserAuthTokensOK) Error

func (o *AdminGetUserAuthTokensOK) Error() string

func (*AdminGetUserAuthTokensOK) GetPayload

func (o *AdminGetUserAuthTokensOK) GetPayload() []*models.UserToken

func (*AdminGetUserAuthTokensOK) IsClientError

func (o *AdminGetUserAuthTokensOK) IsClientError() bool

IsClientError returns true when this admin get user auth tokens Ok response has a 4xx status code

func (*AdminGetUserAuthTokensOK) IsCode

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

IsCode returns true when this admin get user auth tokens Ok response a status code equal to that given

func (*AdminGetUserAuthTokensOK) IsRedirect

func (o *AdminGetUserAuthTokensOK) IsRedirect() bool

IsRedirect returns true when this admin get user auth tokens Ok response has a 3xx status code

func (*AdminGetUserAuthTokensOK) IsServerError

func (o *AdminGetUserAuthTokensOK) IsServerError() bool

IsServerError returns true when this admin get user auth tokens Ok response has a 5xx status code

func (*AdminGetUserAuthTokensOK) IsSuccess

func (o *AdminGetUserAuthTokensOK) IsSuccess() bool

IsSuccess returns true when this admin get user auth tokens Ok response has a 2xx status code

func (*AdminGetUserAuthTokensOK) String

func (o *AdminGetUserAuthTokensOK) String() string

type AdminGetUserAuthTokensParams

type AdminGetUserAuthTokensParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminGetUserAuthTokensParams contains all the parameters to send to the API endpoint

for the admin get user auth tokens operation.

Typically these are written to a http.Request.

func NewAdminGetUserAuthTokensParams

func NewAdminGetUserAuthTokensParams() *AdminGetUserAuthTokensParams

NewAdminGetUserAuthTokensParams creates a new AdminGetUserAuthTokensParams 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 NewAdminGetUserAuthTokensParamsWithContext

func NewAdminGetUserAuthTokensParamsWithContext(ctx context.Context) *AdminGetUserAuthTokensParams

NewAdminGetUserAuthTokensParamsWithContext creates a new AdminGetUserAuthTokensParams object with the ability to set a context for a request.

func NewAdminGetUserAuthTokensParamsWithHTTPClient

func NewAdminGetUserAuthTokensParamsWithHTTPClient(client *http.Client) *AdminGetUserAuthTokensParams

NewAdminGetUserAuthTokensParamsWithHTTPClient creates a new AdminGetUserAuthTokensParams object with the ability to set a custom HTTPClient for a request.

func NewAdminGetUserAuthTokensParamsWithTimeout

func NewAdminGetUserAuthTokensParamsWithTimeout(timeout time.Duration) *AdminGetUserAuthTokensParams

NewAdminGetUserAuthTokensParamsWithTimeout creates a new AdminGetUserAuthTokensParams object with the ability to set a timeout on a request.

func (*AdminGetUserAuthTokensParams) SetContext

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

SetContext adds the context to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) SetDefaults

func (o *AdminGetUserAuthTokensParams) SetDefaults()

SetDefaults hydrates default values in the admin get user auth tokens params (not the query body).

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

func (*AdminGetUserAuthTokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) SetTimeout

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

SetTimeout adds the timeout to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) SetUserID

func (o *AdminGetUserAuthTokensParams) SetUserID(userID int64)

SetUserID adds the userId to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) WithContext

WithContext adds the context to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) WithDefaults

WithDefaults hydrates default values in the admin get user auth tokens params (not the query body).

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

func (*AdminGetUserAuthTokensParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) WithTimeout

WithTimeout adds the timeout to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) WithUserID

WithUserID adds the userID to the admin get user auth tokens params

func (*AdminGetUserAuthTokensParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetUserAuthTokensReader

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

AdminGetUserAuthTokensReader is a Reader for the AdminGetUserAuthTokens structure.

func (*AdminGetUserAuthTokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetUserAuthTokensUnauthorized

type AdminGetUserAuthTokensUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminGetUserAuthTokensUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminGetUserAuthTokensUnauthorized

func NewAdminGetUserAuthTokensUnauthorized() *AdminGetUserAuthTokensUnauthorized

NewAdminGetUserAuthTokensUnauthorized creates a AdminGetUserAuthTokensUnauthorized with default headers values

func (*AdminGetUserAuthTokensUnauthorized) Code

Code gets the status code for the admin get user auth tokens unauthorized response

func (*AdminGetUserAuthTokensUnauthorized) Error

func (*AdminGetUserAuthTokensUnauthorized) GetPayload

func (*AdminGetUserAuthTokensUnauthorized) IsClientError

func (o *AdminGetUserAuthTokensUnauthorized) IsClientError() bool

IsClientError returns true when this admin get user auth tokens unauthorized response has a 4xx status code

func (*AdminGetUserAuthTokensUnauthorized) IsCode

IsCode returns true when this admin get user auth tokens unauthorized response a status code equal to that given

func (*AdminGetUserAuthTokensUnauthorized) IsRedirect

func (o *AdminGetUserAuthTokensUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin get user auth tokens unauthorized response has a 3xx status code

func (*AdminGetUserAuthTokensUnauthorized) IsServerError

func (o *AdminGetUserAuthTokensUnauthorized) IsServerError() bool

IsServerError returns true when this admin get user auth tokens unauthorized response has a 5xx status code

func (*AdminGetUserAuthTokensUnauthorized) IsSuccess

IsSuccess returns true when this admin get user auth tokens unauthorized response has a 2xx status code

func (*AdminGetUserAuthTokensUnauthorized) String

type AdminLogoutUserBadRequest

type AdminLogoutUserBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewAdminLogoutUserBadRequest

func NewAdminLogoutUserBadRequest() *AdminLogoutUserBadRequest

NewAdminLogoutUserBadRequest creates a AdminLogoutUserBadRequest with default headers values

func (*AdminLogoutUserBadRequest) Code

func (o *AdminLogoutUserBadRequest) Code() int

Code gets the status code for the admin logout user bad request response

func (*AdminLogoutUserBadRequest) Error

func (o *AdminLogoutUserBadRequest) Error() string

func (*AdminLogoutUserBadRequest) GetPayload

func (*AdminLogoutUserBadRequest) IsClientError

func (o *AdminLogoutUserBadRequest) IsClientError() bool

IsClientError returns true when this admin logout user bad request response has a 4xx status code

func (*AdminLogoutUserBadRequest) IsCode

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

IsCode returns true when this admin logout user bad request response a status code equal to that given

func (*AdminLogoutUserBadRequest) IsRedirect

func (o *AdminLogoutUserBadRequest) IsRedirect() bool

IsRedirect returns true when this admin logout user bad request response has a 3xx status code

func (*AdminLogoutUserBadRequest) IsServerError

func (o *AdminLogoutUserBadRequest) IsServerError() bool

IsServerError returns true when this admin logout user bad request response has a 5xx status code

func (*AdminLogoutUserBadRequest) IsSuccess

func (o *AdminLogoutUserBadRequest) IsSuccess() bool

IsSuccess returns true when this admin logout user bad request response has a 2xx status code

func (*AdminLogoutUserBadRequest) String

func (o *AdminLogoutUserBadRequest) String() string

type AdminLogoutUserForbidden

type AdminLogoutUserForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminLogoutUserForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminLogoutUserForbidden

func NewAdminLogoutUserForbidden() *AdminLogoutUserForbidden

NewAdminLogoutUserForbidden creates a AdminLogoutUserForbidden with default headers values

func (*AdminLogoutUserForbidden) Code

func (o *AdminLogoutUserForbidden) Code() int

Code gets the status code for the admin logout user forbidden response

func (*AdminLogoutUserForbidden) Error

func (o *AdminLogoutUserForbidden) Error() string

func (*AdminLogoutUserForbidden) GetPayload

func (*AdminLogoutUserForbidden) IsClientError

func (o *AdminLogoutUserForbidden) IsClientError() bool

IsClientError returns true when this admin logout user forbidden response has a 4xx status code

func (*AdminLogoutUserForbidden) IsCode

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

IsCode returns true when this admin logout user forbidden response a status code equal to that given

func (*AdminLogoutUserForbidden) IsRedirect

func (o *AdminLogoutUserForbidden) IsRedirect() bool

IsRedirect returns true when this admin logout user forbidden response has a 3xx status code

func (*AdminLogoutUserForbidden) IsServerError

func (o *AdminLogoutUserForbidden) IsServerError() bool

IsServerError returns true when this admin logout user forbidden response has a 5xx status code

func (*AdminLogoutUserForbidden) IsSuccess

func (o *AdminLogoutUserForbidden) IsSuccess() bool

IsSuccess returns true when this admin logout user forbidden response has a 2xx status code

func (*AdminLogoutUserForbidden) String

func (o *AdminLogoutUserForbidden) String() string

type AdminLogoutUserInternalServerError

type AdminLogoutUserInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminLogoutUserInternalServerError

func NewAdminLogoutUserInternalServerError() *AdminLogoutUserInternalServerError

NewAdminLogoutUserInternalServerError creates a AdminLogoutUserInternalServerError with default headers values

func (*AdminLogoutUserInternalServerError) Code

Code gets the status code for the admin logout user internal server error response

func (*AdminLogoutUserInternalServerError) Error

func (*AdminLogoutUserInternalServerError) GetPayload

func (*AdminLogoutUserInternalServerError) IsClientError

func (o *AdminLogoutUserInternalServerError) IsClientError() bool

IsClientError returns true when this admin logout user internal server error response has a 4xx status code

func (*AdminLogoutUserInternalServerError) IsCode

IsCode returns true when this admin logout user internal server error response a status code equal to that given

func (*AdminLogoutUserInternalServerError) IsRedirect

func (o *AdminLogoutUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this admin logout user internal server error response has a 3xx status code

func (*AdminLogoutUserInternalServerError) IsServerError

func (o *AdminLogoutUserInternalServerError) IsServerError() bool

IsServerError returns true when this admin logout user internal server error response has a 5xx status code

func (*AdminLogoutUserInternalServerError) IsSuccess

IsSuccess returns true when this admin logout user internal server error response has a 2xx status code

func (*AdminLogoutUserInternalServerError) String

type AdminLogoutUserNotFound

type AdminLogoutUserNotFound struct {
	Payload *models.ErrorResponseBody
}

AdminLogoutUserNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewAdminLogoutUserNotFound

func NewAdminLogoutUserNotFound() *AdminLogoutUserNotFound

NewAdminLogoutUserNotFound creates a AdminLogoutUserNotFound with default headers values

func (*AdminLogoutUserNotFound) Code

func (o *AdminLogoutUserNotFound) Code() int

Code gets the status code for the admin logout user not found response

func (*AdminLogoutUserNotFound) Error

func (o *AdminLogoutUserNotFound) Error() string

func (*AdminLogoutUserNotFound) GetPayload

func (*AdminLogoutUserNotFound) IsClientError

func (o *AdminLogoutUserNotFound) IsClientError() bool

IsClientError returns true when this admin logout user not found response has a 4xx status code

func (*AdminLogoutUserNotFound) IsCode

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

IsCode returns true when this admin logout user not found response a status code equal to that given

func (*AdminLogoutUserNotFound) IsRedirect

func (o *AdminLogoutUserNotFound) IsRedirect() bool

IsRedirect returns true when this admin logout user not found response has a 3xx status code

func (*AdminLogoutUserNotFound) IsServerError

func (o *AdminLogoutUserNotFound) IsServerError() bool

IsServerError returns true when this admin logout user not found response has a 5xx status code

func (*AdminLogoutUserNotFound) IsSuccess

func (o *AdminLogoutUserNotFound) IsSuccess() bool

IsSuccess returns true when this admin logout user not found response has a 2xx status code

func (*AdminLogoutUserNotFound) String

func (o *AdminLogoutUserNotFound) String() string

type AdminLogoutUserOK

type AdminLogoutUserOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminLogoutUserOK

func NewAdminLogoutUserOK() *AdminLogoutUserOK

NewAdminLogoutUserOK creates a AdminLogoutUserOK with default headers values

func (*AdminLogoutUserOK) Code

func (o *AdminLogoutUserOK) Code() int

Code gets the status code for the admin logout user Ok response

func (*AdminLogoutUserOK) Error

func (o *AdminLogoutUserOK) Error() string

func (*AdminLogoutUserOK) GetPayload

func (o *AdminLogoutUserOK) GetPayload() *models.SuccessResponseBody

func (*AdminLogoutUserOK) IsClientError

func (o *AdminLogoutUserOK) IsClientError() bool

IsClientError returns true when this admin logout user Ok response has a 4xx status code

func (*AdminLogoutUserOK) IsCode

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

IsCode returns true when this admin logout user Ok response a status code equal to that given

func (*AdminLogoutUserOK) IsRedirect

func (o *AdminLogoutUserOK) IsRedirect() bool

IsRedirect returns true when this admin logout user Ok response has a 3xx status code

func (*AdminLogoutUserOK) IsServerError

func (o *AdminLogoutUserOK) IsServerError() bool

IsServerError returns true when this admin logout user Ok response has a 5xx status code

func (*AdminLogoutUserOK) IsSuccess

func (o *AdminLogoutUserOK) IsSuccess() bool

IsSuccess returns true when this admin logout user Ok response has a 2xx status code

func (*AdminLogoutUserOK) String

func (o *AdminLogoutUserOK) String() string

type AdminLogoutUserParams

type AdminLogoutUserParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminLogoutUserParams contains all the parameters to send to the API endpoint

for the admin logout user operation.

Typically these are written to a http.Request.

func NewAdminLogoutUserParams

func NewAdminLogoutUserParams() *AdminLogoutUserParams

NewAdminLogoutUserParams creates a new AdminLogoutUserParams 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 NewAdminLogoutUserParamsWithContext

func NewAdminLogoutUserParamsWithContext(ctx context.Context) *AdminLogoutUserParams

NewAdminLogoutUserParamsWithContext creates a new AdminLogoutUserParams object with the ability to set a context for a request.

func NewAdminLogoutUserParamsWithHTTPClient

func NewAdminLogoutUserParamsWithHTTPClient(client *http.Client) *AdminLogoutUserParams

NewAdminLogoutUserParamsWithHTTPClient creates a new AdminLogoutUserParams object with the ability to set a custom HTTPClient for a request.

func NewAdminLogoutUserParamsWithTimeout

func NewAdminLogoutUserParamsWithTimeout(timeout time.Duration) *AdminLogoutUserParams

NewAdminLogoutUserParamsWithTimeout creates a new AdminLogoutUserParams object with the ability to set a timeout on a request.

func (*AdminLogoutUserParams) SetContext

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

SetContext adds the context to the admin logout user params

func (*AdminLogoutUserParams) SetDefaults

func (o *AdminLogoutUserParams) SetDefaults()

SetDefaults hydrates default values in the admin logout user params (not the query body).

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

func (*AdminLogoutUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin logout user params

func (*AdminLogoutUserParams) SetTimeout

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

SetTimeout adds the timeout to the admin logout user params

func (*AdminLogoutUserParams) SetUserID

func (o *AdminLogoutUserParams) SetUserID(userID int64)

SetUserID adds the userId to the admin logout user params

func (*AdminLogoutUserParams) WithContext

WithContext adds the context to the admin logout user params

func (*AdminLogoutUserParams) WithDefaults

func (o *AdminLogoutUserParams) WithDefaults() *AdminLogoutUserParams

WithDefaults hydrates default values in the admin logout user params (not the query body).

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

func (*AdminLogoutUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin logout user params

func (*AdminLogoutUserParams) WithTimeout

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

WithTimeout adds the timeout to the admin logout user params

func (*AdminLogoutUserParams) WithUserID

func (o *AdminLogoutUserParams) WithUserID(userID int64) *AdminLogoutUserParams

WithUserID adds the userID to the admin logout user params

func (*AdminLogoutUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AdminLogoutUserReader

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

AdminLogoutUserReader is a Reader for the AdminLogoutUser structure.

func (*AdminLogoutUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminLogoutUserUnauthorized

type AdminLogoutUserUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminLogoutUserUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminLogoutUserUnauthorized

func NewAdminLogoutUserUnauthorized() *AdminLogoutUserUnauthorized

NewAdminLogoutUserUnauthorized creates a AdminLogoutUserUnauthorized with default headers values

func (*AdminLogoutUserUnauthorized) Code

func (o *AdminLogoutUserUnauthorized) Code() int

Code gets the status code for the admin logout user unauthorized response

func (*AdminLogoutUserUnauthorized) Error

func (*AdminLogoutUserUnauthorized) GetPayload

func (*AdminLogoutUserUnauthorized) IsClientError

func (o *AdminLogoutUserUnauthorized) IsClientError() bool

IsClientError returns true when this admin logout user unauthorized response has a 4xx status code

func (*AdminLogoutUserUnauthorized) IsCode

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

IsCode returns true when this admin logout user unauthorized response a status code equal to that given

func (*AdminLogoutUserUnauthorized) IsRedirect

func (o *AdminLogoutUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin logout user unauthorized response has a 3xx status code

func (*AdminLogoutUserUnauthorized) IsServerError

func (o *AdminLogoutUserUnauthorized) IsServerError() bool

IsServerError returns true when this admin logout user unauthorized response has a 5xx status code

func (*AdminLogoutUserUnauthorized) IsSuccess

func (o *AdminLogoutUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this admin logout user unauthorized response has a 2xx status code

func (*AdminLogoutUserUnauthorized) String

func (o *AdminLogoutUserUnauthorized) String() string

type AdminRevokeUserAuthTokenBadRequest

type AdminRevokeUserAuthTokenBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewAdminRevokeUserAuthTokenBadRequest

func NewAdminRevokeUserAuthTokenBadRequest() *AdminRevokeUserAuthTokenBadRequest

NewAdminRevokeUserAuthTokenBadRequest creates a AdminRevokeUserAuthTokenBadRequest with default headers values

func (*AdminRevokeUserAuthTokenBadRequest) Code

Code gets the status code for the admin revoke user auth token bad request response

func (*AdminRevokeUserAuthTokenBadRequest) Error

func (*AdminRevokeUserAuthTokenBadRequest) GetPayload

func (*AdminRevokeUserAuthTokenBadRequest) IsClientError

func (o *AdminRevokeUserAuthTokenBadRequest) IsClientError() bool

IsClientError returns true when this admin revoke user auth token bad request response has a 4xx status code

func (*AdminRevokeUserAuthTokenBadRequest) IsCode

IsCode returns true when this admin revoke user auth token bad request response a status code equal to that given

func (*AdminRevokeUserAuthTokenBadRequest) IsRedirect

func (o *AdminRevokeUserAuthTokenBadRequest) IsRedirect() bool

IsRedirect returns true when this admin revoke user auth token bad request response has a 3xx status code

func (*AdminRevokeUserAuthTokenBadRequest) IsServerError

func (o *AdminRevokeUserAuthTokenBadRequest) IsServerError() bool

IsServerError returns true when this admin revoke user auth token bad request response has a 5xx status code

func (*AdminRevokeUserAuthTokenBadRequest) IsSuccess

IsSuccess returns true when this admin revoke user auth token bad request response has a 2xx status code

func (*AdminRevokeUserAuthTokenBadRequest) String

type AdminRevokeUserAuthTokenForbidden

type AdminRevokeUserAuthTokenForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminRevokeUserAuthTokenForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminRevokeUserAuthTokenForbidden

func NewAdminRevokeUserAuthTokenForbidden() *AdminRevokeUserAuthTokenForbidden

NewAdminRevokeUserAuthTokenForbidden creates a AdminRevokeUserAuthTokenForbidden with default headers values

func (*AdminRevokeUserAuthTokenForbidden) Code

Code gets the status code for the admin revoke user auth token forbidden response

func (*AdminRevokeUserAuthTokenForbidden) Error

func (*AdminRevokeUserAuthTokenForbidden) GetPayload

func (*AdminRevokeUserAuthTokenForbidden) IsClientError

func (o *AdminRevokeUserAuthTokenForbidden) IsClientError() bool

IsClientError returns true when this admin revoke user auth token forbidden response has a 4xx status code

func (*AdminRevokeUserAuthTokenForbidden) IsCode

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

IsCode returns true when this admin revoke user auth token forbidden response a status code equal to that given

func (*AdminRevokeUserAuthTokenForbidden) IsRedirect

func (o *AdminRevokeUserAuthTokenForbidden) IsRedirect() bool

IsRedirect returns true when this admin revoke user auth token forbidden response has a 3xx status code

func (*AdminRevokeUserAuthTokenForbidden) IsServerError

func (o *AdminRevokeUserAuthTokenForbidden) IsServerError() bool

IsServerError returns true when this admin revoke user auth token forbidden response has a 5xx status code

func (*AdminRevokeUserAuthTokenForbidden) IsSuccess

func (o *AdminRevokeUserAuthTokenForbidden) IsSuccess() bool

IsSuccess returns true when this admin revoke user auth token forbidden response has a 2xx status code

func (*AdminRevokeUserAuthTokenForbidden) String

type AdminRevokeUserAuthTokenInternalServerError

type AdminRevokeUserAuthTokenInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminRevokeUserAuthTokenInternalServerError

func NewAdminRevokeUserAuthTokenInternalServerError() *AdminRevokeUserAuthTokenInternalServerError

NewAdminRevokeUserAuthTokenInternalServerError creates a AdminRevokeUserAuthTokenInternalServerError with default headers values

func (*AdminRevokeUserAuthTokenInternalServerError) Code

Code gets the status code for the admin revoke user auth token internal server error response

func (*AdminRevokeUserAuthTokenInternalServerError) Error

func (*AdminRevokeUserAuthTokenInternalServerError) GetPayload

func (*AdminRevokeUserAuthTokenInternalServerError) IsClientError

IsClientError returns true when this admin revoke user auth token internal server error response has a 4xx status code

func (*AdminRevokeUserAuthTokenInternalServerError) IsCode

IsCode returns true when this admin revoke user auth token internal server error response a status code equal to that given

func (*AdminRevokeUserAuthTokenInternalServerError) IsRedirect

IsRedirect returns true when this admin revoke user auth token internal server error response has a 3xx status code

func (*AdminRevokeUserAuthTokenInternalServerError) IsServerError

IsServerError returns true when this admin revoke user auth token internal server error response has a 5xx status code

func (*AdminRevokeUserAuthTokenInternalServerError) IsSuccess

IsSuccess returns true when this admin revoke user auth token internal server error response has a 2xx status code

func (*AdminRevokeUserAuthTokenInternalServerError) String

type AdminRevokeUserAuthTokenNotFound

type AdminRevokeUserAuthTokenNotFound struct {
	Payload *models.ErrorResponseBody
}

AdminRevokeUserAuthTokenNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewAdminRevokeUserAuthTokenNotFound

func NewAdminRevokeUserAuthTokenNotFound() *AdminRevokeUserAuthTokenNotFound

NewAdminRevokeUserAuthTokenNotFound creates a AdminRevokeUserAuthTokenNotFound with default headers values

func (*AdminRevokeUserAuthTokenNotFound) Code

Code gets the status code for the admin revoke user auth token not found response

func (*AdminRevokeUserAuthTokenNotFound) Error

func (*AdminRevokeUserAuthTokenNotFound) GetPayload

func (*AdminRevokeUserAuthTokenNotFound) IsClientError

func (o *AdminRevokeUserAuthTokenNotFound) IsClientError() bool

IsClientError returns true when this admin revoke user auth token not found response has a 4xx status code

func (*AdminRevokeUserAuthTokenNotFound) IsCode

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

IsCode returns true when this admin revoke user auth token not found response a status code equal to that given

func (*AdminRevokeUserAuthTokenNotFound) IsRedirect

func (o *AdminRevokeUserAuthTokenNotFound) IsRedirect() bool

IsRedirect returns true when this admin revoke user auth token not found response has a 3xx status code

func (*AdminRevokeUserAuthTokenNotFound) IsServerError

func (o *AdminRevokeUserAuthTokenNotFound) IsServerError() bool

IsServerError returns true when this admin revoke user auth token not found response has a 5xx status code

func (*AdminRevokeUserAuthTokenNotFound) IsSuccess

func (o *AdminRevokeUserAuthTokenNotFound) IsSuccess() bool

IsSuccess returns true when this admin revoke user auth token not found response has a 2xx status code

func (*AdminRevokeUserAuthTokenNotFound) String

type AdminRevokeUserAuthTokenOK

type AdminRevokeUserAuthTokenOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminRevokeUserAuthTokenOK

func NewAdminRevokeUserAuthTokenOK() *AdminRevokeUserAuthTokenOK

NewAdminRevokeUserAuthTokenOK creates a AdminRevokeUserAuthTokenOK with default headers values

func (*AdminRevokeUserAuthTokenOK) Code

func (o *AdminRevokeUserAuthTokenOK) Code() int

Code gets the status code for the admin revoke user auth token Ok response

func (*AdminRevokeUserAuthTokenOK) Error

func (*AdminRevokeUserAuthTokenOK) GetPayload

func (*AdminRevokeUserAuthTokenOK) IsClientError

func (o *AdminRevokeUserAuthTokenOK) IsClientError() bool

IsClientError returns true when this admin revoke user auth token Ok response has a 4xx status code

func (*AdminRevokeUserAuthTokenOK) IsCode

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

IsCode returns true when this admin revoke user auth token Ok response a status code equal to that given

func (*AdminRevokeUserAuthTokenOK) IsRedirect

func (o *AdminRevokeUserAuthTokenOK) IsRedirect() bool

IsRedirect returns true when this admin revoke user auth token Ok response has a 3xx status code

func (*AdminRevokeUserAuthTokenOK) IsServerError

func (o *AdminRevokeUserAuthTokenOK) IsServerError() bool

IsServerError returns true when this admin revoke user auth token Ok response has a 5xx status code

func (*AdminRevokeUserAuthTokenOK) IsSuccess

func (o *AdminRevokeUserAuthTokenOK) IsSuccess() bool

IsSuccess returns true when this admin revoke user auth token Ok response has a 2xx status code

func (*AdminRevokeUserAuthTokenOK) String

func (o *AdminRevokeUserAuthTokenOK) String() string

type AdminRevokeUserAuthTokenParams

type AdminRevokeUserAuthTokenParams struct {

	// Body.
	Body *models.RevokeAuthTokenCmd

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminRevokeUserAuthTokenParams contains all the parameters to send to the API endpoint

for the admin revoke user auth token operation.

Typically these are written to a http.Request.

func NewAdminRevokeUserAuthTokenParams

func NewAdminRevokeUserAuthTokenParams() *AdminRevokeUserAuthTokenParams

NewAdminRevokeUserAuthTokenParams creates a new AdminRevokeUserAuthTokenParams 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 NewAdminRevokeUserAuthTokenParamsWithContext

func NewAdminRevokeUserAuthTokenParamsWithContext(ctx context.Context) *AdminRevokeUserAuthTokenParams

NewAdminRevokeUserAuthTokenParamsWithContext creates a new AdminRevokeUserAuthTokenParams object with the ability to set a context for a request.

func NewAdminRevokeUserAuthTokenParamsWithHTTPClient

func NewAdminRevokeUserAuthTokenParamsWithHTTPClient(client *http.Client) *AdminRevokeUserAuthTokenParams

NewAdminRevokeUserAuthTokenParamsWithHTTPClient creates a new AdminRevokeUserAuthTokenParams object with the ability to set a custom HTTPClient for a request.

func NewAdminRevokeUserAuthTokenParamsWithTimeout

func NewAdminRevokeUserAuthTokenParamsWithTimeout(timeout time.Duration) *AdminRevokeUserAuthTokenParams

NewAdminRevokeUserAuthTokenParamsWithTimeout creates a new AdminRevokeUserAuthTokenParams object with the ability to set a timeout on a request.

func (*AdminRevokeUserAuthTokenParams) SetBody

SetBody adds the body to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) SetContext

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

SetContext adds the context to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) SetDefaults

func (o *AdminRevokeUserAuthTokenParams) SetDefaults()

SetDefaults hydrates default values in the admin revoke user auth token params (not the query body).

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

func (*AdminRevokeUserAuthTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) SetTimeout

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

SetTimeout adds the timeout to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) SetUserID

func (o *AdminRevokeUserAuthTokenParams) SetUserID(userID int64)

SetUserID adds the userId to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) WithBody

WithBody adds the body to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) WithContext

WithContext adds the context to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) WithDefaults

WithDefaults hydrates default values in the admin revoke user auth token params (not the query body).

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

func (*AdminRevokeUserAuthTokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) WithTimeout

WithTimeout adds the timeout to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) WithUserID

WithUserID adds the userID to the admin revoke user auth token params

func (*AdminRevokeUserAuthTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminRevokeUserAuthTokenReader

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

AdminRevokeUserAuthTokenReader is a Reader for the AdminRevokeUserAuthToken structure.

func (*AdminRevokeUserAuthTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminRevokeUserAuthTokenUnauthorized

type AdminRevokeUserAuthTokenUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminRevokeUserAuthTokenUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminRevokeUserAuthTokenUnauthorized

func NewAdminRevokeUserAuthTokenUnauthorized() *AdminRevokeUserAuthTokenUnauthorized

NewAdminRevokeUserAuthTokenUnauthorized creates a AdminRevokeUserAuthTokenUnauthorized with default headers values

func (*AdminRevokeUserAuthTokenUnauthorized) Code

Code gets the status code for the admin revoke user auth token unauthorized response

func (*AdminRevokeUserAuthTokenUnauthorized) Error

func (*AdminRevokeUserAuthTokenUnauthorized) GetPayload

func (*AdminRevokeUserAuthTokenUnauthorized) IsClientError

func (o *AdminRevokeUserAuthTokenUnauthorized) IsClientError() bool

IsClientError returns true when this admin revoke user auth token unauthorized response has a 4xx status code

func (*AdminRevokeUserAuthTokenUnauthorized) IsCode

IsCode returns true when this admin revoke user auth token unauthorized response a status code equal to that given

func (*AdminRevokeUserAuthTokenUnauthorized) IsRedirect

IsRedirect returns true when this admin revoke user auth token unauthorized response has a 3xx status code

func (*AdminRevokeUserAuthTokenUnauthorized) IsServerError

func (o *AdminRevokeUserAuthTokenUnauthorized) IsServerError() bool

IsServerError returns true when this admin revoke user auth token unauthorized response has a 5xx status code

func (*AdminRevokeUserAuthTokenUnauthorized) IsSuccess

IsSuccess returns true when this admin revoke user auth token unauthorized response has a 2xx status code

func (*AdminRevokeUserAuthTokenUnauthorized) String

type AdminUpdateUserPasswordBadRequest

type AdminUpdateUserPasswordBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewAdminUpdateUserPasswordBadRequest

func NewAdminUpdateUserPasswordBadRequest() *AdminUpdateUserPasswordBadRequest

NewAdminUpdateUserPasswordBadRequest creates a AdminUpdateUserPasswordBadRequest with default headers values

func (*AdminUpdateUserPasswordBadRequest) Code

Code gets the status code for the admin update user password bad request response

func (*AdminUpdateUserPasswordBadRequest) Error

func (*AdminUpdateUserPasswordBadRequest) GetPayload

func (*AdminUpdateUserPasswordBadRequest) IsClientError

func (o *AdminUpdateUserPasswordBadRequest) IsClientError() bool

IsClientError returns true when this admin update user password bad request response has a 4xx status code

func (*AdminUpdateUserPasswordBadRequest) IsCode

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

IsCode returns true when this admin update user password bad request response a status code equal to that given

func (*AdminUpdateUserPasswordBadRequest) IsRedirect

func (o *AdminUpdateUserPasswordBadRequest) IsRedirect() bool

IsRedirect returns true when this admin update user password bad request response has a 3xx status code

func (*AdminUpdateUserPasswordBadRequest) IsServerError

func (o *AdminUpdateUserPasswordBadRequest) IsServerError() bool

IsServerError returns true when this admin update user password bad request response has a 5xx status code

func (*AdminUpdateUserPasswordBadRequest) IsSuccess

func (o *AdminUpdateUserPasswordBadRequest) IsSuccess() bool

IsSuccess returns true when this admin update user password bad request response has a 2xx status code

func (*AdminUpdateUserPasswordBadRequest) String

type AdminUpdateUserPasswordForbidden

type AdminUpdateUserPasswordForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminUpdateUserPasswordForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminUpdateUserPasswordForbidden

func NewAdminUpdateUserPasswordForbidden() *AdminUpdateUserPasswordForbidden

NewAdminUpdateUserPasswordForbidden creates a AdminUpdateUserPasswordForbidden with default headers values

func (*AdminUpdateUserPasswordForbidden) Code

Code gets the status code for the admin update user password forbidden response

func (*AdminUpdateUserPasswordForbidden) Error

func (*AdminUpdateUserPasswordForbidden) GetPayload

func (*AdminUpdateUserPasswordForbidden) IsClientError

func (o *AdminUpdateUserPasswordForbidden) IsClientError() bool

IsClientError returns true when this admin update user password forbidden response has a 4xx status code

func (*AdminUpdateUserPasswordForbidden) IsCode

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

IsCode returns true when this admin update user password forbidden response a status code equal to that given

func (*AdminUpdateUserPasswordForbidden) IsRedirect

func (o *AdminUpdateUserPasswordForbidden) IsRedirect() bool

IsRedirect returns true when this admin update user password forbidden response has a 3xx status code

func (*AdminUpdateUserPasswordForbidden) IsServerError

func (o *AdminUpdateUserPasswordForbidden) IsServerError() bool

IsServerError returns true when this admin update user password forbidden response has a 5xx status code

func (*AdminUpdateUserPasswordForbidden) IsSuccess

func (o *AdminUpdateUserPasswordForbidden) IsSuccess() bool

IsSuccess returns true when this admin update user password forbidden response has a 2xx status code

func (*AdminUpdateUserPasswordForbidden) String

type AdminUpdateUserPasswordInternalServerError

type AdminUpdateUserPasswordInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminUpdateUserPasswordInternalServerError

func NewAdminUpdateUserPasswordInternalServerError() *AdminUpdateUserPasswordInternalServerError

NewAdminUpdateUserPasswordInternalServerError creates a AdminUpdateUserPasswordInternalServerError with default headers values

func (*AdminUpdateUserPasswordInternalServerError) Code

Code gets the status code for the admin update user password internal server error response

func (*AdminUpdateUserPasswordInternalServerError) Error

func (*AdminUpdateUserPasswordInternalServerError) GetPayload

func (*AdminUpdateUserPasswordInternalServerError) IsClientError

IsClientError returns true when this admin update user password internal server error response has a 4xx status code

func (*AdminUpdateUserPasswordInternalServerError) IsCode

IsCode returns true when this admin update user password internal server error response a status code equal to that given

func (*AdminUpdateUserPasswordInternalServerError) IsRedirect

IsRedirect returns true when this admin update user password internal server error response has a 3xx status code

func (*AdminUpdateUserPasswordInternalServerError) IsServerError

IsServerError returns true when this admin update user password internal server error response has a 5xx status code

func (*AdminUpdateUserPasswordInternalServerError) IsSuccess

IsSuccess returns true when this admin update user password internal server error response has a 2xx status code

func (*AdminUpdateUserPasswordInternalServerError) String

type AdminUpdateUserPasswordOK

type AdminUpdateUserPasswordOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminUpdateUserPasswordOK

func NewAdminUpdateUserPasswordOK() *AdminUpdateUserPasswordOK

NewAdminUpdateUserPasswordOK creates a AdminUpdateUserPasswordOK with default headers values

func (*AdminUpdateUserPasswordOK) Code

func (o *AdminUpdateUserPasswordOK) Code() int

Code gets the status code for the admin update user password Ok response

func (*AdminUpdateUserPasswordOK) Error

func (o *AdminUpdateUserPasswordOK) Error() string

func (*AdminUpdateUserPasswordOK) GetPayload

func (*AdminUpdateUserPasswordOK) IsClientError

func (o *AdminUpdateUserPasswordOK) IsClientError() bool

IsClientError returns true when this admin update user password Ok response has a 4xx status code

func (*AdminUpdateUserPasswordOK) IsCode

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

IsCode returns true when this admin update user password Ok response a status code equal to that given

func (*AdminUpdateUserPasswordOK) IsRedirect

func (o *AdminUpdateUserPasswordOK) IsRedirect() bool

IsRedirect returns true when this admin update user password Ok response has a 3xx status code

func (*AdminUpdateUserPasswordOK) IsServerError

func (o *AdminUpdateUserPasswordOK) IsServerError() bool

IsServerError returns true when this admin update user password Ok response has a 5xx status code

func (*AdminUpdateUserPasswordOK) IsSuccess

func (o *AdminUpdateUserPasswordOK) IsSuccess() bool

IsSuccess returns true when this admin update user password Ok response has a 2xx status code

func (*AdminUpdateUserPasswordOK) String

func (o *AdminUpdateUserPasswordOK) String() string

type AdminUpdateUserPasswordParams

type AdminUpdateUserPasswordParams struct {

	// Body.
	Body *models.AdminUpdateUserPasswordForm

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminUpdateUserPasswordParams contains all the parameters to send to the API endpoint

for the admin update user password operation.

Typically these are written to a http.Request.

func NewAdminUpdateUserPasswordParams

func NewAdminUpdateUserPasswordParams() *AdminUpdateUserPasswordParams

NewAdminUpdateUserPasswordParams creates a new AdminUpdateUserPasswordParams 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 NewAdminUpdateUserPasswordParamsWithContext

func NewAdminUpdateUserPasswordParamsWithContext(ctx context.Context) *AdminUpdateUserPasswordParams

NewAdminUpdateUserPasswordParamsWithContext creates a new AdminUpdateUserPasswordParams object with the ability to set a context for a request.

func NewAdminUpdateUserPasswordParamsWithHTTPClient

func NewAdminUpdateUserPasswordParamsWithHTTPClient(client *http.Client) *AdminUpdateUserPasswordParams

NewAdminUpdateUserPasswordParamsWithHTTPClient creates a new AdminUpdateUserPasswordParams object with the ability to set a custom HTTPClient for a request.

func NewAdminUpdateUserPasswordParamsWithTimeout

func NewAdminUpdateUserPasswordParamsWithTimeout(timeout time.Duration) *AdminUpdateUserPasswordParams

NewAdminUpdateUserPasswordParamsWithTimeout creates a new AdminUpdateUserPasswordParams object with the ability to set a timeout on a request.

func (*AdminUpdateUserPasswordParams) SetBody

SetBody adds the body to the admin update user password params

func (*AdminUpdateUserPasswordParams) SetContext

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

SetContext adds the context to the admin update user password params

func (*AdminUpdateUserPasswordParams) SetDefaults

func (o *AdminUpdateUserPasswordParams) SetDefaults()

SetDefaults hydrates default values in the admin update user password params (not the query body).

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

func (*AdminUpdateUserPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update user password params

func (*AdminUpdateUserPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the admin update user password params

func (*AdminUpdateUserPasswordParams) SetUserID

func (o *AdminUpdateUserPasswordParams) SetUserID(userID int64)

SetUserID adds the userId to the admin update user password params

func (*AdminUpdateUserPasswordParams) WithBody

WithBody adds the body to the admin update user password params

func (*AdminUpdateUserPasswordParams) WithContext

WithContext adds the context to the admin update user password params

func (*AdminUpdateUserPasswordParams) WithDefaults

WithDefaults hydrates default values in the admin update user password params (not the query body).

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

func (*AdminUpdateUserPasswordParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin update user password params

func (*AdminUpdateUserPasswordParams) WithTimeout

WithTimeout adds the timeout to the admin update user password params

func (*AdminUpdateUserPasswordParams) WithUserID

WithUserID adds the userID to the admin update user password params

func (*AdminUpdateUserPasswordParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminUpdateUserPasswordReader

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

AdminUpdateUserPasswordReader is a Reader for the AdminUpdateUserPassword structure.

func (*AdminUpdateUserPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminUpdateUserPasswordUnauthorized

type AdminUpdateUserPasswordUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminUpdateUserPasswordUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminUpdateUserPasswordUnauthorized

func NewAdminUpdateUserPasswordUnauthorized() *AdminUpdateUserPasswordUnauthorized

NewAdminUpdateUserPasswordUnauthorized creates a AdminUpdateUserPasswordUnauthorized with default headers values

func (*AdminUpdateUserPasswordUnauthorized) Code

Code gets the status code for the admin update user password unauthorized response

func (*AdminUpdateUserPasswordUnauthorized) Error

func (*AdminUpdateUserPasswordUnauthorized) GetPayload

func (*AdminUpdateUserPasswordUnauthorized) IsClientError

func (o *AdminUpdateUserPasswordUnauthorized) IsClientError() bool

IsClientError returns true when this admin update user password unauthorized response has a 4xx status code

func (*AdminUpdateUserPasswordUnauthorized) IsCode

IsCode returns true when this admin update user password unauthorized response a status code equal to that given

func (*AdminUpdateUserPasswordUnauthorized) IsRedirect

func (o *AdminUpdateUserPasswordUnauthorized) IsRedirect() bool

IsRedirect returns true when this admin update user password unauthorized response has a 3xx status code

func (*AdminUpdateUserPasswordUnauthorized) IsServerError

func (o *AdminUpdateUserPasswordUnauthorized) IsServerError() bool

IsServerError returns true when this admin update user password unauthorized response has a 5xx status code

func (*AdminUpdateUserPasswordUnauthorized) IsSuccess

IsSuccess returns true when this admin update user password unauthorized response has a 2xx status code

func (*AdminUpdateUserPasswordUnauthorized) String

type AdminUpdateUserPermissionsBadRequest

type AdminUpdateUserPermissionsBadRequest struct {
	Payload *models.ErrorResponseBody
}

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

BadRequestError is returned when the request is invalid and it cannot be processed.

func NewAdminUpdateUserPermissionsBadRequest

func NewAdminUpdateUserPermissionsBadRequest() *AdminUpdateUserPermissionsBadRequest

NewAdminUpdateUserPermissionsBadRequest creates a AdminUpdateUserPermissionsBadRequest with default headers values

func (*AdminUpdateUserPermissionsBadRequest) Code

Code gets the status code for the admin update user permissions bad request response

func (*AdminUpdateUserPermissionsBadRequest) Error

func (*AdminUpdateUserPermissionsBadRequest) GetPayload

func (*AdminUpdateUserPermissionsBadRequest) IsClientError

func (o *AdminUpdateUserPermissionsBadRequest) IsClientError() bool

IsClientError returns true when this admin update user permissions bad request response has a 4xx status code

func (*AdminUpdateUserPermissionsBadRequest) IsCode

IsCode returns true when this admin update user permissions bad request response a status code equal to that given

func (*AdminUpdateUserPermissionsBadRequest) IsRedirect

IsRedirect returns true when this admin update user permissions bad request response has a 3xx status code

func (*AdminUpdateUserPermissionsBadRequest) IsServerError

func (o *AdminUpdateUserPermissionsBadRequest) IsServerError() bool

IsServerError returns true when this admin update user permissions bad request response has a 5xx status code

func (*AdminUpdateUserPermissionsBadRequest) IsSuccess

IsSuccess returns true when this admin update user permissions bad request response has a 2xx status code

func (*AdminUpdateUserPermissionsBadRequest) String

type AdminUpdateUserPermissionsForbidden

type AdminUpdateUserPermissionsForbidden struct {
	Payload *models.ErrorResponseBody
}

AdminUpdateUserPermissionsForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewAdminUpdateUserPermissionsForbidden

func NewAdminUpdateUserPermissionsForbidden() *AdminUpdateUserPermissionsForbidden

NewAdminUpdateUserPermissionsForbidden creates a AdminUpdateUserPermissionsForbidden with default headers values

func (*AdminUpdateUserPermissionsForbidden) Code

Code gets the status code for the admin update user permissions forbidden response

func (*AdminUpdateUserPermissionsForbidden) Error

func (*AdminUpdateUserPermissionsForbidden) GetPayload

func (*AdminUpdateUserPermissionsForbidden) IsClientError

func (o *AdminUpdateUserPermissionsForbidden) IsClientError() bool

IsClientError returns true when this admin update user permissions forbidden response has a 4xx status code

func (*AdminUpdateUserPermissionsForbidden) IsCode

IsCode returns true when this admin update user permissions forbidden response a status code equal to that given

func (*AdminUpdateUserPermissionsForbidden) IsRedirect

func (o *AdminUpdateUserPermissionsForbidden) IsRedirect() bool

IsRedirect returns true when this admin update user permissions forbidden response has a 3xx status code

func (*AdminUpdateUserPermissionsForbidden) IsServerError

func (o *AdminUpdateUserPermissionsForbidden) IsServerError() bool

IsServerError returns true when this admin update user permissions forbidden response has a 5xx status code

func (*AdminUpdateUserPermissionsForbidden) IsSuccess

IsSuccess returns true when this admin update user permissions forbidden response has a 2xx status code

func (*AdminUpdateUserPermissionsForbidden) String

type AdminUpdateUserPermissionsInternalServerError

type AdminUpdateUserPermissionsInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewAdminUpdateUserPermissionsInternalServerError

func NewAdminUpdateUserPermissionsInternalServerError() *AdminUpdateUserPermissionsInternalServerError

NewAdminUpdateUserPermissionsInternalServerError creates a AdminUpdateUserPermissionsInternalServerError with default headers values

func (*AdminUpdateUserPermissionsInternalServerError) Code

Code gets the status code for the admin update user permissions internal server error response

func (*AdminUpdateUserPermissionsInternalServerError) Error

func (*AdminUpdateUserPermissionsInternalServerError) GetPayload

func (*AdminUpdateUserPermissionsInternalServerError) IsClientError

IsClientError returns true when this admin update user permissions internal server error response has a 4xx status code

func (*AdminUpdateUserPermissionsInternalServerError) IsCode

IsCode returns true when this admin update user permissions internal server error response a status code equal to that given

func (*AdminUpdateUserPermissionsInternalServerError) IsRedirect

IsRedirect returns true when this admin update user permissions internal server error response has a 3xx status code

func (*AdminUpdateUserPermissionsInternalServerError) IsServerError

IsServerError returns true when this admin update user permissions internal server error response has a 5xx status code

func (*AdminUpdateUserPermissionsInternalServerError) IsSuccess

IsSuccess returns true when this admin update user permissions internal server error response has a 2xx status code

func (*AdminUpdateUserPermissionsInternalServerError) String

type AdminUpdateUserPermissionsOK

type AdminUpdateUserPermissionsOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewAdminUpdateUserPermissionsOK

func NewAdminUpdateUserPermissionsOK() *AdminUpdateUserPermissionsOK

NewAdminUpdateUserPermissionsOK creates a AdminUpdateUserPermissionsOK with default headers values

func (*AdminUpdateUserPermissionsOK) Code

Code gets the status code for the admin update user permissions Ok response

func (*AdminUpdateUserPermissionsOK) Error

func (*AdminUpdateUserPermissionsOK) GetPayload

func (*AdminUpdateUserPermissionsOK) IsClientError

func (o *AdminUpdateUserPermissionsOK) IsClientError() bool

IsClientError returns true when this admin update user permissions Ok response has a 4xx status code

func (*AdminUpdateUserPermissionsOK) IsCode

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

IsCode returns true when this admin update user permissions Ok response a status code equal to that given

func (*AdminUpdateUserPermissionsOK) IsRedirect

func (o *AdminUpdateUserPermissionsOK) IsRedirect() bool

IsRedirect returns true when this admin update user permissions Ok response has a 3xx status code

func (*AdminUpdateUserPermissionsOK) IsServerError

func (o *AdminUpdateUserPermissionsOK) IsServerError() bool

IsServerError returns true when this admin update user permissions Ok response has a 5xx status code

func (*AdminUpdateUserPermissionsOK) IsSuccess

func (o *AdminUpdateUserPermissionsOK) IsSuccess() bool

IsSuccess returns true when this admin update user permissions Ok response has a 2xx status code

func (*AdminUpdateUserPermissionsOK) String

type AdminUpdateUserPermissionsParams

type AdminUpdateUserPermissionsParams struct {

	// Body.
	Body *models.AdminUpdateUserPermissionsForm

	// UserID.
	//
	// Format: int64
	UserID int64

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

AdminUpdateUserPermissionsParams contains all the parameters to send to the API endpoint

for the admin update user permissions operation.

Typically these are written to a http.Request.

func NewAdminUpdateUserPermissionsParams

func NewAdminUpdateUserPermissionsParams() *AdminUpdateUserPermissionsParams

NewAdminUpdateUserPermissionsParams creates a new AdminUpdateUserPermissionsParams 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 NewAdminUpdateUserPermissionsParamsWithContext

func NewAdminUpdateUserPermissionsParamsWithContext(ctx context.Context) *AdminUpdateUserPermissionsParams

NewAdminUpdateUserPermissionsParamsWithContext creates a new AdminUpdateUserPermissionsParams object with the ability to set a context for a request.

func NewAdminUpdateUserPermissionsParamsWithHTTPClient

func NewAdminUpdateUserPermissionsParamsWithHTTPClient(client *http.Client) *AdminUpdateUserPermissionsParams

NewAdminUpdateUserPermissionsParamsWithHTTPClient creates a new AdminUpdateUserPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewAdminUpdateUserPermissionsParamsWithTimeout

func NewAdminUpdateUserPermissionsParamsWithTimeout(timeout time.Duration) *AdminUpdateUserPermissionsParams

NewAdminUpdateUserPermissionsParamsWithTimeout creates a new AdminUpdateUserPermissionsParams object with the ability to set a timeout on a request.

func (*AdminUpdateUserPermissionsParams) SetBody

SetBody adds the body to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) SetContext

SetContext adds the context to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) SetDefaults

func (o *AdminUpdateUserPermissionsParams) SetDefaults()

SetDefaults hydrates default values in the admin update user permissions params (not the query body).

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

func (*AdminUpdateUserPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) SetUserID

func (o *AdminUpdateUserPermissionsParams) SetUserID(userID int64)

SetUserID adds the userId to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) WithBody

WithBody adds the body to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) WithContext

WithContext adds the context to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) WithDefaults

WithDefaults hydrates default values in the admin update user permissions params (not the query body).

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

func (*AdminUpdateUserPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) WithTimeout

WithTimeout adds the timeout to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) WithUserID

WithUserID adds the userID to the admin update user permissions params

func (*AdminUpdateUserPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminUpdateUserPermissionsReader

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

AdminUpdateUserPermissionsReader is a Reader for the AdminUpdateUserPermissions structure.

func (*AdminUpdateUserPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminUpdateUserPermissionsUnauthorized

type AdminUpdateUserPermissionsUnauthorized struct {
	Payload *models.ErrorResponseBody
}

AdminUpdateUserPermissionsUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewAdminUpdateUserPermissionsUnauthorized

func NewAdminUpdateUserPermissionsUnauthorized() *AdminUpdateUserPermissionsUnauthorized

NewAdminUpdateUserPermissionsUnauthorized creates a AdminUpdateUserPermissionsUnauthorized with default headers values

func (*AdminUpdateUserPermissionsUnauthorized) Code

Code gets the status code for the admin update user permissions unauthorized response

func (*AdminUpdateUserPermissionsUnauthorized) Error

func (*AdminUpdateUserPermissionsUnauthorized) GetPayload

func (*AdminUpdateUserPermissionsUnauthorized) IsClientError

func (o *AdminUpdateUserPermissionsUnauthorized) IsClientError() bool

IsClientError returns true when this admin update user permissions unauthorized response has a 4xx status code

func (*AdminUpdateUserPermissionsUnauthorized) IsCode

IsCode returns true when this admin update user permissions unauthorized response a status code equal to that given

func (*AdminUpdateUserPermissionsUnauthorized) IsRedirect

IsRedirect returns true when this admin update user permissions unauthorized response has a 3xx status code

func (*AdminUpdateUserPermissionsUnauthorized) IsServerError

func (o *AdminUpdateUserPermissionsUnauthorized) IsServerError() bool

IsServerError returns true when this admin update user permissions unauthorized response has a 5xx status code

func (*AdminUpdateUserPermissionsUnauthorized) IsSuccess

IsSuccess returns true when this admin update user permissions unauthorized response has a 2xx status code

func (*AdminUpdateUserPermissionsUnauthorized) String

type Client

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

Client for admin users API

func (*Client) AdminCreateUser

func (a *Client) AdminCreateUser(body *models.AdminCreateUserForm, opts ...ClientOption) (*AdminCreateUserOK, error)

AdminCreateUser creates new user

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users:create`. Note that OrgId is an optional parameter that can be used to assign a new user to a different organization when `auto_assign_org` is set to `true`.

func (*Client) AdminCreateUserWithParams

func (a *Client) AdminCreateUserWithParams(params *AdminCreateUserParams, opts ...ClientOption) (*AdminCreateUserOK, error)

func (*Client) AdminDeleteUser

func (a *Client) AdminDeleteUser(userID int64, opts ...ClientOption) (*AdminDeleteUserOK, error)

AdminDeleteUser deletes global user

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users:delete` and scope `global.users:*`.

func (*Client) AdminDeleteUserWithParams

func (a *Client) AdminDeleteUserWithParams(params *AdminDeleteUserParams, opts ...ClientOption) (*AdminDeleteUserOK, error)

func (*Client) AdminDisableUser

func (a *Client) AdminDisableUser(userID int64, opts ...ClientOption) (*AdminDisableUserOK, error)

AdminDisableUser disables user

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users:disable` and scope `global.users:1` (userIDScope).

func (*Client) AdminDisableUserWithParams

func (a *Client) AdminDisableUserWithParams(params *AdminDisableUserParams, opts ...ClientOption) (*AdminDisableUserOK, error)

func (*Client) AdminEnableUser

func (a *Client) AdminEnableUser(userID int64, opts ...ClientOption) (*AdminEnableUserOK, error)

AdminEnableUser enables user

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users:enable` and scope `global.users:1` (userIDScope).

func (*Client) AdminEnableUserWithParams

func (a *Client) AdminEnableUserWithParams(params *AdminEnableUserParams, opts ...ClientOption) (*AdminEnableUserOK, error)

func (*Client) AdminGetUserAuthTokens

func (a *Client) AdminGetUserAuthTokens(userID int64, opts ...ClientOption) (*AdminGetUserAuthTokensOK, error)

AdminGetUserAuthTokens returns a list of all auth tokens devices that the user currently have logged in from

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users.authtoken:list` and scope `global.users:*`.

func (*Client) AdminGetUserAuthTokensWithParams

func (a *Client) AdminGetUserAuthTokensWithParams(params *AdminGetUserAuthTokensParams, opts ...ClientOption) (*AdminGetUserAuthTokensOK, error)

func (*Client) AdminLogoutUser

func (a *Client) AdminLogoutUser(userID int64, opts ...ClientOption) (*AdminLogoutUserOK, error)

AdminLogoutUser logouts user revokes all auth tokens devices for the user user of issued auth tokens devices will no longer be logged in and will be required to authenticate again upon next activity

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users.logout` and scope `global.users:*`.

func (*Client) AdminLogoutUserWithParams

func (a *Client) AdminLogoutUserWithParams(params *AdminLogoutUserParams, opts ...ClientOption) (*AdminLogoutUserOK, error)

func (*Client) AdminRevokeUserAuthToken

func (a *Client) AdminRevokeUserAuthToken(userID int64, body *models.RevokeAuthTokenCmd, opts ...ClientOption) (*AdminRevokeUserAuthTokenOK, error)

AdminRevokeUserAuthToken revokes auth token for user

Revokes the given auth token (device) for the user. User of issued auth token (device) will no longer be logged in and will be required to authenticate again upon next activity. If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users.authtoken:update` and scope `global.users:*`.

func (*Client) AdminRevokeUserAuthTokenWithParams

func (a *Client) AdminRevokeUserAuthTokenWithParams(params *AdminRevokeUserAuthTokenParams, opts ...ClientOption) (*AdminRevokeUserAuthTokenOK, error)

func (*Client) AdminUpdateUserPassword

func (a *Client) AdminUpdateUserPassword(userID int64, body *models.AdminUpdateUserPasswordForm, opts ...ClientOption) (*AdminUpdateUserPasswordOK, error)

AdminUpdateUserPassword sets password for user

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users.password:update` and scope `global.users:*`.

func (*Client) AdminUpdateUserPasswordWithParams

func (a *Client) AdminUpdateUserPasswordWithParams(params *AdminUpdateUserPasswordParams, opts ...ClientOption) (*AdminUpdateUserPasswordOK, error)

func (*Client) AdminUpdateUserPermissions

func (a *Client) AdminUpdateUserPermissions(userID int64, body *models.AdminUpdateUserPermissionsForm, opts ...ClientOption) (*AdminUpdateUserPermissionsOK, error)

AdminUpdateUserPermissions sets permissions for user

Only works with Basic Authentication (username and password). See introduction for an explanation. If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users.permissions:update` and scope `global.users:*`.

func (*Client) AdminUpdateUserPermissionsWithParams

func (a *Client) AdminUpdateUserPermissionsWithParams(params *AdminUpdateUserPermissionsParams, opts ...ClientOption) (*AdminUpdateUserPermissionsOK, error)

func (*Client) GetUserQuota

func (a *Client) GetUserQuota(userID int64, opts ...ClientOption) (*GetUserQuotaOK, error)

GetUserQuota fetches user quota

If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `users.quotas:list` and scope `global.users:1` (userIDScope).

func (*Client) GetUserQuotaWithParams

func (a *Client) GetUserQuotaWithParams(params *GetUserQuotaParams, opts ...ClientOption) (*GetUserQuotaOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUserQuota

func (a *Client) UpdateUserQuota(params *UpdateUserQuotaParams, opts ...ClientOption) (*UpdateUserQuotaOK, error)

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

func WithAuthInfo

func WithAuthInfo(authInfo runtime.ClientAuthInfoWriter) ClientOption

WithAuthInfo changes the transport on the client

type ClientService

type ClientService interface {
	AdminCreateUser(body *models.AdminCreateUserForm, opts ...ClientOption) (*AdminCreateUserOK, error)
	AdminCreateUserWithParams(params *AdminCreateUserParams, opts ...ClientOption) (*AdminCreateUserOK, error)

	AdminDeleteUser(userID int64, opts ...ClientOption) (*AdminDeleteUserOK, error)
	AdminDeleteUserWithParams(params *AdminDeleteUserParams, opts ...ClientOption) (*AdminDeleteUserOK, error)

	AdminDisableUser(userID int64, opts ...ClientOption) (*AdminDisableUserOK, error)
	AdminDisableUserWithParams(params *AdminDisableUserParams, opts ...ClientOption) (*AdminDisableUserOK, error)

	AdminEnableUser(userID int64, opts ...ClientOption) (*AdminEnableUserOK, error)
	AdminEnableUserWithParams(params *AdminEnableUserParams, opts ...ClientOption) (*AdminEnableUserOK, error)

	AdminGetUserAuthTokens(userID int64, opts ...ClientOption) (*AdminGetUserAuthTokensOK, error)
	AdminGetUserAuthTokensWithParams(params *AdminGetUserAuthTokensParams, opts ...ClientOption) (*AdminGetUserAuthTokensOK, error)

	AdminLogoutUser(userID int64, opts ...ClientOption) (*AdminLogoutUserOK, error)
	AdminLogoutUserWithParams(params *AdminLogoutUserParams, opts ...ClientOption) (*AdminLogoutUserOK, error)

	AdminRevokeUserAuthToken(userID int64, body *models.RevokeAuthTokenCmd, opts ...ClientOption) (*AdminRevokeUserAuthTokenOK, error)
	AdminRevokeUserAuthTokenWithParams(params *AdminRevokeUserAuthTokenParams, opts ...ClientOption) (*AdminRevokeUserAuthTokenOK, error)

	AdminUpdateUserPassword(userID int64, body *models.AdminUpdateUserPasswordForm, opts ...ClientOption) (*AdminUpdateUserPasswordOK, error)
	AdminUpdateUserPasswordWithParams(params *AdminUpdateUserPasswordParams, opts ...ClientOption) (*AdminUpdateUserPasswordOK, error)

	AdminUpdateUserPermissions(userID int64, body *models.AdminUpdateUserPermissionsForm, opts ...ClientOption) (*AdminUpdateUserPermissionsOK, error)
	AdminUpdateUserPermissionsWithParams(params *AdminUpdateUserPermissionsParams, opts ...ClientOption) (*AdminUpdateUserPermissionsOK, error)

	GetUserQuota(userID int64, opts ...ClientOption) (*GetUserQuotaOK, error)
	GetUserQuotaWithParams(params *GetUserQuotaParams, opts ...ClientOption) (*GetUserQuotaOK, error)

	UpdateUserQuota(params *UpdateUserQuotaParams, opts ...ClientOption) (*UpdateUserQuotaOK, 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 admin users API client.

type GetUserQuotaForbidden

type GetUserQuotaForbidden struct {
	Payload *models.ErrorResponseBody
}

GetUserQuotaForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewGetUserQuotaForbidden

func NewGetUserQuotaForbidden() *GetUserQuotaForbidden

NewGetUserQuotaForbidden creates a GetUserQuotaForbidden with default headers values

func (*GetUserQuotaForbidden) Code

func (o *GetUserQuotaForbidden) Code() int

Code gets the status code for the get user quota forbidden response

func (*GetUserQuotaForbidden) Error

func (o *GetUserQuotaForbidden) Error() string

func (*GetUserQuotaForbidden) GetPayload

func (*GetUserQuotaForbidden) IsClientError

func (o *GetUserQuotaForbidden) IsClientError() bool

IsClientError returns true when this get user quota forbidden response has a 4xx status code

func (*GetUserQuotaForbidden) IsCode

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

IsCode returns true when this get user quota forbidden response a status code equal to that given

func (*GetUserQuotaForbidden) IsRedirect

func (o *GetUserQuotaForbidden) IsRedirect() bool

IsRedirect returns true when this get user quota forbidden response has a 3xx status code

func (*GetUserQuotaForbidden) IsServerError

func (o *GetUserQuotaForbidden) IsServerError() bool

IsServerError returns true when this get user quota forbidden response has a 5xx status code

func (*GetUserQuotaForbidden) IsSuccess

func (o *GetUserQuotaForbidden) IsSuccess() bool

IsSuccess returns true when this get user quota forbidden response has a 2xx status code

func (*GetUserQuotaForbidden) String

func (o *GetUserQuotaForbidden) String() string

type GetUserQuotaInternalServerError

type GetUserQuotaInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewGetUserQuotaInternalServerError

func NewGetUserQuotaInternalServerError() *GetUserQuotaInternalServerError

NewGetUserQuotaInternalServerError creates a GetUserQuotaInternalServerError with default headers values

func (*GetUserQuotaInternalServerError) Code

Code gets the status code for the get user quota internal server error response

func (*GetUserQuotaInternalServerError) Error

func (*GetUserQuotaInternalServerError) GetPayload

func (*GetUserQuotaInternalServerError) IsClientError

func (o *GetUserQuotaInternalServerError) IsClientError() bool

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

func (*GetUserQuotaInternalServerError) IsCode

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

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

func (*GetUserQuotaInternalServerError) IsRedirect

func (o *GetUserQuotaInternalServerError) IsRedirect() bool

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

func (*GetUserQuotaInternalServerError) IsServerError

func (o *GetUserQuotaInternalServerError) IsServerError() bool

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

func (*GetUserQuotaInternalServerError) IsSuccess

func (o *GetUserQuotaInternalServerError) IsSuccess() bool

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

func (*GetUserQuotaInternalServerError) String

type GetUserQuotaNotFound

type GetUserQuotaNotFound struct {
	Payload *models.ErrorResponseBody
}

GetUserQuotaNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewGetUserQuotaNotFound

func NewGetUserQuotaNotFound() *GetUserQuotaNotFound

NewGetUserQuotaNotFound creates a GetUserQuotaNotFound with default headers values

func (*GetUserQuotaNotFound) Code

func (o *GetUserQuotaNotFound) Code() int

Code gets the status code for the get user quota not found response

func (*GetUserQuotaNotFound) Error

func (o *GetUserQuotaNotFound) Error() string

func (*GetUserQuotaNotFound) GetPayload

func (*GetUserQuotaNotFound) IsClientError

func (o *GetUserQuotaNotFound) IsClientError() bool

IsClientError returns true when this get user quota not found response has a 4xx status code

func (*GetUserQuotaNotFound) IsCode

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

IsCode returns true when this get user quota not found response a status code equal to that given

func (*GetUserQuotaNotFound) IsRedirect

func (o *GetUserQuotaNotFound) IsRedirect() bool

IsRedirect returns true when this get user quota not found response has a 3xx status code

func (*GetUserQuotaNotFound) IsServerError

func (o *GetUserQuotaNotFound) IsServerError() bool

IsServerError returns true when this get user quota not found response has a 5xx status code

func (*GetUserQuotaNotFound) IsSuccess

func (o *GetUserQuotaNotFound) IsSuccess() bool

IsSuccess returns true when this get user quota not found response has a 2xx status code

func (*GetUserQuotaNotFound) String

func (o *GetUserQuotaNotFound) String() string

type GetUserQuotaOK

type GetUserQuotaOK struct {
	Payload []*models.QuotaDTO
}

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

(empty)

func NewGetUserQuotaOK

func NewGetUserQuotaOK() *GetUserQuotaOK

NewGetUserQuotaOK creates a GetUserQuotaOK with default headers values

func (*GetUserQuotaOK) Code

func (o *GetUserQuotaOK) Code() int

Code gets the status code for the get user quota Ok response

func (*GetUserQuotaOK) Error

func (o *GetUserQuotaOK) Error() string

func (*GetUserQuotaOK) GetPayload

func (o *GetUserQuotaOK) GetPayload() []*models.QuotaDTO

func (*GetUserQuotaOK) IsClientError

func (o *GetUserQuotaOK) IsClientError() bool

IsClientError returns true when this get user quota Ok response has a 4xx status code

func (*GetUserQuotaOK) IsCode

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

IsCode returns true when this get user quota Ok response a status code equal to that given

func (*GetUserQuotaOK) IsRedirect

func (o *GetUserQuotaOK) IsRedirect() bool

IsRedirect returns true when this get user quota Ok response has a 3xx status code

func (*GetUserQuotaOK) IsServerError

func (o *GetUserQuotaOK) IsServerError() bool

IsServerError returns true when this get user quota Ok response has a 5xx status code

func (*GetUserQuotaOK) IsSuccess

func (o *GetUserQuotaOK) IsSuccess() bool

IsSuccess returns true when this get user quota Ok response has a 2xx status code

func (*GetUserQuotaOK) String

func (o *GetUserQuotaOK) String() string

type GetUserQuotaParams

type GetUserQuotaParams struct {

	// UserID.
	//
	// Format: int64
	UserID int64

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

GetUserQuotaParams contains all the parameters to send to the API endpoint

for the get user quota operation.

Typically these are written to a http.Request.

func NewGetUserQuotaParams

func NewGetUserQuotaParams() *GetUserQuotaParams

NewGetUserQuotaParams creates a new GetUserQuotaParams 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 NewGetUserQuotaParamsWithContext

func NewGetUserQuotaParamsWithContext(ctx context.Context) *GetUserQuotaParams

NewGetUserQuotaParamsWithContext creates a new GetUserQuotaParams object with the ability to set a context for a request.

func NewGetUserQuotaParamsWithHTTPClient

func NewGetUserQuotaParamsWithHTTPClient(client *http.Client) *GetUserQuotaParams

NewGetUserQuotaParamsWithHTTPClient creates a new GetUserQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserQuotaParamsWithTimeout

func NewGetUserQuotaParamsWithTimeout(timeout time.Duration) *GetUserQuotaParams

NewGetUserQuotaParamsWithTimeout creates a new GetUserQuotaParams object with the ability to set a timeout on a request.

func (*GetUserQuotaParams) SetContext

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

SetContext adds the context to the get user quota params

func (*GetUserQuotaParams) SetDefaults

func (o *GetUserQuotaParams) SetDefaults()

SetDefaults hydrates default values in the get user quota params (not the query body).

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

func (*GetUserQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user quota params

func (*GetUserQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the get user quota params

func (*GetUserQuotaParams) SetUserID

func (o *GetUserQuotaParams) SetUserID(userID int64)

SetUserID adds the userId to the get user quota params

func (*GetUserQuotaParams) WithContext

WithContext adds the context to the get user quota params

func (*GetUserQuotaParams) WithDefaults

func (o *GetUserQuotaParams) WithDefaults() *GetUserQuotaParams

WithDefaults hydrates default values in the get user quota params (not the query body).

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

func (*GetUserQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user quota params

func (*GetUserQuotaParams) WithTimeout

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

WithTimeout adds the timeout to the get user quota params

func (*GetUserQuotaParams) WithUserID

func (o *GetUserQuotaParams) WithUserID(userID int64) *GetUserQuotaParams

WithUserID adds the userID to the get user quota params

func (*GetUserQuotaParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserQuotaReader

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

GetUserQuotaReader is a Reader for the GetUserQuota structure.

func (*GetUserQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserQuotaUnauthorized

type GetUserQuotaUnauthorized struct {
	Payload *models.ErrorResponseBody
}

GetUserQuotaUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewGetUserQuotaUnauthorized

func NewGetUserQuotaUnauthorized() *GetUserQuotaUnauthorized

NewGetUserQuotaUnauthorized creates a GetUserQuotaUnauthorized with default headers values

func (*GetUserQuotaUnauthorized) Code

func (o *GetUserQuotaUnauthorized) Code() int

Code gets the status code for the get user quota unauthorized response

func (*GetUserQuotaUnauthorized) Error

func (o *GetUserQuotaUnauthorized) Error() string

func (*GetUserQuotaUnauthorized) GetPayload

func (*GetUserQuotaUnauthorized) IsClientError

func (o *GetUserQuotaUnauthorized) IsClientError() bool

IsClientError returns true when this get user quota unauthorized response has a 4xx status code

func (*GetUserQuotaUnauthorized) IsCode

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

IsCode returns true when this get user quota unauthorized response a status code equal to that given

func (*GetUserQuotaUnauthorized) IsRedirect

func (o *GetUserQuotaUnauthorized) IsRedirect() bool

IsRedirect returns true when this get user quota unauthorized response has a 3xx status code

func (*GetUserQuotaUnauthorized) IsServerError

func (o *GetUserQuotaUnauthorized) IsServerError() bool

IsServerError returns true when this get user quota unauthorized response has a 5xx status code

func (*GetUserQuotaUnauthorized) IsSuccess

func (o *GetUserQuotaUnauthorized) IsSuccess() bool

IsSuccess returns true when this get user quota unauthorized response has a 2xx status code

func (*GetUserQuotaUnauthorized) String

func (o *GetUserQuotaUnauthorized) String() string

type UpdateUserQuotaForbidden

type UpdateUserQuotaForbidden struct {
	Payload *models.ErrorResponseBody
}

UpdateUserQuotaForbidden describes a response with status code 403, with default header values.

ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.

func NewUpdateUserQuotaForbidden

func NewUpdateUserQuotaForbidden() *UpdateUserQuotaForbidden

NewUpdateUserQuotaForbidden creates a UpdateUserQuotaForbidden with default headers values

func (*UpdateUserQuotaForbidden) Code

func (o *UpdateUserQuotaForbidden) Code() int

Code gets the status code for the update user quota forbidden response

func (*UpdateUserQuotaForbidden) Error

func (o *UpdateUserQuotaForbidden) Error() string

func (*UpdateUserQuotaForbidden) GetPayload

func (*UpdateUserQuotaForbidden) IsClientError

func (o *UpdateUserQuotaForbidden) IsClientError() bool

IsClientError returns true when this update user quota forbidden response has a 4xx status code

func (*UpdateUserQuotaForbidden) IsCode

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

IsCode returns true when this update user quota forbidden response a status code equal to that given

func (*UpdateUserQuotaForbidden) IsRedirect

func (o *UpdateUserQuotaForbidden) IsRedirect() bool

IsRedirect returns true when this update user quota forbidden response has a 3xx status code

func (*UpdateUserQuotaForbidden) IsServerError

func (o *UpdateUserQuotaForbidden) IsServerError() bool

IsServerError returns true when this update user quota forbidden response has a 5xx status code

func (*UpdateUserQuotaForbidden) IsSuccess

func (o *UpdateUserQuotaForbidden) IsSuccess() bool

IsSuccess returns true when this update user quota forbidden response has a 2xx status code

func (*UpdateUserQuotaForbidden) String

func (o *UpdateUserQuotaForbidden) String() string

type UpdateUserQuotaInternalServerError

type UpdateUserQuotaInternalServerError struct {
	Payload *models.ErrorResponseBody
}

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

InternalServerError is a general error indicating something went wrong internally.

func NewUpdateUserQuotaInternalServerError

func NewUpdateUserQuotaInternalServerError() *UpdateUserQuotaInternalServerError

NewUpdateUserQuotaInternalServerError creates a UpdateUserQuotaInternalServerError with default headers values

func (*UpdateUserQuotaInternalServerError) Code

Code gets the status code for the update user quota internal server error response

func (*UpdateUserQuotaInternalServerError) Error

func (*UpdateUserQuotaInternalServerError) GetPayload

func (*UpdateUserQuotaInternalServerError) IsClientError

func (o *UpdateUserQuotaInternalServerError) IsClientError() bool

IsClientError returns true when this update user quota internal server error response has a 4xx status code

func (*UpdateUserQuotaInternalServerError) IsCode

IsCode returns true when this update user quota internal server error response a status code equal to that given

func (*UpdateUserQuotaInternalServerError) IsRedirect

func (o *UpdateUserQuotaInternalServerError) IsRedirect() bool

IsRedirect returns true when this update user quota internal server error response has a 3xx status code

func (*UpdateUserQuotaInternalServerError) IsServerError

func (o *UpdateUserQuotaInternalServerError) IsServerError() bool

IsServerError returns true when this update user quota internal server error response has a 5xx status code

func (*UpdateUserQuotaInternalServerError) IsSuccess

IsSuccess returns true when this update user quota internal server error response has a 2xx status code

func (*UpdateUserQuotaInternalServerError) String

type UpdateUserQuotaNotFound

type UpdateUserQuotaNotFound struct {
	Payload *models.ErrorResponseBody
}

UpdateUserQuotaNotFound describes a response with status code 404, with default header values.

NotFoundError is returned when the requested resource was not found.

func NewUpdateUserQuotaNotFound

func NewUpdateUserQuotaNotFound() *UpdateUserQuotaNotFound

NewUpdateUserQuotaNotFound creates a UpdateUserQuotaNotFound with default headers values

func (*UpdateUserQuotaNotFound) Code

func (o *UpdateUserQuotaNotFound) Code() int

Code gets the status code for the update user quota not found response

func (*UpdateUserQuotaNotFound) Error

func (o *UpdateUserQuotaNotFound) Error() string

func (*UpdateUserQuotaNotFound) GetPayload

func (*UpdateUserQuotaNotFound) IsClientError

func (o *UpdateUserQuotaNotFound) IsClientError() bool

IsClientError returns true when this update user quota not found response has a 4xx status code

func (*UpdateUserQuotaNotFound) IsCode

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

IsCode returns true when this update user quota not found response a status code equal to that given

func (*UpdateUserQuotaNotFound) IsRedirect

func (o *UpdateUserQuotaNotFound) IsRedirect() bool

IsRedirect returns true when this update user quota not found response has a 3xx status code

func (*UpdateUserQuotaNotFound) IsServerError

func (o *UpdateUserQuotaNotFound) IsServerError() bool

IsServerError returns true when this update user quota not found response has a 5xx status code

func (*UpdateUserQuotaNotFound) IsSuccess

func (o *UpdateUserQuotaNotFound) IsSuccess() bool

IsSuccess returns true when this update user quota not found response has a 2xx status code

func (*UpdateUserQuotaNotFound) String

func (o *UpdateUserQuotaNotFound) String() string

type UpdateUserQuotaOK

type UpdateUserQuotaOK struct {
	Payload *models.SuccessResponseBody
}

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

An OKResponse is returned if the request was successful.

func NewUpdateUserQuotaOK

func NewUpdateUserQuotaOK() *UpdateUserQuotaOK

NewUpdateUserQuotaOK creates a UpdateUserQuotaOK with default headers values

func (*UpdateUserQuotaOK) Code

func (o *UpdateUserQuotaOK) Code() int

Code gets the status code for the update user quota Ok response

func (*UpdateUserQuotaOK) Error

func (o *UpdateUserQuotaOK) Error() string

func (*UpdateUserQuotaOK) GetPayload

func (o *UpdateUserQuotaOK) GetPayload() *models.SuccessResponseBody

func (*UpdateUserQuotaOK) IsClientError

func (o *UpdateUserQuotaOK) IsClientError() bool

IsClientError returns true when this update user quota Ok response has a 4xx status code

func (*UpdateUserQuotaOK) IsCode

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

IsCode returns true when this update user quota Ok response a status code equal to that given

func (*UpdateUserQuotaOK) IsRedirect

func (o *UpdateUserQuotaOK) IsRedirect() bool

IsRedirect returns true when this update user quota Ok response has a 3xx status code

func (*UpdateUserQuotaOK) IsServerError

func (o *UpdateUserQuotaOK) IsServerError() bool

IsServerError returns true when this update user quota Ok response has a 5xx status code

func (*UpdateUserQuotaOK) IsSuccess

func (o *UpdateUserQuotaOK) IsSuccess() bool

IsSuccess returns true when this update user quota Ok response has a 2xx status code

func (*UpdateUserQuotaOK) String

func (o *UpdateUserQuotaOK) String() string

type UpdateUserQuotaParams

type UpdateUserQuotaParams struct {

	// Body.
	Body *models.UpdateQuotaCmd

	// QuotaTarget.
	QuotaTarget string

	// UserID.
	//
	// Format: int64
	UserID int64

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

UpdateUserQuotaParams contains all the parameters to send to the API endpoint

for the update user quota operation.

Typically these are written to a http.Request.

func NewUpdateUserQuotaParams

func NewUpdateUserQuotaParams() *UpdateUserQuotaParams

NewUpdateUserQuotaParams creates a new UpdateUserQuotaParams 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 NewUpdateUserQuotaParamsWithContext

func NewUpdateUserQuotaParamsWithContext(ctx context.Context) *UpdateUserQuotaParams

NewUpdateUserQuotaParamsWithContext creates a new UpdateUserQuotaParams object with the ability to set a context for a request.

func NewUpdateUserQuotaParamsWithHTTPClient

func NewUpdateUserQuotaParamsWithHTTPClient(client *http.Client) *UpdateUserQuotaParams

NewUpdateUserQuotaParamsWithHTTPClient creates a new UpdateUserQuotaParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserQuotaParamsWithTimeout

func NewUpdateUserQuotaParamsWithTimeout(timeout time.Duration) *UpdateUserQuotaParams

NewUpdateUserQuotaParamsWithTimeout creates a new UpdateUserQuotaParams object with the ability to set a timeout on a request.

func (*UpdateUserQuotaParams) SetBody

func (o *UpdateUserQuotaParams) SetBody(body *models.UpdateQuotaCmd)

SetBody adds the body to the update user quota params

func (*UpdateUserQuotaParams) SetContext

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

SetContext adds the context to the update user quota params

func (*UpdateUserQuotaParams) SetDefaults

func (o *UpdateUserQuotaParams) SetDefaults()

SetDefaults hydrates default values in the update user quota params (not the query body).

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

func (*UpdateUserQuotaParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user quota params

func (*UpdateUserQuotaParams) SetQuotaTarget

func (o *UpdateUserQuotaParams) SetQuotaTarget(quotaTarget string)

SetQuotaTarget adds the quotaTarget to the update user quota params

func (*UpdateUserQuotaParams) SetTimeout

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

SetTimeout adds the timeout to the update user quota params

func (*UpdateUserQuotaParams) SetUserID

func (o *UpdateUserQuotaParams) SetUserID(userID int64)

SetUserID adds the userId to the update user quota params

func (*UpdateUserQuotaParams) WithBody

WithBody adds the body to the update user quota params

func (*UpdateUserQuotaParams) WithContext

WithContext adds the context to the update user quota params

func (*UpdateUserQuotaParams) WithDefaults

func (o *UpdateUserQuotaParams) WithDefaults() *UpdateUserQuotaParams

WithDefaults hydrates default values in the update user quota params (not the query body).

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

func (*UpdateUserQuotaParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user quota params

func (*UpdateUserQuotaParams) WithQuotaTarget

func (o *UpdateUserQuotaParams) WithQuotaTarget(quotaTarget string) *UpdateUserQuotaParams

WithQuotaTarget adds the quotaTarget to the update user quota params

func (*UpdateUserQuotaParams) WithTimeout

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

WithTimeout adds the timeout to the update user quota params

func (*UpdateUserQuotaParams) WithUserID

func (o *UpdateUserQuotaParams) WithUserID(userID int64) *UpdateUserQuotaParams

WithUserID adds the userID to the update user quota params

func (*UpdateUserQuotaParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserQuotaReader

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

UpdateUserQuotaReader is a Reader for the UpdateUserQuota structure.

func (*UpdateUserQuotaReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserQuotaUnauthorized

type UpdateUserQuotaUnauthorized struct {
	Payload *models.ErrorResponseBody
}

UpdateUserQuotaUnauthorized describes a response with status code 401, with default header values.

UnauthorizedError is returned when the request is not authenticated.

func NewUpdateUserQuotaUnauthorized

func NewUpdateUserQuotaUnauthorized() *UpdateUserQuotaUnauthorized

NewUpdateUserQuotaUnauthorized creates a UpdateUserQuotaUnauthorized with default headers values

func (*UpdateUserQuotaUnauthorized) Code

func (o *UpdateUserQuotaUnauthorized) Code() int

Code gets the status code for the update user quota unauthorized response

func (*UpdateUserQuotaUnauthorized) Error

func (*UpdateUserQuotaUnauthorized) GetPayload

func (*UpdateUserQuotaUnauthorized) IsClientError

func (o *UpdateUserQuotaUnauthorized) IsClientError() bool

IsClientError returns true when this update user quota unauthorized response has a 4xx status code

func (*UpdateUserQuotaUnauthorized) IsCode

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

IsCode returns true when this update user quota unauthorized response a status code equal to that given

func (*UpdateUserQuotaUnauthorized) IsRedirect

func (o *UpdateUserQuotaUnauthorized) IsRedirect() bool

IsRedirect returns true when this update user quota unauthorized response has a 3xx status code

func (*UpdateUserQuotaUnauthorized) IsServerError

func (o *UpdateUserQuotaUnauthorized) IsServerError() bool

IsServerError returns true when this update user quota unauthorized response has a 5xx status code

func (*UpdateUserQuotaUnauthorized) IsSuccess

func (o *UpdateUserQuotaUnauthorized) IsSuccess() bool

IsSuccess returns true when this update user quota unauthorized response has a 2xx status code

func (*UpdateUserQuotaUnauthorized) String

func (o *UpdateUserQuotaUnauthorized) String() string

Jump to

Keyboard shortcuts

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