user

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for user API

func (*Client) CreateUser

CreateUser adds a new userlist user

func (*Client) DeleteUser

DeleteUser deletes a user

func (*Client) GetUser

func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)

GetUser returns one userlist user

func (*Client) GetUsers

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

GetUsers returns an array of userlist users

func (*Client) ReplaceUser

ReplaceUser replaces a user

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption added in v1.0.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserCreated, *CreateUserAccepted, error)

	DeleteUser(params *DeleteUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUserAccepted, *DeleteUserNoContent, error)

	GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)

	GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUsersOK, error)

	ReplaceUser(params *ReplaceUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 describes a response with status code 202, 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) Code added in v1.1.5

func (o *CreateUserAccepted) Code() int

Code gets the status code for the create user accepted response

func (*CreateUserAccepted) Error

func (o *CreateUserAccepted) Error() string

func (*CreateUserAccepted) GetPayload

func (o *CreateUserAccepted) GetPayload() *models.User

func (*CreateUserAccepted) IsClientError added in v1.1.0

func (o *CreateUserAccepted) IsClientError() bool

IsClientError returns true when this create user accepted response has a 4xx status code

func (*CreateUserAccepted) IsCode added in v1.1.0

func (o *CreateUserAccepted) IsCode(code int) bool

IsCode returns true when this create user accepted response a status code equal to that given

func (*CreateUserAccepted) IsRedirect added in v1.1.0

func (o *CreateUserAccepted) IsRedirect() bool

IsRedirect returns true when this create user accepted response has a 3xx status code

func (*CreateUserAccepted) IsServerError added in v1.1.0

func (o *CreateUserAccepted) IsServerError() bool

IsServerError returns true when this create user accepted response has a 5xx status code

func (*CreateUserAccepted) IsSuccess added in v1.1.0

func (o *CreateUserAccepted) IsSuccess() bool

IsSuccess returns true when this create user accepted response has a 2xx status code

func (*CreateUserAccepted) String added in v1.1.0

func (o *CreateUserAccepted) String() string

type CreateUserBadRequest

type CreateUserBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateUserBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Code added in v1.1.5

func (o *CreateUserBadRequest) Code() int

Code gets the status code for the create user bad request response

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

func (*CreateUserBadRequest) GetPayload

func (o *CreateUserBadRequest) GetPayload() *models.Error

func (*CreateUserBadRequest) IsClientError added in v1.1.0

func (o *CreateUserBadRequest) IsClientError() bool

IsClientError returns true when this create user bad request response has a 4xx status code

func (*CreateUserBadRequest) IsCode added in v1.1.0

func (o *CreateUserBadRequest) IsCode(code int) bool

IsCode returns true when this create user bad request response a status code equal to that given

func (*CreateUserBadRequest) IsRedirect added in v1.1.0

func (o *CreateUserBadRequest) IsRedirect() bool

IsRedirect returns true when this create user bad request response has a 3xx status code

func (*CreateUserBadRequest) IsServerError added in v1.1.0

func (o *CreateUserBadRequest) IsServerError() bool

IsServerError returns true when this create user bad request response has a 5xx status code

func (*CreateUserBadRequest) IsSuccess added in v1.1.0

func (o *CreateUserBadRequest) IsSuccess() bool

IsSuccess returns true when this create user bad request response has a 2xx status code

func (*CreateUserBadRequest) String added in v1.1.0

func (o *CreateUserBadRequest) String() string

type CreateUserConflict

type CreateUserConflict struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

CreateUserConflict describes a response with status code 409, with default header values.

The specified resource already exists

func NewCreateUserConflict

func NewCreateUserConflict() *CreateUserConflict

NewCreateUserConflict creates a CreateUserConflict with default headers values

func (*CreateUserConflict) Code added in v1.1.5

func (o *CreateUserConflict) Code() int

Code gets the status code for the create user conflict response

func (*CreateUserConflict) Error

func (o *CreateUserConflict) Error() string

func (*CreateUserConflict) GetPayload

func (o *CreateUserConflict) GetPayload() *models.Error

func (*CreateUserConflict) IsClientError added in v1.1.0

func (o *CreateUserConflict) IsClientError() bool

IsClientError returns true when this create user conflict response has a 4xx status code

