Documentation ¶
Index ¶
- type ChangeCurrentUserPasswordBadRequest
- type ChangeCurrentUserPasswordBody
- type ChangeCurrentUserPasswordNotFound
- type ChangeCurrentUserPasswordOK
- type ChangeCurrentUserPasswordParams
- func NewChangeCurrentUserPasswordParams() *ChangeCurrentUserPasswordParams
- func NewChangeCurrentUserPasswordParamsWithContext(ctx context.Context) *ChangeCurrentUserPasswordParams
- func NewChangeCurrentUserPasswordParamsWithHTTPClient(client *http.Client) *ChangeCurrentUserPasswordParams
- func NewChangeCurrentUserPasswordParamsWithTimeout(timeout time.Duration) *ChangeCurrentUserPasswordParams
- func (o *ChangeCurrentUserPasswordParams) SetContext(ctx context.Context)
- func (o *ChangeCurrentUserPasswordParams) SetHTTPClient(client *http.Client)
- func (o *ChangeCurrentUserPasswordParams) SetTimeout(timeout time.Duration)
- func (o *ChangeCurrentUserPasswordParams) SetUser(user ChangeCurrentUserPasswordBody)
- func (o *ChangeCurrentUserPasswordParams) WithContext(ctx context.Context) *ChangeCurrentUserPasswordParams
- func (o *ChangeCurrentUserPasswordParams) WithHTTPClient(client *http.Client) *ChangeCurrentUserPasswordParams
- func (o *ChangeCurrentUserPasswordParams) WithTimeout(timeout time.Duration) *ChangeCurrentUserPasswordParams
- func (o *ChangeCurrentUserPasswordParams) WithUser(user ChangeCurrentUserPasswordBody) *ChangeCurrentUserPasswordParams
- func (o *ChangeCurrentUserPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangeCurrentUserPasswordReader
- type ChangeUserPasswordBadRequest
- type ChangeUserPasswordBody
- type ChangeUserPasswordNotFound
- type ChangeUserPasswordOK
- type ChangeUserPasswordParams
- func NewChangeUserPasswordParams() *ChangeUserPasswordParams
- func NewChangeUserPasswordParamsWithContext(ctx context.Context) *ChangeUserPasswordParams
- func NewChangeUserPasswordParamsWithHTTPClient(client *http.Client) *ChangeUserPasswordParams
- func NewChangeUserPasswordParamsWithTimeout(timeout time.Duration) *ChangeUserPasswordParams
- func (o *ChangeUserPasswordParams) SetContext(ctx context.Context)
- func (o *ChangeUserPasswordParams) SetHTTPClient(client *http.Client)
- func (o *ChangeUserPasswordParams) SetTimeout(timeout time.Duration)
- func (o *ChangeUserPasswordParams) SetUser(user ChangeUserPasswordBody)
- func (o *ChangeUserPasswordParams) SetUserID(userID string)
- func (o *ChangeUserPasswordParams) WithContext(ctx context.Context) *ChangeUserPasswordParams
- func (o *ChangeUserPasswordParams) WithHTTPClient(client *http.Client) *ChangeUserPasswordParams
- func (o *ChangeUserPasswordParams) WithTimeout(timeout time.Duration) *ChangeUserPasswordParams
- func (o *ChangeUserPasswordParams) WithUser(user ChangeUserPasswordBody) *ChangeUserPasswordParams
- func (o *ChangeUserPasswordParams) WithUserID(userID string) *ChangeUserPasswordParams
- func (o *ChangeUserPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ChangeUserPasswordReader
- type Client
- func (a *Client) ChangeCurrentUserPassword(params *ChangeCurrentUserPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeCurrentUserPasswordOK, error)
- func (a *Client) ChangeUserPassword(params *ChangeUserPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeUserPasswordOK, 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) LoginUser(params *LoginUserParams) (*LoginUserOK, error)
- func (a *Client) LogoutUser(params *LogoutUserParams, authInfo runtime.ClientAuthInfoWriter) error
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOK, error)
- type DeleteUserBadRequest
- type DeleteUserNotFound
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) SetUserID(userID string)
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WithUserID(userID string) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type GetUserBadRequest
- type GetUserNotFound
- type GetUserOK
- type GetUserParams
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) SetUserID(userID string)
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WithUserID(userID string) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type LoginUserBadRequest
- type LoginUserOK
- type LoginUserParams
- func (o *LoginUserParams) SetContext(ctx context.Context)
- func (o *LoginUserParams) SetGrantType(grantType string)
- func (o *LoginUserParams) SetHTTPClient(client *http.Client)
- func (o *LoginUserParams) SetPassword(password string)
- func (o *LoginUserParams) SetTimeout(timeout time.Duration)
- func (o *LoginUserParams) SetUsername(username string)
- func (o *LoginUserParams) WithContext(ctx context.Context) *LoginUserParams
- func (o *LoginUserParams) WithGrantType(grantType string) *LoginUserParams
- func (o *LoginUserParams) WithHTTPClient(client *http.Client) *LoginUserParams
- func (o *LoginUserParams) WithPassword(password string) *LoginUserParams
- func (o *LoginUserParams) WithTimeout(timeout time.Duration) *LoginUserParams
- func (o *LoginUserParams) WithUsername(username string) *LoginUserParams
- func (o *LoginUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoginUserReader
- type LogoutUserDefault
- type LogoutUserParams
- func (o *LogoutUserParams) SetContext(ctx context.Context)
- func (o *LogoutUserParams) SetHTTPClient(client *http.Client)
- func (o *LogoutUserParams) SetTimeout(timeout time.Duration)
- func (o *LogoutUserParams) WithContext(ctx context.Context) *LogoutUserParams
- func (o *LogoutUserParams) WithHTTPClient(client *http.Client) *LogoutUserParams
- func (o *LogoutUserParams) WithTimeout(timeout time.Duration) *LogoutUserParams
- func (o *LogoutUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LogoutUserReader
- type UpdateUserBadRequest
- type UpdateUserBody
- type UpdateUserNotFound
- type UpdateUserOK
- type UpdateUserParams
- func (o *UpdateUserParams) SetContext(ctx context.Context)
- func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserParams) SetUser(user UpdateUserBody)
- func (o *UpdateUserParams) SetUserID(userID string)
- func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
- func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
- func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
- func (o *UpdateUserParams) WithUser(user UpdateUserBody) *UpdateUserParams
- func (o *UpdateUserParams) WithUserID(userID string) *UpdateUserParams
- func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeCurrentUserPasswordBadRequest ¶
type ChangeCurrentUserPasswordBadRequest struct { }
ChangeCurrentUserPasswordBadRequest handles this case with default header values.
Invalid username supplied
func NewChangeCurrentUserPasswordBadRequest ¶
func NewChangeCurrentUserPasswordBadRequest() *ChangeCurrentUserPasswordBadRequest
NewChangeCurrentUserPasswordBadRequest creates a ChangeCurrentUserPasswordBadRequest with default headers values
func (*ChangeCurrentUserPasswordBadRequest) Error ¶
func (o *ChangeCurrentUserPasswordBadRequest) Error() string
type ChangeCurrentUserPasswordBody ¶
type ChangeCurrentUserPasswordBody struct { // new passowrd NewPassowrd string `json:"new_passowrd,omitempty"` // old password OldPassword string `json:"old_password,omitempty"` }
ChangeCurrentUserPasswordBody change current user password body swagger:model ChangeCurrentUserPasswordBody
func (*ChangeCurrentUserPasswordBody) MarshalBinary ¶
func (o *ChangeCurrentUserPasswordBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeCurrentUserPasswordBody) UnmarshalBinary ¶
func (o *ChangeCurrentUserPasswordBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeCurrentUserPasswordNotFound ¶
type ChangeCurrentUserPasswordNotFound struct { }
ChangeCurrentUserPasswordNotFound handles this case with default header values.
User not found
func NewChangeCurrentUserPasswordNotFound ¶
func NewChangeCurrentUserPasswordNotFound() *ChangeCurrentUserPasswordNotFound
NewChangeCurrentUserPasswordNotFound creates a ChangeCurrentUserPasswordNotFound with default headers values
func (*ChangeCurrentUserPasswordNotFound) Error ¶
func (o *ChangeCurrentUserPasswordNotFound) Error() string
type ChangeCurrentUserPasswordOK ¶
type ChangeCurrentUserPasswordOK struct { }
ChangeCurrentUserPasswordOK handles this case with default header values.
successful operation
func NewChangeCurrentUserPasswordOK ¶
func NewChangeCurrentUserPasswordOK() *ChangeCurrentUserPasswordOK
NewChangeCurrentUserPasswordOK creates a ChangeCurrentUserPasswordOK with default headers values
func (*ChangeCurrentUserPasswordOK) Error ¶
func (o *ChangeCurrentUserPasswordOK) Error() string
type ChangeCurrentUserPasswordParams ¶
type ChangeCurrentUserPasswordParams struct { /*User Updated user password */ User ChangeCurrentUserPasswordBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ChangeCurrentUserPasswordParams contains all the parameters to send to the API endpoint for the change current user password operation typically these are written to a http.Request
func NewChangeCurrentUserPasswordParams ¶
func NewChangeCurrentUserPasswordParams() *ChangeCurrentUserPasswordParams
NewChangeCurrentUserPasswordParams creates a new ChangeCurrentUserPasswordParams object with the default values initialized.
func NewChangeCurrentUserPasswordParamsWithContext ¶
func NewChangeCurrentUserPasswordParamsWithContext(ctx context.Context) *ChangeCurrentUserPasswordParams
NewChangeCurrentUserPasswordParamsWithContext creates a new ChangeCurrentUserPasswordParams object with the default values initialized, and the ability to set a context for a request
func NewChangeCurrentUserPasswordParamsWithHTTPClient ¶
func NewChangeCurrentUserPasswordParamsWithHTTPClient(client *http.Client) *ChangeCurrentUserPasswordParams
NewChangeCurrentUserPasswordParamsWithHTTPClient creates a new ChangeCurrentUserPasswordParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewChangeCurrentUserPasswordParamsWithTimeout ¶
func NewChangeCurrentUserPasswordParamsWithTimeout(timeout time.Duration) *ChangeCurrentUserPasswordParams
NewChangeCurrentUserPasswordParamsWithTimeout creates a new ChangeCurrentUserPasswordParams object with the default values initialized, and the ability to set a timeout on a request
func (*ChangeCurrentUserPasswordParams) SetContext ¶
func (o *ChangeCurrentUserPasswordParams) SetContext(ctx context.Context)
SetContext adds the context to the change current user password params
func (*ChangeCurrentUserPasswordParams) SetHTTPClient ¶
func (o *ChangeCurrentUserPasswordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the change current user password params
func (*ChangeCurrentUserPasswordParams) SetTimeout ¶
func (o *ChangeCurrentUserPasswordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the change current user password params
func (*ChangeCurrentUserPasswordParams) SetUser ¶
func (o *ChangeCurrentUserPasswordParams) SetUser(user ChangeCurrentUserPasswordBody)
SetUser adds the user to the change current user password params
func (*ChangeCurrentUserPasswordParams) WithContext ¶
func (o *ChangeCurrentUserPasswordParams) WithContext(ctx context.Context) *ChangeCurrentUserPasswordParams
WithContext adds the context to the change current user password params
func (*ChangeCurrentUserPasswordParams) WithHTTPClient ¶
func (o *ChangeCurrentUserPasswordParams) WithHTTPClient(client *http.Client) *ChangeCurrentUserPasswordParams
WithHTTPClient adds the HTTPClient to the change current user password params
func (*ChangeCurrentUserPasswordParams) WithTimeout ¶
func (o *ChangeCurrentUserPasswordParams) WithTimeout(timeout time.Duration) *ChangeCurrentUserPasswordParams
WithTimeout adds the timeout to the change current user password params
func (*ChangeCurrentUserPasswordParams) WithUser ¶
func (o *ChangeCurrentUserPasswordParams) WithUser(user ChangeCurrentUserPasswordBody) *ChangeCurrentUserPasswordParams
WithUser adds the user to the change current user password params
func (*ChangeCurrentUserPasswordParams) WriteToRequest ¶
func (o *ChangeCurrentUserPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ChangeCurrentUserPasswordReader ¶
type ChangeCurrentUserPasswordReader struct {
// contains filtered or unexported fields
}
ChangeCurrentUserPasswordReader is a Reader for the ChangeCurrentUserPassword structure.
func (*ChangeCurrentUserPasswordReader) ReadResponse ¶
func (o *ChangeCurrentUserPasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ChangeUserPasswordBadRequest ¶
type ChangeUserPasswordBadRequest struct { }
ChangeUserPasswordBadRequest handles this case with default header values.
Invalid username supplied
func NewChangeUserPasswordBadRequest ¶
func NewChangeUserPasswordBadRequest() *ChangeUserPasswordBadRequest
NewChangeUserPasswordBadRequest creates a ChangeUserPasswordBadRequest with default headers values
func (*ChangeUserPasswordBadRequest) Error ¶
func (o *ChangeUserPasswordBadRequest) Error() string
type ChangeUserPasswordBody ¶
type ChangeUserPasswordBody struct { // password Password string `json:"password,omitempty"` }
ChangeUserPasswordBody change user password body swagger:model ChangeUserPasswordBody
func (*ChangeUserPasswordBody) MarshalBinary ¶
func (o *ChangeUserPasswordBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ChangeUserPasswordBody) UnmarshalBinary ¶
func (o *ChangeUserPasswordBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ChangeUserPasswordNotFound ¶
type ChangeUserPasswordNotFound struct { }
ChangeUserPasswordNotFound handles this case with default header values.
User not found
func NewChangeUserPasswordNotFound ¶
func NewChangeUserPasswordNotFound() *ChangeUserPasswordNotFound
NewChangeUserPasswordNotFound creates a ChangeUserPasswordNotFound with default headers values
func (*ChangeUserPasswordNotFound) Error ¶
func (o *ChangeUserPasswordNotFound) Error() string
type ChangeUserPasswordOK ¶
type ChangeUserPasswordOK struct { }
ChangeUserPasswordOK handles this case with default header values.
successful operation
func NewChangeUserPasswordOK ¶
func NewChangeUserPasswordOK() *ChangeUserPasswordOK
NewChangeUserPasswordOK creates a ChangeUserPasswordOK with default headers values
func (*ChangeUserPasswordOK) Error ¶
func (o *ChangeUserPasswordOK) Error() string
type ChangeUserPasswordParams ¶
type ChangeUserPasswordParams struct { /*User Updated user password */ User ChangeUserPasswordBody /*UserID name that need to be updated */ UserID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ChangeUserPasswordParams contains all the parameters to send to the API endpoint for the change user password operation typically these are written to a http.Request
func NewChangeUserPasswordParams ¶
func NewChangeUserPasswordParams() *ChangeUserPasswordParams
NewChangeUserPasswordParams creates a new ChangeUserPasswordParams object with the default values initialized.
func NewChangeUserPasswordParamsWithContext ¶
func NewChangeUserPasswordParamsWithContext(ctx context.Context) *ChangeUserPasswordParams
NewChangeUserPasswordParamsWithContext creates a new ChangeUserPasswordParams object with the default values initialized, and the ability to set a context for a request
func NewChangeUserPasswordParamsWithHTTPClient ¶
func NewChangeUserPasswordParamsWithHTTPClient(client *http.Client) *ChangeUserPasswordParams
NewChangeUserPasswordParamsWithHTTPClient creates a new ChangeUserPasswordParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewChangeUserPasswordParamsWithTimeout ¶
func NewChangeUserPasswordParamsWithTimeout(timeout time.Duration) *ChangeUserPasswordParams
NewChangeUserPasswordParamsWithTimeout creates a new ChangeUserPasswordParams object with the default values initialized, and the ability to set a timeout on a request
func (*ChangeUserPasswordParams) SetContext ¶
func (o *ChangeUserPasswordParams) SetContext(ctx context.Context)
SetContext adds the context to the change user password params
func (*ChangeUserPasswordParams) SetHTTPClient ¶
func (o *ChangeUserPasswordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the change user password params
func (*ChangeUserPasswordParams) SetTimeout ¶
func (o *ChangeUserPasswordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the change user password params
func (*ChangeUserPasswordParams) SetUser ¶
func (o *ChangeUserPasswordParams) SetUser(user ChangeUserPasswordBody)
SetUser adds the user to the change user password params
func (*ChangeUserPasswordParams) SetUserID ¶
func (o *ChangeUserPasswordParams) SetUserID(userID string)
SetUserID adds the userId to the change user password params
func (*ChangeUserPasswordParams) WithContext ¶
func (o *ChangeUserPasswordParams) WithContext(ctx context.Context) *ChangeUserPasswordParams
WithContext adds the context to the change user password params
func (*ChangeUserPasswordParams) WithHTTPClient ¶
func (o *ChangeUserPasswordParams) WithHTTPClient(client *http.Client) *ChangeUserPasswordParams
WithHTTPClient adds the HTTPClient to the change user password params
func (*ChangeUserPasswordParams) WithTimeout ¶
func (o *ChangeUserPasswordParams) WithTimeout(timeout time.Duration) *ChangeUserPasswordParams
WithTimeout adds the timeout to the change user password params
func (*ChangeUserPasswordParams) WithUser ¶
func (o *ChangeUserPasswordParams) WithUser(user ChangeUserPasswordBody) *ChangeUserPasswordParams
WithUser adds the user to the change user password params
func (*ChangeUserPasswordParams) WithUserID ¶
func (o *ChangeUserPasswordParams) WithUserID(userID string) *ChangeUserPasswordParams
WithUserID adds the userID to the change user password params
func (*ChangeUserPasswordParams) WriteToRequest ¶
func (o *ChangeUserPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ChangeUserPasswordReader ¶
type ChangeUserPasswordReader struct {
// contains filtered or unexported fields
}
ChangeUserPasswordReader is a Reader for the ChangeUserPassword structure.
func (*ChangeUserPasswordReader) ReadResponse ¶
func (o *ChangeUserPasswordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new user API client.
func (*Client) ChangeCurrentUserPassword ¶
func (a *Client) ChangeCurrentUserPassword(params *ChangeCurrentUserPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeCurrentUserPasswordOK, error)
ChangeCurrentUserPassword changes current user s password
This can only be done by the logged in user.
func (*Client) ChangeUserPassword ¶
func (a *Client) ChangeUserPassword(params *ChangeUserPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeUserPasswordOK, error)
ChangeUserPassword changes user s password
This can only be done by the logged in user.
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserOK, error)
DeleteUser deletes user by id
This can only be done by the logged in user.
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)
GetUser gets user by user id
This can only be done by the logged in user.
func (*Client) LoginUser ¶
func (a *Client) LoginUser(params *LoginUserParams) (*LoginUserOK, error)
LoginUser logs user into the system
func (*Client) LogoutUser ¶
func (a *Client) LogoutUser(params *LogoutUserParams, authInfo runtime.ClientAuthInfoWriter) error
LogoutUser logs out current logged in user session
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateUser ¶
func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOK, error)
UpdateUser updateds user by id
This can only be done by the logged in user.
type DeleteUserBadRequest ¶
type DeleteUserBadRequest struct { }
DeleteUserBadRequest handles this case with default header values.
Invalid username supplied
func NewDeleteUserBadRequest ¶
func NewDeleteUserBadRequest() *DeleteUserBadRequest
NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values
func (*DeleteUserBadRequest) Error ¶
func (o *DeleteUserBadRequest) Error() string
type DeleteUserNotFound ¶
type DeleteUserNotFound struct { }
DeleteUserNotFound handles this case with default header values.
User not found
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) Error ¶
func (o *DeleteUserNotFound) Error() string
type DeleteUserOK ¶
type DeleteUserOK struct { }
DeleteUserOK handles this case with default header values.
successful operation
func NewDeleteUserOK ¶
func NewDeleteUserOK() *DeleteUserOK
NewDeleteUserOK creates a DeleteUserOK with default headers values
func (*DeleteUserOK) Error ¶
func (o *DeleteUserOK) Error() string
type DeleteUserParams ¶
type DeleteUserParams struct { /*UserID The user that needs to be deleted */ UserID string 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 values initialized.
func NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient 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) SetUserID ¶
func (o *DeleteUserParams) SetUserID(userID string)
SetUserID adds the userId 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) WithHTTPClient ¶
func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
WithHTTPClient adds the HTTPClient 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) WithUserID ¶
func (o *DeleteUserParams) WithUserID(userID string) *DeleteUserParams
WithUserID adds the userID 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 GetUserBadRequest ¶
type GetUserBadRequest struct { }
GetUserBadRequest handles this case with default header values.
Invalid username supplied
func NewGetUserBadRequest ¶
func NewGetUserBadRequest() *GetUserBadRequest
NewGetUserBadRequest creates a GetUserBadRequest with default headers values
func (*GetUserBadRequest) Error ¶
func (o *GetUserBadRequest) Error() string
type GetUserNotFound ¶
type GetUserNotFound struct { }
GetUserNotFound handles this case with default header values.
User not found
func NewGetUserNotFound ¶
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates a GetUserNotFound with default headers values
func (*GetUserNotFound) Error ¶
func (o *GetUserNotFound) Error() string
type GetUserOK ¶
GetUserOK handles this case with default header values.
successful operation
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶
type GetUserParams ¶
type GetUserParams struct { /*UserID The name that needs to be fetched. */ UserID string 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 values initialized.
func NewGetUserParamsWithContext ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient 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) SetUserID ¶
func (o *GetUserParams) SetUserID(userID string)
SetUserID adds the userId 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) WithHTTPClient ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient 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) WithUserID ¶
func (o *GetUserParams) WithUserID(userID string) *GetUserParams
WithUserID adds the userID 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 LoginUserBadRequest ¶
type LoginUserBadRequest struct { }
LoginUserBadRequest handles this case with default header values.
Invalid username/password supplied
func NewLoginUserBadRequest ¶
func NewLoginUserBadRequest() *LoginUserBadRequest
NewLoginUserBadRequest creates a LoginUserBadRequest with default headers values
func (*LoginUserBadRequest) Error ¶
func (o *LoginUserBadRequest) Error() string
type LoginUserOK ¶
type LoginUserOK struct {
Payload *models.LoginToken
}
LoginUserOK handles this case with default header values.
successful operation
func NewLoginUserOK ¶
func NewLoginUserOK() *LoginUserOK
NewLoginUserOK creates a LoginUserOK with default headers values
func (*LoginUserOK) Error ¶
func (o *LoginUserOK) Error() string
func (*LoginUserOK) GetPayload ¶
func (o *LoginUserOK) GetPayload() *models.LoginToken
type LoginUserParams ¶
type LoginUserParams struct { /*GrantType*/ GrantType string /*Password The password for login in clear text */ Password string /*Username The user name for login */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LoginUserParams contains all the parameters to send to the API endpoint for the login user operation typically these are written to a http.Request
func NewLoginUserParams ¶
func NewLoginUserParams() *LoginUserParams
NewLoginUserParams creates a new LoginUserParams object with the default values initialized.
func NewLoginUserParamsWithContext ¶
func NewLoginUserParamsWithContext(ctx context.Context) *LoginUserParams
NewLoginUserParamsWithContext creates a new LoginUserParams object with the default values initialized, and the ability to set a context for a request
func NewLoginUserParamsWithHTTPClient ¶
func NewLoginUserParamsWithHTTPClient(client *http.Client) *LoginUserParams
NewLoginUserParamsWithHTTPClient creates a new LoginUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewLoginUserParamsWithTimeout ¶
func NewLoginUserParamsWithTimeout(timeout time.Duration) *LoginUserParams
NewLoginUserParamsWithTimeout creates a new LoginUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*LoginUserParams) SetContext ¶
func (o *LoginUserParams) SetContext(ctx context.Context)
SetContext adds the context to the login user params
func (*LoginUserParams) SetGrantType ¶
func (o *LoginUserParams) SetGrantType(grantType string)
SetGrantType adds the grantType to the login user params
func (*LoginUserParams) SetHTTPClient ¶
func (o *LoginUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the login user params
func (*LoginUserParams) SetPassword ¶
func (o *LoginUserParams) SetPassword(password string)
SetPassword adds the password to the login user params
func (*LoginUserParams) SetTimeout ¶
func (o *LoginUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the login user params
func (*LoginUserParams) SetUsername ¶
func (o *LoginUserParams) SetUsername(username string)
SetUsername adds the username to the login user params
func (*LoginUserParams) WithContext ¶
func (o *LoginUserParams) WithContext(ctx context.Context) *LoginUserParams
WithContext adds the context to the login user params
func (*LoginUserParams) WithGrantType ¶
func (o *LoginUserParams) WithGrantType(grantType string) *LoginUserParams
WithGrantType adds the grantType to the login user params
func (*LoginUserParams) WithHTTPClient ¶
func (o *LoginUserParams) WithHTTPClient(client *http.Client) *LoginUserParams
WithHTTPClient adds the HTTPClient to the login user params
func (*LoginUserParams) WithPassword ¶
func (o *LoginUserParams) WithPassword(password string) *LoginUserParams
WithPassword adds the password to the login user params
func (*LoginUserParams) WithTimeout ¶
func (o *LoginUserParams) WithTimeout(timeout time.Duration) *LoginUserParams
WithTimeout adds the timeout to the login user params
func (*LoginUserParams) WithUsername ¶
func (o *LoginUserParams) WithUsername(username string) *LoginUserParams
WithUsername adds the username to the login user params
func (*LoginUserParams) WriteToRequest ¶
func (o *LoginUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LoginUserReader ¶
type LoginUserReader struct {
// contains filtered or unexported fields
}
LoginUserReader is a Reader for the LoginUser structure.
func (*LoginUserReader) ReadResponse ¶
func (o *LoginUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type LogoutUserDefault ¶
type LogoutUserDefault struct {
// contains filtered or unexported fields
}
LogoutUserDefault handles this case with default header values.
successful operation
func NewLogoutUserDefault ¶
func NewLogoutUserDefault(code int) *LogoutUserDefault
NewLogoutUserDefault creates a LogoutUserDefault with default headers values
func (*LogoutUserDefault) Code ¶
func (o *LogoutUserDefault) Code() int
Code gets the status code for the logout user default response
func (*LogoutUserDefault) Error ¶
func (o *LogoutUserDefault) Error() string
type LogoutUserParams ¶
type LogoutUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
LogoutUserParams contains all the parameters to send to the API endpoint for the logout user operation typically these are written to a http.Request
func NewLogoutUserParams ¶
func NewLogoutUserParams() *LogoutUserParams
NewLogoutUserParams creates a new LogoutUserParams object with the default values initialized.
func NewLogoutUserParamsWithContext ¶
func NewLogoutUserParamsWithContext(ctx context.Context) *LogoutUserParams
NewLogoutUserParamsWithContext creates a new LogoutUserParams object with the default values initialized, and the ability to set a context for a request
func NewLogoutUserParamsWithHTTPClient ¶
func NewLogoutUserParamsWithHTTPClient(client *http.Client) *LogoutUserParams
NewLogoutUserParamsWithHTTPClient creates a new LogoutUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewLogoutUserParamsWithTimeout ¶
func NewLogoutUserParamsWithTimeout(timeout time.Duration) *LogoutUserParams
NewLogoutUserParamsWithTimeout creates a new LogoutUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*LogoutUserParams) SetContext ¶
func (o *LogoutUserParams) SetContext(ctx context.Context)
SetContext adds the context to the logout user params
func (*LogoutUserParams) SetHTTPClient ¶
func (o *LogoutUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the logout user params
func (*LogoutUserParams) SetTimeout ¶
func (o *LogoutUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the logout user params
func (*LogoutUserParams) WithContext ¶
func (o *LogoutUserParams) WithContext(ctx context.Context) *LogoutUserParams
WithContext adds the context to the logout user params
func (*LogoutUserParams) WithHTTPClient ¶
func (o *LogoutUserParams) WithHTTPClient(client *http.Client) *LogoutUserParams
WithHTTPClient adds the HTTPClient to the logout user params
func (*LogoutUserParams) WithTimeout ¶
func (o *LogoutUserParams) WithTimeout(timeout time.Duration) *LogoutUserParams
WithTimeout adds the timeout to the logout user params
func (*LogoutUserParams) WriteToRequest ¶
func (o *LogoutUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type LogoutUserReader ¶
type LogoutUserReader struct {
// contains filtered or unexported fields
}
LogoutUserReader is a Reader for the LogoutUser structure.
func (*LogoutUserReader) ReadResponse ¶
func (o *LogoutUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUserBadRequest ¶
type UpdateUserBadRequest struct { }
UpdateUserBadRequest handles this case with default header values.
Invalid user supplied
func NewUpdateUserBadRequest ¶
func NewUpdateUserBadRequest() *UpdateUserBadRequest
NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values
func (*UpdateUserBadRequest) Error ¶
func (o *UpdateUserBadRequest) Error() string
type UpdateUserBody ¶
type UpdateUserBody struct { // email Email string `json:"email,omitempty"` // phone Phone string `json:"phone,omitempty"` // roles Roles []string `json:"roles"` // username Username string `json:"username,omitempty"` }
UpdateUserBody update user body swagger:model UpdateUserBody
func (*UpdateUserBody) MarshalBinary ¶
func (o *UpdateUserBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateUserBody) UnmarshalBinary ¶
func (o *UpdateUserBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdateUserNotFound ¶
type UpdateUserNotFound struct { }
UpdateUserNotFound handles this case with default header values.
User not found
func NewUpdateUserNotFound ¶
func NewUpdateUserNotFound() *UpdateUserNotFound
NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values
func (*UpdateUserNotFound) Error ¶
func (o *UpdateUserNotFound) Error() string
type UpdateUserOK ¶
UpdateUserOK handles this case with default header values.
successful operation
func NewUpdateUserOK ¶
func NewUpdateUserOK() *UpdateUserOK
NewUpdateUserOK creates a UpdateUserOK with default headers values
func (*UpdateUserOK) Error ¶
func (o *UpdateUserOK) Error() string
func (*UpdateUserOK) GetPayload ¶
func (o *UpdateUserOK) GetPayload() *models.User
type UpdateUserParams ¶
type UpdateUserParams struct { /*User Updated user object */ User UpdateUserBody /*UserID name that need to be updated */ UserID string 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 values initialized.
func NewUpdateUserParamsWithContext ¶
func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams
NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*UpdateUserParams) SetContext ¶
func (o *UpdateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the update user params
func (*UpdateUserParams) SetHTTPClient ¶
func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient 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) SetUser ¶
func (o *UpdateUserParams) SetUser(user UpdateUserBody)
SetUser adds the user to the update user params
func (*UpdateUserParams) SetUserID ¶
func (o *UpdateUserParams) SetUserID(userID string)
SetUserID adds the userId 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) WithHTTPClient ¶
func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
WithHTTPClient adds the HTTPClient 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) WithUser ¶
func (o *UpdateUserParams) WithUser(user UpdateUserBody) *UpdateUserParams
WithUser adds the user to the update user params
func (*UpdateUserParams) WithUserID ¶
func (o *UpdateUserParams) WithUserID(userID string) *UpdateUserParams
WithUserID adds the userID 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.
Source Files ¶
- change_current_user_password_parameters.go
- change_current_user_password_responses.go
- change_user_password_parameters.go
- change_user_password_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- get_user_parameters.go
- get_user_responses.go
- login_user_parameters.go
- login_user_responses.go
- logout_user_parameters.go
- logout_user_responses.go
- update_user_parameters.go
- update_user_responses.go
- user_client.go