Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, *CreateUserAccepted, error)
- func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserAccepted, *DeleteUserNoContent, 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) ReplaceUser(params *ReplaceUserParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceUserOK, *ReplaceUserAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CreateUserAccepted
- type CreateUserBadRequest
- type CreateUserConflict
- type CreateUserCreated
- type CreateUserDefault
- type CreateUserParams
- func (o *CreateUserParams) SetContext(ctx context.Context)
- func (o *CreateUserParams) SetData(data *models.User)
- func (o *CreateUserParams) SetForceReload(forceReload *bool)
- func (o *CreateUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateUserParams) SetTransactionID(transactionID *string)
- func (o *CreateUserParams) SetUserlist(userlist string)
- func (o *CreateUserParams) SetVersion(version *int64)
- func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
- func (o *CreateUserParams) WithData(data *models.User) *CreateUserParams
- func (o *CreateUserParams) WithForceReload(forceReload *bool) *CreateUserParams
- func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
- func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
- func (o *CreateUserParams) WithTransactionID(transactionID *string) *CreateUserParams
- func (o *CreateUserParams) WithUserlist(userlist string) *CreateUserParams
- func (o *CreateUserParams) WithVersion(version *int64) *CreateUserParams
- func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUserReader
- type DeleteUserAccepted
- type DeleteUserDefault
- type DeleteUserNoContent
- type DeleteUserNotFound
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetForceReload(forceReload *bool)
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) SetTransactionID(transactionID *string)
- func (o *DeleteUserParams) SetUserlist(userlist string)
- func (o *DeleteUserParams) SetUsername(username string)
- func (o *DeleteUserParams) SetVersion(version *int64)
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithForceReload(forceReload *bool) *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WithTransactionID(transactionID *string) *DeleteUserParams
- func (o *DeleteUserParams) WithUserlist(userlist string) *DeleteUserParams
- func (o *DeleteUserParams) WithUsername(username string) *DeleteUserParams
- func (o *DeleteUserParams) WithVersion(version *int64) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type GetUserDefault
- type GetUserNotFound
- type GetUserOK
- type GetUserOKBody
- type GetUserParams
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) SetTransactionID(transactionID *string)
- func (o *GetUserParams) SetUserlist(userlist string)
- func (o *GetUserParams) SetUsername(username string)
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WithTransactionID(transactionID *string) *GetUserParams
- func (o *GetUserParams) WithUserlist(userlist string) *GetUserParams
- func (o *GetUserParams) WithUsername(username string) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type GetUsersDefault
- type GetUsersOK
- type GetUsersOKBody
- type GetUsersParams
- func (o *GetUsersParams) SetContext(ctx context.Context)
- func (o *GetUsersParams) SetHTTPClient(client *http.Client)
- func (o *GetUsersParams) SetTimeout(timeout time.Duration)
- func (o *GetUsersParams) SetTransactionID(transactionID *string)
- func (o *GetUsersParams) SetUserlist(userlist string)
- func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams
- func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams
- func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams
- func (o *GetUsersParams) WithTransactionID(transactionID *string) *GetUsersParams
- func (o *GetUsersParams) WithUserlist(userlist string) *GetUsersParams
- func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUsersReader
- type ReplaceUserAccepted
- type ReplaceUserBadRequest
- type ReplaceUserDefault
- type ReplaceUserNotFound
- type ReplaceUserOK
- type ReplaceUserParams
- func (o *ReplaceUserParams) SetContext(ctx context.Context)
- func (o *ReplaceUserParams) SetData(data *models.User)
- func (o *ReplaceUserParams) SetForceReload(forceReload *bool)
- func (o *ReplaceUserParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceUserParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceUserParams) SetTransactionID(transactionID *string)
- func (o *ReplaceUserParams) SetUserlist(userlist string)
- func (o *ReplaceUserParams) SetUsername(username string)
- func (o *ReplaceUserParams) SetVersion(version *int64)
- func (o *ReplaceUserParams) WithContext(ctx context.Context) *ReplaceUserParams
- func (o *ReplaceUserParams) WithData(data *models.User) *ReplaceUserParams
- func (o *ReplaceUserParams) WithForceReload(forceReload *bool) *ReplaceUserParams
- func (o *ReplaceUserParams) WithHTTPClient(client *http.Client) *ReplaceUserParams
- func (o *ReplaceUserParams) WithTimeout(timeout time.Duration) *ReplaceUserParams
- func (o *ReplaceUserParams) WithTransactionID(transactionID *string) *ReplaceUserParams
- func (o *ReplaceUserParams) WithUserlist(userlist string) *ReplaceUserParams
- func (o *ReplaceUserParams) WithUsername(username string) *ReplaceUserParams
- func (o *ReplaceUserParams) WithVersion(version *int64) *ReplaceUserParams
- func (o *ReplaceUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceUserReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for user API
func (*Client) CreateUser ¶
func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, *CreateUserAccepted, error)
CreateUser adds a new userlist user
func (*Client) DeleteUser ¶
func (a *Client) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserAccepted, *DeleteUserNoContent, error)
DeleteUser deletes a user
func (*Client) GetUser ¶
func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)
GetUser returns one userlist user
func (*Client) GetUsers ¶
func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)
GetUsers returns an array of userlist users
func (*Client) ReplaceUser ¶
func (a *Client) ReplaceUser(params *ReplaceUserParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceUserOK, *ReplaceUserAccepted, error)
ReplaceUser replaces a user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, *CreateUserAccepted, error) DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteUserAccepted, *DeleteUserNoContent, error) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error) ReplaceUser(params *ReplaceUserParams, authInfo runtime.ClientAuthInfoWriter) (*ReplaceUserOK, *ReplaceUserAccepted, 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 CreateUserAccepted ¶
type CreateUserAccepted struct { /*ID of the requested reload */ ReloadID string Payload *models.User }
CreateUserAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewCreateUserAccepted ¶
func NewCreateUserAccepted() *CreateUserAccepted
NewCreateUserAccepted creates a CreateUserAccepted with default headers values
func (*CreateUserAccepted) Error ¶
func (o *CreateUserAccepted) Error() string
func (*CreateUserAccepted) GetPayload ¶
func (o *CreateUserAccepted) GetPayload() *models.User
type CreateUserBadRequest ¶
type CreateUserBadRequest struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateUserBadRequest handles this case with default header values.
Bad request
func NewCreateUserBadRequest ¶
func NewCreateUserBadRequest() *CreateUserBadRequest
NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values
func (*CreateUserBadRequest) Error ¶
func (o *CreateUserBadRequest) Error() string
func (*CreateUserBadRequest) GetPayload ¶
func (o *CreateUserBadRequest) GetPayload() *models.Error
type CreateUserConflict ¶
type CreateUserConflict struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateUserConflict handles this case with default header values.
The specified resource already exists
func NewCreateUserConflict ¶
func NewCreateUserConflict() *CreateUserConflict
NewCreateUserConflict creates a CreateUserConflict with default headers values
func (*CreateUserConflict) Error ¶
func (o *CreateUserConflict) Error() string
func (*CreateUserConflict) GetPayload ¶
func (o *CreateUserConflict) GetPayload() *models.Error
type CreateUserCreated ¶
CreateUserCreated handles this case with default header values.
User created
func NewCreateUserCreated ¶
func NewCreateUserCreated() *CreateUserCreated
NewCreateUserCreated creates a CreateUserCreated with default headers values
func (*CreateUserCreated) Error ¶
func (o *CreateUserCreated) Error() string
func (*CreateUserCreated) GetPayload ¶
func (o *CreateUserCreated) GetPayload() *models.User
type CreateUserDefault ¶
type CreateUserDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateUserDefault handles this case with default header values.
General 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
func (*CreateUserDefault) GetPayload ¶
func (o *CreateUserDefault) GetPayload() *models.Error
type CreateUserParams ¶
type CreateUserParams struct { /*Data*/ Data *models.User /*ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Userlist Parent userlist name */ Userlist string /*Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUserParams contains all the parameters to send to the API endpoint for the create user operation typically these are written to a http.Request
func NewCreateUserParams ¶
func NewCreateUserParams() *CreateUserParams
NewCreateUserParams creates a new CreateUserParams object with the default values initialized.
func NewCreateUserParamsWithContext ¶
func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams
NewCreateUserParamsWithContext creates a new CreateUserParams object with the default values initialized, and the ability to set a context for a request
func NewCreateUserParamsWithHTTPClient ¶
func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams
NewCreateUserParamsWithHTTPClient creates a new CreateUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateUserParamsWithTimeout ¶
func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams
NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateUserParams) SetContext ¶
func (o *CreateUserParams) SetContext(ctx context.Context)
SetContext adds the context to the create user params
func (*CreateUserParams) SetData ¶
func (o *CreateUserParams) SetData(data *models.User)
SetData adds the data to the create user params
func (*CreateUserParams) SetForceReload ¶
func (o *CreateUserParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the create user params
func (*CreateUserParams) SetHTTPClient ¶
func (o *CreateUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) SetTimeout ¶
func (o *CreateUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create user params
func (*CreateUserParams) SetTransactionID ¶
func (o *CreateUserParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the create user params
func (*CreateUserParams) SetUserlist ¶
func (o *CreateUserParams) SetUserlist(userlist string)
SetUserlist adds the userlist to the create user params
func (*CreateUserParams) SetVersion ¶
func (o *CreateUserParams) SetVersion(version *int64)
SetVersion adds the version to the create user params
func (*CreateUserParams) WithContext ¶
func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
WithContext adds the context to the create user params
func (*CreateUserParams) WithData ¶
func (o *CreateUserParams) WithData(data *models.User) *CreateUserParams
WithData adds the data to the create user params
func (*CreateUserParams) WithForceReload ¶
func (o *CreateUserParams) WithForceReload(forceReload *bool) *CreateUserParams
WithForceReload adds the forceReload to the create user params
func (*CreateUserParams) WithHTTPClient ¶
func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
WithHTTPClient adds the HTTPClient to the create user params
func (*CreateUserParams) WithTimeout ¶
func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
WithTimeout adds the timeout to the create user params
func (*CreateUserParams) WithTransactionID ¶
func (o *CreateUserParams) WithTransactionID(transactionID *string) *CreateUserParams
WithTransactionID adds the transactionID to the create user params
func (*CreateUserParams) WithUserlist ¶
func (o *CreateUserParams) WithUserlist(userlist string) *CreateUserParams
WithUserlist adds the userlist to the create user params
func (*CreateUserParams) WithVersion ¶
func (o *CreateUserParams) WithVersion(version *int64) *CreateUserParams
WithVersion adds the version to the create user params
func (*CreateUserParams) WriteToRequest ¶
func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUserReader ¶
type CreateUserReader struct {
// contains filtered or unexported fields
}
CreateUserReader is a Reader for the CreateUser structure.
func (*CreateUserReader) ReadResponse ¶
func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUserAccepted ¶
type DeleteUserAccepted struct { /*ID of the requested reload */ ReloadID string }
DeleteUserAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewDeleteUserAccepted ¶
func NewDeleteUserAccepted() *DeleteUserAccepted
NewDeleteUserAccepted creates a DeleteUserAccepted with default headers values
func (*DeleteUserAccepted) Error ¶
func (o *DeleteUserAccepted) Error() string
type DeleteUserDefault ¶
type DeleteUserDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteUserDefault handles this case with default header values.
General 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
func (*DeleteUserDefault) GetPayload ¶
func (o *DeleteUserDefault) GetPayload() *models.Error
type DeleteUserNoContent ¶
type DeleteUserNoContent struct { }
DeleteUserNoContent handles this case with default header values.
User deleted
func NewDeleteUserNoContent ¶
func NewDeleteUserNoContent() *DeleteUserNoContent
NewDeleteUserNoContent creates a DeleteUserNoContent with default headers values
func (*DeleteUserNoContent) Error ¶
func (o *DeleteUserNoContent) Error() string
type DeleteUserNotFound ¶
type DeleteUserNotFound struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteUserNotFound handles this case with default header values.
The specified resource was not found
func NewDeleteUserNotFound ¶
func NewDeleteUserNotFound() *DeleteUserNotFound
NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values
func (*DeleteUserNotFound) Error ¶
func (o *DeleteUserNotFound) Error() string
func (*DeleteUserNotFound) GetPayload ¶
func (o *DeleteUserNotFound) GetPayload() *models.Error
type DeleteUserParams ¶
type DeleteUserParams struct { /*ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Userlist Parent userlist name */ Userlist string /*Username User username */ Username string /*Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteUserParams contains all the parameters to send to the API endpoint for the delete user operation typically these are written to a http.Request
func NewDeleteUserParams ¶
func NewDeleteUserParams() *DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams object with the default values initialized.
func NewDeleteUserParamsWithContext ¶
func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams
NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteUserParamsWithHTTPClient ¶
func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams
NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteUserParamsWithTimeout ¶
func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams
NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteUserParams) SetContext ¶
func (o *DeleteUserParams) SetContext(ctx context.Context)
SetContext adds the context to the delete user params
func (*DeleteUserParams) SetForceReload ¶
func (o *DeleteUserParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the delete user params
func (*DeleteUserParams) SetHTTPClient ¶
func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) SetTimeout ¶
func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete user params
func (*DeleteUserParams) SetTransactionID ¶
func (o *DeleteUserParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the delete user params
func (*DeleteUserParams) SetUserlist ¶
func (o *DeleteUserParams) SetUserlist(userlist string)
SetUserlist adds the userlist to the delete user params
func (*DeleteUserParams) SetUsername ¶
func (o *DeleteUserParams) SetUsername(username string)
SetUsername adds the username to the delete user params
func (*DeleteUserParams) SetVersion ¶
func (o *DeleteUserParams) SetVersion(version *int64)
SetVersion adds the version to the delete user params
func (*DeleteUserParams) WithContext ¶
func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
WithContext adds the context to the delete user params
func (*DeleteUserParams) WithForceReload ¶
func (o *DeleteUserParams) WithForceReload(forceReload *bool) *DeleteUserParams
WithForceReload adds the forceReload to the delete user params
func (*DeleteUserParams) WithHTTPClient ¶
func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
WithHTTPClient adds the HTTPClient to the delete user params
func (*DeleteUserParams) WithTimeout ¶
func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
WithTimeout adds the timeout to the delete user params
func (*DeleteUserParams) WithTransactionID ¶
func (o *DeleteUserParams) WithTransactionID(transactionID *string) *DeleteUserParams
WithTransactionID adds the transactionID to the delete user params
func (*DeleteUserParams) WithUserlist ¶
func (o *DeleteUserParams) WithUserlist(userlist string) *DeleteUserParams
WithUserlist adds the userlist to the delete user params
func (*DeleteUserParams) WithUsername ¶
func (o *DeleteUserParams) WithUsername(username string) *DeleteUserParams
WithUsername adds the username to the delete user params
func (*DeleteUserParams) WithVersion ¶
func (o *DeleteUserParams) WithVersion(version *int64) *DeleteUserParams
WithVersion adds the version to the delete user params
func (*DeleteUserParams) WriteToRequest ¶
func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUserReader ¶
type DeleteUserReader struct {
// contains filtered or unexported fields
}
DeleteUserReader is a Reader for the DeleteUser structure.
func (*DeleteUserReader) ReadResponse ¶
func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserDefault ¶
type GetUserDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetUserDefault handles this case with default header values.
General Error
func NewGetUserDefault ¶
func NewGetUserDefault(code int) *GetUserDefault
NewGetUserDefault creates a GetUserDefault with default headers values
func (*GetUserDefault) Code ¶
func (o *GetUserDefault) Code() int
Code gets the status code for the get user default response
func (*GetUserDefault) Error ¶
func (o *GetUserDefault) Error() string
func (*GetUserDefault) GetPayload ¶
func (o *GetUserDefault) GetPayload() *models.Error
type GetUserNotFound ¶
type GetUserNotFound struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetUserNotFound handles this case with default header values.
The specified resource already exists
func NewGetUserNotFound ¶
func NewGetUserNotFound() *GetUserNotFound
NewGetUserNotFound creates a GetUserNotFound with default headers values
func (*GetUserNotFound) Error ¶
func (o *GetUserNotFound) Error() string
func (*GetUserNotFound) GetPayload ¶
func (o *GetUserNotFound) GetPayload() *models.Error
type GetUserOK ¶
type GetUserOK struct { /*Configuration file version */ ConfigurationVersion string Payload *GetUserOKBody }
GetUserOK handles this case with default header values.
Successful operation
func NewGetUserOK ¶
func NewGetUserOK() *GetUserOK
NewGetUserOK creates a GetUserOK with default headers values
func (*GetUserOK) GetPayload ¶
func (o *GetUserOK) GetPayload() *GetUserOKBody
type GetUserOKBody ¶
type GetUserOKBody struct { // version Version int64 `json:"_version,omitempty"` // data Data *models.User `json:"data,omitempty"` }
GetUserOKBody get user o k body swagger:model GetUserOKBody
func (*GetUserOKBody) MarshalBinary ¶
func (o *GetUserOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserOKBody) UnmarshalBinary ¶
func (o *GetUserOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserParams ¶
type GetUserParams struct { /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Userlist Parent userlist name */ Userlist string /*Username User username */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserParams contains all the parameters to send to the API endpoint for the get user operation typically these are written to a http.Request
func NewGetUserParams ¶
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams object with the default values initialized.
func NewGetUserParamsWithContext ¶
func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams
NewGetUserParamsWithContext creates a new GetUserParams object with the default values initialized, and the ability to set a context for a request
func NewGetUserParamsWithHTTPClient ¶
func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams
NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetUserParamsWithTimeout ¶
func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams
NewGetUserParamsWithTimeout creates a new GetUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetUserParams) SetContext ¶
func (o *GetUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get user params
func (*GetUserParams) SetHTTPClient ¶
func (o *GetUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) SetTimeout ¶
func (o *GetUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user params
func (*GetUserParams) SetTransactionID ¶
func (o *GetUserParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get user params
func (*GetUserParams) SetUserlist ¶
func (o *GetUserParams) SetUserlist(userlist string)
SetUserlist adds the userlist to the get user params
func (*GetUserParams) SetUsername ¶
func (o *GetUserParams) SetUsername(username string)
SetUsername adds the username to the get user params
func (*GetUserParams) WithContext ¶
func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
WithContext adds the context to the get user params
func (*GetUserParams) WithHTTPClient ¶
func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
WithHTTPClient adds the HTTPClient to the get user params
func (*GetUserParams) WithTimeout ¶
func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
WithTimeout adds the timeout to the get user params
func (*GetUserParams) WithTransactionID ¶
func (o *GetUserParams) WithTransactionID(transactionID *string) *GetUserParams
WithTransactionID adds the transactionID to the get user params
func (*GetUserParams) WithUserlist ¶
func (o *GetUserParams) WithUserlist(userlist string) *GetUserParams
WithUserlist adds the userlist to the get user params
func (*GetUserParams) WithUsername ¶
func (o *GetUserParams) WithUsername(username string) *GetUserParams
WithUsername adds the username 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 GetUsersDefault ¶
type GetUsersDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
GetUsersDefault handles this case with default header values.
General 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
func (*GetUsersDefault) GetPayload ¶
func (o *GetUsersDefault) GetPayload() *models.Error
type GetUsersOK ¶
type GetUsersOK struct { /*Configuration file version */ ConfigurationVersion string Payload *GetUsersOKBody }
GetUsersOK handles this case with default header values.
Successful operation
func NewGetUsersOK ¶
func NewGetUsersOK() *GetUsersOK
NewGetUsersOK creates a GetUsersOK with default headers values
func (*GetUsersOK) Error ¶
func (o *GetUsersOK) Error() string
func (*GetUsersOK) GetPayload ¶
func (o *GetUsersOK) GetPayload() *GetUsersOKBody
type GetUsersOKBody ¶
type GetUsersOKBody struct { // version Version int64 `json:"_version,omitempty"` // data // Required: true Data models.Users `json:"data"` }
GetUsersOKBody get users o k body swagger:model GetUsersOKBody
func (*GetUsersOKBody) MarshalBinary ¶
func (o *GetUsersOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUsersOKBody) UnmarshalBinary ¶
func (o *GetUsersOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUsersParams ¶
type GetUsersParams struct { /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Userlist Parent userlist name */ Userlist string 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 values initialized.
func NewGetUsersParamsWithContext ¶
func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams
NewGetUsersParamsWithContext creates a new GetUsersParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*GetUsersParams) SetContext ¶
func (o *GetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the get users params
func (*GetUsersParams) 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) SetTransactionID ¶
func (o *GetUsersParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the get users params
func (*GetUsersParams) SetUserlist ¶
func (o *GetUsersParams) SetUserlist(userlist string)
SetUserlist adds the userlist 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) 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) WithTransactionID ¶
func (o *GetUsersParams) WithTransactionID(transactionID *string) *GetUsersParams
WithTransactionID adds the transactionID to the get users params
func (*GetUsersParams) WithUserlist ¶
func (o *GetUsersParams) WithUserlist(userlist string) *GetUsersParams
WithUserlist adds the userlist 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 ReplaceUserAccepted ¶
type ReplaceUserAccepted struct { /*ID of the requested reload */ ReloadID string Payload *models.User }
ReplaceUserAccepted handles this case with default header values.
Configuration change accepted and reload requested
func NewReplaceUserAccepted ¶
func NewReplaceUserAccepted() *ReplaceUserAccepted
NewReplaceUserAccepted creates a ReplaceUserAccepted with default headers values
func (*ReplaceUserAccepted) Error ¶
func (o *ReplaceUserAccepted) Error() string
func (*ReplaceUserAccepted) GetPayload ¶
func (o *ReplaceUserAccepted) GetPayload() *models.User
type ReplaceUserBadRequest ¶
type ReplaceUserBadRequest struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceUserBadRequest handles this case with default header values.
Bad request
func NewReplaceUserBadRequest ¶
func NewReplaceUserBadRequest() *ReplaceUserBadRequest
NewReplaceUserBadRequest creates a ReplaceUserBadRequest with default headers values
func (*ReplaceUserBadRequest) Error ¶
func (o *ReplaceUserBadRequest) Error() string
func (*ReplaceUserBadRequest) GetPayload ¶
func (o *ReplaceUserBadRequest) GetPayload() *models.Error
type ReplaceUserDefault ¶
type ReplaceUserDefault struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceUserDefault handles this case with default header values.
General Error
func NewReplaceUserDefault ¶
func NewReplaceUserDefault(code int) *ReplaceUserDefault
NewReplaceUserDefault creates a ReplaceUserDefault with default headers values
func (*ReplaceUserDefault) Code ¶
func (o *ReplaceUserDefault) Code() int
Code gets the status code for the replace user default response
func (*ReplaceUserDefault) Error ¶
func (o *ReplaceUserDefault) Error() string
func (*ReplaceUserDefault) GetPayload ¶
func (o *ReplaceUserDefault) GetPayload() *models.Error
type ReplaceUserNotFound ¶
type ReplaceUserNotFound struct { /*Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceUserNotFound handles this case with default header values.
The specified resource was not found
func NewReplaceUserNotFound ¶
func NewReplaceUserNotFound() *ReplaceUserNotFound
NewReplaceUserNotFound creates a ReplaceUserNotFound with default headers values
func (*ReplaceUserNotFound) Error ¶
func (o *ReplaceUserNotFound) Error() string
func (*ReplaceUserNotFound) GetPayload ¶
func (o *ReplaceUserNotFound) GetPayload() *models.Error
type ReplaceUserOK ¶
ReplaceUserOK handles this case with default header values.
User replaced
func NewReplaceUserOK ¶
func NewReplaceUserOK() *ReplaceUserOK
NewReplaceUserOK creates a ReplaceUserOK with default headers values
func (*ReplaceUserOK) Error ¶
func (o *ReplaceUserOK) Error() string
func (*ReplaceUserOK) GetPayload ¶
func (o *ReplaceUserOK) GetPayload() *models.User
type ReplaceUserParams ¶
type ReplaceUserParams struct { /*Data*/ Data *models.User /*ForceReload If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration. */ ForceReload *bool /*TransactionID ID of the transaction where we want to add the operation. Cannot be used when version is specified. */ TransactionID *string /*Userlist Parent userlist name */ Userlist string /*Username User username */ Username string /*Version Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version. */ Version *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReplaceUserParams contains all the parameters to send to the API endpoint for the replace user operation typically these are written to a http.Request
func NewReplaceUserParams ¶
func NewReplaceUserParams() *ReplaceUserParams
NewReplaceUserParams creates a new ReplaceUserParams object with the default values initialized.
func NewReplaceUserParamsWithContext ¶
func NewReplaceUserParamsWithContext(ctx context.Context) *ReplaceUserParams
NewReplaceUserParamsWithContext creates a new ReplaceUserParams object with the default values initialized, and the ability to set a context for a request
func NewReplaceUserParamsWithHTTPClient ¶
func NewReplaceUserParamsWithHTTPClient(client *http.Client) *ReplaceUserParams
NewReplaceUserParamsWithHTTPClient creates a new ReplaceUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewReplaceUserParamsWithTimeout ¶
func NewReplaceUserParamsWithTimeout(timeout time.Duration) *ReplaceUserParams
NewReplaceUserParamsWithTimeout creates a new ReplaceUserParams object with the default values initialized, and the ability to set a timeout on a request
func (*ReplaceUserParams) SetContext ¶
func (o *ReplaceUserParams) SetContext(ctx context.Context)
SetContext adds the context to the replace user params
func (*ReplaceUserParams) SetData ¶
func (o *ReplaceUserParams) SetData(data *models.User)
SetData adds the data to the replace user params
func (*ReplaceUserParams) SetForceReload ¶
func (o *ReplaceUserParams) SetForceReload(forceReload *bool)
SetForceReload adds the forceReload to the replace user params
func (*ReplaceUserParams) SetHTTPClient ¶
func (o *ReplaceUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the replace user params
func (*ReplaceUserParams) SetTimeout ¶
func (o *ReplaceUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the replace user params
func (*ReplaceUserParams) SetTransactionID ¶
func (o *ReplaceUserParams) SetTransactionID(transactionID *string)
SetTransactionID adds the transactionId to the replace user params
func (*ReplaceUserParams) SetUserlist ¶
func (o *ReplaceUserParams) SetUserlist(userlist string)
SetUserlist adds the userlist to the replace user params
func (*ReplaceUserParams) SetUsername ¶
func (o *ReplaceUserParams) SetUsername(username string)
SetUsername adds the username to the replace user params
func (*ReplaceUserParams) SetVersion ¶
func (o *ReplaceUserParams) SetVersion(version *int64)
SetVersion adds the version to the replace user params
func (*ReplaceUserParams) WithContext ¶
func (o *ReplaceUserParams) WithContext(ctx context.Context) *ReplaceUserParams
WithContext adds the context to the replace user params
func (*ReplaceUserParams) WithData ¶
func (o *ReplaceUserParams) WithData(data *models.User) *ReplaceUserParams
WithData adds the data to the replace user params
func (*ReplaceUserParams) WithForceReload ¶
func (o *ReplaceUserParams) WithForceReload(forceReload *bool) *ReplaceUserParams
WithForceReload adds the forceReload to the replace user params
func (*ReplaceUserParams) WithHTTPClient ¶
func (o *ReplaceUserParams) WithHTTPClient(client *http.Client) *ReplaceUserParams
WithHTTPClient adds the HTTPClient to the replace user params
func (*ReplaceUserParams) WithTimeout ¶
func (o *ReplaceUserParams) WithTimeout(timeout time.Duration) *ReplaceUserParams
WithTimeout adds the timeout to the replace user params
func (*ReplaceUserParams) WithTransactionID ¶
func (o *ReplaceUserParams) WithTransactionID(transactionID *string) *ReplaceUserParams
WithTransactionID adds the transactionID to the replace user params
func (*ReplaceUserParams) WithUserlist ¶
func (o *ReplaceUserParams) WithUserlist(userlist string) *ReplaceUserParams
WithUserlist adds the userlist to the replace user params
func (*ReplaceUserParams) WithUsername ¶
func (o *ReplaceUserParams) WithUsername(username string) *ReplaceUserParams
WithUsername adds the username to the replace user params
func (*ReplaceUserParams) WithVersion ¶
func (o *ReplaceUserParams) WithVersion(version *int64) *ReplaceUserParams
WithVersion adds the version to the replace user params
func (*ReplaceUserParams) WriteToRequest ¶
func (o *ReplaceUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReplaceUserReader ¶
type ReplaceUserReader struct {
// contains filtered or unexported fields
}
ReplaceUserReader is a Reader for the ReplaceUser structure.
func (*ReplaceUserReader) ReadResponse ¶
func (o *ReplaceUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.