func (*CreateUserConflict) IsCode added in v1.1.0

func (o *CreateUserConflict) IsCode(code int) bool

IsCode returns true when this create user conflict response a status code equal to that given

func (*CreateUserConflict) IsRedirect added in v1.1.0

func (o *CreateUserConflict) IsRedirect() bool

IsRedirect returns true when this create user conflict response has a 3xx status code

func (*CreateUserConflict) IsServerError added in v1.1.0

func (o *CreateUserConflict) IsServerError() bool

IsServerError returns true when this create user conflict response has a 5xx status code

func (*CreateUserConflict) IsSuccess added in v1.1.0

func (o *CreateUserConflict) IsSuccess() bool

IsSuccess returns true when this create user conflict response has a 2xx status code

func (*CreateUserConflict) String added in v1.1.0

func (o *CreateUserConflict) String() string

type CreateUserCreated

type CreateUserCreated struct {
	Payload *models.User
}

CreateUserCreated describes a response with status code 201, with default header values.

User created

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates a CreateUserCreated with default headers values

func (*CreateUserCreated) Code added in v1.1.5

func (o *CreateUserCreated) Code() int

Code gets the status code for the create user created response

func (*CreateUserCreated) Error

func (o *CreateUserCreated) Error() string

func (*CreateUserCreated) GetPayload

func (o *CreateUserCreated) GetPayload() *models.User

func (*CreateUserCreated) IsClientError added in v1.1.0

func (o *CreateUserCreated) IsClientError() bool

IsClientError returns true when this create user created response has a 4xx status code

func (*CreateUserCreated) IsCode added in v1.1.0

func (o *CreateUserCreated) IsCode(code int) bool

IsCode returns true when this create user created response a status code equal to that given

func (*CreateUserCreated) IsRedirect added in v1.1.0

func (o *CreateUserCreated) IsRedirect() bool

IsRedirect returns true when this create user created response has a 3xx status code

func (*CreateUserCreated) IsServerError added in v1.1.0

func (o *CreateUserCreated) IsServerError() bool

IsServerError returns true when this create user created response has a 5xx status code

func (*CreateUserCreated) IsSuccess added in v1.1.0

func (o *CreateUserCreated) IsSuccess() bool

IsSuccess returns true when this create user created response has a 2xx status code

func (*CreateUserCreated) String added in v1.1.0

func (o *CreateUserCreated) String() string

type CreateUserDefault

type CreateUserDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateUserDefault describes a response with status code -1, 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

func (*CreateUserDefault) IsClientError added in v1.1.0

func (o *CreateUserDefault) IsClientError() bool

IsClientError returns true when this create user default response has a 4xx status code

func (*CreateUserDefault) IsCode added in v1.1.0

func (o *CreateUserDefault) IsCode(code int) bool

IsCode returns true when this create user default response a status code equal to that given

func (*CreateUserDefault) IsRedirect added in v1.1.0

func (o *CreateUserDefault) IsRedirect() bool

IsRedirect returns true when this create user default response has a 3xx status code

func (*CreateUserDefault) IsServerError added in v1.1.0

func (o *CreateUserDefault) IsServerError() bool

IsServerError returns true when this create user default response has a 5xx status code

func (*CreateUserDefault) IsSuccess added in v1.1.0

func (o *CreateUserDefault) IsSuccess() bool

IsSuccess returns true when this create user default response has a 2xx status code

func (*CreateUserDefault) String added in v1.1.0

func (o *CreateUserDefault) String() string

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 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 NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

NewCreateUserParamsWithContext creates a new CreateUserParams object with 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 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 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) SetDefaults added in v1.0.0

func (o *CreateUserParams) SetDefaults()

SetDefaults hydrates default values in the create user params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v1.0.0

func (o *CreateUserParams) WithDefaults() *CreateUserParams

WithDefaults hydrates default values in the create user params (not the query body).

All values with no default are reset to their zero value.

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 describes a response with status code 202, 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) Code added in v1.1.5

func (o *DeleteUserAccepted) Code() int

Code gets the status code for the delete user accepted response

func (*DeleteUserAccepted) Error

func (o *DeleteUserAccepted) Error() string

func (*DeleteUserAccepted) IsClientError added in v1.1.0

