users

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for users API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new users API client.

func (*Client) CreateUser

func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, error)

CreateUser creates user

Create a user.

func (*Client) DeleteUser

func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserNoContent, error)

DeleteUser deletes user

Delete user

func (*Client) GetUserDetails

func (a *Client) GetUserDetails(params *GetUserDetailsParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserDetailsOK, error)

GetUserDetails gets user details

Get user details

func (*Client) GetUsers

func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)

GetUsers gets users

Find and filter users

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 updates user

Update user details

type CreateUserBadRequest

type CreateUserBadRequest struct {
	Payload *models.BadRequest
}

CreateUserBadRequest handles this case with default header values.

User sent a bad request

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

type CreateUserCreated

type CreateUserCreated struct {
	Payload *models.User
}

CreateUserCreated handles this case with default header values.

Newly created user

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates a CreateUserCreated with default headers values

func (*CreateUserCreated) Error

func (o *CreateUserCreated) Error() string

type CreateUserDefault

type CreateUserDefault struct {
	Payload *models.GenericError
	// contains filtered or unexported fields
}

CreateUserDefault handles this case with default header values.

Error

func NewCreateUserDefault

func NewCreateUserDefault(code int) *CreateUserDefault

NewCreateUserDefault creates a CreateUserDefault with default headers values

func (*CreateUserDefault) Code

func (o *CreateUserDefault) Code() int

Code gets the status code for the create user default response

func (*CreateUserDefault) Error

func (o *CreateUserDefault) Error() string

type CreateUserForbidden

type CreateUserForbidden struct {
	Payload *models.Unauthorized
}

CreateUserForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewCreateUserForbidden

func NewCreateUserForbidden() *CreateUserForbidden

NewCreateUserForbidden creates a CreateUserForbidden with default headers values

func (*CreateUserForbidden) Error

func (o *CreateUserForbidden) Error() string

type CreateUserParams

type CreateUserParams struct {

	/*Body*/
	Body *models.User
	// 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 values initialized.

func NewCreateUserParamsWithTimeout

func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams

NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateUserParams) WithBody

func (o *CreateUserParams) WithBody(body *models.User) *CreateUserParams

WithBody adds the body 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 recieved o.

type CreateUserUnauthorized

type CreateUserUnauthorized struct {
	Payload *models.Unauthorized
}

CreateUserUnauthorized handles this case with default header values.

User not authorized

func NewCreateUserUnauthorized

func NewCreateUserUnauthorized() *CreateUserUnauthorized

NewCreateUserUnauthorized creates a CreateUserUnauthorized with default headers values

func (*CreateUserUnauthorized) Error

func (o *CreateUserUnauthorized) Error() string

type DeleteUserDefault

type DeleteUserDefault struct {
	Payload *models.GenericError
	// contains filtered or unexported fields
}

DeleteUserDefault handles this case with default header values.

Error

func NewDeleteUserDefault

func NewDeleteUserDefault(code int) *DeleteUserDefault

NewDeleteUserDefault creates a DeleteUserDefault with default headers values

func (*DeleteUserDefault) Code

func (o *DeleteUserDefault) Code() int

Code gets the status code for the delete user default response

func (*DeleteUserDefault) Error

func (o *DeleteUserDefault) Error() string

type DeleteUserNoContent

type DeleteUserNoContent struct {
}

DeleteUserNoContent handles this case with default header values.

No content

func NewDeleteUserNoContent

func NewDeleteUserNoContent() *DeleteUserNoContent

NewDeleteUserNoContent creates a DeleteUserNoContent with default headers values

func (*DeleteUserNoContent) Error

func (o *DeleteUserNoContent) Error() string

type DeleteUserParams

