Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateUserOK, error)
- func (a *Client) CurrentUser(params *CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CurrentUserOK, error)
- func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteUserOK, error)
- func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserOK, error)
- func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUsersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateCurrentUserOK, error)
- func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateUserOK, error)
- type ClientOption
- type ClientService
- type CreateUserBadRequest
- func (o *CreateUserBadRequest) Code() int
- func (o *CreateUserBadRequest) Error() string
- func (o *CreateUserBadRequest) GetPayload() *models.Error
- func (o *CreateUserBadRequest) IsClientError() bool
- func (o *CreateUserBadRequest) IsCode(code int) bool
- func (o *CreateUserBadRequest) IsRedirect() bool
- func (o *CreateUserBadRequest) IsServerError() bool
- func (o *CreateUserBadRequest) IsSuccess() bool
- func (o *CreateUserBadRequest) String() string
- type CreateUserForbidden
- func (o *CreateUserForbidden) Code() int
- func (o *CreateUserForbidden) Error() string
- func (o *CreateUserForbidden) GetPayload() *models.Error
- func (o *CreateUserForbidden) IsClientError() bool
- func (o *CreateUserForbidden) IsCode(code int) bool
- func (o *CreateUserForbidden) IsRedirect() bool
- func (o *CreateUserForbidden) IsServerError() bool
- func (o *CreateUserForbidden) IsSuccess() bool
- func (o *CreateUserForbidden) String() string
- type CreateUserOK
- func (o *CreateUserOK) Code() int
- func (o *CreateUserOK) Error() string
- func (o *CreateUserOK) GetPayload() *models.UserExternal
- func (o *CreateUserOK) IsClientError() bool
- func (o *CreateUserOK) IsCode(code int) bool
- func (o *CreateUserOK) IsRedirect() bool
- func (o *CreateUserOK) IsServerError() bool
- func (o *CreateUserOK) IsSuccess() bool
- func (o *CreateUserOK) String() string
- type CreateUserParams
- func (o *CreateUserParams) SetBody(body *models.CreateUserExternal)
- func (o *CreateUserParams) SetContext(ctx context.Context)
- func (o *CreateUserParams) SetDefaults()
- func (o *CreateUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateUserParams) WithBody(body *models.CreateUserExternal) *CreateUserParams
- func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
- func (o *CreateUserParams) WithDefaults() *CreateUserParams
- func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
- func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
- func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUserReader
- type CreateUserUnauthorized
- func (o *CreateUserUnauthorized) Code() int
- func (o *CreateUserUnauthorized) Error() string
- func (o *CreateUserUnauthorized) GetPayload() *models.Error
- func (o *CreateUserUnauthorized) IsClientError() bool
- func (o *CreateUserUnauthorized) IsCode(code int) bool
- func (o *CreateUserUnauthorized) IsRedirect() bool
- func (o *CreateUserUnauthorized) IsServerError() bool
- func (o *CreateUserUnauthorized) IsSuccess() bool
- func (o *CreateUserUnauthorized) String() string
- type CurrentUserForbidden
- func (o *CurrentUserForbidden) Code() int
- func (o *CurrentUserForbidden) Error() string
- func (o *CurrentUserForbidden) GetPayload() *models.Error
- func (o *CurrentUserForbidden) IsClientError() bool
- func (o *CurrentUserForbidden) IsCode(code int) bool
- func (o *CurrentUserForbidden) IsRedirect() bool
- func (o *CurrentUserForbidden) IsServerError() bool
- func (o *CurrentUserForbidden) IsSuccess() bool
- func (o *CurrentUserForbidden) String() string
- type CurrentUserOK
- func (o *CurrentUserOK) Code() int
- func (o *CurrentUserOK) Error() string
- func (o *CurrentUserOK) GetPayload() *models.UserExternal
- func (o *CurrentUserOK) IsClientError() bool
- func (o *CurrentUserOK) IsCode(code int) bool
- func (o *CurrentUserOK) IsRedirect() bool
- func (o *CurrentUserOK) IsServerError() bool
- func (o *CurrentUserOK) IsSuccess() bool
- func (o *CurrentUserOK) String() string
- type CurrentUserParams
- func (o *CurrentUserParams) SetContext(ctx context.Context)
- func (o *CurrentUserParams) SetDefaults()
- func (o *CurrentUserParams) SetHTTPClient(client *http.Client)
- func (o *CurrentUserParams) SetTimeout(timeout time.Duration)
- func (o *CurrentUserParams) WithContext(ctx context.Context) *CurrentUserParams
- func (o *CurrentUserParams) WithDefaults() *CurrentUserParams
- func (o *CurrentUserParams) WithHTTPClient(client *http.Client) *CurrentUserParams
- func (o *CurrentUserParams) WithTimeout(timeout time.Duration) *CurrentUserParams
- func (o *CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CurrentUserReader
- type CurrentUserUnauthorized
- func (o *CurrentUserUnauthorized) Code() int
- func (o *CurrentUserUnauthorized) Error() string
- func (o *CurrentUserUnauthorized) GetPayload() *models.Error
- func (o *CurrentUserUnauthorized) IsClientError() bool
- func (o *CurrentUserUnauthorized) IsCode(code int) bool
- func (o *CurrentUserUnauthorized) IsRedirect() bool
- func (o *CurrentUserUnauthorized) IsServerError() bool
- func (o *CurrentUserUnauthorized) IsSuccess() bool
- func (o *CurrentUserUnauthorized) String() string
- type DeleteUserBadRequest
- func (o *DeleteUserBadRequest) Code() int
- func (o *DeleteUserBadRequest) Error() string
- func (o *DeleteUserBadRequest) GetPayload() *models.Error
- func (o *DeleteUserBadRequest) IsClientError() bool
- func (o *DeleteUserBadRequest) IsCode(code int) bool
- func (o *DeleteUserBadRequest) IsRedirect() bool
- func (o *DeleteUserBadRequest) IsServerError() bool
- func (o *DeleteUserBadRequest) IsSuccess() bool
- func (o *DeleteUserBadRequest) String() string
- type DeleteUserForbidden
- func (o *DeleteUserForbidden) Code() int
- func (o *DeleteUserForbidden) Error() string
- func (o *DeleteUserForbidden) GetPayload() *models.Error
- func (o *DeleteUserForbidden) IsClientError() bool
- func (o *DeleteUserForbidden) IsCode(code int) bool
- func (o *DeleteUserForbidden) IsRedirect() bool
- func (o *DeleteUserForbidden) IsServerError() bool
- func (o *DeleteUserForbidden) IsSuccess() bool
- func (o *DeleteUserForbidden) String() string
- type DeleteUserNotFound
- func (o *DeleteUserNotFound) Code() int
- func (o *DeleteUserNotFound) Error() string
- func (o *DeleteUserNotFound) GetPayload() *models.Error
- func (o *DeleteUserNotFound) IsClientError() bool
- func (o *DeleteUserNotFound) IsCode(code int) bool
- func (o *DeleteUserNotFound) IsRedirect() bool
- func (o *DeleteUserNotFound) IsServerError() bool
- func (o *DeleteUserNotFound) IsSuccess() bool
- func (o *DeleteUserNotFound) String() string
- type DeleteUserOK
- func (o *DeleteUserOK) Code() int
- func (o *DeleteUserOK) Error() string
- func (o *DeleteUserOK) IsClientError() bool
- func (o *DeleteUserOK) IsCode(code int) bool
- func (o *DeleteUserOK) IsRedirect() bool
- func (o *DeleteUserOK) IsServerError() bool
- func (o *DeleteUserOK) IsSuccess() bool
- func (o *DeleteUserOK) String() string
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetDefaults()
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetID(id int64)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithID(id int64) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type DeleteUserUnauthorized
- func (o *DeleteUserUnauthorized) Code() int
- func (o *DeleteUserUnauthorized) Error() string
- func (o *DeleteUserUnauthorized) GetPayload() *models.Error
- func (o *DeleteUserUnauthorized) IsClientError() bool
- func (o *DeleteUserUnauthorized) IsCode(code int) bool
- func (o *DeleteUserUnauthorized) IsRedirect() bool
- func (o *DeleteUserUnauthorized) IsServerError() bool
- func (o *DeleteUserUnauthorized) IsSuccess() bool
- func (o *DeleteUserUnauthorized) String() string
- type GetUserBadRequest
- func (o *GetUserBadRequest) Code() int
- func (o *GetUserBadRequest) Error() string
- func (o *GetUserBadRequest) GetPayload() *models.Error
- func (o *GetUserBadRequest) IsClientError() bool
- func (o *GetUserBadRequest) IsCode(code int) bool
- func (o *GetUserBadRequest) IsRedirect() bool
- func (o *GetUserBadRequest) IsServerError() bool
- func (o *GetUserBadRequest) IsSuccess() bool
- func (o *GetUserBadRequest) String() string
- type GetUserForbidden
- func (o *GetUserForbidden) Code() int
- func (o *GetUserForbidden) Error() string
- func (o *GetUserForbidden) GetPayload() *models.Error
- func (o *GetUserForbidden) IsClientError() bool
- func (o *GetUserForbidden) IsCode(code int) bool
- func (o *GetUserForbidden) IsRedirect() bool
- func (o *GetUserForbidden) IsServerError() bool
- func (o *GetUserForbidden) IsSuccess() bool
- func (o *GetUserForbidden) String() string
- type GetUserNotFound
- func (o *GetUserNotFound) Code() int
- func (o *GetUserNotFound) Error() string
- func (o *GetUserNotFound) GetPayload() *models.Error
- func (o *GetUserNotFound) IsClientError() bool
- func (o *GetUserNotFound) IsCode(code int) bool
- func (o *GetUserNotFound) IsRedirect() bool
- func (o *GetUserNotFound) IsServerError() bool
- func (o *GetUserNotFound) IsSuccess() bool
- func (o *GetUserNotFound) String() string
- type GetUserOK
- func (o *GetUserOK) Code() int
- func (o *GetUserOK) Error() string
- func (o *GetUserOK) GetPayload() *models.UserExternal
- func (o *GetUserOK) IsClientError() bool
- func (o *GetUserOK) IsCode(code int) bool
- func (o *GetUserOK) IsRedirect() bool
- func (o *GetUserOK) IsServerError() bool
- func (o *GetUserOK) IsSuccess() bool
- func (o *GetUserOK) String() string
- type GetUserParams
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetDefaults()
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetID(id int64)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithDefaults() *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithID(id int64) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type GetUserUnauthorized
- func (o *GetUserUnauthorized) Code() int
- func (o *GetUserUnauthorized) Error() string
- func (o *GetUserUnauthorized) GetPayload() *models.Error
- func (o *GetUserUnauthorized) IsClientError() bool
- func (o *GetUserUnauthorized) IsCode(code int) bool
- func (o *GetUserUnauthorized) IsRedirect() bool
- func (o *GetUserUnauthorized) IsServerError() bool
- func (o *GetUserUnauthorized) IsSuccess() bool
- func (o *GetUserUnauthorized) String() string
- type GetUsersForbidden
- func (o *GetUsersForbidden) Code() int
- func (o *GetUsersForbidden) Error() string
- func (o *GetUsersForbidden) GetPayload() *models.Error
- func (o *GetUsersForbidden) IsClientError() bool
- func (o *GetUsersForbidden) IsCode(code int) bool
- func (o *GetUsersForbidden) IsRedirect() bool
- func (o *GetUsersForbidden) IsServerError() bool
- func (o *GetUsersForbidden) IsSuccess() bool
- func (o *GetUsersForbidden) String() string
- type GetUsersOK
- func (o *GetUsersOK) Code() int
- func (o *GetUsersOK) Error() string
- func (o *GetUsersOK) GetPayload() []*models.UserExternal
- func (o *GetUsersOK) IsClientError() bool
- func (o *GetUsersOK) IsCode(code int) bool
- func (o *GetUsersOK) IsRedirect() bool
- func (o *GetUsersOK) IsServerError() bool
- func (o *GetUsersOK) IsSuccess() bool
- func (o *GetUsersOK) String() string
- type GetUsersParams
- func (o *GetUsersParams) SetContext(ctx context.Context)
- func (o *GetUsersParams) SetDefaults()
- func (o *GetUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
- func (o *GetUsersParams) WithDefaults() *GetUsersParams
- func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
- func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
- func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersReader
- type GetUsersUnauthorized
- func (o *GetUsersUnauthorized) Code() int
- func (o *GetUsersUnauthorized) Error() string
- func (o *GetUsersUnauthorized) GetPayload() *models.Error
- func (o *GetUsersUnauthorized) IsClientError() bool
- func (o *GetUsersUnauthorized) IsCode(code int) bool
- func (o *GetUsersUnauthorized) IsRedirect() bool
- func (o *GetUsersUnauthorized) IsServerError() bool
- func (o *GetUsersUnauthorized) IsSuccess() bool
- func (o *GetUsersUnauthorized) String() string
- type UpdateCurrentUserBadRequest
- func (o *UpdateCurrentUserBadRequest) Code() int
- func (o *UpdateCurrentUserBadRequest) Error() string
- func (o *UpdateCurrentUserBadRequest) GetPayload() *models.Error
- func (o *UpdateCurrentUserBadRequest) IsClientError() bool
- func (o *UpdateCurrentUserBadRequest) IsCode(code int) bool
- func (o *UpdateCurrentUserBadRequest) IsRedirect() bool
- func (o *UpdateCurrentUserBadRequest) IsServerError() bool
- func (o *UpdateCurrentUserBadRequest) IsSuccess() bool
- func (o *UpdateCurrentUserBadRequest) String() string
- type UpdateCurrentUserForbidden
- func (o *UpdateCurrentUserForbidden) Code() int
- func (o *UpdateCurrentUserForbidden) Error() string
- func (o *UpdateCurrentUserForbidden) GetPayload() *models.Error
- func (o *UpdateCurrentUserForbidden) IsClientError() bool
- func (o *UpdateCurrentUserForbidden) IsCode(code int) bool
- func (o *UpdateCurrentUserForbidden) IsRedirect() bool
- func (o *UpdateCurrentUserForbidden) IsServerError() bool
- func (o *UpdateCurrentUserForbidden) IsSuccess() bool
- func (o *UpdateCurrentUserForbidden) String() string
- type UpdateCurrentUserOK
- func (o *UpdateCurrentUserOK) Code() int
- func (o *UpdateCurrentUserOK) Error() string
- func (o *UpdateCurrentUserOK) IsClientError() bool
- func (o *UpdateCurrentUserOK) IsCode(code int) bool
- func (o *UpdateCurrentUserOK) IsRedirect() bool
- func (o *UpdateCurrentUserOK) IsServerError() bool
- func (o *UpdateCurrentUserOK) IsSuccess() bool
- func (o *UpdateCurrentUserOK) String() string
- type UpdateCurrentUserParams
- func NewUpdateCurrentUserParams() *UpdateCurrentUserParams
- func NewUpdateCurrentUserParamsWithContext(ctx context.Context) *UpdateCurrentUserParams
- func NewUpdateCurrentUserParamsWithHTTPClient(client *http.Client) *UpdateCurrentUserParams
- func NewUpdateCurrentUserParamsWithTimeout(timeout time.Duration) *UpdateCurrentUserParams
- func (o *UpdateCurrentUserParams) SetBody(body *models.UserExternalPass)
- func (o *UpdateCurrentUserParams) SetContext(ctx context.Context)
- func (o *UpdateCurrentUserParams) SetDefaults()
- func (o *UpdateCurrentUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCurrentUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCurrentUserParams) WithBody(body *models.UserExternalPass) *UpdateCurrentUserParams
- func (o *UpdateCurrentUserParams) WithContext(ctx context.Context) *UpdateCurrentUserParams
- func (o *UpdateCurrentUserParams) WithDefaults() *UpdateCurrentUserParams
- func (o *UpdateCurrentUserParams) WithHTTPClient(client *http.Client) *UpdateCurrentUserParams
- func (o *UpdateCurrentUserParams) WithTimeout(timeout time.Duration) *UpdateCurrentUserParams
- func (o *UpdateCurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCurrentUserReader
- type UpdateCurrentUserUnauthorized
- func (o *UpdateCurrentUserUnauthorized) Code() int
- func (o *UpdateCurrentUserUnauthorized) Error() string
- func (o *UpdateCurrentUserUnauthorized) GetPayload() *models.Error
- func (o *UpdateCurrentUserUnauthorized) IsClientError() bool
- func (o *UpdateCurrentUserUnauthorized) IsCode(code int) bool
- func (o *UpdateCurrentUserUnauthorized) IsRedirect() bool
- func (o *UpdateCurrentUserUnauthorized) IsServerError() bool
- func (o *UpdateCurrentUserUnauthorized) IsSuccess() bool
- func (o *UpdateCurrentUserUnauthorized) String() string
- type UpdateUserBadRequest
- func (o *UpdateUserBadRequest) Code() int
- func (o *UpdateUserBadRequest) Error() string
- func (o *UpdateUserBadRequest) GetPayload() *models.Error
- func (o *UpdateUserBadRequest) IsClientError() bool
- func (o *UpdateUserBadRequest) IsCode(code int) bool
- func (o *UpdateUserBadRequest) IsRedirect() bool
- func (o *UpdateUserBadRequest) IsServerError() bool
- func (o *UpdateUserBadRequest) IsSuccess() bool
- func (o *UpdateUserBadRequest) String() string
- type UpdateUserForbidden
- func (o *UpdateUserForbidden) Code() int
- func (o *UpdateUserForbidden) Error() string
- func (o *UpdateUserForbidden) GetPayload() *models.Error
- func (o *UpdateUserForbidden) IsClientError() bool
- func (o *UpdateUserForbidden) IsCode(code int) bool
- func (o *UpdateUserForbidden) IsRedirect() bool
- func (o *UpdateUserForbidden) IsServerError() bool
- func (o *UpdateUserForbidden) IsSuccess() bool
- func (o *UpdateUserForbidden) String() string
- type UpdateUserNotFound
- func (o *UpdateUserNotFound) Code() int
- func (o *UpdateUserNotFound) Error() string
- func (o *UpdateUserNotFound) GetPayload() *models.Error
- func (o *UpdateUserNotFound) IsClientError() bool
- func (o *UpdateUserNotFound) IsCode(code int) bool
- func (o *UpdateUserNotFound) IsRedirect() bool
- func (o *UpdateUserNotFound) IsServerError() bool
- func (o *UpdateUserNotFound) IsSuccess() bool
- func (o *UpdateUserNotFound) String() string
- type UpdateUserOK
- func (o *UpdateUserOK) Code() int
- func (o *UpdateUserOK) Error() string
- func (o *UpdateUserOK) GetPayload() *models.UserExternal
- func (o *UpdateUserOK) IsClientError() bool
- func (o *UpdateUserOK) IsCode(code int) bool
- func (o *UpdateUserOK) IsRedirect() bool
- func (o *UpdateUserOK) IsServerError() bool
- func (o *UpdateUserOK) IsSuccess() bool
- func (o *UpdateUserOK) String() string
- type UpdateUserParams
- func (o *UpdateUserParams) SetBody(body *models.UpdateUserExternal)
- func (o *UpdateUserParams) SetContext(ctx context.Context)
- func (o *UpdateUserParams) SetDefaults()
- func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserParams) SetID(id int64)
- func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserParams) WithBody(body *models.UpdateUserExternal) *UpdateUserParams
- func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
- func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
- func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
- func (o *UpdateUserParams) WithID(id int64) *UpdateUserParams
- func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
- func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserReader
- type UpdateUserUnauthorized
- func (o *UpdateUserUnauthorized) Code() int
- func (o *UpdateUserUnauthorized) Error() string
- func (o *UpdateUserUnauthorized) GetPayload() *models.Error
- func (o *UpdateUserUnauthorized) IsClientError() bool
- func (o *UpdateUserUnauthorized) IsCode(code int) bool
- func (o *UpdateUserUnauthorized) IsRedirect() bool
- func (o *UpdateUserUnauthorized) IsServerError() bool
- func (o *UpdateUserUnauthorized) IsSuccess() bool
- func (o *UpdateUserUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user API
func (*Client) CreateUser ¶
func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserOK, error)
CreateUser creates a user With enabled registration: non admin users can be created without authentication.
With disabled registrations: users can only be created by admin users.
func (*Client) CurrentUser ¶
func (a *Client) CurrentUser(params *CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CurrentUserOK, error)
CurrentUser returns the current user
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserOK, error)
DeleteUser deletes a user
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)
GetUser gets a user
func (*Client) GetUsers ¶
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error)
GetUsers returns all users
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCurrentUser ¶
func (a *Client) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentUserOK, error)
UpdateCurrentUser updates the password of the current user
func (*Client) UpdateUser ¶
func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserOK, error)
UpdateUser updates a user
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserOK, error) CurrentUser(params *CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CurrentUserOK, error) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserOK, error) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCurrentUserOK, error) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserOK, 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 user API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new user API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new user API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type CreateUserBadRequest ¶
CreateUserBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateUserBadRequest ¶
func NewCreateUserBadRequest() *CreateUserBadRequest
NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values
func (*CreateUserBadRequest) Code ¶
func (o *CreateUserBadRequest) Code() int
Code gets the status code for the create user bad request response
func (*CreateUserBadRequest) Error ¶
func (o *CreateUserBadRequest) Error() string
func (*CreateUserBadRequest) GetPayload ¶
func (o *CreateUserBadRequest) GetPayload() *models.Error
func (*CreateUserBadRequest) IsClientError ¶
func (o *CreateUserBadRequest) IsClientError() bool
IsClientError returns true when this create user bad request response has a 4xx status code
func (*CreateUserBadRequest) IsCode ¶
func (o *CreateUserBadRequest) IsCode(code int) bool
IsCode returns true when this create user bad request response a status code equal to that given
func (*CreateUserBadRequest) IsRedirect ¶
func (o *CreateUserBadRequest) IsRedirect() bool
IsRedirect returns true when this create user bad request response has a 3xx status code
func (*CreateUserBadRequest) IsServerError ¶
func (o *CreateUserBadRequest) IsServerError() bool
IsServerError returns true when this create user bad request response has a 5xx status code
func (*CreateUserBadRequest) IsSuccess ¶
func (o *CreateUserBadRequest) IsSuccess() bool
IsSuccess returns true when this create user bad request response has a 2xx status code
func (*CreateUserBadRequest) String ¶
func (o *CreateUserBadRequest) String() string
type CreateUserForbidden ¶
CreateUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateUserForbidden ¶
func NewCreateUserForbidden() *CreateUserForbidden
NewCreateUserForbidden creates a CreateUserForbidden with default headers values
func (*CreateUserForbidden) Code ¶
func (o *CreateUserForbidden) Code() int
Code gets the status code for the create user forbidden response
func (*CreateUserForbidden) Error ¶
func (o *CreateUserForbidden) Error() string
func (*CreateUserForbidden) GetPayload ¶
func (o *CreateUserForbidden) GetPayload() *models.Error
func (*CreateUserForbidden) IsClientError ¶
func (o *CreateUserForbidden) IsClientError() bool
IsClientError returns true when this create user forbidden response has a 4xx status code
func (*CreateUserForbidden) IsCode ¶
func (o *CreateUserForbidden) IsCode(code int) bool
IsCode returns true when this create user forbidden response a status code equal to that given
func (*CreateUserForbidden) IsRedirect ¶
func (o *CreateUserForbidden) IsRedirect() bool
IsRedirect returns true when this create user forbidden response has a 3xx status code
func (*CreateUserForbidden) IsServerError ¶
func (o *CreateUserForbidden) IsServerError() bool
IsServerError returns true when this create user forbidden response has a 5xx status code
func (*CreateUserForbidden) IsSuccess ¶
func (o *CreateUserForbidden) IsSuccess() bool
IsSuccess returns true when this create user forbidden response has a 2xx status code
func (*CreateUserForbidden) String ¶
func (o *CreateUserForbidden) String() string
type CreateUserOK ¶
type CreateUserOK struct {
Payload *models.UserExternal
}
CreateUserOK describes a response with status code 200, with default header values.
Ok
func NewCreateUserOK ¶
func NewCreateUserOK() *CreateUserOK
NewCreateUserOK creates a CreateUserOK with default headers values
func (*CreateUserOK) Code ¶
func (o *CreateUserOK) Code() int
Code gets the status code for the create user o k response
func (*CreateUserOK) Error ¶
func (o *CreateUserOK) Error() string
func (*CreateUserOK) GetPayload ¶
func (o *CreateUserOK) GetPayload() *models.UserExternal
func (*CreateUserOK) IsClientError ¶
func (o *CreateUserOK) IsClientError() bool
IsClientError returns true when this create user o k response has a 4xx status code
func (*CreateUserOK) IsCode ¶
func (o *CreateUserOK) IsCode(code int) bool
IsCode returns true when this create user o k response a status code equal to that given
func (*CreateUserOK) IsRedirect ¶
func (o *CreateUserOK) IsRedirect() bool
IsRedirect returns true when this create user o k response has a 3xx status code
func (*CreateUserOK) IsServerError ¶
func (o *CreateUserOK) IsServerError() bool
IsServerError returns true when this create user o k response has a 5xx status code
func (*CreateUserOK) IsSuccess ¶
func (o *CreateUserOK) IsSuccess() bool
IsSuccess returns true when this create user o k response has a 2xx status code
func (*CreateUserOK) String ¶
func (o *CreateUserOK) String() string
type CreateUserParams ¶
type CreateUserParams struct { /* Body. the user to add */ Body *models.CreateUserExternal Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUserParams contains all the parameters to send to the API endpoint
for the create user operation. Typically these are written to a http.Request.
func NewCreateUserParams ¶
func NewCreateUserParams() *CreateUserParams
NewCreateUserParams creates a new CreateUserParams 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 NewCreateUserParamsWithContext ¶
func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams
NewCreateUserParamsWithContext creates a new CreateUserParams object with the ability to set a context for a request.
func NewCreateUserParamsWithHTTPClient ¶
func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams
NewCreateUserParamsWithHTTPClient creates a new CreateUserParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUserParamsWithTimeout ¶
func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams
NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the ability to set a timeout on a request.
func (*CreateUserParams) SetBody ¶
func (o *CreateUserParams) SetBody(body *models.CreateUserExternal)
SetBody adds the body to the create user params
func (*CreateUserParams) SetContext ¶
func (o *CreateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the create user params
func (*CreateUserParams) SetDefaults ¶
func (o *CreateUserParams) SetDefaults()
SetDefaults hydrates default values in the create user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUserParams) SetHTTPClient ¶
func (o *CreateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) SetTimeout ¶
func (o *CreateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create user params
func (*CreateUserParams) WithBody ¶
func (o *CreateUserParams) WithBody(body *models.CreateUserExternal) *CreateUserParams
WithBody adds the body to the create user params
func (*CreateUserParams) WithContext ¶
func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
WithContext adds the context to the create user params
func (*CreateUserParams) WithDefaults ¶
func (o *CreateUserParams) WithDefaults() *CreateUserParams
WithDefaults hydrates default values in the create user params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUserParams) WithHTTPClient ¶
func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
WithHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) WithTimeout ¶
func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
WithTimeout adds the timeout to the create user params
func (*CreateUserParams) WriteToRequest ¶
func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUserReader ¶
type CreateUserReader struct {
// contains filtered or unexported fields
}
CreateUserReader is a Reader for the CreateUser structure.
func (*CreateUserReader) ReadResponse ¶
func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateUserUnauthorized ¶
type CreateUserUnauthorized struct {
}CreateUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateUserUnauthorized ¶
func NewCreateUserUnauthorized() *CreateUserUnauthorized
NewCreateUserUnauthorized creates a CreateUserUnauthorized with default headers values
func (*CreateUserUnauthorized) Code ¶
func (o *CreateUserUnauthorized) Code() int
Code gets the status code for the create user unauthorized response
func (*CreateUserUnauthorized) Error ¶
func (o *CreateUserUnauthorized) Error() string
func (*CreateUserUnauthorized) GetPayload ¶
func (o *CreateUserUnauthorized) GetPayload() *models.Error
func (*CreateUserUnauthorized) IsClientError ¶
func (o *CreateUserUnauthorized) IsClientError() bool
IsClientError returns true when this create user unauthorized response has a 4xx status code
func (*CreateUserUnauthorized) IsCode ¶
func (o *CreateUserUnauthorized) IsCode(code int) bool
IsCode returns true when this create user unauthorized response a status code equal to that given
func (*CreateUserUnauthorized) IsRedirect ¶
func (o *CreateUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this create user unauthorized response has a 3xx status code
func (*CreateUserUnauthorized) IsServerError ¶
func (o *CreateUserUnauthorized) IsServerError() bool
IsServerError returns true when this create user unauthorized response has a 5xx status code
func (*CreateUserUnauthorized) IsSuccess ¶
func (o *CreateUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this create user unauthorized response has a 2xx status code
func (*CreateUserUnauthorized) String ¶
func (o *CreateUserUnauthorized) String() string
type CurrentUserForbidden ¶
CurrentUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCurrentUserForbidden ¶
func NewCurrentUserForbidden() *CurrentUserForbidden
NewCurrentUserForbidden creates a CurrentUserForbidden with default headers values
func (*CurrentUserForbidden) Code ¶
func (o *CurrentUserForbidden) Code() int
Code gets the status code for the current user forbidden response
func (*CurrentUserForbidden) Error ¶
func (o *CurrentUserForbidden) Error() string
func (*CurrentUserForbidden) GetPayload ¶
func (o *CurrentUserForbidden) GetPayload() *models.Error
func (*CurrentUserForbidden) IsClientError ¶
func (o *CurrentUserForbidden) IsClientError() bool
IsClientError returns true when this current user forbidden response has a 4xx status code
func (*CurrentUserForbidden) IsCode ¶
func (o *CurrentUserForbidden) IsCode(code int) bool
IsCode returns true when this current user forbidden response a status code equal to that given
func (*CurrentUserForbidden) IsRedirect ¶
func (o *CurrentUserForbidden) IsRedirect() bool
IsRedirect returns true when this current user forbidden response has a 3xx status code
func (*CurrentUserForbidden) IsServerError ¶
func (o *CurrentUserForbidden) IsServerError() bool
IsServerError returns true when this current user forbidden response has a 5xx status code
func (*CurrentUserForbidden) IsSuccess ¶
func (o *CurrentUserForbidden) IsSuccess() bool
IsSuccess returns true when this current user forbidden response has a 2xx status code
func (*CurrentUserForbidden) String ¶
func (o *CurrentUserForbidden) String() string
type CurrentUserOK ¶
type CurrentUserOK struct {
Payload *models.UserExternal
}
CurrentUserOK describes a response with status code 200, with default header values.
Ok
func NewCurrentUserOK ¶
func NewCurrentUserOK() *CurrentUserOK
NewCurrentUserOK creates a CurrentUserOK with default headers values
func (*CurrentUserOK) Code ¶
func (o *CurrentUserOK) Code() int
Code gets the status code for the current user o k response
func (*CurrentUserOK) Error ¶
func (o *CurrentUserOK) Error() string
func (*CurrentUserOK) GetPayload ¶
func (o *CurrentUserOK) GetPayload() *models.UserExternal
func (*CurrentUserOK) IsClientError ¶
func (o *CurrentUserOK) IsClientError() bool
IsClientError returns true when this current user o k response has a 4xx status code
func (*CurrentUserOK) IsCode ¶
func (o *CurrentUserOK) IsCode(code int) bool
IsCode returns true when this current user o k response a status code equal to that given
func (*CurrentUserOK) IsRedirect ¶
func (o *CurrentUserOK) IsRedirect() bool
IsRedirect returns true when this current user o k response has a 3xx status code
func (*CurrentUserOK) IsServerError ¶
func (o *CurrentUserOK) IsServerError() bool
IsServerError returns true when this current user o k response has a 5xx status code
func (*CurrentUserOK) IsSuccess ¶
func (o *CurrentUserOK) IsSuccess() bool
IsSuccess returns true when this current user o k response has a 2xx status code
func (*CurrentUserOK) String ¶
func (o *CurrentUserOK) String() string
type CurrentUserParams ¶
type CurrentUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CurrentUserParams contains all the parameters to send to the API endpoint
for the current user operation. Typically these are written to a http.Request.
func NewCurrentUserParams ¶
func NewCurrentUserParams() *CurrentUserParams
NewCurrentUserParams creates a new CurrentUserParams 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 NewCurrentUserParamsWithContext ¶
func NewCurrentUserParamsWithContext(ctx context.Context) *CurrentUserParams
NewCurrentUserParamsWithContext creates a new CurrentUserParams object with the ability to set a context for a request.
func NewCurrentUserParamsWithHTTPClient ¶
func NewCurrentUserParamsWithHTTPClient(client *http.Client) *CurrentUserParams
NewCurrentUserParamsWithHTTPClient creates a new CurrentUserParams object with the ability to set a custom HTTPClient for a request.
func NewCurrentUserParamsWithTimeout ¶
func NewCurrentUserParamsWithTimeout(timeout time.Duration) *CurrentUserParams
NewCurrentUserParamsWithTimeout creates a new CurrentUserParams object with the ability to set a timeout on a request.
func (*CurrentUserParams) SetContext ¶
func (o *CurrentUserParams) SetContext(ctx context.Context)
SetContext adds the context to the current user params
func (*CurrentUserParams) SetDefaults ¶
func (o *CurrentUserParams) SetDefaults()
SetDefaults hydrates default values in the current user params (not the query body).
All values with no default are reset to their zero value.
func (*CurrentUserParams) SetHTTPClient ¶
func (o *CurrentUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the current user params
func (*CurrentUserParams) SetTimeout ¶
func (o *CurrentUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the current user params
func (*CurrentUserParams) WithContext ¶
func (o *CurrentUserParams) WithContext(ctx context.Context) *CurrentUserParams
WithContext adds the context to the current user params
func (*CurrentUserParams) WithDefaults ¶
func (o *CurrentUserParams) WithDefaults() *CurrentUserParams
WithDefaults hydrates default values in the current user params (not the query body).
All values with no default are reset to their zero value.
func (*CurrentUserParams) WithHTTPClient ¶
func (o *CurrentUserParams) WithHTTPClient(client *http.Client) *CurrentUserParams
WithHTTPClient adds the HTTPClient to the current user params
func (*CurrentUserParams) WithTimeout ¶
func (o *CurrentUserParams) WithTimeout(timeout time.Duration) *CurrentUserParams
WithTimeout adds the timeout to the current user params
func (*CurrentUserParams) WriteToRequest ¶
func (o *CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CurrentUserReader ¶
type CurrentUserReader struct {
// contains filtered or unexported fields
}
CurrentUserReader is a Reader for the CurrentUser structure.
func (*CurrentUserReader) ReadResponse ¶
func (o *CurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CurrentUserUnauthorized ¶
type CurrentUserUnauthorized struct {
}CurrentUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCurrentUserUnauthorized ¶
func NewCurrentUserUnauthorized() *CurrentUserUnauthorized
NewCurrentUserUnauthorized creates a CurrentUserUnauthorized with default headers values
func (*CurrentUserUnauthorized) Code ¶
func (o *CurrentUserUnauthorized) Code() int
Code gets the status code for the current user unauthorized response
func (*CurrentUserUnauthorized) Error ¶
func (o *CurrentUserUnauthorized) Error() string
func (*CurrentUserUnauthorized) GetPayload ¶
func (o *CurrentUserUnauthorized) GetPayload() *models.Error
func (*CurrentUserUnauthorized) IsClientError ¶
func (o *CurrentUserUnauthorized) IsClientError() bool
IsClientError returns true when this current user unauthorized response has a 4xx status code
func (*CurrentUserUnauthorized) IsCode ¶
func (o *CurrentUserUnauthorized) IsCode(code int) bool
IsCode returns true when this current user unauthorized response a status code equal to that given
func (*CurrentUserUnauthorized) IsRedirect ¶
func (o *CurrentUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this current user unauthorized response has a 3xx status code
func (*CurrentUserUnauthorized) IsServerError ¶
func (o *CurrentUserUnauthorized) IsServerError() bool
IsServerError returns true when this current user unauthorized response has a 5xx status code
func (*CurrentUserUnauthorized) IsSuccess ¶
func (o *CurrentUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this current user unauthorized response has a 2xx status code
func (*CurrentUserUnauthorized) String ¶
func (o *CurrentUserUnauthorized) String() string
type DeleteUserBadRequest ¶
DeleteUserBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteUserBadRequest ¶
func NewDeleteUserBadRequest() *DeleteUserBadRequest
NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values
func (*DeleteUserBadRequest) Code ¶
func (o *DeleteUserBadRequest) Code() int
Code gets the status code for the delete user bad request response
func (*DeleteUserBadRequest) Error ¶
func (o *DeleteUserBadRequest) Error() string
func (*DeleteUserBadRequest) GetPayload ¶
func (o *DeleteUserBadRequest) GetPayload() *models.Error
func (*DeleteUserBadRequest) IsClientError ¶
func (o *DeleteUserBadRequest) IsClientError() bool
IsClientError returns true when this delete user bad request response has a 4xx status code
func (*DeleteUserBadRequest) IsCode ¶
func (o *DeleteUserBadRequest) IsCode(code int) bool
IsCode returns true when this delete user bad request response a status code equal to that given
func (*DeleteUserBadRequest) IsRedirect ¶
func (o *DeleteUserBadRequest) IsRedirect() bool
IsRedirect returns true when this delete user bad request response has a 3xx status code
func (*DeleteUserBadRequest) IsServerError ¶
func (o *DeleteUserBadRequest) IsServerError() bool
IsServerError returns true when this delete user bad request response has a 5xx status code
func (*DeleteUserBadRequest) IsSuccess ¶
func (o *DeleteUserBadRequest) IsSuccess() bool
IsSuccess returns true when this delete user bad request response has a 2xx status code
func (*DeleteUserBadRequest) String ¶
func (o *DeleteUserBadRequest) String() string
type DeleteUserForbidden ¶
DeleteUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteUserForbidden ¶
func NewDeleteUserForbidden() *DeleteUserForbidden
NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values
func (*DeleteUserForbidden) Code ¶
func (o *DeleteUserForbidden) Code() int
Code gets the status code for the delete user forbidden response
func (*DeleteUserForbidden) Error ¶
func (o *DeleteUserForbidden) Error() string
func (*DeleteUserForbidden) GetPayload ¶
func (o *DeleteUserForbidden) GetPayload() *models.Error
func (*DeleteUserForbidden) IsClientError ¶
func (o *DeleteUserForbidden) IsClientError() bool
IsClientError returns true when this delete user forbidden response has a 4xx status code
func (*DeleteUserForbidden) IsCode ¶
func (o *DeleteUserForbidden) IsCode(code int) bool
IsCode returns true when this delete user forbidden response a status code equal to that given
func (*DeleteUserForbidden) IsRedirect ¶
func (o *DeleteUserForbidden) IsRedirect() bool
IsRedirect returns true when this delete user forbidden response has a 3xx status code
func (*DeleteUserForbidden) IsServerError ¶
func (o *DeleteUserForbidden) IsServerError() bool
IsServerError returns true when this delete user forbidden response has a 5xx status code
func (*DeleteUserForbidden) IsSuccess ¶
func (o *DeleteUserForbidden) IsSuccess() bool
IsSuccess returns true when this delete user forbidden response has a 2xx status code
func (*DeleteUserForbidden) String ¶
func (o *DeleteUserForbidden) String() string
type DeleteUserNotFound ¶
DeleteUserNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) Code ¶
func (o *DeleteUserNotFound) Code() int
Code gets the status code for the delete user not found response
func (*DeleteUserNotFound) Error ¶
func (o *DeleteUserNotFound) Error() string
func (*DeleteUserNotFound) GetPayload ¶
func (o *DeleteUserNotFound) GetPayload() *models.Error
func (*DeleteUserNotFound) IsClientError ¶
func (o *DeleteUserNotFound) IsClientError() bool
IsClientError returns true when this delete user not found response has a 4xx status code
func (*DeleteUserNotFound) IsCode ¶
func (o *DeleteUserNotFound) IsCode(code int) bool
IsCode returns true when this delete user not found response a status code equal to that given
func (*DeleteUserNotFound) IsRedirect ¶
func (o *DeleteUserNotFound) IsRedirect() bool
IsRedirect returns true when this delete user not found response has a 3xx status code
func (*DeleteUserNotFound) IsServerError ¶
func (o *DeleteUserNotFound) IsServerError() bool
IsServerError returns true when this delete user not found response has a 5xx status code
func (*DeleteUserNotFound) IsSuccess ¶
func (o *DeleteUserNotFound) IsSuccess() bool
IsSuccess returns true when this delete user not found response has a 2xx status code
func (*DeleteUserNotFound) String ¶
func (o *DeleteUserNotFound) String() string
type DeleteUserOK ¶
type DeleteUserOK struct { }
DeleteUserOK describes a response with status code 200, with default header values.
Ok
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates a DeleteUserOK with default headers values
func (*DeleteUserOK) Code ¶
func (o *DeleteUserOK) Code() int
Code gets the status code for the delete user o k response
func (*DeleteUserOK) Error ¶
func (o *DeleteUserOK) Error() string
func (*DeleteUserOK) IsClientError ¶
func (o *DeleteUserOK) IsClientError() bool
IsClientError returns true when this delete user o k response has a 4xx status code
func (*DeleteUserOK) IsCode ¶
func (o *DeleteUserOK) IsCode(code int) bool
IsCode returns true when this delete user o k response a status code equal to that given
func (*DeleteUserOK) IsRedirect ¶
func (o *DeleteUserOK) IsRedirect() bool
IsRedirect returns true when this delete user o k response has a 3xx status code
func (*DeleteUserOK) IsServerError ¶
func (o *DeleteUserOK) IsServerError() bool
IsServerError returns true when this delete user o k response has a 5xx status code
func (*DeleteUserOK) IsSuccess ¶
func (o *DeleteUserOK) IsSuccess() bool
IsSuccess returns true when this delete user o k response has a 2xx status code
func (*DeleteUserOK) String ¶
func (o *DeleteUserOK) String() string
type DeleteUserParams ¶
type DeleteUserParams struct { /* ID. the user id Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteUserParams contains all the parameters to send to the API endpoint
for the delete user operation. Typically these are written to a http.Request.
func NewDeleteUserParams ¶
func NewDeleteUserParams() *DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams 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 NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the ability to set a context for a request.
func NewDeleteUserParamsWithHTTPClient ¶
func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams
NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteUserParamsWithTimeout ¶
func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams
NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the ability to set a timeout on a request.
func (*DeleteUserParams) SetContext ¶
func (o *DeleteUserParams) SetContext(ctx context.Context)
SetContext adds the context to the delete user params
func (*DeleteUserParams) SetDefaults ¶
func (o *DeleteUserParams) SetDefaults()
SetDefaults hydrates default values in the delete user params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUserParams) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) SetID ¶
func (o *DeleteUserParams) SetID(id int64)
SetID adds the id to the delete user params
func (*DeleteUserParams) SetTimeout ¶
func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WithContext ¶
func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
WithContext adds the context to the delete user params
func (*DeleteUserParams) WithDefaults ¶
func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
WithDefaults hydrates default values in the delete user params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUserParams) WithHTTPClient ¶
func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
WithHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) WithID ¶
func (o *DeleteUserParams) WithID(id int64) *DeleteUserParams
WithID adds the id to the delete user params
func (*DeleteUserParams) WithTimeout ¶
func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
WithTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WriteToRequest ¶
func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUserReader ¶
type DeleteUserReader struct {
// contains filtered or unexported fields
}
DeleteUserReader is a Reader for the DeleteUser structure.
func (*DeleteUserReader) ReadResponse ¶
func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUserUnauthorized ¶
type DeleteUserUnauthorized struct {
}DeleteUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteUserUnauthorized ¶
func NewDeleteUserUnauthorized() *DeleteUserUnauthorized
NewDeleteUserUnauthorized creates a DeleteUserUnauthorized with default headers values
func (*DeleteUserUnauthorized) Code ¶
func (o *DeleteUserUnauthorized) Code() int
Code gets the status code for the delete user unauthorized response
func (*DeleteUserUnauthorized) Error ¶
func (o *DeleteUserUnauthorized) Error() string
func (*DeleteUserUnauthorized) GetPayload ¶
func (o *DeleteUserUnauthorized) GetPayload() *models.Error
func (*DeleteUserUnauthorized) IsClientError ¶
func (o *DeleteUserUnauthorized) IsClientError() bool
IsClientError returns true when this delete user unauthorized response has a 4xx status code
func (*DeleteUserUnauthorized) IsCode ¶
func (o *DeleteUserUnauthorized) IsCode(code int) bool
IsCode returns true when this delete user unauthorized response a status code equal to that given
func (*DeleteUserUnauthorized) IsRedirect ¶
func (o *DeleteUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete user unauthorized response has a 3xx status code
func (*DeleteUserUnauthorized) IsServerError ¶
func (o *DeleteUserUnauthorized) IsServerError() bool
IsServerError returns true when this delete user unauthorized response has a 5xx status code
func (*DeleteUserUnauthorized) IsSuccess ¶
func (o *DeleteUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete user unauthorized response has a 2xx status code
func (*DeleteUserUnauthorized) String ¶
func (o *DeleteUserUnauthorized) String() string
type GetUserBadRequest ¶
GetUserBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetUserBadRequest ¶
func NewGetUserBadRequest() *GetUserBadRequest
NewGetUserBadRequest creates a GetUserBadRequest with default headers values
func (*GetUserBadRequest) Code ¶
func (o *GetUserBadRequest) Code() int
Code gets the status code for the get user bad request response
func (*GetUserBadRequest) Error ¶
func (o *GetUserBadRequest) Error() string
func (*GetUserBadRequest) GetPayload ¶
func (o *GetUserBadRequest) GetPayload() *models.Error
func (*GetUserBadRequest) IsClientError ¶
func (o *GetUserBadRequest) IsClientError() bool
IsClientError returns true when this get user bad request response has a 4xx status code
func (*GetUserBadRequest) IsCode ¶
func (o *GetUserBadRequest) IsCode(code int) bool
IsCode returns true when this get user bad request response a status code equal to that given
func (*GetUserBadRequest) IsRedirect ¶
func (o *GetUserBadRequest) IsRedirect() bool
IsRedirect returns true when this get user bad request response has a 3xx status code
func (*GetUserBadRequest) IsServerError ¶
func (o *GetUserBadRequest) IsServerError() bool
IsServerError returns true when this get user bad request response has a 5xx status code
func (*GetUserBadRequest) IsSuccess ¶
func (o *GetUserBadRequest) IsSuccess() bool
IsSuccess returns true when this get user bad request response has a 2xx status code
func (*GetUserBadRequest) String ¶
func (o *GetUserBadRequest) String() string
type GetUserForbidden ¶
GetUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetUserForbidden ¶
func NewGetUserForbidden() *GetUserForbidden
NewGetUserForbidden creates a GetUserForbidden with default headers values
func (*GetUserForbidden) Code ¶
func (o *GetUserForbidden) Code() int
Code gets the status code for the get user forbidden response
func (*GetUserForbidden) Error ¶
func (o *GetUserForbidden) Error() string
func (*GetUserForbidden) GetPayload ¶
func (o *GetUserForbidden) GetPayload() *models.Error
func (*GetUserForbidden) IsClientError ¶
func (o *GetUserForbidden) IsClientError() bool
IsClientError returns true when this get user forbidden response has a 4xx status code
func (*GetUserForbidden) IsCode ¶
func (o *GetUserForbidden) IsCode(code int) bool
IsCode returns true when this get user forbidden response a status code equal to that given
func (*GetUserForbidden) IsRedirect ¶
func (o *GetUserForbidden) IsRedirect() bool
IsRedirect returns true when this get user forbidden response has a 3xx status code
func (*GetUserForbidden) IsServerError ¶
func (o *GetUserForbidden) IsServerError() bool
IsServerError returns true when this get user forbidden response has a 5xx status code
func (*GetUserForbidden) IsSuccess ¶
func (o *GetUserForbidden) IsSuccess() bool
IsSuccess returns true when this get user forbidden response has a 2xx status code
func (*GetUserForbidden) String ¶
func (o *GetUserForbidden) String() string
type GetUserNotFound ¶
GetUserNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetUserNotFound ¶
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates a GetUserNotFound with default headers values
func (*GetUserNotFound) Code ¶
func (o *GetUserNotFound) Code() int
Code gets the status code for the get user not found response
func (*GetUserNotFound) Error ¶
func (o *GetUserNotFound) Error() string
func (*GetUserNotFound) GetPayload ¶
func (o *GetUserNotFound) GetPayload() *models.Error
func (*GetUserNotFound) IsClientError ¶
func (o *GetUserNotFound) IsClientError() bool
IsClientError returns true when this get user not found response has a 4xx status code
func (*GetUserNotFound) IsCode ¶
func (o *GetUserNotFound) IsCode(code int) bool
IsCode returns true when this get user not found response a status code equal to that given
func (*GetUserNotFound) IsRedirect ¶
func (o *GetUserNotFound) IsRedirect() bool
IsRedirect returns true when this get user not found response has a 3xx status code
func (*GetUserNotFound) IsServerError ¶
func (o *GetUserNotFound) IsServerError() bool
IsServerError returns true when this get user not found response has a 5xx status code
func (*GetUserNotFound) IsSuccess ¶
func (o *GetUserNotFound) IsSuccess() bool
IsSuccess returns true when this get user not found response has a 2xx status code
func (*GetUserNotFound) String ¶
func (o *GetUserNotFound) String() string
type GetUserOK ¶
type GetUserOK struct {
Payload *models.UserExternal
}
GetUserOK describes a response with status code 200, with default header values.
Ok
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶
func (o *GetUserOK) GetPayload() *models.UserExternal
func (*GetUserOK) IsClientError ¶
IsClientError returns true when this get user o k response has a 4xx status code
func (*GetUserOK) IsCode ¶
IsCode returns true when this get user o k response a status code equal to that given
func (*GetUserOK) IsRedirect ¶
IsRedirect returns true when this get user o k response has a 3xx status code
func (*GetUserOK) IsServerError ¶
IsServerError returns true when this get user o k response has a 5xx status code
type GetUserParams ¶
type GetUserParams struct { /* ID. the user id Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserParams contains all the parameters to send to the API endpoint
for the get user operation. Typically these are written to a http.Request.
func NewGetUserParams ¶
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams 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 NewGetUserParamsWithContext ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.
func NewGetUserParamsWithHTTPClient ¶
func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams
NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserParamsWithTimeout ¶
func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams
NewGetUserParamsWithTimeout creates a new GetUserParams object with the ability to set a timeout on a request.
func (*GetUserParams) SetContext ¶
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetDefaults ¶
func (o *GetUserParams) SetDefaults()
SetDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) SetHTTPClient ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetID ¶
func (o *GetUserParams) SetID(id int64)
SetID adds the id to the get user params
func (*GetUserParams) SetTimeout ¶
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) WithContext ¶
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithDefaults ¶
func (o *GetUserParams) WithDefaults() *GetUserParams
WithDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) WithHTTPClient ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithID ¶
func (o *GetUserParams) WithID(id int64) *GetUserParams
WithID adds the id to the get user params
func (*GetUserParams) WithTimeout ¶
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WriteToRequest ¶
func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserReader ¶
type GetUserReader struct {
// contains filtered or unexported fields
}
GetUserReader is a Reader for the GetUser structure.
func (*GetUserReader) ReadResponse ¶
func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserUnauthorized ¶
type GetUserUnauthorized struct {
}GetUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetUserUnauthorized ¶
func NewGetUserUnauthorized() *GetUserUnauthorized
NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values
func (*GetUserUnauthorized) Code ¶
func (o *GetUserUnauthorized) Code() int
Code gets the status code for the get user unauthorized response
func (*GetUserUnauthorized) Error ¶
func (o *GetUserUnauthorized) Error() string
func (*GetUserUnauthorized) GetPayload ¶
func (o *GetUserUnauthorized) GetPayload() *models.Error
func (*GetUserUnauthorized) IsClientError ¶
func (o *GetUserUnauthorized) IsClientError() bool
IsClientError returns true when this get user unauthorized response has a 4xx status code
func (*GetUserUnauthorized) IsCode ¶
func (o *GetUserUnauthorized) IsCode(code int) bool
IsCode returns true when this get user unauthorized response a status code equal to that given
func (*GetUserUnauthorized) IsRedirect ¶
func (o *GetUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this get user unauthorized response has a 3xx status code
func (*GetUserUnauthorized) IsServerError ¶
func (o *GetUserUnauthorized) IsServerError() bool
IsServerError returns true when this get user unauthorized response has a 5xx status code
func (*GetUserUnauthorized) IsSuccess ¶
func (o *GetUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this get user unauthorized response has a 2xx status code
func (*GetUserUnauthorized) String ¶
func (o *GetUserUnauthorized) String() string
type GetUsersForbidden ¶
GetUsersForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetUsersForbidden ¶
func NewGetUsersForbidden() *GetUsersForbidden
NewGetUsersForbidden creates a GetUsersForbidden with default headers values
func (*GetUsersForbidden) Code ¶
func (o *GetUsersForbidden) Code() int
Code gets the status code for the get users forbidden response
func (*GetUsersForbidden) Error ¶
func (o *GetUsersForbidden) Error() string
func (*GetUsersForbidden) GetPayload ¶
func (o *GetUsersForbidden) GetPayload() *models.Error
func (*GetUsersForbidden) IsClientError ¶
func (o *GetUsersForbidden) IsClientError() bool
IsClientError returns true when this get users forbidden response has a 4xx status code
func (*GetUsersForbidden) IsCode ¶
func (o *GetUsersForbidden) IsCode(code int) bool
IsCode returns true when this get users forbidden response a status code equal to that given
func (*GetUsersForbidden) IsRedirect ¶
func (o *GetUsersForbidden) IsRedirect() bool
IsRedirect returns true when this get users forbidden response has a 3xx status code
func (*GetUsersForbidden) IsServerError ¶
func (o *GetUsersForbidden) IsServerError() bool
IsServerError returns true when this get users forbidden response has a 5xx status code
func (*GetUsersForbidden) IsSuccess ¶
func (o *GetUsersForbidden) IsSuccess() bool
IsSuccess returns true when this get users forbidden response has a 2xx status code
func (*GetUsersForbidden) String ¶
func (o *GetUsersForbidden) String() string
type GetUsersOK ¶
type GetUsersOK struct {
Payload []*models.UserExternal
}
GetUsersOK describes a response with status code 200, with default header values.
Ok
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Code ¶
func (o *GetUsersOK) Code() int
Code gets the status code for the get users o k response
func (*GetUsersOK) Error ¶
func (o *GetUsersOK) Error() string
func (*GetUsersOK) GetPayload ¶
func (o *GetUsersOK) GetPayload() []*models.UserExternal
func (*GetUsersOK) IsClientError ¶
func (o *GetUsersOK) IsClientError() bool
IsClientError returns true when this get users o k response has a 4xx status code
func (*GetUsersOK) IsCode ¶
func (o *GetUsersOK) IsCode(code int) bool
IsCode returns true when this get users o k response a status code equal to that given
func (*GetUsersOK) IsRedirect ¶
func (o *GetUsersOK) IsRedirect() bool
IsRedirect returns true when this get users o k response has a 3xx status code
func (*GetUsersOK) IsServerError ¶
func (o *GetUsersOK) IsServerError() bool
IsServerError returns true when this get users o k response has a 5xx status code
func (*GetUsersOK) IsSuccess ¶
func (o *GetUsersOK) IsSuccess() bool
IsSuccess returns true when this get users o k response has a 2xx status code
func (*GetUsersOK) String ¶
func (o *GetUsersOK) String() string
type GetUsersParams ¶
type GetUsersParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUsersParams contains all the parameters to send to the API endpoint
for the get users operation. Typically these are written to a http.Request.
func NewGetUsersParams ¶
func NewGetUsersParams() *GetUsersParams
NewGetUsersParams creates a new GetUsersParams 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 NewGetUsersParamsWithContext ¶
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the ability to set a context for a request.
func NewGetUsersParamsWithHTTPClient ¶
func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams
NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the ability to set a custom HTTPClient for a request.
func NewGetUsersParamsWithTimeout ¶
func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams
NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the ability to set a timeout on a request.
func (*GetUsersParams) SetContext ¶
func (o *GetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get users params
func (*GetUsersParams) SetDefaults ¶
func (o *GetUsersParams) SetDefaults()
SetDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) SetHTTPClient ¶
func (o *GetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) SetTimeout ¶
func (o *GetUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users params
func (*GetUsersParams) WithContext ¶
func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
WithContext adds the context to the get users params
func (*GetUsersParams) WithDefaults ¶
func (o *GetUsersParams) WithDefaults() *GetUsersParams
WithDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) WithHTTPClient ¶
func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
WithHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) WithTimeout ¶
func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
WithTimeout adds the timeout to the get users params
func (*GetUsersParams) WriteToRequest ¶
func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersReader ¶
type GetUsersReader struct {
// contains filtered or unexported fields
}
GetUsersReader is a Reader for the GetUsers structure.
func (*GetUsersReader) ReadResponse ¶
func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUsersUnauthorized ¶
type GetUsersUnauthorized struct {
}GetUsersUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetUsersUnauthorized ¶
func NewGetUsersUnauthorized() *GetUsersUnauthorized
NewGetUsersUnauthorized creates a GetUsersUnauthorized with default headers values
func (*GetUsersUnauthorized) Code ¶
func (o *GetUsersUnauthorized) Code() int
Code gets the status code for the get users unauthorized response
func (*GetUsersUnauthorized) Error ¶
func (o *GetUsersUnauthorized) Error() string
func (*GetUsersUnauthorized) GetPayload ¶
func (o *GetUsersUnauthorized) GetPayload() *models.Error
func (*GetUsersUnauthorized) IsClientError ¶
func (o *GetUsersUnauthorized) IsClientError() bool
IsClientError returns true when this get users unauthorized response has a 4xx status code
func (*GetUsersUnauthorized) IsCode ¶
func (o *GetUsersUnauthorized) IsCode(code int) bool
IsCode returns true when this get users unauthorized response a status code equal to that given
func (*GetUsersUnauthorized) IsRedirect ¶
func (o *GetUsersUnauthorized) IsRedirect() bool
IsRedirect returns true when this get users unauthorized response has a 3xx status code
func (*GetUsersUnauthorized) IsServerError ¶
func (o *GetUsersUnauthorized) IsServerError() bool
IsServerError returns true when this get users unauthorized response has a 5xx status code
func (*GetUsersUnauthorized) IsSuccess ¶
func (o *GetUsersUnauthorized) IsSuccess() bool
IsSuccess returns true when this get users unauthorized response has a 2xx status code
func (*GetUsersUnauthorized) String ¶
func (o *GetUsersUnauthorized) String() string
type UpdateCurrentUserBadRequest ¶
UpdateCurrentUserBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUpdateCurrentUserBadRequest ¶
func NewUpdateCurrentUserBadRequest() *UpdateCurrentUserBadRequest
NewUpdateCurrentUserBadRequest creates a UpdateCurrentUserBadRequest with default headers values
func (*UpdateCurrentUserBadRequest) Code ¶
func (o *UpdateCurrentUserBadRequest) Code() int
Code gets the status code for the update current user bad request response
func (*UpdateCurrentUserBadRequest) Error ¶
func (o *UpdateCurrentUserBadRequest) Error() string
func (*UpdateCurrentUserBadRequest) GetPayload ¶
func (o *UpdateCurrentUserBadRequest) GetPayload() *models.Error
func (*UpdateCurrentUserBadRequest) IsClientError ¶
func (o *UpdateCurrentUserBadRequest) IsClientError() bool
IsClientError returns true when this update current user bad request response has a 4xx status code
func (*UpdateCurrentUserBadRequest) IsCode ¶
func (o *UpdateCurrentUserBadRequest) IsCode(code int) bool
IsCode returns true when this update current user bad request response a status code equal to that given
func (*UpdateCurrentUserBadRequest) IsRedirect ¶
func (o *UpdateCurrentUserBadRequest) IsRedirect() bool
IsRedirect returns true when this update current user bad request response has a 3xx status code
func (*UpdateCurrentUserBadRequest) IsServerError ¶
func (o *UpdateCurrentUserBadRequest) IsServerError() bool
IsServerError returns true when this update current user bad request response has a 5xx status code
func (*UpdateCurrentUserBadRequest) IsSuccess ¶
func (o *UpdateCurrentUserBadRequest) IsSuccess() bool
IsSuccess returns true when this update current user bad request response has a 2xx status code
func (*UpdateCurrentUserBadRequest) String ¶
func (o *UpdateCurrentUserBadRequest) String() string
type UpdateCurrentUserForbidden ¶
UpdateCurrentUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateCurrentUserForbidden ¶
func NewUpdateCurrentUserForbidden() *UpdateCurrentUserForbidden
NewUpdateCurrentUserForbidden creates a UpdateCurrentUserForbidden with default headers values
func (*UpdateCurrentUserForbidden) Code ¶
func (o *UpdateCurrentUserForbidden) Code() int
Code gets the status code for the update current user forbidden response
func (*UpdateCurrentUserForbidden) Error ¶
func (o *UpdateCurrentUserForbidden) Error() string
func (*UpdateCurrentUserForbidden) GetPayload ¶
func (o *UpdateCurrentUserForbidden) GetPayload() *models.Error
func (*UpdateCurrentUserForbidden) IsClientError ¶
func (o *UpdateCurrentUserForbidden) IsClientError() bool
IsClientError returns true when this update current user forbidden response has a 4xx status code
func (*UpdateCurrentUserForbidden) IsCode ¶
func (o *UpdateCurrentUserForbidden) IsCode(code int) bool
IsCode returns true when this update current user forbidden response a status code equal to that given
func (*UpdateCurrentUserForbidden) IsRedirect ¶
func (o *UpdateCurrentUserForbidden) IsRedirect() bool
IsRedirect returns true when this update current user forbidden response has a 3xx status code
func (*UpdateCurrentUserForbidden) IsServerError ¶
func (o *UpdateCurrentUserForbidden) IsServerError() bool
IsServerError returns true when this update current user forbidden response has a 5xx status code
func (*UpdateCurrentUserForbidden) IsSuccess ¶
func (o *UpdateCurrentUserForbidden) IsSuccess() bool
IsSuccess returns true when this update current user forbidden response has a 2xx status code
func (*UpdateCurrentUserForbidden) String ¶
func (o *UpdateCurrentUserForbidden) String() string
type UpdateCurrentUserOK ¶
type UpdateCurrentUserOK struct { }
UpdateCurrentUserOK describes a response with status code 200, with default header values.
Ok
func NewUpdateCurrentUserOK ¶
func NewUpdateCurrentUserOK() *UpdateCurrentUserOK
NewUpdateCurrentUserOK creates a UpdateCurrentUserOK with default headers values
func (*UpdateCurrentUserOK) Code ¶
func (o *UpdateCurrentUserOK) Code() int
Code gets the status code for the update current user o k response
func (*UpdateCurrentUserOK) Error ¶
func (o *UpdateCurrentUserOK) Error() string
func (*UpdateCurrentUserOK) IsClientError ¶
func (o *UpdateCurrentUserOK) IsClientError() bool
IsClientError returns true when this update current user o k response has a 4xx status code
func (*UpdateCurrentUserOK) IsCode ¶
func (o *UpdateCurrentUserOK) IsCode(code int) bool
IsCode returns true when this update current user o k response a status code equal to that given
func (*UpdateCurrentUserOK) IsRedirect ¶
func (o *UpdateCurrentUserOK) IsRedirect() bool
IsRedirect returns true when this update current user o k response has a 3xx status code
func (*UpdateCurrentUserOK) IsServerError ¶
func (o *UpdateCurrentUserOK) IsServerError() bool
IsServerError returns true when this update current user o k response has a 5xx status code
func (*UpdateCurrentUserOK) IsSuccess ¶
func (o *UpdateCurrentUserOK) IsSuccess() bool
IsSuccess returns true when this update current user o k response has a 2xx status code
func (*UpdateCurrentUserOK) String ¶
func (o *UpdateCurrentUserOK) String() string
type UpdateCurrentUserParams ¶
type UpdateCurrentUserParams struct { /* Body. the user */ Body *models.UserExternalPass Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCurrentUserParams contains all the parameters to send to the API endpoint
for the update current user operation. Typically these are written to a http.Request.
func NewUpdateCurrentUserParams ¶
func NewUpdateCurrentUserParams() *UpdateCurrentUserParams
NewUpdateCurrentUserParams creates a new UpdateCurrentUserParams 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 NewUpdateCurrentUserParamsWithContext ¶
func NewUpdateCurrentUserParamsWithContext(ctx context.Context) *UpdateCurrentUserParams
NewUpdateCurrentUserParamsWithContext creates a new UpdateCurrentUserParams object with the ability to set a context for a request.
func NewUpdateCurrentUserParamsWithHTTPClient ¶
func NewUpdateCurrentUserParamsWithHTTPClient(client *http.Client) *UpdateCurrentUserParams
NewUpdateCurrentUserParamsWithHTTPClient creates a new UpdateCurrentUserParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateCurrentUserParamsWithTimeout ¶
func NewUpdateCurrentUserParamsWithTimeout(timeout time.Duration) *UpdateCurrentUserParams
NewUpdateCurrentUserParamsWithTimeout creates a new UpdateCurrentUserParams object with the ability to set a timeout on a request.
func (*UpdateCurrentUserParams) SetBody ¶
func (o *UpdateCurrentUserParams) SetBody(body *models.UserExternalPass)
SetBody adds the body to the update current user params
func (*UpdateCurrentUserParams) SetContext ¶
func (o *UpdateCurrentUserParams) SetContext(ctx context.Context)
SetContext adds the context to the update current user params
func (*UpdateCurrentUserParams) SetDefaults ¶
func (o *UpdateCurrentUserParams) SetDefaults()
SetDefaults hydrates default values in the update current user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCurrentUserParams) SetHTTPClient ¶
func (o *UpdateCurrentUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update current user params
func (*UpdateCurrentUserParams) SetTimeout ¶
func (o *UpdateCurrentUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update current user params
func (*UpdateCurrentUserParams) WithBody ¶
func (o *UpdateCurrentUserParams) WithBody(body *models.UserExternalPass) *UpdateCurrentUserParams
WithBody adds the body to the update current user params
func (*UpdateCurrentUserParams) WithContext ¶
func (o *UpdateCurrentUserParams) WithContext(ctx context.Context) *UpdateCurrentUserParams
WithContext adds the context to the update current user params
func (*UpdateCurrentUserParams) WithDefaults ¶
func (o *UpdateCurrentUserParams) WithDefaults() *UpdateCurrentUserParams
WithDefaults hydrates default values in the update current user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateCurrentUserParams) WithHTTPClient ¶
func (o *UpdateCurrentUserParams) WithHTTPClient(client *http.Client) *UpdateCurrentUserParams
WithHTTPClient adds the HTTPClient to the update current user params
func (*UpdateCurrentUserParams) WithTimeout ¶
func (o *UpdateCurrentUserParams) WithTimeout(timeout time.Duration) *UpdateCurrentUserParams
WithTimeout adds the timeout to the update current user params
func (*UpdateCurrentUserParams) WriteToRequest ¶
func (o *UpdateCurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCurrentUserReader ¶
type UpdateCurrentUserReader struct {
// contains filtered or unexported fields
}
UpdateCurrentUserReader is a Reader for the UpdateCurrentUser structure.
func (*UpdateCurrentUserReader) ReadResponse ¶
func (o *UpdateCurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCurrentUserUnauthorized ¶
type UpdateCurrentUserUnauthorized struct {
}UpdateCurrentUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateCurrentUserUnauthorized ¶
func NewUpdateCurrentUserUnauthorized() *UpdateCurrentUserUnauthorized
NewUpdateCurrentUserUnauthorized creates a UpdateCurrentUserUnauthorized with default headers values
func (*UpdateCurrentUserUnauthorized) Code ¶
func (o *UpdateCurrentUserUnauthorized) Code() int
Code gets the status code for the update current user unauthorized response
func (*UpdateCurrentUserUnauthorized) Error ¶
func (o *UpdateCurrentUserUnauthorized) Error() string
func (*UpdateCurrentUserUnauthorized) GetPayload ¶
func (o *UpdateCurrentUserUnauthorized) GetPayload() *models.Error
func (*UpdateCurrentUserUnauthorized) IsClientError ¶
func (o *UpdateCurrentUserUnauthorized) IsClientError() bool
IsClientError returns true when this update current user unauthorized response has a 4xx status code
func (*UpdateCurrentUserUnauthorized) IsCode ¶
func (o *UpdateCurrentUserUnauthorized) IsCode(code int) bool
IsCode returns true when this update current user unauthorized response a status code equal to that given
func (*UpdateCurrentUserUnauthorized) IsRedirect ¶
func (o *UpdateCurrentUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this update current user unauthorized response has a 3xx status code
func (*UpdateCurrentUserUnauthorized) IsServerError ¶
func (o *UpdateCurrentUserUnauthorized) IsServerError() bool
IsServerError returns true when this update current user unauthorized response has a 5xx status code
func (*UpdateCurrentUserUnauthorized) IsSuccess ¶
func (o *UpdateCurrentUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this update current user unauthorized response has a 2xx status code
func (*UpdateCurrentUserUnauthorized) String ¶
func (o *UpdateCurrentUserUnauthorized) String() string
type UpdateUserBadRequest ¶
UpdateUserBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUpdateUserBadRequest ¶
func NewUpdateUserBadRequest() *UpdateUserBadRequest
NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values
func (*UpdateUserBadRequest) Code ¶
func (o *UpdateUserBadRequest) Code() int
Code gets the status code for the update user bad request response
func (*UpdateUserBadRequest) Error ¶
func (o *UpdateUserBadRequest) Error() string
func (*UpdateUserBadRequest) GetPayload ¶
func (o *UpdateUserBadRequest) GetPayload() *models.Error
func (*UpdateUserBadRequest) IsClientError ¶
func (o *UpdateUserBadRequest) IsClientError() bool
IsClientError returns true when this update user bad request response has a 4xx status code
func (*UpdateUserBadRequest) IsCode ¶
func (o *UpdateUserBadRequest) IsCode(code int) bool
IsCode returns true when this update user bad request response a status code equal to that given
func (*UpdateUserBadRequest) IsRedirect ¶
func (o *UpdateUserBadRequest) IsRedirect() bool
IsRedirect returns true when this update user bad request response has a 3xx status code
func (*UpdateUserBadRequest) IsServerError ¶
func (o *UpdateUserBadRequest) IsServerError() bool
IsServerError returns true when this update user bad request response has a 5xx status code
func (*UpdateUserBadRequest) IsSuccess ¶
func (o *UpdateUserBadRequest) IsSuccess() bool
IsSuccess returns true when this update user bad request response has a 2xx status code
func (*UpdateUserBadRequest) String ¶
func (o *UpdateUserBadRequest) String() string
type UpdateUserForbidden ¶
UpdateUserForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateUserForbidden ¶
func NewUpdateUserForbidden() *UpdateUserForbidden
NewUpdateUserForbidden creates a UpdateUserForbidden with default headers values
func (*UpdateUserForbidden) Code ¶
func (o *UpdateUserForbidden) Code() int
Code gets the status code for the update user forbidden response
func (*UpdateUserForbidden) Error ¶
func (o *UpdateUserForbidden) Error() string
func (*UpdateUserForbidden) GetPayload ¶
func (o *UpdateUserForbidden) GetPayload() *models.Error
func (*UpdateUserForbidden) IsClientError ¶
func (o *UpdateUserForbidden) IsClientError() bool
IsClientError returns true when this update user forbidden response has a 4xx status code
func (*UpdateUserForbidden) IsCode ¶
func (o *UpdateUserForbidden) IsCode(code int) bool
IsCode returns true when this update user forbidden response a status code equal to that given
func (*UpdateUserForbidden) IsRedirect ¶
func (o *UpdateUserForbidden) IsRedirect() bool
IsRedirect returns true when this update user forbidden response has a 3xx status code
func (*UpdateUserForbidden) IsServerError ¶
func (o *UpdateUserForbidden) IsServerError() bool
IsServerError returns true when this update user forbidden response has a 5xx status code
func (*UpdateUserForbidden) IsSuccess ¶
func (o *UpdateUserForbidden) IsSuccess() bool
IsSuccess returns true when this update user forbidden response has a 2xx status code
func (*UpdateUserForbidden) String ¶
func (o *UpdateUserForbidden) String() string
type UpdateUserNotFound ¶
UpdateUserNotFound describes a response with status code 404, with default header values.
Not Found
func NewUpdateUserNotFound ¶
func NewUpdateUserNotFound() *UpdateUserNotFound
NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values
func (*UpdateUserNotFound) Code ¶
func (o *UpdateUserNotFound) Code() int
Code gets the status code for the update user not found response
func (*UpdateUserNotFound) Error ¶
func (o *UpdateUserNotFound) Error() string
func (*UpdateUserNotFound) GetPayload ¶
func (o *UpdateUserNotFound) GetPayload() *models.Error
func (*UpdateUserNotFound) IsClientError ¶
func (o *UpdateUserNotFound) IsClientError() bool
IsClientError returns true when this update user not found response has a 4xx status code
func (*UpdateUserNotFound) IsCode ¶
func (o *UpdateUserNotFound) IsCode(code int) bool
IsCode returns true when this update user not found response a status code equal to that given
func (*UpdateUserNotFound) IsRedirect ¶
func (o *UpdateUserNotFound) IsRedirect() bool
IsRedirect returns true when this update user not found response has a 3xx status code
func (*UpdateUserNotFound) IsServerError ¶
func (o *UpdateUserNotFound) IsServerError() bool
IsServerError returns true when this update user not found response has a 5xx status code
func (*UpdateUserNotFound) IsSuccess ¶
func (o *UpdateUserNotFound) IsSuccess() bool
IsSuccess returns true when this update user not found response has a 2xx status code
func (*UpdateUserNotFound) String ¶
func (o *UpdateUserNotFound) String() string
type UpdateUserOK ¶
type UpdateUserOK struct {
Payload *models.UserExternal
}
UpdateUserOK describes a response with status code 200, with default header values.
Ok
func NewUpdateUserOK ¶
func NewUpdateUserOK() *UpdateUserOK
NewUpdateUserOK creates a UpdateUserOK with default headers values
func (*UpdateUserOK) Code ¶
func (o *UpdateUserOK) Code() int
Code gets the status code for the update user o k response
func (*UpdateUserOK) Error ¶
func (o *UpdateUserOK) Error() string
func (*UpdateUserOK) GetPayload ¶
func (o *UpdateUserOK) GetPayload() *models.UserExternal
func (*UpdateUserOK) IsClientError ¶
func (o *UpdateUserOK) IsClientError() bool
IsClientError returns true when this update user o k response has a 4xx status code
func (*UpdateUserOK) IsCode ¶
func (o *UpdateUserOK) IsCode(code int) bool
IsCode returns true when this update user o k response a status code equal to that given
func (*UpdateUserOK) IsRedirect ¶
func (o *UpdateUserOK) IsRedirect() bool
IsRedirect returns true when this update user o k response has a 3xx status code
func (*UpdateUserOK) IsServerError ¶
func (o *UpdateUserOK) IsServerError() bool
IsServerError returns true when this update user o k response has a 5xx status code
func (*UpdateUserOK) IsSuccess ¶
func (o *UpdateUserOK) IsSuccess() bool
IsSuccess returns true when this update user o k response has a 2xx status code
func (*UpdateUserOK) String ¶
func (o *UpdateUserOK) String() string
type UpdateUserParams ¶
type UpdateUserParams struct { /* Body. the updated user */ Body *models.UpdateUserExternal /* ID. the user id Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateUserParams contains all the parameters to send to the API endpoint
for the update user operation. Typically these are written to a http.Request.
func NewUpdateUserParams ¶
func NewUpdateUserParams() *UpdateUserParams
NewUpdateUserParams creates a new UpdateUserParams 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 NewUpdateUserParamsWithContext ¶
func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams
NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the ability to set a context for a request.
func NewUpdateUserParamsWithHTTPClient ¶
func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams
NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateUserParamsWithTimeout ¶
func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams
NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the ability to set a timeout on a request.
func (*UpdateUserParams) SetBody ¶
func (o *UpdateUserParams) SetBody(body *models.UpdateUserExternal)
SetBody adds the body to the update user params
func (*UpdateUserParams) SetContext ¶
func (o *UpdateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the update user params
func (*UpdateUserParams) SetDefaults ¶
func (o *UpdateUserParams) SetDefaults()
SetDefaults hydrates default values in the update user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUserParams) SetHTTPClient ¶
func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) SetID ¶
func (o *UpdateUserParams) SetID(id int64)
SetID adds the id to the update user params
func (*UpdateUserParams) SetTimeout ¶
func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update user params
func (*UpdateUserParams) WithBody ¶
func (o *UpdateUserParams) WithBody(body *models.UpdateUserExternal) *UpdateUserParams
WithBody adds the body to the update user params
func (*UpdateUserParams) WithContext ¶
func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
WithContext adds the context to the update user params
func (*UpdateUserParams) WithDefaults ¶
func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
WithDefaults hydrates default values in the update user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUserParams) WithHTTPClient ¶
func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
WithHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) WithID ¶
func (o *UpdateUserParams) WithID(id int64) *UpdateUserParams
WithID adds the id to the update user params
func (*UpdateUserParams) WithTimeout ¶
func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
WithTimeout adds the timeout to the update user params
func (*UpdateUserParams) WriteToRequest ¶
func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateUserReader ¶
type UpdateUserReader struct {
// contains filtered or unexported fields
}
UpdateUserReader is a Reader for the UpdateUser structure.
func (*UpdateUserReader) ReadResponse ¶
func (o *UpdateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUserUnauthorized ¶
type UpdateUserUnauthorized struct {
}UpdateUserUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateUserUnauthorized ¶
func NewUpdateUserUnauthorized() *UpdateUserUnauthorized
NewUpdateUserUnauthorized creates a UpdateUserUnauthorized with default headers values
func (*UpdateUserUnauthorized) Code ¶
func (o *UpdateUserUnauthorized) Code() int
Code gets the status code for the update user unauthorized response
func (*UpdateUserUnauthorized) Error ¶
func (o *UpdateUserUnauthorized) Error() string
func (*UpdateUserUnauthorized) GetPayload ¶
func (o *UpdateUserUnauthorized) GetPayload() *models.Error
func (*UpdateUserUnauthorized) IsClientError ¶
func (o *UpdateUserUnauthorized) IsClientError() bool
IsClientError returns true when this update user unauthorized response has a 4xx status code
func (*UpdateUserUnauthorized) IsCode ¶
func (o *UpdateUserUnauthorized) IsCode(code int) bool
IsCode returns true when this update user unauthorized response a status code equal to that given
func (*UpdateUserUnauthorized) IsRedirect ¶
func (o *UpdateUserUnauthorized) IsRedirect() bool
IsRedirect returns true when this update user unauthorized response has a 3xx status code
func (*UpdateUserUnauthorized) IsServerError ¶
func (o *UpdateUserUnauthorized) IsServerError() bool
IsServerError returns true when this update user unauthorized response has a 5xx status code
func (*UpdateUserUnauthorized) IsSuccess ¶
func (o *UpdateUserUnauthorized) IsSuccess() bool
IsSuccess returns true when this update user unauthorized response has a 2xx status code
func (*UpdateUserUnauthorized) String ¶
func (o *UpdateUserUnauthorized) String() string
Source Files
¶
- create_user_parameters.go
- create_user_responses.go
- current_user_parameters.go
- current_user_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- get_user_parameters.go
- get_user_responses.go
- get_users_parameters.go
- get_users_responses.go
- update_current_user_parameters.go
- update_current_user_responses.go
- update_user_parameters.go
- update_user_responses.go
- user_client.go