func (o *DeleteUserAccepted) IsClientError() bool

IsClientError returns true when this delete user accepted response has a 4xx status code

func (*DeleteUserAccepted) IsCode added in v1.1.0

func (o *DeleteUserAccepted) IsCode(code int) bool

IsCode returns true when this delete user accepted response a status code equal to that given

func (*DeleteUserAccepted) IsRedirect added in v1.1.0

func (o *DeleteUserAccepted) IsRedirect() bool

IsRedirect returns true when this delete user accepted response has a 3xx status code

func (*DeleteUserAccepted) IsServerError added in v1.1.0

func (o *DeleteUserAccepted) IsServerError() bool

IsServerError returns true when this delete user accepted response has a 5xx status code

func (*DeleteUserAccepted) IsSuccess added in v1.1.0

func (o *DeleteUserAccepted) IsSuccess() bool

IsSuccess returns true when this delete user accepted response has a 2xx status code

func (*DeleteUserAccepted) String added in v1.1.0

func (o *DeleteUserAccepted) String() string

type DeleteUserDefault

type DeleteUserDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteUserDefault describes a response with status code -1, 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

func (*DeleteUserDefault) IsClientError added in v1.1.0

func (o *DeleteUserDefault) IsClientError() bool

IsClientError returns true when this delete user default response has a 4xx status code

func (*DeleteUserDefault) IsCode added in v1.1.0

func (o *DeleteUserDefault) IsCode(code int) bool

IsCode returns true when this delete user default response a status code equal to that given

func (*DeleteUserDefault) IsRedirect added in v1.1.0

func (o *DeleteUserDefault) IsRedirect() bool

IsRedirect returns true when this delete user default response has a 3xx status code

func (*DeleteUserDefault) IsServerError added in v1.1.0

func (o *DeleteUserDefault) IsServerError() bool

IsServerError returns true when this delete user default response has a 5xx status code

func (*DeleteUserDefault) IsSuccess added in v1.1.0

func (o *DeleteUserDefault) IsSuccess() bool

IsSuccess returns true when this delete user default response has a 2xx status code

func (*DeleteUserDefault) String added in v1.1.0

func (o *DeleteUserDefault) String() string

type DeleteUserNoContent

type DeleteUserNoContent struct {
}

DeleteUserNoContent describes a response with status code 204, with default header values.

User deleted

func NewDeleteUserNoContent

func NewDeleteUserNoContent() *DeleteUserNoContent

NewDeleteUserNoContent creates a DeleteUserNoContent with default headers values

func (*DeleteUserNoContent) Code added in v1.1.5

func (o *DeleteUserNoContent) Code() int

Code gets the status code for the delete user no content response

func (*DeleteUserNoContent) Error

func (o *DeleteUserNoContent) Error() string

func (*DeleteUserNoContent) IsClientError added in v1.1.0

func (o *DeleteUserNoContent) IsClientError() bool

IsClientError returns true when this delete user no content response has a 4xx status code

func (*DeleteUserNoContent) IsCode added in v1.1.0

func (o *DeleteUserNoContent) IsCode(code int) bool

IsCode returns true when this delete user no content response a status code equal to that given

func (*DeleteUserNoContent) IsRedirect added in v1.1.0

func (o *DeleteUserNoContent) IsRedirect() bool

IsRedirect returns true when this delete user no content response has a 3xx status code

func (*DeleteUserNoContent) IsServerError added in v1.1.0

func (o *DeleteUserNoContent) IsServerError() bool

IsServerError returns true when this delete user no content response has a 5xx status code

func (*DeleteUserNoContent) IsSuccess added in v1.1.0

func (o *DeleteUserNoContent) IsSuccess() bool

IsSuccess returns true when this delete user no content response has a 2xx status code

func (*DeleteUserNoContent) String added in v1.1.0

func (o *DeleteUserNoContent) String() string

type DeleteUserNotFound

type DeleteUserNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

DeleteUserNotFound describes a response with status code 404, 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) Code added in v1.1.5

func (o *DeleteUserNotFound) Code() int

Code gets the status code for the delete user not found response

func (*DeleteUserNotFound) Error

func (o *DeleteUserNotFound) Error() string

func (*DeleteUserNotFound) GetPayload