type DeleteUserParams struct {

	/*UserID
	  User ID

	*/
	UserID int64
	// 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 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) WithUserID

func (o *DeleteUserParams) WithUserID(userID int64) *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 recieved o.

type GetCurrentUserDefault

type GetCurrentUserDefault struct {
	Payload *models.GenericError
	// contains filtered or unexported fields
}

GetCurrentUserDefault handles this case with default header values.

Error

func NewGetCurrentUserDefault

func NewGetCurrentUserDefault(code int) *GetCurrentUserDefault

NewGetCurrentUserDefault creates a GetCurrentUserDefault with default headers values

func (*GetCurrentUserDefault) Code

func (o *GetCurrentUserDefault) Code() int

Code gets the status code for the get current user default response

func (*GetCurrentUserDefault) Error

func (o *GetCurrentUserDefault) Error() string

type GetCurrentUserNotFound

type GetCurrentUserNotFound struct {
	Payload *models.NotFound
}

GetCurrentUserNotFound handles this case with default header values.

Resource not found

func NewGetCurrentUserNotFound

func NewGetCurrentUserNotFound() *GetCurrentUserNotFound

NewGetCurrentUserNotFound creates a GetCurrentUserNotFound with default headers values

func (*GetCurrentUserNotFound) Error

func (o *GetCurrentUserNotFound) Error() string

type GetCurrentUserOK

type GetCurrentUserOK struct {
	Payload *models.User
}

GetCurrentUserOK handles this case with default header values.

User info

func NewGetCurrentUserOK

func NewGetCurrentUserOK() *GetCurrentUserOK

NewGetCurrentUserOK creates a GetCurrentUserOK with default headers values

func (*GetCurrentUserOK) Error

func (o *GetCurrentUserOK) Error() string

type GetCurrentUserParams

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

GetCurrentUserParams contains all the parameters to send to the API endpoint for the get current user operation typically these are written to a http.Request

func NewGetCurrentUserParams

func NewGetCurrentUserParams() *GetCurrentUserParams

NewGetCurrentUserParams creates a new GetCurrentUserParams object with the default values initialized.

func NewGetCurrentUserParamsWithTimeout

func NewGetCurrentUserParamsWithTimeout(timeout time.Duration) *GetCurrentUserParams

NewGetCurrentUserParamsWithTimeout creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetCurrentUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCurrentUserReader

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

GetCurrentUserReader is a Reader for the GetCurrentUser structure.

func (*GetCurrentUserReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetUserDetailsDefault

type GetUserDetailsDefault struct {
	Payload *models.GenericError
	// contains filtered or unexported fields
}

GetUserDetailsDefault handles this case with default header values.

Error

func NewGetUserDetailsDefault

func NewGetUserDetailsDefault(code int) *GetUserDetailsDefault

NewGetUserDetailsDefault creates a GetUserDetailsDefault with default headers values

func (*GetUserDetailsDefault) Code

func (o *GetUserDetailsDefault) Code() int

Code gets the status code for the get user details default response

func (*GetUserDetailsDefault) Error

func (o *GetUserDetailsDefault) Error() string

type GetUserDetailsForbidden

type GetUserDetailsForbidden struct {
	Payload *models.Unauthorized
}

GetUserDetailsForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewGetUserDetailsForbidden

func NewGetUserDetailsForbidden() *GetUserDetailsForbidden

NewGetUserDetailsForbidden creates a GetUserDetailsForbidden with default headers values

func (*GetUserDetailsForbidden) Error

func (o *GetUserDetailsForbidden) Error() string

type GetUserDetailsNotFound

type GetUserDetailsNotFound struct {
	Payload *models.NotFound
}

GetUserDetailsNotFound handles this case with default header values.

Resource not found

func NewGetUserDetailsNotFound

func NewGetUserDetailsNotFound() *GetUserDetailsNotFound

NewGetUserDetailsNotFound creates a GetUserDetailsNotFound with default headers values

func (*GetUserDetailsNotFound) Error

func (o *GetUserDetailsNotFound) Error() string

type GetUserDetailsOK

type GetUserDetailsOK struct {
	Payload *models.User
}

GetUserDetailsOK handles this case with default header values.

User details

func NewGetUserDetailsOK

func NewGetUserDetailsOK() *GetUserDetailsOK

NewGetUserDetailsOK creates a GetUserDetailsOK with default headers values

func (*GetUserDetailsOK) Error

func (o *GetUserDetailsOK) Error() string

type GetUserDetailsParams

type GetUserDetailsParams struct {

	/*Limit
	  Limit

	*/
	Limit *int64
	/*Since
	  Offset

	*/
	Since *int64
	/*UserID
	  User ID

	*/
	UserID int64
	// contains filtered or unexported fields
}

GetUserDetailsParams contains all the parameters to send to the API endpoint for the get user details operation typically these are written to a http.Request

func NewGetUserDetailsParams

func NewGetUserDetailsParams() *GetUserDetailsParams

NewGetUserDetailsParams creates a new GetUserDetailsParams object with the default values initialized.

func NewGetUserDetailsParamsWithTimeout

func NewGetUserDetailsParamsWithTimeout(timeout time.Duration) *GetUserDetailsParams

NewGetUserDetailsParamsWithTimeout creates a new GetUserDetailsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserDetailsParams) WithLimit

func (o *GetUserDetailsParams) WithLimit(limit *int64) *GetUserDetailsParams

WithLimit adds the limit to the get user details params

func (*GetUserDetailsParams) WithSince

func (o *GetUserDetailsParams) WithSince(since *int64) *GetUserDetailsParams

WithSince adds the since to the get user details params

func (*GetUserDetailsParams) WithUserID

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

WithUserID adds the userID to the get user details params

func (*GetUserDetailsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserDetailsReader

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

GetUserDetailsReader is a Reader for the GetUserDetails structure.

func (*GetUserDetailsReader) ReadResponse

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

ReadResponse reads a server response into the recieved o.

type GetUserDetailsUnauthorized

type GetUserDetailsUnauthorized struct {
	Payload *models.Unauthorized
}

GetUserDetailsUnauthorized handles this case with default header values.

User not authorized

func NewGetUserDetailsUnauthorized

func NewGetUserDetailsUnauthorized() *GetUserDetailsUnauthorized

NewGetUserDetailsUnauthorized creates a GetUserDetailsUnauthorized with default headers values

func (*GetUserDetailsUnauthorized) Error

type GetUsersBadRequest

type GetUsersBadRequest struct {
	Payload *models.BadRequest
}

GetUsersBadRequest handles this case with default header values.

User sent a bad request

func NewGetUsersBadRequest

func NewGetUsersBadRequest() *GetUsersBadRequest

NewGetUsersBadRequest creates a GetUsersBadRequest with default headers values

func (*GetUsersBadRequest) Error

func (o *GetUsersBadRequest) Error() string

type GetUsersDefault

type GetUsersDefault struct {
	Payload *models.GenericError
	// contains filtered or unexported fields
}

GetUsersDefault handles this case with default header values.

Error

func NewGetUsersDefault

func NewGetUsersDefault(code int) *GetUsersDefault

NewGetUsersDefault creates a GetUsersDefault with default headers values

func (*GetUsersDefault) Code

func (o *GetUsersDefault) Code() int

Code gets the status code for the get users default response

func (*GetUsersDefault) Error

func (o *GetUsersDefault) Error() string

type GetUsersForbidden

type GetUsersForbidden struct {
	Payload *models.Unauthorized
}

GetUsersForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewGetUsersForbidden

func NewGetUsersForbidden() *GetUsersForbidden

NewGetUsersForbidden creates a GetUsersForbidden with default headers values

func (*GetUsersForbidden) Error

func (o *GetUsersForbidden) Error() string

type GetUsersNotFound

type GetUsersNotFound struct {
	Payload *models.NotFound
}

GetUsersNotFound handles this case with default header values.

Resource not found

func NewGetUsersNotFound

func NewGetUsersNotFound() *GetUsersNotFound

NewGetUsersNotFound creates a GetUsersNotFound with default headers values

func (*GetUsersNotFound) Error

func (o *GetUsersNotFound) Error() string

type GetUsersOK

type GetUsersOK struct {
	Payload GetUsersOKBodyBody
}

GetUsersOK handles this case with default header values.

Get users

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

type GetUsersOKBodyBody

type GetUsersOKBodyBody struct {
	models.Pagination

	/* items

	Required: true
	*/
	Items []*models.User `json:"items"`
}

GetUsersOKBodyBody get users o k body body

swagger:model GetUsersOKBodyBody

func (*GetUsersOKBodyBody) Validate

func (o *GetUsersOKBodyBody) Validate(formats strfmt.Registry) error

Validate validates this get users o k body body

type GetUsersParams

type GetUsersParams struct {

	/*Limit
	  Limit

	*/
	Limit *int64
	/*Since
	  Offset

	*/
	Since *int64
	// 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 values initialized.

func NewGetUsersParamsWithTimeout

func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams

NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUsersParams) WithLimit

func (o *GetUsersParams) WithLimit(limit *int64) *GetUsersParams

WithLimit adds the limit to the get users params

func (*GetUsersParams) WithSince

func (o *GetUsersParams) WithSince(since *int64) *GetUsersParams

WithSince adds the since 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 recieved o.

type GetUsersUnauthorized

type GetUsersUnauthorized struct {
	Payload *models.Unauthorized
}

GetUsersUnauthorized handles this case with default header values.

User not authorized

func NewGetUsersUnauthorized

func NewGetUsersUnauthorized() *GetUsersUnauthorized

NewGetUsersUnauthorized creates a GetUsersUnauthorized with default headers values

func (*GetUsersUnauthorized) Error

func (o *GetUsersUnauthorized) Error() string

type UpdateUserDefault

type UpdateUserDefault struct {
	Payload *models.GenericError
	// contains filtered or unexported fields
}

UpdateUserDefault handles this case with default header values.

Error

func NewUpdateUserDefault

func NewUpdateUserDefault(code int) *UpdateUserDefault

NewUpdateUserDefault creates a UpdateUserDefault with default headers values

func (*UpdateUserDefault) Code

func (o *UpdateUserDefault) Code() int

Code gets the status code for the update user default response

func (*UpdateUserDefault) Error

func (o *UpdateUserDefault) Error() string

type UpdateUserForbidden

type UpdateUserForbidden struct {
	Payload *models.Unauthorized
}

UpdateUserForbidden handles this case with default header values.

User does not have the credentials to access this resource

func NewUpdateUserForbidden

func NewUpdateUserForbidden() *UpdateUserForbidden

NewUpdateUserForbidden creates a UpdateUserForbidden with default headers values

func (*UpdateUserForbidden) Error

func (o *UpdateUserForbidden) Error() string

type UpdateUserNotFound

type UpdateUserNotFound struct {
	Payload *models.NotFound
}

UpdateUserNotFound handles this case with default header values.

Resource 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

type UpdateUserOK struct {
	Payload *models.User
}

UpdateUserOK handles this case with default header values.

User details

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

type UpdateUserParams

type UpdateUserParams struct {

	/*UserID
	  User ID

	*/
	UserID int64
	// 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 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) WithUserID

func (o *UpdateUserParams) WithUserID(userID int64) *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 recieved o.

type UpdateUserUnauthorized

type UpdateUserUnauthorized struct {
	Payload *models.Unauthorized
}

UpdateUserUnauthorized handles this case with default header values.

User not authorized

func NewUpdateUserUnauthorized

func NewUpdateUserUnauthorized() *UpdateUserUnauthorized

NewUpdateUserUnauthorized creates a UpdateUserUnauthorized with default headers values

func (*UpdateUserUnauthorized) Error

func (o *UpdateUserUnauthorized) Error() string

Jump to

Keyboard shortcuts

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