Documentation
¶
Index ¶
- type Client
- func (a *Client) GetAPIUsers(params *GetAPIUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIUsersOK, error)
- func (a *Client) GetAPIUsersID(params *GetAPIUsersIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIUsersIDOK, error)
- func (a *Client) GetAPIUsersMe(params *GetAPIUsersMeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPIUsersMeOK, error)
- func (a *Client) PatchAPIUsersID(params *PatchAPIUsersIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPIUsersIDOK, error)
- func (a *Client) PostAPIUsers(params *PostAPIUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAPIUsersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAPIUsersIDOK
- func (o *GetAPIUsersIDOK) Error() string
- func (o *GetAPIUsersIDOK) GetPayload() *models.UserEntity
- func (o *GetAPIUsersIDOK) IsClientError() bool
- func (o *GetAPIUsersIDOK) IsCode(code int) bool
- func (o *GetAPIUsersIDOK) IsRedirect() bool
- func (o *GetAPIUsersIDOK) IsServerError() bool
- func (o *GetAPIUsersIDOK) IsSuccess() bool
- func (o *GetAPIUsersIDOK) String() string
- type GetAPIUsersIDParams
- func (o *GetAPIUsersIDParams) SetContext(ctx context.Context)
- func (o *GetAPIUsersIDParams) SetDefaults()
- func (o *GetAPIUsersIDParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIUsersIDParams) SetID(id int64)
- func (o *GetAPIUsersIDParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIUsersIDParams) WithContext(ctx context.Context) *GetAPIUsersIDParams
- func (o *GetAPIUsersIDParams) WithDefaults() *GetAPIUsersIDParams
- func (o *GetAPIUsersIDParams) WithHTTPClient(client *http.Client) *GetAPIUsersIDParams
- func (o *GetAPIUsersIDParams) WithID(id int64) *GetAPIUsersIDParams
- func (o *GetAPIUsersIDParams) WithTimeout(timeout time.Duration) *GetAPIUsersIDParams
- func (o *GetAPIUsersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIUsersIDReader
- type GetAPIUsersMeOK
- func (o *GetAPIUsersMeOK) Error() string
- func (o *GetAPIUsersMeOK) GetPayload() *models.UserEntity
- func (o *GetAPIUsersMeOK) IsClientError() bool
- func (o *GetAPIUsersMeOK) IsCode(code int) bool
- func (o *GetAPIUsersMeOK) IsRedirect() bool
- func (o *GetAPIUsersMeOK) IsServerError() bool
- func (o *GetAPIUsersMeOK) IsSuccess() bool
- func (o *GetAPIUsersMeOK) String() string
- type GetAPIUsersMeParams
- func (o *GetAPIUsersMeParams) SetContext(ctx context.Context)
- func (o *GetAPIUsersMeParams) SetDefaults()
- func (o *GetAPIUsersMeParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIUsersMeParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIUsersMeParams) WithContext(ctx context.Context) *GetAPIUsersMeParams
- func (o *GetAPIUsersMeParams) WithDefaults() *GetAPIUsersMeParams
- func (o *GetAPIUsersMeParams) WithHTTPClient(client *http.Client) *GetAPIUsersMeParams
- func (o *GetAPIUsersMeParams) WithTimeout(timeout time.Duration) *GetAPIUsersMeParams
- func (o *GetAPIUsersMeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIUsersMeReader
- type GetAPIUsersOK
- func (o *GetAPIUsersOK) Error() string
- func (o *GetAPIUsersOK) GetPayload() []*models.UserCollection
- func (o *GetAPIUsersOK) IsClientError() bool
- func (o *GetAPIUsersOK) IsCode(code int) bool
- func (o *GetAPIUsersOK) IsRedirect() bool
- func (o *GetAPIUsersOK) IsServerError() bool
- func (o *GetAPIUsersOK) IsSuccess() bool
- func (o *GetAPIUsersOK) String() string
- type GetAPIUsersParams
- func (o *GetAPIUsersParams) SetContext(ctx context.Context)
- func (o *GetAPIUsersParams) SetDefaults()
- func (o *GetAPIUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetAPIUsersParams) SetOrder(order string)
- func (o *GetAPIUsersParams) SetOrderBy(orderBy string)
- func (o *GetAPIUsersParams) SetTerm(term *string)
- func (o *GetAPIUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetAPIUsersParams) SetVisible(visible string)
- func (o *GetAPIUsersParams) WithContext(ctx context.Context) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithDefaults() *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithHTTPClient(client *http.Client) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithOrder(order string) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithOrderBy(orderBy string) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithTerm(term *string) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithTimeout(timeout time.Duration) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WithVisible(visible string) *GetAPIUsersParams
- func (o *GetAPIUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPIUsersReader
- type PatchAPIUsersIDOK
- func (o *PatchAPIUsersIDOK) Error() string
- func (o *PatchAPIUsersIDOK) GetPayload() *models.UserEntity
- func (o *PatchAPIUsersIDOK) IsClientError() bool
- func (o *PatchAPIUsersIDOK) IsCode(code int) bool
- func (o *PatchAPIUsersIDOK) IsRedirect() bool
- func (o *PatchAPIUsersIDOK) IsServerError() bool
- func (o *PatchAPIUsersIDOK) IsSuccess() bool
- func (o *PatchAPIUsersIDOK) String() string
- type PatchAPIUsersIDParams
- func NewPatchAPIUsersIDParams() *PatchAPIUsersIDParams
- func NewPatchAPIUsersIDParamsWithContext(ctx context.Context) *PatchAPIUsersIDParams
- func NewPatchAPIUsersIDParamsWithHTTPClient(client *http.Client) *PatchAPIUsersIDParams
- func NewPatchAPIUsersIDParamsWithTimeout(timeout time.Duration) *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) SetBody(body *models.UserEditForm)
- func (o *PatchAPIUsersIDParams) SetContext(ctx context.Context)
- func (o *PatchAPIUsersIDParams) SetDefaults()
- func (o *PatchAPIUsersIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPIUsersIDParams) SetID(id int64)
- func (o *PatchAPIUsersIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPIUsersIDParams) WithBody(body *models.UserEditForm) *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) WithContext(ctx context.Context) *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) WithDefaults() *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) WithHTTPClient(client *http.Client) *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) WithID(id int64) *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) WithTimeout(timeout time.Duration) *PatchAPIUsersIDParams
- func (o *PatchAPIUsersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPIUsersIDReader
- type PostAPIUsersOK
- func (o *PostAPIUsersOK) Error() string
- func (o *PostAPIUsersOK) GetPayload() *models.UserEntity
- func (o *PostAPIUsersOK) IsClientError() bool
- func (o *PostAPIUsersOK) IsCode(code int) bool
- func (o *PostAPIUsersOK) IsRedirect() bool
- func (o *PostAPIUsersOK) IsServerError() bool
- func (o *PostAPIUsersOK) IsSuccess() bool
- func (o *PostAPIUsersOK) String() string
- type PostAPIUsersParams
- func (o *PostAPIUsersParams) SetBody(body *models.UserCreateForm)
- func (o *PostAPIUsersParams) SetContext(ctx context.Context)
- func (o *PostAPIUsersParams) SetDefaults()
- func (o *PostAPIUsersParams) SetHTTPClient(client *http.Client)
- func (o *PostAPIUsersParams) SetTimeout(timeout time.Duration)
- func (o *PostAPIUsersParams) WithBody(body *models.UserCreateForm) *PostAPIUsersParams
- func (o *PostAPIUsersParams) WithContext(ctx context.Context) *PostAPIUsersParams
- func (o *PostAPIUsersParams) WithDefaults() *PostAPIUsersParams
- func (o *PostAPIUsersParams) WithHTTPClient(client *http.Client) *PostAPIUsersParams
- func (o *PostAPIUsersParams) WithTimeout(timeout time.Duration) *PostAPIUsersParams
- func (o *PostAPIUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPIUsersReader
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) GetAPIUsers ¶
func (a *Client) GetAPIUsers(params *GetAPIUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUsersOK, error)
GetAPIUsers returns the collection of all registered users
func (*Client) GetAPIUsersID ¶
func (a *Client) GetAPIUsersID(params *GetAPIUsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUsersIDOK, error)
GetAPIUsersID returns one user entity
func (*Client) GetAPIUsersMe ¶
func (a *Client) GetAPIUsersMe(params *GetAPIUsersMeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUsersMeOK, error)
GetAPIUsersMe returns the current user entity
func (*Client) PatchAPIUsersID ¶
func (a *Client) PatchAPIUsersID(params *PatchAPIUsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIUsersIDOK, error)
PatchAPIUsersID updates an existing user
Update an existing user, you can pass all or just a subset of all attributes (passing roles will replace all existing ones)
func (*Client) PostAPIUsers ¶
func (a *Client) PostAPIUsers(params *PostAPIUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIUsersOK, error)
PostAPIUsers creates a new user
Creates a new user and returns it afterwards
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetAPIUsers(params *GetAPIUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUsersOK, error) GetAPIUsersID(params *GetAPIUsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUsersIDOK, error) GetAPIUsersMe(params *GetAPIUsersMeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPIUsersMeOK, error) PatchAPIUsersID(params *PatchAPIUsersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPIUsersIDOK, error) PostAPIUsers(params *PostAPIUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPIUsersOK, 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.
type GetAPIUsersIDOK ¶
type GetAPIUsersIDOK struct {
Payload *models.UserEntity
}
GetAPIUsersIDOK describes a response with status code 200, with default header values.
Return one user entity.
func NewGetAPIUsersIDOK ¶
func NewGetAPIUsersIDOK() *GetAPIUsersIDOK
NewGetAPIUsersIDOK creates a GetAPIUsersIDOK with default headers values
func (*GetAPIUsersIDOK) Error ¶
func (o *GetAPIUsersIDOK) Error() string
func (*GetAPIUsersIDOK) GetPayload ¶
func (o *GetAPIUsersIDOK) GetPayload() *models.UserEntity
func (*GetAPIUsersIDOK) IsClientError ¶
func (o *GetAPIUsersIDOK) IsClientError() bool
IsClientError returns true when this get Api users Id o k response has a 4xx status code
func (*GetAPIUsersIDOK) IsCode ¶
func (o *GetAPIUsersIDOK) IsCode(code int) bool
IsCode returns true when this get Api users Id o k response a status code equal to that given
func (*GetAPIUsersIDOK) IsRedirect ¶
func (o *GetAPIUsersIDOK) IsRedirect() bool
IsRedirect returns true when this get Api users Id o k response has a 3xx status code
func (*GetAPIUsersIDOK) IsServerError ¶
func (o *GetAPIUsersIDOK) IsServerError() bool
IsServerError returns true when this get Api users Id o k response has a 5xx status code
func (*GetAPIUsersIDOK) IsSuccess ¶
func (o *GetAPIUsersIDOK) IsSuccess() bool
IsSuccess returns true when this get Api users Id o k response has a 2xx status code
func (*GetAPIUsersIDOK) String ¶
func (o *GetAPIUsersIDOK) String() string
type GetAPIUsersIDParams ¶
type GetAPIUsersIDParams struct { /* ID. User ID to fetch */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIUsersIDParams contains all the parameters to send to the API endpoint
for the get API users ID operation. Typically these are written to a http.Request.
func NewGetAPIUsersIDParams ¶
func NewGetAPIUsersIDParams() *GetAPIUsersIDParams
NewGetAPIUsersIDParams creates a new GetAPIUsersIDParams 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 NewGetAPIUsersIDParamsWithContext ¶
func NewGetAPIUsersIDParamsWithContext(ctx context.Context) *GetAPIUsersIDParams
NewGetAPIUsersIDParamsWithContext creates a new GetAPIUsersIDParams object with the ability to set a context for a request.
func NewGetAPIUsersIDParamsWithHTTPClient ¶
func NewGetAPIUsersIDParamsWithHTTPClient(client *http.Client) *GetAPIUsersIDParams
NewGetAPIUsersIDParamsWithHTTPClient creates a new GetAPIUsersIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIUsersIDParamsWithTimeout ¶
func NewGetAPIUsersIDParamsWithTimeout(timeout time.Duration) *GetAPIUsersIDParams
NewGetAPIUsersIDParamsWithTimeout creates a new GetAPIUsersIDParams object with the ability to set a timeout on a request.
func (*GetAPIUsersIDParams) SetContext ¶
func (o *GetAPIUsersIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get API users ID params
func (*GetAPIUsersIDParams) SetDefaults ¶
func (o *GetAPIUsersIDParams) SetDefaults()
SetDefaults hydrates default values in the get API users ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIUsersIDParams) SetHTTPClient ¶
func (o *GetAPIUsersIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API users ID params
func (*GetAPIUsersIDParams) SetID ¶
func (o *GetAPIUsersIDParams) SetID(id int64)
SetID adds the id to the get API users ID params
func (*GetAPIUsersIDParams) SetTimeout ¶
func (o *GetAPIUsersIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API users ID params
func (*GetAPIUsersIDParams) WithContext ¶
func (o *GetAPIUsersIDParams) WithContext(ctx context.Context) *GetAPIUsersIDParams
WithContext adds the context to the get API users ID params
func (*GetAPIUsersIDParams) WithDefaults ¶
func (o *GetAPIUsersIDParams) WithDefaults() *GetAPIUsersIDParams
WithDefaults hydrates default values in the get API users ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIUsersIDParams) WithHTTPClient ¶
func (o *GetAPIUsersIDParams) WithHTTPClient(client *http.Client) *GetAPIUsersIDParams
WithHTTPClient adds the HTTPClient to the get API users ID params
func (*GetAPIUsersIDParams) WithID ¶
func (o *GetAPIUsersIDParams) WithID(id int64) *GetAPIUsersIDParams
WithID adds the id to the get API users ID params
func (*GetAPIUsersIDParams) WithTimeout ¶
func (o *GetAPIUsersIDParams) WithTimeout(timeout time.Duration) *GetAPIUsersIDParams
WithTimeout adds the timeout to the get API users ID params
func (*GetAPIUsersIDParams) WriteToRequest ¶
func (o *GetAPIUsersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIUsersIDReader ¶
type GetAPIUsersIDReader struct {
// contains filtered or unexported fields
}
GetAPIUsersIDReader is a Reader for the GetAPIUsersID structure.
func (*GetAPIUsersIDReader) ReadResponse ¶
func (o *GetAPIUsersIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIUsersMeOK ¶
type GetAPIUsersMeOK struct {
Payload *models.UserEntity
}
GetAPIUsersMeOK describes a response with status code 200, with default header values.
Return the current user entity.
func NewGetAPIUsersMeOK ¶
func NewGetAPIUsersMeOK() *GetAPIUsersMeOK
NewGetAPIUsersMeOK creates a GetAPIUsersMeOK with default headers values
func (*GetAPIUsersMeOK) Error ¶
func (o *GetAPIUsersMeOK) Error() string
func (*GetAPIUsersMeOK) GetPayload ¶
func (o *GetAPIUsersMeOK) GetPayload() *models.UserEntity
func (*GetAPIUsersMeOK) IsClientError ¶
func (o *GetAPIUsersMeOK) IsClientError() bool
IsClientError returns true when this get Api users me o k response has a 4xx status code
func (*GetAPIUsersMeOK) IsCode ¶
func (o *GetAPIUsersMeOK) IsCode(code int) bool
IsCode returns true when this get Api users me o k response a status code equal to that given
func (*GetAPIUsersMeOK) IsRedirect ¶
func (o *GetAPIUsersMeOK) IsRedirect() bool
IsRedirect returns true when this get Api users me o k response has a 3xx status code
func (*GetAPIUsersMeOK) IsServerError ¶
func (o *GetAPIUsersMeOK) IsServerError() bool
IsServerError returns true when this get Api users me o k response has a 5xx status code
func (*GetAPIUsersMeOK) IsSuccess ¶
func (o *GetAPIUsersMeOK) IsSuccess() bool
IsSuccess returns true when this get Api users me o k response has a 2xx status code
func (*GetAPIUsersMeOK) String ¶
func (o *GetAPIUsersMeOK) String() string
type GetAPIUsersMeParams ¶
type GetAPIUsersMeParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIUsersMeParams contains all the parameters to send to the API endpoint
for the get API users me operation. Typically these are written to a http.Request.
func NewGetAPIUsersMeParams ¶
func NewGetAPIUsersMeParams() *GetAPIUsersMeParams
NewGetAPIUsersMeParams creates a new GetAPIUsersMeParams 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 NewGetAPIUsersMeParamsWithContext ¶
func NewGetAPIUsersMeParamsWithContext(ctx context.Context) *GetAPIUsersMeParams
NewGetAPIUsersMeParamsWithContext creates a new GetAPIUsersMeParams object with the ability to set a context for a request.
func NewGetAPIUsersMeParamsWithHTTPClient ¶
func NewGetAPIUsersMeParamsWithHTTPClient(client *http.Client) *GetAPIUsersMeParams
NewGetAPIUsersMeParamsWithHTTPClient creates a new GetAPIUsersMeParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIUsersMeParamsWithTimeout ¶
func NewGetAPIUsersMeParamsWithTimeout(timeout time.Duration) *GetAPIUsersMeParams
NewGetAPIUsersMeParamsWithTimeout creates a new GetAPIUsersMeParams object with the ability to set a timeout on a request.
func (*GetAPIUsersMeParams) SetContext ¶
func (o *GetAPIUsersMeParams) SetContext(ctx context.Context)
SetContext adds the context to the get API users me params
func (*GetAPIUsersMeParams) SetDefaults ¶
func (o *GetAPIUsersMeParams) SetDefaults()
SetDefaults hydrates default values in the get API users me params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIUsersMeParams) SetHTTPClient ¶
func (o *GetAPIUsersMeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API users me params
func (*GetAPIUsersMeParams) SetTimeout ¶
func (o *GetAPIUsersMeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API users me params
func (*GetAPIUsersMeParams) WithContext ¶
func (o *GetAPIUsersMeParams) WithContext(ctx context.Context) *GetAPIUsersMeParams
WithContext adds the context to the get API users me params
func (*GetAPIUsersMeParams) WithDefaults ¶
func (o *GetAPIUsersMeParams) WithDefaults() *GetAPIUsersMeParams
WithDefaults hydrates default values in the get API users me params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIUsersMeParams) WithHTTPClient ¶
func (o *GetAPIUsersMeParams) WithHTTPClient(client *http.Client) *GetAPIUsersMeParams
WithHTTPClient adds the HTTPClient to the get API users me params
func (*GetAPIUsersMeParams) WithTimeout ¶
func (o *GetAPIUsersMeParams) WithTimeout(timeout time.Duration) *GetAPIUsersMeParams
WithTimeout adds the timeout to the get API users me params
func (*GetAPIUsersMeParams) WriteToRequest ¶
func (o *GetAPIUsersMeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIUsersMeReader ¶
type GetAPIUsersMeReader struct {
// contains filtered or unexported fields
}
GetAPIUsersMeReader is a Reader for the GetAPIUsersMe structure.
func (*GetAPIUsersMeReader) ReadResponse ¶
func (o *GetAPIUsersMeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPIUsersOK ¶
type GetAPIUsersOK struct {
Payload []*models.UserCollection
}
GetAPIUsersOK describes a response with status code 200, with default header values.
Returns the collection of all registered users. Required permission: view_user
func NewGetAPIUsersOK ¶
func NewGetAPIUsersOK() *GetAPIUsersOK
NewGetAPIUsersOK creates a GetAPIUsersOK with default headers values
func (*GetAPIUsersOK) Error ¶
func (o *GetAPIUsersOK) Error() string
func (*GetAPIUsersOK) GetPayload ¶
func (o *GetAPIUsersOK) GetPayload() []*models.UserCollection
func (*GetAPIUsersOK) IsClientError ¶
func (o *GetAPIUsersOK) IsClientError() bool
IsClientError returns true when this get Api users o k response has a 4xx status code
func (*GetAPIUsersOK) IsCode ¶
func (o *GetAPIUsersOK) IsCode(code int) bool
IsCode returns true when this get Api users o k response a status code equal to that given
func (*GetAPIUsersOK) IsRedirect ¶
func (o *GetAPIUsersOK) IsRedirect() bool
IsRedirect returns true when this get Api users o k response has a 3xx status code
func (*GetAPIUsersOK) IsServerError ¶
func (o *GetAPIUsersOK) IsServerError() bool
IsServerError returns true when this get Api users o k response has a 5xx status code
func (*GetAPIUsersOK) IsSuccess ¶
func (o *GetAPIUsersOK) IsSuccess() bool
IsSuccess returns true when this get Api users o k response has a 2xx status code
func (*GetAPIUsersOK) String ¶
func (o *GetAPIUsersOK) String() string
type GetAPIUsersParams ¶
type GetAPIUsersParams struct { /* Order. The result order. Allowed values: ASC, DESC (default: ASC) */ Order string /* OrderBy. The field by which results will be ordered. Allowed values: id, username, alias, email (default: username) */ OrderBy string /* Term. Free search term */ Term *string /* Visible. Visibility status to filter users. Allowed values: 1=visible, 2=hidden, 3=all (default: 1) */ Visible string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPIUsersParams contains all the parameters to send to the API endpoint
for the get API users operation. Typically these are written to a http.Request.
func NewGetAPIUsersParams ¶
func NewGetAPIUsersParams() *GetAPIUsersParams
NewGetAPIUsersParams creates a new GetAPIUsersParams 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 NewGetAPIUsersParamsWithContext ¶
func NewGetAPIUsersParamsWithContext(ctx context.Context) *GetAPIUsersParams
NewGetAPIUsersParamsWithContext creates a new GetAPIUsersParams object with the ability to set a context for a request.
func NewGetAPIUsersParamsWithHTTPClient ¶
func NewGetAPIUsersParamsWithHTTPClient(client *http.Client) *GetAPIUsersParams
NewGetAPIUsersParamsWithHTTPClient creates a new GetAPIUsersParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPIUsersParamsWithTimeout ¶
func NewGetAPIUsersParamsWithTimeout(timeout time.Duration) *GetAPIUsersParams
NewGetAPIUsersParamsWithTimeout creates a new GetAPIUsersParams object with the ability to set a timeout on a request.
func (*GetAPIUsersParams) SetContext ¶
func (o *GetAPIUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get API users params
func (*GetAPIUsersParams) SetDefaults ¶
func (o *GetAPIUsersParams) SetDefaults()
SetDefaults hydrates default values in the get API users params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIUsersParams) SetHTTPClient ¶
func (o *GetAPIUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API users params
func (*GetAPIUsersParams) SetOrder ¶
func (o *GetAPIUsersParams) SetOrder(order string)
SetOrder adds the order to the get API users params
func (*GetAPIUsersParams) SetOrderBy ¶
func (o *GetAPIUsersParams) SetOrderBy(orderBy string)
SetOrderBy adds the orderBy to the get API users params
func (*GetAPIUsersParams) SetTerm ¶
func (o *GetAPIUsersParams) SetTerm(term *string)
SetTerm adds the term to the get API users params
func (*GetAPIUsersParams) SetTimeout ¶
func (o *GetAPIUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API users params
func (*GetAPIUsersParams) SetVisible ¶
func (o *GetAPIUsersParams) SetVisible(visible string)
SetVisible adds the visible to the get API users params
func (*GetAPIUsersParams) WithContext ¶
func (o *GetAPIUsersParams) WithContext(ctx context.Context) *GetAPIUsersParams
WithContext adds the context to the get API users params
func (*GetAPIUsersParams) WithDefaults ¶
func (o *GetAPIUsersParams) WithDefaults() *GetAPIUsersParams
WithDefaults hydrates default values in the get API users params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPIUsersParams) WithHTTPClient ¶
func (o *GetAPIUsersParams) WithHTTPClient(client *http.Client) *GetAPIUsersParams
WithHTTPClient adds the HTTPClient to the get API users params
func (*GetAPIUsersParams) WithOrder ¶
func (o *GetAPIUsersParams) WithOrder(order string) *GetAPIUsersParams
WithOrder adds the order to the get API users params
func (*GetAPIUsersParams) WithOrderBy ¶
func (o *GetAPIUsersParams) WithOrderBy(orderBy string) *GetAPIUsersParams
WithOrderBy adds the orderBy to the get API users params
func (*GetAPIUsersParams) WithTerm ¶
func (o *GetAPIUsersParams) WithTerm(term *string) *GetAPIUsersParams
WithTerm adds the term to the get API users params
func (*GetAPIUsersParams) WithTimeout ¶
func (o *GetAPIUsersParams) WithTimeout(timeout time.Duration) *GetAPIUsersParams
WithTimeout adds the timeout to the get API users params
func (*GetAPIUsersParams) WithVisible ¶
func (o *GetAPIUsersParams) WithVisible(visible string) *GetAPIUsersParams
WithVisible adds the visible to the get API users params
func (*GetAPIUsersParams) WriteToRequest ¶
func (o *GetAPIUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPIUsersReader ¶
type GetAPIUsersReader struct {
// contains filtered or unexported fields
}
GetAPIUsersReader is a Reader for the GetAPIUsers structure.
func (*GetAPIUsersReader) ReadResponse ¶
func (o *GetAPIUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAPIUsersIDOK ¶
type PatchAPIUsersIDOK struct {
Payload *models.UserEntity
}
PatchAPIUsersIDOK describes a response with status code 200, with default header values.
Returns the updated user
func NewPatchAPIUsersIDOK ¶
func NewPatchAPIUsersIDOK() *PatchAPIUsersIDOK
NewPatchAPIUsersIDOK creates a PatchAPIUsersIDOK with default headers values
func (*PatchAPIUsersIDOK) Error ¶
func (o *PatchAPIUsersIDOK) Error() string
func (*PatchAPIUsersIDOK) GetPayload ¶
func (o *PatchAPIUsersIDOK) GetPayload() *models.UserEntity
func (*PatchAPIUsersIDOK) IsClientError ¶
func (o *PatchAPIUsersIDOK) IsClientError() bool
IsClientError returns true when this patch Api users Id o k response has a 4xx status code
func (*PatchAPIUsersIDOK) IsCode ¶
func (o *PatchAPIUsersIDOK) IsCode(code int) bool
IsCode returns true when this patch Api users Id o k response a status code equal to that given
func (*PatchAPIUsersIDOK) IsRedirect ¶
func (o *PatchAPIUsersIDOK) IsRedirect() bool
IsRedirect returns true when this patch Api users Id o k response has a 3xx status code
func (*PatchAPIUsersIDOK) IsServerError ¶
func (o *PatchAPIUsersIDOK) IsServerError() bool
IsServerError returns true when this patch Api users Id o k response has a 5xx status code
func (*PatchAPIUsersIDOK) IsSuccess ¶
func (o *PatchAPIUsersIDOK) IsSuccess() bool
IsSuccess returns true when this patch Api users Id o k response has a 2xx status code
func (*PatchAPIUsersIDOK) String ¶
func (o *PatchAPIUsersIDOK) String() string
type PatchAPIUsersIDParams ¶
type PatchAPIUsersIDParams struct { // Body. Body *models.UserEditForm /* ID. User ID to update */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPIUsersIDParams contains all the parameters to send to the API endpoint
for the patch API users ID operation. Typically these are written to a http.Request.
func NewPatchAPIUsersIDParams ¶
func NewPatchAPIUsersIDParams() *PatchAPIUsersIDParams
NewPatchAPIUsersIDParams creates a new PatchAPIUsersIDParams 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 NewPatchAPIUsersIDParamsWithContext ¶
func NewPatchAPIUsersIDParamsWithContext(ctx context.Context) *PatchAPIUsersIDParams
NewPatchAPIUsersIDParamsWithContext creates a new PatchAPIUsersIDParams object with the ability to set a context for a request.
func NewPatchAPIUsersIDParamsWithHTTPClient ¶
func NewPatchAPIUsersIDParamsWithHTTPClient(client *http.Client) *PatchAPIUsersIDParams
NewPatchAPIUsersIDParamsWithHTTPClient creates a new PatchAPIUsersIDParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAPIUsersIDParamsWithTimeout ¶
func NewPatchAPIUsersIDParamsWithTimeout(timeout time.Duration) *PatchAPIUsersIDParams
NewPatchAPIUsersIDParamsWithTimeout creates a new PatchAPIUsersIDParams object with the ability to set a timeout on a request.
func (*PatchAPIUsersIDParams) SetBody ¶
func (o *PatchAPIUsersIDParams) SetBody(body *models.UserEditForm)
SetBody adds the body to the patch API users ID params
func (*PatchAPIUsersIDParams) SetContext ¶
func (o *PatchAPIUsersIDParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API users ID params
func (*PatchAPIUsersIDParams) SetDefaults ¶
func (o *PatchAPIUsersIDParams) SetDefaults()
SetDefaults hydrates default values in the patch API users ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIUsersIDParams) SetHTTPClient ¶
func (o *PatchAPIUsersIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API users ID params
func (*PatchAPIUsersIDParams) SetID ¶
func (o *PatchAPIUsersIDParams) SetID(id int64)
SetID adds the id to the patch API users ID params
func (*PatchAPIUsersIDParams) SetTimeout ¶
func (o *PatchAPIUsersIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API users ID params
func (*PatchAPIUsersIDParams) WithBody ¶
func (o *PatchAPIUsersIDParams) WithBody(body *models.UserEditForm) *PatchAPIUsersIDParams
WithBody adds the body to the patch API users ID params
func (*PatchAPIUsersIDParams) WithContext ¶
func (o *PatchAPIUsersIDParams) WithContext(ctx context.Context) *PatchAPIUsersIDParams
WithContext adds the context to the patch API users ID params
func (*PatchAPIUsersIDParams) WithDefaults ¶
func (o *PatchAPIUsersIDParams) WithDefaults() *PatchAPIUsersIDParams
WithDefaults hydrates default values in the patch API users ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPIUsersIDParams) WithHTTPClient ¶
func (o *PatchAPIUsersIDParams) WithHTTPClient(client *http.Client) *PatchAPIUsersIDParams
WithHTTPClient adds the HTTPClient to the patch API users ID params
func (*PatchAPIUsersIDParams) WithID ¶
func (o *PatchAPIUsersIDParams) WithID(id int64) *PatchAPIUsersIDParams
WithID adds the id to the patch API users ID params
func (*PatchAPIUsersIDParams) WithTimeout ¶
func (o *PatchAPIUsersIDParams) WithTimeout(timeout time.Duration) *PatchAPIUsersIDParams
WithTimeout adds the timeout to the patch API users ID params
func (*PatchAPIUsersIDParams) WriteToRequest ¶
func (o *PatchAPIUsersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPIUsersIDReader ¶
type PatchAPIUsersIDReader struct {
// contains filtered or unexported fields
}
PatchAPIUsersIDReader is a Reader for the PatchAPIUsersID structure.
func (*PatchAPIUsersIDReader) ReadResponse ¶
func (o *PatchAPIUsersIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAPIUsersOK ¶
type PostAPIUsersOK struct {
Payload *models.UserEntity
}
PostAPIUsersOK describes a response with status code 200, with default header values.
Returns the new created user
func NewPostAPIUsersOK ¶
func NewPostAPIUsersOK() *PostAPIUsersOK
NewPostAPIUsersOK creates a PostAPIUsersOK with default headers values
func (*PostAPIUsersOK) Error ¶
func (o *PostAPIUsersOK) Error() string
func (*PostAPIUsersOK) GetPayload ¶
func (o *PostAPIUsersOK) GetPayload() *models.UserEntity
func (*PostAPIUsersOK) IsClientError ¶
func (o *PostAPIUsersOK) IsClientError() bool
IsClientError returns true when this post Api users o k response has a 4xx status code
func (*PostAPIUsersOK) IsCode ¶
func (o *PostAPIUsersOK) IsCode(code int) bool
IsCode returns true when this post Api users o k response a status code equal to that given
func (*PostAPIUsersOK) IsRedirect ¶
func (o *PostAPIUsersOK) IsRedirect() bool
IsRedirect returns true when this post Api users o k response has a 3xx status code
func (*PostAPIUsersOK) IsServerError ¶
func (o *PostAPIUsersOK) IsServerError() bool
IsServerError returns true when this post Api users o k response has a 5xx status code
func (*PostAPIUsersOK) IsSuccess ¶
func (o *PostAPIUsersOK) IsSuccess() bool
IsSuccess returns true when this post Api users o k response has a 2xx status code
func (*PostAPIUsersOK) String ¶
func (o *PostAPIUsersOK) String() string
type PostAPIUsersParams ¶
type PostAPIUsersParams struct { // Body. Body *models.UserCreateForm Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostAPIUsersParams contains all the parameters to send to the API endpoint
for the post API users operation. Typically these are written to a http.Request.
func NewPostAPIUsersParams ¶
func NewPostAPIUsersParams() *PostAPIUsersParams
NewPostAPIUsersParams creates a new PostAPIUsersParams 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 NewPostAPIUsersParamsWithContext ¶
func NewPostAPIUsersParamsWithContext(ctx context.Context) *PostAPIUsersParams
NewPostAPIUsersParamsWithContext creates a new PostAPIUsersParams object with the ability to set a context for a request.
func NewPostAPIUsersParamsWithHTTPClient ¶
func NewPostAPIUsersParamsWithHTTPClient(client *http.Client) *PostAPIUsersParams
NewPostAPIUsersParamsWithHTTPClient creates a new PostAPIUsersParams object with the ability to set a custom HTTPClient for a request.
func NewPostAPIUsersParamsWithTimeout ¶
func NewPostAPIUsersParamsWithTimeout(timeout time.Duration) *PostAPIUsersParams
NewPostAPIUsersParamsWithTimeout creates a new PostAPIUsersParams object with the ability to set a timeout on a request.
func (*PostAPIUsersParams) SetBody ¶
func (o *PostAPIUsersParams) SetBody(body *models.UserCreateForm)
SetBody adds the body to the post API users params
func (*PostAPIUsersParams) SetContext ¶
func (o *PostAPIUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the post API users params
func (*PostAPIUsersParams) SetDefaults ¶
func (o *PostAPIUsersParams) SetDefaults()
SetDefaults hydrates default values in the post API users params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIUsersParams) SetHTTPClient ¶
func (o *PostAPIUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post API users params
func (*PostAPIUsersParams) SetTimeout ¶
func (o *PostAPIUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post API users params
func (*PostAPIUsersParams) WithBody ¶
func (o *PostAPIUsersParams) WithBody(body *models.UserCreateForm) *PostAPIUsersParams
WithBody adds the body to the post API users params
func (*PostAPIUsersParams) WithContext ¶
func (o *PostAPIUsersParams) WithContext(ctx context.Context) *PostAPIUsersParams
WithContext adds the context to the post API users params
func (*PostAPIUsersParams) WithDefaults ¶
func (o *PostAPIUsersParams) WithDefaults() *PostAPIUsersParams
WithDefaults hydrates default values in the post API users params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPIUsersParams) WithHTTPClient ¶
func (o *PostAPIUsersParams) WithHTTPClient(client *http.Client) *PostAPIUsersParams
WithHTTPClient adds the HTTPClient to the post API users params
func (*PostAPIUsersParams) WithTimeout ¶
func (o *PostAPIUsersParams) WithTimeout(timeout time.Duration) *PostAPIUsersParams
WithTimeout adds the timeout to the post API users params
func (*PostAPIUsersParams) WriteToRequest ¶
func (o *PostAPIUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAPIUsersReader ¶
type PostAPIUsersReader struct {
// contains filtered or unexported fields
}
PostAPIUsersReader is a Reader for the PostAPIUsers structure.
func (*PostAPIUsersReader) ReadResponse ¶
func (o *PostAPIUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- get_api_users_id_parameters.go
- get_api_users_id_responses.go
- get_api_users_me_parameters.go
- get_api_users_me_responses.go
- get_api_users_parameters.go
- get_api_users_responses.go
- patch_api_users_id_parameters.go
- patch_api_users_id_responses.go
- post_api_users_parameters.go
- post_api_users_responses.go
- user_client.go