func (o *DeleteUserNotFound) GetPayload() *models.Error

func (*DeleteUserNotFound) IsClientError added in v1.1.0

func (o *DeleteUserNotFound) IsClientError() bool

IsClientError returns true when this delete user not found response has a 4xx status code

func (*DeleteUserNotFound) IsCode added in v1.1.0

func (o *DeleteUserNotFound) IsCode(code int) bool

IsCode returns true when this delete user not found response a status code equal to that given

func (*DeleteUserNotFound) IsRedirect added in v1.1.0

func (o *DeleteUserNotFound) IsRedirect() bool

IsRedirect returns true when this delete user not found response has a 3xx status code

func (*DeleteUserNotFound) IsServerError added in v1.1.0

func (o *DeleteUserNotFound) IsServerError() bool

IsServerError returns true when this delete user not found response has a 5xx status code

func (*DeleteUserNotFound) IsSuccess added in v1.1.0

func (o *DeleteUserNotFound) IsSuccess() bool

IsSuccess returns true when this delete user not found response has a 2xx status code

func (*DeleteUserNotFound) String added in v1.1.0

func (o *DeleteUserNotFound) String() string

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 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 NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

NewDeleteUserParamsWithContext creates a new DeleteUserParams object with 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 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 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) SetDefaults added in v1.0.0

func (o *DeleteUserParams) SetDefaults()

SetDefaults hydrates default values in the delete user params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v1.0.0

func (o *DeleteUserParams) WithDefaults() *DeleteUserParams

WithDefaults hydrates default values in the delete user params (not the query body).

All values with no default are reset to their zero value.

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 describes a response with status code -1, 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

func (*GetUserDefault) IsClientError added in v1.1.0

func (o *GetUserDefault) IsClientError() bool

IsClientError returns true when this get user default response has a 4xx status code

func (*GetUserDefault) IsCode added in v1.1.0

func (o *GetUserDefault) IsCode(code int) bool

IsCode returns true when this get user default response a status code equal to that given

func (*GetUserDefault) IsRedirect added in v1.1.0

func (o *GetUserDefault) IsRedirect() bool

IsRedirect returns true when this get user default response has a 3xx status code

func (*GetUserDefault) IsServerError added in v1.1.0

func (o *GetUserDefault) IsServerError() bool

IsServerError returns true when this get user default response has a 5xx status code

func (*GetUserDefault) IsSuccess added in v1.1.0

func (o *GetUserDefault) IsSuccess() bool

IsSuccess returns true when this get user default response has a 2xx status code

func (*GetUserDefault) String added in v1.1.0

func (o *GetUserDefault) String() string

type GetUserNotFound

type GetUserNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

GetUserNotFound describes a response with status code 404, with default header values.

The specified resource already exists

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Code added in v1.1.5

func (o *GetUserNotFound) Code() int

Code gets the status code for the get user not found response

func (*GetUserNotFound) Error

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload

func (o *GetUserNotFound) GetPayload() *models.Error

func (*GetUserNotFound) IsClientError added in v1.1.0

func (o *GetUserNotFound) IsClientError() bool

IsClientError returns true when this get user not found response has a 4xx status code

func (*GetUserNotFound) IsCode added in v1.1.0

func (o *GetUserNotFound) IsCode(code int) bool

IsCode returns true when this get user not found response a status code equal to that given

func (*GetUserNotFound) IsRedirect added in v1.1.0

func (o *GetUserNotFound) IsRedirect() bool

IsRedirect returns true when this get user not found response has a 3xx status code

func (*GetUserNotFound) IsServerError added in v1.1.0

func (o *GetUserNotFound) IsServerError() bool

IsServerError returns true when this get user not found response has a 5xx status code

func (*GetUserNotFound) IsSuccess added in v1.1.0

func (o *GetUserNotFound) IsSuccess() bool

IsSuccess returns true when this get user not found response has a 2xx status code

func (*GetUserNotFound) String added in v1.1.0

func (o *GetUserNotFound) String() string

type GetUserOK

type GetUserOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetUserOKBody
}

GetUserOK describes a response with status code 200, with default header values.

Successful operation

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code added in v1.1.5

func (o *GetUserOK) Code() int

Code gets the status code for the get user o k response

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

