Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateUsers(params *CreateUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateUsersOK, error)
- func (a *Client) DeleteUsers(params *DeleteUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteUsersOK, error)
- func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserOK, error)
- func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUsersOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateUserOK, error)
- type ClientOption
- type ClientService
- type CreateUsersOK
- func (o *CreateUsersOK) Code() int
- func (o *CreateUsersOK) Error() string
- func (o *CreateUsersOK) GetPayload() *models.ActivityResponse
- func (o *CreateUsersOK) IsClientError() bool
- func (o *CreateUsersOK) IsCode(code int) bool
- func (o *CreateUsersOK) IsRedirect() bool
- func (o *CreateUsersOK) IsServerError() bool
- func (o *CreateUsersOK) IsSuccess() bool
- func (o *CreateUsersOK) String() string
- type CreateUsersParams
- func (o *CreateUsersParams) SetBody(body *models.CreateUsersRequest)
- func (o *CreateUsersParams) SetContext(ctx context.Context)
- func (o *CreateUsersParams) SetDefaults()
- func (o *CreateUsersParams) SetHTTPClient(client *http.Client)
- func (o *CreateUsersParams) SetTimeout(timeout time.Duration)
- func (o *CreateUsersParams) WithBody(body *models.CreateUsersRequest) *CreateUsersParams
- func (o *CreateUsersParams) WithContext(ctx context.Context) *CreateUsersParams
- func (o *CreateUsersParams) WithDefaults() *CreateUsersParams
- func (o *CreateUsersParams) WithHTTPClient(client *http.Client) *CreateUsersParams
- func (o *CreateUsersParams) WithTimeout(timeout time.Duration) *CreateUsersParams
- func (o *CreateUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUsersReader
- type DeleteUsersOK
- func (o *DeleteUsersOK) Code() int
- func (o *DeleteUsersOK) Error() string
- func (o *DeleteUsersOK) GetPayload() *models.ActivityResponse
- func (o *DeleteUsersOK) IsClientError() bool
- func (o *DeleteUsersOK) IsCode(code int) bool
- func (o *DeleteUsersOK) IsRedirect() bool
- func (o *DeleteUsersOK) IsServerError() bool
- func (o *DeleteUsersOK) IsSuccess() bool
- func (o *DeleteUsersOK) String() string
- type DeleteUsersParams
- func (o *DeleteUsersParams) SetBody(body *models.DeleteUsersRequest)
- func (o *DeleteUsersParams) SetContext(ctx context.Context)
- func (o *DeleteUsersParams) SetDefaults()
- func (o *DeleteUsersParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUsersParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUsersParams) WithBody(body *models.DeleteUsersRequest) *DeleteUsersParams
- func (o *DeleteUsersParams) WithContext(ctx context.Context) *DeleteUsersParams
- func (o *DeleteUsersParams) WithDefaults() *DeleteUsersParams
- func (o *DeleteUsersParams) WithHTTPClient(client *http.Client) *DeleteUsersParams
- func (o *DeleteUsersParams) WithTimeout(timeout time.Duration) *DeleteUsersParams
- func (o *DeleteUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUsersReader
- type GetUserOK
- func (o *GetUserOK) Code() int
- func (o *GetUserOK) Error() string
- func (o *GetUserOK) GetPayload() *models.GetUserResponse
- func (o *GetUserOK) IsClientError() bool
- func (o *GetUserOK) IsCode(code int) bool
- func (o *GetUserOK) IsRedirect() bool
- func (o *GetUserOK) IsServerError() bool
- func (o *GetUserOK) IsSuccess() bool
- func (o *GetUserOK) String() string
- type GetUserParams
- func (o *GetUserParams) SetBody(body *models.GetUserRequest)
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetDefaults()
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) WithBody(body *models.GetUserRequest) *GetUserParams
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithDefaults() *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type GetUsersOK
- func (o *GetUsersOK) Code() int
- func (o *GetUsersOK) Error() string
- func (o *GetUsersOK) GetPayload() *models.GetUsersResponse
- func (o *GetUsersOK) IsClientError() bool
- func (o *GetUsersOK) IsCode(code int) bool
- func (o *GetUsersOK) IsRedirect() bool
- func (o *GetUsersOK) IsServerError() bool
- func (o *GetUsersOK) IsSuccess() bool
- func (o *GetUsersOK) String() string
- type GetUsersParams
- func (o *GetUsersParams) SetBody(body *models.GetUsersRequest)
- func (o *GetUsersParams) SetContext(ctx context.Context)
- func (o *GetUsersParams) SetDefaults()
- func (o *GetUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersParams) WithBody(body *models.GetUsersRequest) *GetUsersParams
- func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
- func (o *GetUsersParams) WithDefaults() *GetUsersParams
- func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
- func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
- func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersReader
- type UpdateUserOK
- func (o *UpdateUserOK) Code() int
- func (o *UpdateUserOK) Error() string
- func (o *UpdateUserOK) GetPayload() *models.ActivityResponse
- func (o *UpdateUserOK) IsClientError() bool
- func (o *UpdateUserOK) IsCode(code int) bool
- func (o *UpdateUserOK) IsRedirect() bool
- func (o *UpdateUserOK) IsServerError() bool
- func (o *UpdateUserOK) IsSuccess() bool
- func (o *UpdateUserOK) String() string
- type UpdateUserParams
- func (o *UpdateUserParams) SetBody(body *models.UpdateUserRequest)
- func (o *UpdateUserParams) SetContext(ctx context.Context)
- func (o *UpdateUserParams) SetDefaults()
- func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserParams) WithBody(body *models.UpdateUserRequest) *UpdateUserParams
- func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
- func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
- func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
- func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *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 Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for users API
func (*Client) CreateUsers ¶
func (a *Client) CreateUsers(params *CreateUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUsersOK, error)
CreateUsers creates users
Create Users in an existing Organization
func (*Client) DeleteUsers ¶
func (a *Client) DeleteUsers(params *DeleteUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUsersOK, error)
DeleteUsers deletes users
Delete Users within an Organization
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)
GetUser gets user
Get details about a User
func (*Client) GetUsers ¶
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error)
GetUsers lists users
List all Users within an Organization
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, opts ...ClientOption) (*UpdateUserOK, error)
UpdateUser updates user
Update a User in an existing Organization
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateUsers(params *CreateUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUsersOK, error) DeleteUsers(params *DeleteUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUsersOK, error) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new users API client.
type CreateUsersOK ¶
type CreateUsersOK struct {
Payload *models.ActivityResponse
}
CreateUsersOK describes a response with status code 200, with default header values.
A successful response.
func NewCreateUsersOK ¶
func NewCreateUsersOK() *CreateUsersOK
NewCreateUsersOK creates a CreateUsersOK with default headers values
func (*CreateUsersOK) Code ¶
func (o *CreateUsersOK) Code() int
Code gets the status code for the create users o k response
func (*CreateUsersOK) Error ¶
func (o *CreateUsersOK) Error() string
func (*CreateUsersOK) GetPayload ¶
func (o *CreateUsersOK) GetPayload() *models.ActivityResponse
func (*CreateUsersOK) IsClientError ¶
func (o *CreateUsersOK) IsClientError() bool
IsClientError returns true when this create users o k response has a 4xx status code
func (*CreateUsersOK) IsCode ¶
func (o *CreateUsersOK) IsCode(code int) bool
IsCode returns true when this create users o k response a status code equal to that given
func (*CreateUsersOK) IsRedirect ¶
func (o *CreateUsersOK) IsRedirect() bool
IsRedirect returns true when this create users o k response has a 3xx status code
func (*CreateUsersOK) IsServerError ¶
func (o *CreateUsersOK) IsServerError() bool
IsServerError returns true when this create users o k response has a 5xx status code
func (*CreateUsersOK) IsSuccess ¶
func (o *CreateUsersOK) IsSuccess() bool
IsSuccess returns true when this create users o k response has a 2xx status code
func (*CreateUsersOK) String ¶
func (o *CreateUsersOK) String() string
type CreateUsersParams ¶
type CreateUsersParams struct { // Body. Body *models.CreateUsersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUsersParams contains all the parameters to send to the API endpoint
for the create users operation. Typically these are written to a http.Request.
func NewCreateUsersParams ¶
func NewCreateUsersParams() *CreateUsersParams
NewCreateUsersParams creates a new CreateUsersParams 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 NewCreateUsersParamsWithContext ¶
func NewCreateUsersParamsWithContext(ctx context.Context) *CreateUsersParams
NewCreateUsersParamsWithContext creates a new CreateUsersParams object with the ability to set a context for a request.
func NewCreateUsersParamsWithHTTPClient ¶
func NewCreateUsersParamsWithHTTPClient(client *http.Client) *CreateUsersParams
NewCreateUsersParamsWithHTTPClient creates a new CreateUsersParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUsersParamsWithTimeout ¶
func NewCreateUsersParamsWithTimeout(timeout time.Duration) *CreateUsersParams
NewCreateUsersParamsWithTimeout creates a new CreateUsersParams object with the ability to set a timeout on a request.
func (*CreateUsersParams) SetBody ¶
func (o *CreateUsersParams) SetBody(body *models.CreateUsersRequest)
SetBody adds the body to the create users params
func (*CreateUsersParams) SetContext ¶
func (o *CreateUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the create users params
func (*CreateUsersParams) SetDefaults ¶
func (o *CreateUsersParams) SetDefaults()
SetDefaults hydrates default values in the create users params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUsersParams) SetHTTPClient ¶
func (o *CreateUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create users params
func (*CreateUsersParams) SetTimeout ¶
func (o *CreateUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create users params
func (*CreateUsersParams) WithBody ¶
func (o *CreateUsersParams) WithBody(body *models.CreateUsersRequest) *CreateUsersParams
WithBody adds the body to the create users params
func (*CreateUsersParams) WithContext ¶
func (o *CreateUsersParams) WithContext(ctx context.Context) *CreateUsersParams
WithContext adds the context to the create users params
func (*CreateUsersParams) WithDefaults ¶
func (o *CreateUsersParams) WithDefaults() *CreateUsersParams
WithDefaults hydrates default values in the create users params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUsersParams) WithHTTPClient ¶
func (o *CreateUsersParams) WithHTTPClient(client *http.Client) *CreateUsersParams
WithHTTPClient adds the HTTPClient to the create users params
func (*CreateUsersParams) WithTimeout ¶
func (o *CreateUsersParams) WithTimeout(timeout time.Duration) *CreateUsersParams
WithTimeout adds the timeout to the create users params
func (*CreateUsersParams) WriteToRequest ¶
func (o *CreateUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUsersReader ¶
type CreateUsersReader struct {
// contains filtered or unexported fields
}
CreateUsersReader is a Reader for the CreateUsers structure.
func (*CreateUsersReader) ReadResponse ¶
func (o *CreateUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUsersOK ¶
type DeleteUsersOK struct {
Payload *models.ActivityResponse
}
DeleteUsersOK describes a response with status code 200, with default header values.
A successful response.
func NewDeleteUsersOK ¶
func NewDeleteUsersOK() *DeleteUsersOK
NewDeleteUsersOK creates a DeleteUsersOK with default headers values
func (*DeleteUsersOK) Code ¶
func (o *DeleteUsersOK) Code() int
Code gets the status code for the delete users o k response
func (*DeleteUsersOK) Error ¶
func (o *DeleteUsersOK) Error() string
func (*DeleteUsersOK) GetPayload ¶
func (o *DeleteUsersOK) GetPayload() *models.ActivityResponse
func (*DeleteUsersOK) IsClientError ¶
func (o *DeleteUsersOK) IsClientError() bool
IsClientError returns true when this delete users o k response has a 4xx status code
func (*DeleteUsersOK) IsCode ¶
func (o *DeleteUsersOK) IsCode(code int) bool
IsCode returns true when this delete users o k response a status code equal to that given
func (*DeleteUsersOK) IsRedirect ¶
func (o *DeleteUsersOK) IsRedirect() bool
IsRedirect returns true when this delete users o k response has a 3xx status code
func (*DeleteUsersOK) IsServerError ¶
func (o *DeleteUsersOK) IsServerError() bool
IsServerError returns true when this delete users o k response has a 5xx status code
func (*DeleteUsersOK) IsSuccess ¶
func (o *DeleteUsersOK) IsSuccess() bool
IsSuccess returns true when this delete users o k response has a 2xx status code
func (*DeleteUsersOK) String ¶
func (o *DeleteUsersOK) String() string
type DeleteUsersParams ¶
type DeleteUsersParams struct { // Body. Body *models.DeleteUsersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteUsersParams contains all the parameters to send to the API endpoint
for the delete users operation. Typically these are written to a http.Request.
func NewDeleteUsersParams ¶
func NewDeleteUsersParams() *DeleteUsersParams
NewDeleteUsersParams creates a new DeleteUsersParams 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 NewDeleteUsersParamsWithContext ¶
func NewDeleteUsersParamsWithContext(ctx context.Context) *DeleteUsersParams
NewDeleteUsersParamsWithContext creates a new DeleteUsersParams object with the ability to set a context for a request.
func NewDeleteUsersParamsWithHTTPClient ¶
func NewDeleteUsersParamsWithHTTPClient(client *http.Client) *DeleteUsersParams
NewDeleteUsersParamsWithHTTPClient creates a new DeleteUsersParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteUsersParamsWithTimeout ¶
func NewDeleteUsersParamsWithTimeout(timeout time.Duration) *DeleteUsersParams
NewDeleteUsersParamsWithTimeout creates a new DeleteUsersParams object with the ability to set a timeout on a request.
func (*DeleteUsersParams) SetBody ¶
func (o *DeleteUsersParams) SetBody(body *models.DeleteUsersRequest)
SetBody adds the body to the delete users params
func (*DeleteUsersParams) SetContext ¶
func (o *DeleteUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the delete users params
func (*DeleteUsersParams) SetDefaults ¶
func (o *DeleteUsersParams) SetDefaults()
SetDefaults hydrates default values in the delete users params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUsersParams) SetHTTPClient ¶
func (o *DeleteUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete users params
func (*DeleteUsersParams) SetTimeout ¶
func (o *DeleteUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete users params
func (*DeleteUsersParams) WithBody ¶
func (o *DeleteUsersParams) WithBody(body *models.DeleteUsersRequest) *DeleteUsersParams
WithBody adds the body to the delete users params
func (*DeleteUsersParams) WithContext ¶
func (o *DeleteUsersParams) WithContext(ctx context.Context) *DeleteUsersParams
WithContext adds the context to the delete users params
func (*DeleteUsersParams) WithDefaults ¶
func (o *DeleteUsersParams) WithDefaults() *DeleteUsersParams
WithDefaults hydrates default values in the delete users params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUsersParams) WithHTTPClient ¶
func (o *DeleteUsersParams) WithHTTPClient(client *http.Client) *DeleteUsersParams
WithHTTPClient adds the HTTPClient to the delete users params
func (*DeleteUsersParams) WithTimeout ¶
func (o *DeleteUsersParams) WithTimeout(timeout time.Duration) *DeleteUsersParams
WithTimeout adds the timeout to the delete users params
func (*DeleteUsersParams) WriteToRequest ¶
func (o *DeleteUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUsersReader ¶
type DeleteUsersReader struct {
// contains filtered or unexported fields
}
DeleteUsersReader is a Reader for the DeleteUsers structure.
func (*DeleteUsersReader) ReadResponse ¶
func (o *DeleteUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserOK ¶
type GetUserOK struct {
Payload *models.GetUserResponse
}
GetUserOK describes a response with status code 200, with default header values.
A successful response.
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶
func (o *GetUserOK) GetPayload() *models.GetUserResponse
func (*GetUserOK) IsClientError ¶
IsClientError returns true when this get user o k response has a 4xx status code
func (*GetUserOK) IsCode ¶
IsCode returns true when this get user o k response a status code equal to that given
func (*GetUserOK) IsRedirect ¶
IsRedirect returns true when this get user o k response has a 3xx status code
func (*GetUserOK) IsServerError ¶
IsServerError returns true when this get user o k response has a 5xx status code
type GetUserParams ¶
type GetUserParams struct { // Body. Body *models.GetUserRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserParams contains all the parameters to send to the API endpoint
for the get user operation. Typically these are written to a http.Request.
func NewGetUserParams ¶
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUserParamsWithContext ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.
func NewGetUserParamsWithHTTPClient ¶
func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams
NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserParamsWithTimeout ¶
func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams
NewGetUserParamsWithTimeout creates a new GetUserParams object with the ability to set a timeout on a request.
func (*GetUserParams) SetBody ¶
func (o *GetUserParams) SetBody(body *models.GetUserRequest)
SetBody adds the body to the get user params
func (*GetUserParams) SetContext ¶
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetDefaults ¶
func (o *GetUserParams) SetDefaults()
SetDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) SetHTTPClient ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetTimeout ¶
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) WithBody ¶
func (o *GetUserParams) WithBody(body *models.GetUserRequest) *GetUserParams
WithBody adds the body to the get user params
func (*GetUserParams) WithContext ¶
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithDefaults ¶
func (o *GetUserParams) WithDefaults() *GetUserParams
WithDefaults hydrates default values in the get user params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserParams) WithHTTPClient ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithTimeout ¶
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WriteToRequest ¶
func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserReader ¶
type GetUserReader struct {
// contains filtered or unexported fields
}
GetUserReader is a Reader for the GetUser structure.
func (*GetUserReader) ReadResponse ¶
func (o *GetUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUsersOK ¶
type GetUsersOK struct {
Payload *models.GetUsersResponse
}
GetUsersOK describes a response with status code 200, with default header values.
A successful response.
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Code ¶
func (o *GetUsersOK) Code() int
Code gets the status code for the get users o k response
func (*GetUsersOK) Error ¶
func (o *GetUsersOK) Error() string
func (*GetUsersOK) GetPayload ¶
func (o *GetUsersOK) GetPayload() *models.GetUsersResponse
func (*GetUsersOK) IsClientError ¶
func (o *GetUsersOK) IsClientError() bool
IsClientError returns true when this get users o k response has a 4xx status code
func (*GetUsersOK) IsCode ¶
func (o *GetUsersOK) IsCode(code int) bool
IsCode returns true when this get users o k response a status code equal to that given
func (*GetUsersOK) IsRedirect ¶
func (o *GetUsersOK) IsRedirect() bool
IsRedirect returns true when this get users o k response has a 3xx status code
func (*GetUsersOK) IsServerError ¶
func (o *GetUsersOK) IsServerError() bool
IsServerError returns true when this get users o k response has a 5xx status code
func (*GetUsersOK) IsSuccess ¶
func (o *GetUsersOK) IsSuccess() bool
IsSuccess returns true when this get users o k response has a 2xx status code
func (*GetUsersOK) String ¶
func (o *GetUsersOK) String() string
type GetUsersParams ¶
type GetUsersParams struct { // Body. Body *models.GetUsersRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUsersParams contains all the parameters to send to the API endpoint
for the get users operation. Typically these are written to a http.Request.
func NewGetUsersParams ¶
func NewGetUsersParams() *GetUsersParams
NewGetUsersParams creates a new GetUsersParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUsersParamsWithContext ¶
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the ability to set a context for a request.
func NewGetUsersParamsWithHTTPClient ¶
func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams
NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the ability to set a custom HTTPClient for a request.
func NewGetUsersParamsWithTimeout ¶
func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams
NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the ability to set a timeout on a request.
func (*GetUsersParams) SetBody ¶
func (o *GetUsersParams) SetBody(body *models.GetUsersRequest)
SetBody adds the body to the get users params
func (*GetUsersParams) SetContext ¶
func (o *GetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get users params
func (*GetUsersParams) SetDefaults ¶
func (o *GetUsersParams) SetDefaults()
SetDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) SetHTTPClient ¶
func (o *GetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) SetTimeout ¶
func (o *GetUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get users params
func (*GetUsersParams) WithBody ¶
func (o *GetUsersParams) WithBody(body *models.GetUsersRequest) *GetUsersParams
WithBody adds the body to the get users params
func (*GetUsersParams) WithContext ¶
func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
WithContext adds the context to the get users params
func (*GetUsersParams) WithDefaults ¶
func (o *GetUsersParams) WithDefaults() *GetUsersParams
WithDefaults hydrates default values in the get users params (not the query body).
All values with no default are reset to their zero value.
func (*GetUsersParams) WithHTTPClient ¶
func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
WithHTTPClient adds the HTTPClient to the get users params
func (*GetUsersParams) WithTimeout ¶
func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
WithTimeout adds the timeout to the get users params
func (*GetUsersParams) WriteToRequest ¶
func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUsersReader ¶
type GetUsersReader struct {
// contains filtered or unexported fields
}
GetUsersReader is a Reader for the GetUsers structure.
func (*GetUsersReader) ReadResponse ¶
func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUserOK ¶
type UpdateUserOK struct {
Payload *models.ActivityResponse
}
UpdateUserOK describes a response with status code 200, with default header values.
A successful response.
func NewUpdateUserOK ¶
func NewUpdateUserOK() *UpdateUserOK
NewUpdateUserOK creates a UpdateUserOK with default headers values
func (*UpdateUserOK) Code ¶
func (o *UpdateUserOK) Code() int
Code gets the status code for the update user o k response
func (*UpdateUserOK) Error ¶
func (o *UpdateUserOK) Error() string
func (*UpdateUserOK) GetPayload ¶
func (o *UpdateUserOK) GetPayload() *models.ActivityResponse
func (*UpdateUserOK) IsClientError ¶
func (o *UpdateUserOK) IsClientError() bool
IsClientError returns true when this update user o k response has a 4xx status code
func (*UpdateUserOK) IsCode ¶
func (o *UpdateUserOK) IsCode(code int) bool
IsCode returns true when this update user o k response a status code equal to that given
func (*UpdateUserOK) IsRedirect ¶
func (o *UpdateUserOK) IsRedirect() bool
IsRedirect returns true when this update user o k response has a 3xx status code
func (*UpdateUserOK) IsServerError ¶
func (o *UpdateUserOK) IsServerError() bool
IsServerError returns true when this update user o k response has a 5xx status code
func (*UpdateUserOK) IsSuccess ¶
func (o *UpdateUserOK) IsSuccess() bool
IsSuccess returns true when this update user o k response has a 2xx status code
func (*UpdateUserOK) String ¶
func (o *UpdateUserOK) String() string
type UpdateUserParams ¶
type UpdateUserParams struct { // Body. Body *models.UpdateUserRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateUserParams contains all the parameters to send to the API endpoint
for the update user operation. Typically these are written to a http.Request.
func NewUpdateUserParams ¶
func NewUpdateUserParams() *UpdateUserParams
NewUpdateUserParams creates a new UpdateUserParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateUserParamsWithContext ¶
func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams
NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the ability to set a context for a request.
func NewUpdateUserParamsWithHTTPClient ¶
func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams
NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateUserParamsWithTimeout ¶
func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams
NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the ability to set a timeout on a request.
func (*UpdateUserParams) SetBody ¶
func (o *UpdateUserParams) SetBody(body *models.UpdateUserRequest)
SetBody adds the body to the update user params
func (*UpdateUserParams) SetContext ¶
func (o *UpdateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the update user params
func (*UpdateUserParams) SetDefaults ¶
func (o *UpdateUserParams) SetDefaults()
SetDefaults hydrates default values in the update user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUserParams) SetHTTPClient ¶
func (o *UpdateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) SetTimeout ¶
func (o *UpdateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update user params
func (*UpdateUserParams) WithBody ¶
func (o *UpdateUserParams) WithBody(body *models.UpdateUserRequest) *UpdateUserParams
WithBody adds the body to the update user params
func (*UpdateUserParams) WithContext ¶
func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams
WithContext adds the context to the update user params
func (*UpdateUserParams) WithDefaults ¶
func (o *UpdateUserParams) WithDefaults() *UpdateUserParams
WithDefaults hydrates default values in the update user params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUserParams) WithHTTPClient ¶
func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams
WithHTTPClient adds the HTTPClient to the update user params
func (*UpdateUserParams) WithTimeout ¶
func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams
WithTimeout adds the timeout to the update user params
func (*UpdateUserParams) WriteToRequest ¶
func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateUserReader ¶
type UpdateUserReader struct {
// contains filtered or unexported fields
}
UpdateUserReader is a Reader for the UpdateUser structure.
func (*UpdateUserReader) ReadResponse ¶
func (o *UpdateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.