func (o *GetUserOK) GetPayload() *GetUserOKBody

func (*GetUserOK) IsClientError added in v1.1.0

func (o *GetUserOK) IsClientError() bool

IsClientError returns true when this get user o k response has a 4xx status code

func (*GetUserOK) IsCode added in v1.1.0

func (o *GetUserOK) IsCode(code int) bool

IsCode returns true when this get user o k response a status code equal to that given

func (*GetUserOK) IsRedirect added in v1.1.0

func (o *GetUserOK) IsRedirect() bool

IsRedirect returns true when this get user o k response has a 3xx status code

func (*GetUserOK) IsServerError added in v1.1.0

func (o *GetUserOK) IsServerError() bool

IsServerError returns true when this get user o k response has a 5xx status code

func (*GetUserOK) IsSuccess added in v1.1.0

func (o *GetUserOK) IsSuccess() bool

IsSuccess returns true when this get user o k response has a 2xx status code

func (*GetUserOK) String added in v1.1.0

func (o *GetUserOK) String() string

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) ContextValidate added in v1.0.0

func (o *GetUserOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get user o k body based on the context it is used

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

func (*GetUserOKBody) Validate

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

Validate validates this get user o k body

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 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) SetContext

func (o *GetUserParams) SetContext(ctx context.Context)

SetContext adds the context to the get user params

func (*GetUserParams) SetDefaults added in v1.0.0

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) 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) WithDefaults added in v1.0.0

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) 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 describes a response with status code -1, 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

func (*GetUsersDefault) IsClientError added in v1.1.0

func (o *GetUsersDefault) IsClientError() bool

IsClientError returns true when this get users default response has a 4xx status code

func (*GetUsersDefault) IsCode added in v1.1.0

func (o *GetUsersDefault) IsCode(code int) bool

IsCode returns true when this get users default response a status code equal to that given

func (*GetUsersDefault) IsRedirect added in v1.1.0

func (o *GetUsersDefault) IsRedirect() bool

IsRedirect returns true when this get users default response has a 3xx status code

func (*GetUsersDefault) IsServerError added in v1.1.0

func (o *GetUsersDefault) IsServerError() bool

IsServerError returns true when this get users default response has a 5xx status code

func (*GetUsersDefault) IsSuccess added in v1.1.0

func (o *GetUsersDefault) IsSuccess() bool

IsSuccess returns true when this get users default response has a 2xx status code

func (*GetUsersDefault) String added in v1.1.0

func (o *GetUsersDefault) String() string

type GetUsersOK

type GetUsersOK struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *GetUsersOKBody
}

GetUsersOK describes a response with status code 200, with default header values.

Successful operation

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Code added in v1.1.5

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() *GetUsersOKBody

func (*GetUsersOK) IsClientError added in v1.1.0

func (o *GetUsersOK) IsClientError() bool

IsClientError returns true when this get users o k response has a 4xx status code

func (*GetUsersOK) IsCode added in v1.1.0

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 added in v1.1.0

func (o *GetUsersOK) IsRedirect() bool

IsRedirect returns true when this get users o k response has a 3xx status code

func (*GetUsersOK) IsServerError added in v1.1.0

func (o *GetUsersOK) IsServerError() bool

IsServerError returns true when this get users o k response has a 5xx status code

func (*GetUsersOK) IsSuccess added in v1.1.0

func (o *GetUsersOK) IsSuccess() bool

IsSuccess returns true when this get users o k response has a 2xx status code

func (*GetUsersOK) String added in v1.1.0

func (o *GetUsersOK) String() string

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) ContextValidate added in v1.0.0

func (o *GetUsersOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this get users o k body based on the context it is used

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

func (*GetUsersOKBody) Validate

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

Validate validates this get users o k body

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 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) SetContext

func (o *GetUsersParams) SetContext(ctx context.Context)

SetContext adds the context to the get users params

func (*GetUsersParams) SetDefaults added in v1.0.0

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) 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) WithDefaults added in v1.0.0

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) 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 describes a response with status code 202, 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) Code added in v1.1.5

func (o *ReplaceUserAccepted) Code() int

Code gets the status code for the replace user accepted response

func (*ReplaceUserAccepted) Error

func (o *ReplaceUserAccepted) Error() string

func (*ReplaceUserAccepted) GetPayload

func (o *ReplaceUserAccepted) GetPayload() *models.User

func (*ReplaceUserAccepted) IsClientError added in v1.1.0

func (o *ReplaceUserAccepted) IsClientError() bool

IsClientError returns true when this replace user accepted response has a 4xx status code

func (*ReplaceUserAccepted) IsCode added in v1.1.0

func (o *ReplaceUserAccepted) IsCode(code int) bool

IsCode returns true when this replace user accepted response a status code equal to that given

func (*ReplaceUserAccepted) IsRedirect added in v1.1.0

func (o *ReplaceUserAccepted) IsRedirect() bool

IsRedirect returns true when this replace user accepted response has a 3xx status code

func (*ReplaceUserAccepted) IsServerError added in v1.1.0

func (o *ReplaceUserAccepted) IsServerError() bool

IsServerError returns true when this replace user accepted response has a 5xx status code

func (*ReplaceUserAccepted) IsSuccess added in v1.1.0

func (o *ReplaceUserAccepted) IsSuccess() bool

IsSuccess returns true when this replace user accepted response has a 2xx status code

func (*ReplaceUserAccepted) String added in v1.1.0

func (o *ReplaceUserAccepted) String() string

type ReplaceUserBadRequest

type ReplaceUserBadRequest struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceUserBadRequest describes a response with status code 400, with default header values.

Bad request

func NewReplaceUserBadRequest

func NewReplaceUserBadRequest() *ReplaceUserBadRequest

NewReplaceUserBadRequest creates a ReplaceUserBadRequest with default headers values

func (*ReplaceUserBadRequest) Code added in v1.1.5

func (o *ReplaceUserBadRequest) Code() int

Code gets the status code for the replace user bad request response

func (*ReplaceUserBadRequest) Error

func (o *ReplaceUserBadRequest) Error() string

func (*ReplaceUserBadRequest) GetPayload

func (o *ReplaceUserBadRequest) GetPayload() *models.Error

func (*ReplaceUserBadRequest) IsClientError added in v1.1.0

func (o *ReplaceUserBadRequest) IsClientError() bool

IsClientError returns true when this replace user bad request response has a 4xx status code

func (*ReplaceUserBadRequest) IsCode added in v1.1.0

func (o *ReplaceUserBadRequest) IsCode(code int) bool

IsCode returns true when this replace user bad request response a status code equal to that given

func (*ReplaceUserBadRequest) IsRedirect added in v1.1.0

func (o *ReplaceUserBadRequest) IsRedirect() bool

IsRedirect returns true when this replace user bad request response has a 3xx status code

func (*ReplaceUserBadRequest) IsServerError added in v1.1.0

func (o *ReplaceUserBadRequest) IsServerError() bool

IsServerError returns true when this replace user bad request response has a 5xx status code

func (*ReplaceUserBadRequest) IsSuccess added in v1.1.0

func (o *ReplaceUserBadRequest) IsSuccess() bool

IsSuccess returns true when this replace user bad request response has a 2xx status code

func (*ReplaceUserBadRequest) String added in v1.1.0

func (o *ReplaceUserBadRequest) String() string

type ReplaceUserDefault

type ReplaceUserDefault struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceUserDefault describes a response with status code -1, 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

func (*ReplaceUserDefault) IsClientError added in v1.1.0

func (o *ReplaceUserDefault) IsClientError() bool

IsClientError returns true when this replace user default response has a 4xx status code

func (*ReplaceUserDefault) IsCode added in v1.1.0

func (o *ReplaceUserDefault) IsCode(code int) bool

IsCode returns true when this replace user default response a status code equal to that given

func (*ReplaceUserDefault) IsRedirect added in v1.1.0

func (o *ReplaceUserDefault) IsRedirect() bool

IsRedirect returns true when this replace user default response has a 3xx status code

func (*ReplaceUserDefault) IsServerError added in v1.1.0

func (o *ReplaceUserDefault) IsServerError() bool

IsServerError returns true when this replace user default response has a 5xx status code

func (*ReplaceUserDefault) IsSuccess added in v1.1.0

func (o *ReplaceUserDefault) IsSuccess() bool

IsSuccess returns true when this replace user default response has a 2xx status code

func (*ReplaceUserDefault) String added in v1.1.0

func (o *ReplaceUserDefault) String() string

type ReplaceUserNotFound

type ReplaceUserNotFound struct {

	/* Configuration file version
	 */
	ConfigurationVersion string

	Payload *models.Error
}

ReplaceUserNotFound describes a response with status code 404, 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) Code added in v1.1.5

func (o *ReplaceUserNotFound) Code() int

Code gets the status code for the replace user not found response

func (*ReplaceUserNotFound) Error

func (o *ReplaceUserNotFound) Error() string

func (*ReplaceUserNotFound) GetPayload

func (o *ReplaceUserNotFound) GetPayload() *models.Error

func (*ReplaceUserNotFound) IsClientError added in v1.1.0

func (o *ReplaceUserNotFound) IsClientError() bool

IsClientError returns true when this replace user not found response has a 4xx status code

func (*ReplaceUserNotFound) IsCode added in v1.1.0

func (o *ReplaceUserNotFound) IsCode(code int) bool

IsCode returns true when this replace user not found response a status code equal to that given

func (*ReplaceUserNotFound) IsRedirect added in v1.1.0

func (o *ReplaceUserNotFound) IsRedirect() bool

IsRedirect returns true when this replace user not found response has a 3xx status code

func (*ReplaceUserNotFound) IsServerError added in v1.1.0

func (o *ReplaceUserNotFound) IsServerError() bool

IsServerError returns true when this replace user not found response has a 5xx status code

func (*ReplaceUserNotFound) IsSuccess added in v1.1.0

func (o *ReplaceUserNotFound) IsSuccess() bool

IsSuccess returns true when this replace user not found response has a 2xx status code

func (*ReplaceUserNotFound) String added in v1.1.0

func (o *ReplaceUserNotFound) String() string

type ReplaceUserOK

type ReplaceUserOK struct {
	Payload *models.User
}

ReplaceUserOK describes a response with status code 200, with default header values.

User replaced

func NewReplaceUserOK

func NewReplaceUserOK() *ReplaceUserOK

NewReplaceUserOK creates a ReplaceUserOK with default headers values

func (*ReplaceUserOK) Code added in v1.1.5

func (o *ReplaceUserOK) Code() int

Code gets the status code for the replace user o k response

func (*ReplaceUserOK) Error

func (o *ReplaceUserOK) Error() string

func (*ReplaceUserOK) GetPayload

func (o *ReplaceUserOK) GetPayload() *models.User

func (*ReplaceUserOK) IsClientError added in v1.1.0

func (o *ReplaceUserOK) IsClientError() bool

IsClientError returns true when this replace user o k response has a 4xx status code

func (*ReplaceUserOK) IsCode added in v1.1.0

func (o *ReplaceUserOK) IsCode(code int) bool

IsCode returns true when this replace user o k response a status code equal to that given

func (*ReplaceUserOK) IsRedirect added in v1.1.0

func (o *ReplaceUserOK) IsRedirect() bool

IsRedirect returns true when this replace user o k response has a 3xx status code

func (*ReplaceUserOK) IsServerError added in v1.1.0

func (o *ReplaceUserOK) IsServerError() bool

IsServerError returns true when this replace user o k response has a 5xx status code

func (*ReplaceUserOK) IsSuccess added in v1.1.0

func (o *ReplaceUserOK) IsSuccess() bool

IsSuccess returns true when this replace user o k response has a 2xx status code

func (*ReplaceUserOK) String added in v1.1.0

func (o *ReplaceUserOK) String() string

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 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 NewReplaceUserParamsWithContext

func NewReplaceUserParamsWithContext(ctx context.Context) *ReplaceUserParams

NewReplaceUserParamsWithContext creates a new ReplaceUserParams object with 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 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 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) SetDefaults added in v1.0.0

func (o *ReplaceUserParams) SetDefaults()

SetDefaults hydrates default values in the replace user params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults added in v1.0.0

func (o *ReplaceUserParams) WithDefaults() *ReplaceUserParams

WithDefaults hydrates default values in the replace user params (not the query body).

All values with no default are reset to their zero value.

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.

Jump to

Keyboard shortcuts

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