users

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordDefault

type ChangePasswordDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ChangePasswordDefault describes a response with status code -1, with default header values.

unexpected error

func NewChangePasswordDefault

func NewChangePasswordDefault(code int) *ChangePasswordDefault

NewChangePasswordDefault creates a ChangePasswordDefault with default headers values

func (*ChangePasswordDefault) Code

func (o *ChangePasswordDefault) Code() int

Code gets the status code for the change password default response

func (*ChangePasswordDefault) Error

func (o *ChangePasswordDefault) Error() string

func (*ChangePasswordDefault) GetPayload

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

func (*ChangePasswordDefault) IsClientError

func (o *ChangePasswordDefault) IsClientError() bool

IsClientError returns true when this change password default response has a 4xx status code

func (*ChangePasswordDefault) IsCode

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

IsCode returns true when this change password default response a status code equal to that given

func (*ChangePasswordDefault) IsRedirect

func (o *ChangePasswordDefault) IsRedirect() bool

IsRedirect returns true when this change password default response has a 3xx status code

func (*ChangePasswordDefault) IsServerError

func (o *ChangePasswordDefault) IsServerError() bool

IsServerError returns true when this change password default response has a 5xx status code

func (*ChangePasswordDefault) IsSuccess

func (o *ChangePasswordDefault) IsSuccess() bool

IsSuccess returns true when this change password default response has a 2xx status code

func (*ChangePasswordDefault) String

func (o *ChangePasswordDefault) String() string

type ChangePasswordOK

type ChangePasswordOK struct {
}

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

Null response

func NewChangePasswordOK

func NewChangePasswordOK() *ChangePasswordOK

NewChangePasswordOK creates a ChangePasswordOK with default headers values

func (*ChangePasswordOK) Code

func (o *ChangePasswordOK) Code() int

Code gets the status code for the change password o k response

func (*ChangePasswordOK) Error

func (o *ChangePasswordOK) Error() string

func (*ChangePasswordOK) IsClientError

func (o *ChangePasswordOK) IsClientError() bool

IsClientError returns true when this change password o k response has a 4xx status code

func (*ChangePasswordOK) IsCode

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

IsCode returns true when this change password o k response a status code equal to that given

func (*ChangePasswordOK) IsRedirect

func (o *ChangePasswordOK) IsRedirect() bool

IsRedirect returns true when this change password o k response has a 3xx status code

func (*ChangePasswordOK) IsServerError

func (o *ChangePasswordOK) IsServerError() bool

IsServerError returns true when this change password o k response has a 5xx status code

func (*ChangePasswordOK) IsSuccess

func (o *ChangePasswordOK) IsSuccess() bool

IsSuccess returns true when this change password o k response has a 2xx status code

func (*ChangePasswordOK) String

func (o *ChangePasswordOK) String() string

type ChangePasswordParams

type ChangePasswordParams struct {

	/* Password.

	   The new password
	*/
	Password *models.Password

	/* User.

	   The username of the user whose password should be changed
	*/
	User string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ChangePasswordParams contains all the parameters to send to the API endpoint

for the change password operation.

Typically these are written to a http.Request.

func NewChangePasswordParams

func NewChangePasswordParams() *ChangePasswordParams

NewChangePasswordParams creates a new ChangePasswordParams 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 NewChangePasswordParamsWithContext

func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams

NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with the ability to set a context for a request.

func NewChangePasswordParamsWithHTTPClient

func NewChangePasswordParamsWithHTTPClient(client *http.Client) *ChangePasswordParams

NewChangePasswordParamsWithHTTPClient creates a new ChangePasswordParams object with the ability to set a custom HTTPClient for a request.

func NewChangePasswordParamsWithTimeout

func NewChangePasswordParamsWithTimeout(timeout time.Duration) *ChangePasswordParams

NewChangePasswordParamsWithTimeout creates a new ChangePasswordParams object with the ability to set a timeout on a request.

func (*ChangePasswordParams) SetContext

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

SetContext adds the context to the change password params

func (*ChangePasswordParams) SetDefaults

func (o *ChangePasswordParams) SetDefaults()

SetDefaults hydrates default values in the change password params (not the query body).

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

func (*ChangePasswordParams) SetHTTPClient

func (o *ChangePasswordParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) SetPassword

func (o *ChangePasswordParams) SetPassword(password *models.Password)

SetPassword adds the password to the change password params

func (*ChangePasswordParams) SetTimeout

func (o *ChangePasswordParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the change password params

func (*ChangePasswordParams) SetUser

func (o *ChangePasswordParams) SetUser(user string)

SetUser adds the user to the change password params

func (*ChangePasswordParams) WithContext

WithContext adds the context to the change password params

func (*ChangePasswordParams) WithDefaults

func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams

WithDefaults hydrates default values in the change password params (not the query body).

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

func (*ChangePasswordParams) WithHTTPClient

func (o *ChangePasswordParams) WithHTTPClient(client *http.Client) *ChangePasswordParams

WithHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) WithPassword

func (o *ChangePasswordParams) WithPassword(password *models.Password) *ChangePasswordParams

WithPassword adds the password to the change password params

func (*ChangePasswordParams) WithTimeout

func (o *ChangePasswordParams) WithTimeout(timeout time.Duration) *ChangePasswordParams

WithTimeout adds the timeout to the change password params

func (*ChangePasswordParams) WithUser

WithUser adds the user to the change password params

func (*ChangePasswordParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChangePasswordReader

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

ChangePasswordReader is a Reader for the ChangePassword structure.

func (*ChangePasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for users API

func (*Client) ChangePassword

func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangePasswordOK, error)

ChangePassword changes the users password

func (*Client) CreateUser

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

CreateUser creates a new user

func (*Client) GetUser added in v0.3.0

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

GetUser gets a user

func (*Client) IsEnabled

func (a *Client) IsEnabled(params *IsEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsEnabledOK, error)

IsEnabled gets the user s enabled status

func (*Client) IsSuperuser

func (a *Client) IsSuperuser(params *IsSuperuserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsSuperuserOK, error)

IsSuperuser gets the user s superuser status

func (*Client) ListUsers

func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUsersOK, error)

ListUsers lists all users

func (*Client) RemoveUser

func (a *Client) RemoveUser(params *RemoveUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveUserNoContent, error)

RemoveUser removes a user

func (*Client) SetEnabled

func (a *Client) SetEnabled(params *SetEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetEnabledOK, error)

SetEnabled enables disable a user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) ValidateUser

func (a *Client) ValidateUser(params *ValidateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateUserOK, error)

ValidateUser validates the user credentials

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangePasswordOK, error)

	CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUserCreated, error)

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

	IsEnabled(params *IsEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsEnabledOK, error)

	IsSuperuser(params *IsSuperuserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*IsSuperuserOK, error)

	ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUsersOK, error)

	RemoveUser(params *RemoveUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveUserNoContent, error)

	SetEnabled(params *SetEnabledParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SetEnabledOK, error)

	ValidateUser(params *ValidateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateUserOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new users API client.

type CreateUserCreated

type CreateUserCreated struct {
}

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

Null response

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates a CreateUserCreated with default headers values

func (*CreateUserCreated) Code

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

func (o *CreateUserCreated) IsClientError() bool

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

func (*CreateUserCreated) IsCode

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

func (o *CreateUserCreated) IsRedirect() bool

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

func (*CreateUserCreated) IsServerError

func (o *CreateUserCreated) IsServerError() bool

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

func (*CreateUserCreated) IsSuccess

func (o *CreateUserCreated) IsSuccess() bool

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

func (*CreateUserCreated) String

func (o *CreateUserCreated) String() string

type CreateUserDefault

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

CreateUserDefault describes a response with status code -1, with default header values.

unexpected 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

func (o *CreateUserDefault) IsClientError() bool

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

func (*CreateUserDefault) IsCode

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

func (o *CreateUserDefault) IsRedirect() bool

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

func (*CreateUserDefault) IsServerError

func (o *CreateUserDefault) IsServerError() bool

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

func (*CreateUserDefault) IsSuccess

func (o *CreateUserDefault) IsSuccess() bool

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

func (*CreateUserDefault) String

func (o *CreateUserDefault) String() string

type CreateUserParams

type CreateUserParams struct {

	/* User.

	   The user to create.
	*/
	User *models.User

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

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

func (o *CreateUserParams) SetUser(user *models.User)

SetUser adds the user 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) WithDefaults

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

func (o *CreateUserParams) WithUser(user *models.User) *CreateUserParams

WithUser adds the user 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 GetUserDefault added in v0.3.0

type GetUserDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetUserDefault describes a response with status code -1, with default header values.

unexpected error

func NewGetUserDefault added in v0.3.0

func NewGetUserDefault(code int) *GetUserDefault

NewGetUserDefault creates a GetUserDefault with default headers values

func (*GetUserDefault) Code added in v0.3.0

func (o *GetUserDefault) Code() int

Code gets the status code for the get user default response

func (*GetUserDefault) Error added in v0.3.0

func (o *GetUserDefault) Error() string

func (*GetUserDefault) GetPayload added in v0.3.0

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

func (*GetUserDefault) IsClientError added in v0.3.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 v0.3.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 v0.3.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 v0.3.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 v0.3.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 v0.3.0

func (o *GetUserDefault) String() string

type GetUserNotFound added in v0.3.0

type GetUserNotFound struct {
	Payload *models.NotExists
}

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

User does not exist

func NewGetUserNotFound added in v0.3.0

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Code added in v0.3.0

func (o *GetUserNotFound) Code() int

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

func (*GetUserNotFound) Error added in v0.3.0

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload added in v0.3.0

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

func (*GetUserNotFound) IsClientError added in v0.3.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 v0.3.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 v0.3.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 v0.3.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 v0.3.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 v0.3.0

func (o *GetUserNotFound) String() string

type GetUserOK added in v0.3.0

type GetUserOK struct {
	Payload *models.Users
}

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

A user if it exists

func NewGetUserOK added in v0.3.0

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code added in v0.3.0

func (o *GetUserOK) Code() int

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

func (*GetUserOK) Error added in v0.3.0

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload added in v0.3.0

func (o *GetUserOK) GetPayload() *models.Users

func (*GetUserOK) IsClientError added in v0.3.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 v0.3.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 v0.3.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 v0.3.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 v0.3.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 v0.3.0

func (o *GetUserOK) String() string

type GetUserParams added in v0.3.0

type GetUserParams struct {

	/* User.

	   The username of the user to get
	*/
	User 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 added in v0.3.0

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 added in v0.3.0

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.

func NewGetUserParamsWithHTTPClient added in v0.3.0

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 added in v0.3.0

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 added in v0.3.0

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

SetContext adds the context to the get user params

func (*GetUserParams) SetDefaults added in v0.3.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 added in v0.3.0

func (o *GetUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetTimeout added in v0.3.0

func (o *GetUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get user params

func (*GetUserParams) SetUser added in v0.3.0

func (o *GetUserParams) SetUser(user string)

SetUser adds the user to the get user params

func (*GetUserParams) WithContext added in v0.3.0

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

WithContext adds the context to the get user params

func (*GetUserParams) WithDefaults added in v0.3.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 added in v0.3.0

func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithTimeout added in v0.3.0

func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams

WithTimeout adds the timeout to the get user params

func (*GetUserParams) WithUser added in v0.3.0

func (o *GetUserParams) WithUser(user string) *GetUserParams

WithUser adds the user to the get user params

func (*GetUserParams) WriteToRequest added in v0.3.0

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

WriteToRequest writes these params to a swagger request

type GetUserReader added in v0.3.0

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse added in v0.3.0

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

ReadResponse reads a server response into the received o.

type IsEnabledDefault

type IsEnabledDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

IsEnabledDefault describes a response with status code -1, with default header values.

unexpected error

func NewIsEnabledDefault

func NewIsEnabledDefault(code int) *IsEnabledDefault

NewIsEnabledDefault creates a IsEnabledDefault with default headers values

func (*IsEnabledDefault) Code

func (o *IsEnabledDefault) Code() int

Code gets the status code for the is enabled default response

func (*IsEnabledDefault) Error

func (o *IsEnabledDefault) Error() string

func (*IsEnabledDefault) GetPayload

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

func (*IsEnabledDefault) IsClientError

func (o *IsEnabledDefault) IsClientError() bool

IsClientError returns true when this is enabled default response has a 4xx status code

func (*IsEnabledDefault) IsCode

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

IsCode returns true when this is enabled default response a status code equal to that given

func (*IsEnabledDefault) IsRedirect

func (o *IsEnabledDefault) IsRedirect() bool

IsRedirect returns true when this is enabled default response has a 3xx status code

func (*IsEnabledDefault) IsServerError

func (o *IsEnabledDefault) IsServerError() bool

IsServerError returns true when this is enabled default response has a 5xx status code

func (*IsEnabledDefault) IsSuccess

func (o *IsEnabledDefault) IsSuccess() bool

IsSuccess returns true when this is enabled default response has a 2xx status code

func (*IsEnabledDefault) String

func (o *IsEnabledDefault) String() string

type IsEnabledOK

type IsEnabledOK struct {
	Payload *models.Enabled
}

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

Whether the user is enabled

func NewIsEnabledOK

func NewIsEnabledOK() *IsEnabledOK

NewIsEnabledOK creates a IsEnabledOK with default headers values

func (*IsEnabledOK) Code

func (o *IsEnabledOK) Code() int

Code gets the status code for the is enabled o k response

func (*IsEnabledOK) Error

func (o *IsEnabledOK) Error() string

func (*IsEnabledOK) GetPayload

func (o *IsEnabledOK) GetPayload() *models.Enabled

func (*IsEnabledOK) IsClientError

func (o *IsEnabledOK) IsClientError() bool

IsClientError returns true when this is enabled o k response has a 4xx status code

func (*IsEnabledOK) IsCode

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

IsCode returns true when this is enabled o k response a status code equal to that given

func (*IsEnabledOK) IsRedirect

func (o *IsEnabledOK) IsRedirect() bool

IsRedirect returns true when this is enabled o k response has a 3xx status code

func (*IsEnabledOK) IsServerError

func (o *IsEnabledOK) IsServerError() bool

IsServerError returns true when this is enabled o k response has a 5xx status code

func (*IsEnabledOK) IsSuccess

func (o *IsEnabledOK) IsSuccess() bool

IsSuccess returns true when this is enabled o k response has a 2xx status code

func (*IsEnabledOK) String

func (o *IsEnabledOK) String() string

type IsEnabledParams

type IsEnabledParams struct {

	/* User.

	   The username of the user whose status should be queried
	*/
	User string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

IsEnabledParams contains all the parameters to send to the API endpoint

for the is enabled operation.

Typically these are written to a http.Request.

func NewIsEnabledParams

func NewIsEnabledParams() *IsEnabledParams

NewIsEnabledParams creates a new IsEnabledParams 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 NewIsEnabledParamsWithContext

func NewIsEnabledParamsWithContext(ctx context.Context) *IsEnabledParams

NewIsEnabledParamsWithContext creates a new IsEnabledParams object with the ability to set a context for a request.

func NewIsEnabledParamsWithHTTPClient

func NewIsEnabledParamsWithHTTPClient(client *http.Client) *IsEnabledParams

NewIsEnabledParamsWithHTTPClient creates a new IsEnabledParams object with the ability to set a custom HTTPClient for a request.

func NewIsEnabledParamsWithTimeout

func NewIsEnabledParamsWithTimeout(timeout time.Duration) *IsEnabledParams

NewIsEnabledParamsWithTimeout creates a new IsEnabledParams object with the ability to set a timeout on a request.

func (*IsEnabledParams) SetContext

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

SetContext adds the context to the is enabled params

func (*IsEnabledParams) SetDefaults

func (o *IsEnabledParams) SetDefaults()

SetDefaults hydrates default values in the is enabled params (not the query body).

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

func (*IsEnabledParams) SetHTTPClient

func (o *IsEnabledParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the is enabled params

func (*IsEnabledParams) SetTimeout

func (o *IsEnabledParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the is enabled params

func (*IsEnabledParams) SetUser

func (o *IsEnabledParams) SetUser(user string)

SetUser adds the user to the is enabled params

func (*IsEnabledParams) WithContext

func (o *IsEnabledParams) WithContext(ctx context.Context) *IsEnabledParams

WithContext adds the context to the is enabled params

func (*IsEnabledParams) WithDefaults

func (o *IsEnabledParams) WithDefaults() *IsEnabledParams

WithDefaults hydrates default values in the is enabled params (not the query body).

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

func (*IsEnabledParams) WithHTTPClient

func (o *IsEnabledParams) WithHTTPClient(client *http.Client) *IsEnabledParams

WithHTTPClient adds the HTTPClient to the is enabled params

func (*IsEnabledParams) WithTimeout

func (o *IsEnabledParams) WithTimeout(timeout time.Duration) *IsEnabledParams

WithTimeout adds the timeout to the is enabled params

func (*IsEnabledParams) WithUser

func (o *IsEnabledParams) WithUser(user string) *IsEnabledParams

WithUser adds the user to the is enabled params

func (*IsEnabledParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type IsEnabledReader

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

IsEnabledReader is a Reader for the IsEnabled structure.

func (*IsEnabledReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type IsSuperuserDefault

type IsSuperuserDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

IsSuperuserDefault describes a response with status code -1, with default header values.

unexpected error

func NewIsSuperuserDefault

func NewIsSuperuserDefault(code int) *IsSuperuserDefault

NewIsSuperuserDefault creates a IsSuperuserDefault with default headers values

func (*IsSuperuserDefault) Code

func (o *IsSuperuserDefault) Code() int

Code gets the status code for the is superuser default response

func (*IsSuperuserDefault) Error

func (o *IsSuperuserDefault) Error() string

func (*IsSuperuserDefault) GetPayload

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

func (*IsSuperuserDefault) IsClientError

func (o *IsSuperuserDefault) IsClientError() bool

IsClientError returns true when this is superuser default response has a 4xx status code

func (*IsSuperuserDefault) IsCode

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

IsCode returns true when this is superuser default response a status code equal to that given

func (*IsSuperuserDefault) IsRedirect

func (o *IsSuperuserDefault) IsRedirect() bool

IsRedirect returns true when this is superuser default response has a 3xx status code

func (*IsSuperuserDefault) IsServerError

func (o *IsSuperuserDefault) IsServerError() bool

IsServerError returns true when this is superuser default response has a 5xx status code

func (*IsSuperuserDefault) IsSuccess

func (o *IsSuperuserDefault) IsSuccess() bool

IsSuccess returns true when this is superuser default response has a 2xx status code

func (*IsSuperuserDefault) String

func (o *IsSuperuserDefault) String() string

type IsSuperuserOK

type IsSuperuserOK struct {
	Payload *models.Superuser
}

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

The user's superuser status

func NewIsSuperuserOK

func NewIsSuperuserOK() *IsSuperuserOK

NewIsSuperuserOK creates a IsSuperuserOK with default headers values

func (*IsSuperuserOK) Code

func (o *IsSuperuserOK) Code() int

Code gets the status code for the is superuser o k response

func (*IsSuperuserOK) Error

func (o *IsSuperuserOK) Error() string

func (*IsSuperuserOK) GetPayload

func (o *IsSuperuserOK) GetPayload() *models.Superuser

func (*IsSuperuserOK) IsClientError

func (o *IsSuperuserOK) IsClientError() bool

IsClientError returns true when this is superuser o k response has a 4xx status code

func (*IsSuperuserOK) IsCode

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

IsCode returns true when this is superuser o k response a status code equal to that given

func (*IsSuperuserOK) IsRedirect

func (o *IsSuperuserOK) IsRedirect() bool

IsRedirect returns true when this is superuser o k response has a 3xx status code

func (*IsSuperuserOK) IsServerError

func (o *IsSuperuserOK) IsServerError() bool

IsServerError returns true when this is superuser o k response has a 5xx status code

func (*IsSuperuserOK) IsSuccess

func (o *IsSuperuserOK) IsSuccess() bool

IsSuccess returns true when this is superuser o k response has a 2xx status code

func (*IsSuperuserOK) String

func (o *IsSuperuserOK) String() string

type IsSuperuserParams

type IsSuperuserParams struct {

	/* User.

	   The username of the user whose status should be queried
	*/
	User string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

IsSuperuserParams contains all the parameters to send to the API endpoint

for the is superuser operation.

Typically these are written to a http.Request.

func NewIsSuperuserParams

func NewIsSuperuserParams() *IsSuperuserParams

NewIsSuperuserParams creates a new IsSuperuserParams 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 NewIsSuperuserParamsWithContext

func NewIsSuperuserParamsWithContext(ctx context.Context) *IsSuperuserParams

NewIsSuperuserParamsWithContext creates a new IsSuperuserParams object with the ability to set a context for a request.

func NewIsSuperuserParamsWithHTTPClient

func NewIsSuperuserParamsWithHTTPClient(client *http.Client) *IsSuperuserParams

NewIsSuperuserParamsWithHTTPClient creates a new IsSuperuserParams object with the ability to set a custom HTTPClient for a request.

func NewIsSuperuserParamsWithTimeout

func NewIsSuperuserParamsWithTimeout(timeout time.Duration) *IsSuperuserParams

NewIsSuperuserParamsWithTimeout creates a new IsSuperuserParams object with the ability to set a timeout on a request.

func (*IsSuperuserParams) SetContext

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

SetContext adds the context to the is superuser params

func (*IsSuperuserParams) SetDefaults

func (o *IsSuperuserParams) SetDefaults()

SetDefaults hydrates default values in the is superuser params (not the query body).

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

func (*IsSuperuserParams) SetHTTPClient

func (o *IsSuperuserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the is superuser params

func (*IsSuperuserParams) SetTimeout

func (o *IsSuperuserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the is superuser params

func (*IsSuperuserParams) SetUser

func (o *IsSuperuserParams) SetUser(user string)

SetUser adds the user to the is superuser params

func (*IsSuperuserParams) WithContext

func (o *IsSuperuserParams) WithContext(ctx context.Context) *IsSuperuserParams

WithContext adds the context to the is superuser params

func (*IsSuperuserParams) WithDefaults

func (o *IsSuperuserParams) WithDefaults() *IsSuperuserParams

WithDefaults hydrates default values in the is superuser params (not the query body).

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

func (*IsSuperuserParams) WithHTTPClient

func (o *IsSuperuserParams) WithHTTPClient(client *http.Client) *IsSuperuserParams

WithHTTPClient adds the HTTPClient to the is superuser params

func (*IsSuperuserParams) WithTimeout

func (o *IsSuperuserParams) WithTimeout(timeout time.Duration) *IsSuperuserParams

WithTimeout adds the timeout to the is superuser params

func (*IsSuperuserParams) WithUser

func (o *IsSuperuserParams) WithUser(user string) *IsSuperuserParams

WithUser adds the user to the is superuser params

func (*IsSuperuserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type IsSuperuserReader

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

IsSuperuserReader is a Reader for the IsSuperuser structure.

func (*IsSuperuserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUsersDefault

type ListUsersDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ListUsersDefault describes a response with status code -1, with default header values.

unexpected error

func NewListUsersDefault

func NewListUsersDefault(code int) *ListUsersDefault

NewListUsersDefault creates a ListUsersDefault with default headers values

func (*ListUsersDefault) Code

func (o *ListUsersDefault) Code() int

Code gets the status code for the list users default response

func (*ListUsersDefault) Error

func (o *ListUsersDefault) Error() string

func (*ListUsersDefault) GetPayload

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

func (*ListUsersDefault) IsClientError

func (o *ListUsersDefault) IsClientError() bool

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

func (*ListUsersDefault) IsCode

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

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

func (*ListUsersDefault) IsRedirect

func (o *ListUsersDefault) IsRedirect() bool

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

func (*ListUsersDefault) IsServerError

func (o *ListUsersDefault) IsServerError() bool

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

func (*ListUsersDefault) IsSuccess

func (o *ListUsersDefault) IsSuccess() bool

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

func (*ListUsersDefault) String

func (o *ListUsersDefault) String() string

type ListUsersOK

type ListUsersOK struct {
	Payload *models.Users
}

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

A dict containing an array of usernames

func NewListUsersOK

func NewListUsersOK() *ListUsersOK

NewListUsersOK creates a ListUsersOK with default headers values

func (*ListUsersOK) Code

func (o *ListUsersOK) Code() int

Code gets the status code for the list users o k response

func (*ListUsersOK) Error

func (o *ListUsersOK) Error() string

func (*ListUsersOK) GetPayload

func (o *ListUsersOK) GetPayload() *models.Users

func (*ListUsersOK) IsClientError

func (o *ListUsersOK) IsClientError() bool

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

func (*ListUsersOK) IsCode

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

IsCode returns true when this list users o k response a status code equal to that given

func (*ListUsersOK) IsRedirect

func (o *ListUsersOK) IsRedirect() bool

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

func (*ListUsersOK) IsServerError

func (o *ListUsersOK) IsServerError() bool

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

func (*ListUsersOK) IsSuccess

func (o *ListUsersOK) IsSuccess() bool

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

func (*ListUsersOK) String

func (o *ListUsersOK) String() string

type ListUsersParams

type ListUsersParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListUsersParams contains all the parameters to send to the API endpoint

for the list users operation.

Typically these are written to a http.Request.

func NewListUsersParams

func NewListUsersParams() *ListUsersParams

NewListUsersParams creates a new ListUsersParams 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 NewListUsersParamsWithContext

func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams

NewListUsersParamsWithContext creates a new ListUsersParams object with the ability to set a context for a request.

func NewListUsersParamsWithHTTPClient

func NewListUsersParamsWithHTTPClient(client *http.Client) *ListUsersParams

NewListUsersParamsWithHTTPClient creates a new ListUsersParams object with the ability to set a custom HTTPClient for a request.

func NewListUsersParamsWithTimeout

func NewListUsersParamsWithTimeout(timeout time.Duration) *ListUsersParams

NewListUsersParamsWithTimeout creates a new ListUsersParams object with the ability to set a timeout on a request.

func (*ListUsersParams) SetContext

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

SetContext adds the context to the list users params

func (*ListUsersParams) SetDefaults

func (o *ListUsersParams) SetDefaults()

SetDefaults hydrates default values in the list users params (not the query body).

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

func (*ListUsersParams) SetHTTPClient

func (o *ListUsersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list users params

func (*ListUsersParams) SetTimeout

func (o *ListUsersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list users params

func (*ListUsersParams) WithContext

func (o *ListUsersParams) WithContext(ctx context.Context) *ListUsersParams

WithContext adds the context to the list users params

func (*ListUsersParams) WithDefaults

func (o *ListUsersParams) WithDefaults() *ListUsersParams

WithDefaults hydrates default values in the list users params (not the query body).

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

func (*ListUsersParams) WithHTTPClient

func (o *ListUsersParams) WithHTTPClient(client *http.Client) *ListUsersParams

WithHTTPClient adds the HTTPClient to the list users params

func (*ListUsersParams) WithTimeout

func (o *ListUsersParams) WithTimeout(timeout time.Duration) *ListUsersParams

WithTimeout adds the timeout to the list users params

func (*ListUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUsersReader

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

ListUsersReader is a Reader for the ListUsers structure.

func (*ListUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveUserDefault

type RemoveUserDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

RemoveUserDefault describes a response with status code -1, with default header values.

unexpected error

func NewRemoveUserDefault

func NewRemoveUserDefault(code int) *RemoveUserDefault

NewRemoveUserDefault creates a RemoveUserDefault with default headers values

func (*RemoveUserDefault) Code

func (o *RemoveUserDefault) Code() int

Code gets the status code for the remove user default response

func (*RemoveUserDefault) Error

func (o *RemoveUserDefault) Error() string

func (*RemoveUserDefault) GetPayload

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

func (*RemoveUserDefault) IsClientError

func (o *RemoveUserDefault) IsClientError() bool

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

func (*RemoveUserDefault) IsCode

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

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

func (*RemoveUserDefault) IsRedirect

func (o *RemoveUserDefault) IsRedirect() bool

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

func (*RemoveUserDefault) IsServerError

func (o *RemoveUserDefault) IsServerError() bool

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

func (*RemoveUserDefault) IsSuccess

func (o *RemoveUserDefault) IsSuccess() bool

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

func (*RemoveUserDefault) String

func (o *RemoveUserDefault) String() string

type RemoveUserNoContent

type RemoveUserNoContent struct {
}

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

Null response

func NewRemoveUserNoContent

func NewRemoveUserNoContent() *RemoveUserNoContent

NewRemoveUserNoContent creates a RemoveUserNoContent with default headers values

func (*RemoveUserNoContent) Code

func (o *RemoveUserNoContent) Code() int

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

func (*RemoveUserNoContent) Error

func (o *RemoveUserNoContent) Error() string

func (*RemoveUserNoContent) IsClientError

func (o *RemoveUserNoContent) IsClientError() bool

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

func (*RemoveUserNoContent) IsCode

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

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

func (*RemoveUserNoContent) IsRedirect

func (o *RemoveUserNoContent) IsRedirect() bool

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

func (*RemoveUserNoContent) IsServerError

func (o *RemoveUserNoContent) IsServerError() bool

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

func (*RemoveUserNoContent) IsSuccess

func (o *RemoveUserNoContent) IsSuccess() bool

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

func (*RemoveUserNoContent) String

func (o *RemoveUserNoContent) String() string

type RemoveUserNotFound

type RemoveUserNotFound struct {
	Payload *models.NotExists
}

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

User does not exist

func NewRemoveUserNotFound

func NewRemoveUserNotFound() *RemoveUserNotFound

NewRemoveUserNotFound creates a RemoveUserNotFound with default headers values

func (*RemoveUserNotFound) Code

func (o *RemoveUserNotFound) Code() int

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

func (*RemoveUserNotFound) Error

func (o *RemoveUserNotFound) Error() string

func (*RemoveUserNotFound) GetPayload

func (o *RemoveUserNotFound) GetPayload() *models.NotExists

func (*RemoveUserNotFound) IsClientError

func (o *RemoveUserNotFound) IsClientError() bool

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

func (*RemoveUserNotFound) IsCode

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

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

func (*RemoveUserNotFound) IsRedirect

func (o *RemoveUserNotFound) IsRedirect() bool

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

func (*RemoveUserNotFound) IsServerError

func (o *RemoveUserNotFound) IsServerError() bool

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

func (*RemoveUserNotFound) IsSuccess

func (o *RemoveUserNotFound) IsSuccess() bool

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

func (*RemoveUserNotFound) String

func (o *RemoveUserNotFound) String() string

type RemoveUserParams

type RemoveUserParams struct {

	/* User.

	   The username of the user to delete
	*/
	User string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

RemoveUserParams contains all the parameters to send to the API endpoint

for the remove user operation.

Typically these are written to a http.Request.

func NewRemoveUserParams

func NewRemoveUserParams() *RemoveUserParams

NewRemoveUserParams creates a new RemoveUserParams 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 NewRemoveUserParamsWithContext

func NewRemoveUserParamsWithContext(ctx context.Context) *RemoveUserParams

NewRemoveUserParamsWithContext creates a new RemoveUserParams object with the ability to set a context for a request.

func NewRemoveUserParamsWithHTTPClient

func NewRemoveUserParamsWithHTTPClient(client *http.Client) *RemoveUserParams

NewRemoveUserParamsWithHTTPClient creates a new RemoveUserParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveUserParamsWithTimeout

func NewRemoveUserParamsWithTimeout(timeout time.Duration) *RemoveUserParams

NewRemoveUserParamsWithTimeout creates a new RemoveUserParams object with the ability to set a timeout on a request.

func (*RemoveUserParams) SetContext

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

SetContext adds the context to the remove user params

func (*RemoveUserParams) SetDefaults

func (o *RemoveUserParams) SetDefaults()

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

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

func (*RemoveUserParams) SetHTTPClient

func (o *RemoveUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the remove user params

func (*RemoveUserParams) SetTimeout

func (o *RemoveUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the remove user params

func (*RemoveUserParams) SetUser

func (o *RemoveUserParams) SetUser(user string)

SetUser adds the user to the remove user params

func (*RemoveUserParams) WithContext

func (o *RemoveUserParams) WithContext(ctx context.Context) *RemoveUserParams

WithContext adds the context to the remove user params

func (*RemoveUserParams) WithDefaults

func (o *RemoveUserParams) WithDefaults() *RemoveUserParams

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

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

func (*RemoveUserParams) WithHTTPClient

func (o *RemoveUserParams) WithHTTPClient(client *http.Client) *RemoveUserParams

WithHTTPClient adds the HTTPClient to the remove user params

func (*RemoveUserParams) WithTimeout

func (o *RemoveUserParams) WithTimeout(timeout time.Duration) *RemoveUserParams

WithTimeout adds the timeout to the remove user params

func (*RemoveUserParams) WithUser

func (o *RemoveUserParams) WithUser(user string) *RemoveUserParams

WithUser adds the user to the remove user params

func (*RemoveUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RemoveUserReader

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

RemoveUserReader is a Reader for the RemoveUser structure.

func (*RemoveUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetEnabledDefault

type SetEnabledDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

SetEnabledDefault describes a response with status code -1, with default header values.

unexpected error

func NewSetEnabledDefault

func NewSetEnabledDefault(code int) *SetEnabledDefault

NewSetEnabledDefault creates a SetEnabledDefault with default headers values

func (*SetEnabledDefault) Code

func (o *SetEnabledDefault) Code() int

Code gets the status code for the set enabled default response

func (*SetEnabledDefault) Error

func (o *SetEnabledDefault) Error() string

func (*SetEnabledDefault) GetPayload

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

func (*SetEnabledDefault) IsClientError

func (o *SetEnabledDefault) IsClientError() bool

IsClientError returns true when this set enabled default response has a 4xx status code

func (*SetEnabledDefault) IsCode

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

IsCode returns true when this set enabled default response a status code equal to that given

func (*SetEnabledDefault) IsRedirect

func (o *SetEnabledDefault) IsRedirect() bool

IsRedirect returns true when this set enabled default response has a 3xx status code

func (*SetEnabledDefault) IsServerError

func (o *SetEnabledDefault) IsServerError() bool

IsServerError returns true when this set enabled default response has a 5xx status code

func (*SetEnabledDefault) IsSuccess

func (o *SetEnabledDefault) IsSuccess() bool

IsSuccess returns true when this set enabled default response has a 2xx status code

func (*SetEnabledDefault) String

func (o *SetEnabledDefault) String() string

type SetEnabledOK

type SetEnabledOK struct {
}

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

Null response

func NewSetEnabledOK

func NewSetEnabledOK() *SetEnabledOK

NewSetEnabledOK creates a SetEnabledOK with default headers values

func (*SetEnabledOK) Code

func (o *SetEnabledOK) Code() int

Code gets the status code for the set enabled o k response

func (*SetEnabledOK) Error

func (o *SetEnabledOK) Error() string

func (*SetEnabledOK) IsClientError

func (o *SetEnabledOK) IsClientError() bool

IsClientError returns true when this set enabled o k response has a 4xx status code

func (*SetEnabledOK) IsCode

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

IsCode returns true when this set enabled o k response a status code equal to that given

func (*SetEnabledOK) IsRedirect

func (o *SetEnabledOK) IsRedirect() bool

IsRedirect returns true when this set enabled o k response has a 3xx status code

func (*SetEnabledOK) IsServerError

func (o *SetEnabledOK) IsServerError() bool

IsServerError returns true when this set enabled o k response has a 5xx status code

func (*SetEnabledOK) IsSuccess

func (o *SetEnabledOK) IsSuccess() bool

IsSuccess returns true when this set enabled o k response has a 2xx status code

func (*SetEnabledOK) String

func (o *SetEnabledOK) String() string

type SetEnabledParams

type SetEnabledParams struct {

	/* Enable.

	   The enabled status
	*/
	Enable *models.Enabled

	/* User.

	   The username of the user whose status should be changed
	*/
	User string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetEnabledParams contains all the parameters to send to the API endpoint

for the set enabled operation.

Typically these are written to a http.Request.

func NewSetEnabledParams

func NewSetEnabledParams() *SetEnabledParams

NewSetEnabledParams creates a new SetEnabledParams 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 NewSetEnabledParamsWithContext

func NewSetEnabledParamsWithContext(ctx context.Context) *SetEnabledParams

NewSetEnabledParamsWithContext creates a new SetEnabledParams object with the ability to set a context for a request.

func NewSetEnabledParamsWithHTTPClient

func NewSetEnabledParamsWithHTTPClient(client *http.Client) *SetEnabledParams

NewSetEnabledParamsWithHTTPClient creates a new SetEnabledParams object with the ability to set a custom HTTPClient for a request.

func NewSetEnabledParamsWithTimeout

func NewSetEnabledParamsWithTimeout(timeout time.Duration) *SetEnabledParams

NewSetEnabledParamsWithTimeout creates a new SetEnabledParams object with the ability to set a timeout on a request.

func (*SetEnabledParams) SetContext

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

SetContext adds the context to the set enabled params

func (*SetEnabledParams) SetDefaults

func (o *SetEnabledParams) SetDefaults()

SetDefaults hydrates default values in the set enabled params (not the query body).

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

func (*SetEnabledParams) SetEnable

func (o *SetEnabledParams) SetEnable(enable *models.Enabled)

SetEnable adds the enable to the set enabled params

func (*SetEnabledParams) SetHTTPClient

func (o *SetEnabledParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set enabled params

func (*SetEnabledParams) SetTimeout

func (o *SetEnabledParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set enabled params

func (*SetEnabledParams) SetUser

func (o *SetEnabledParams) SetUser(user string)

SetUser adds the user to the set enabled params

func (*SetEnabledParams) WithContext

func (o *SetEnabledParams) WithContext(ctx context.Context) *SetEnabledParams

WithContext adds the context to the set enabled params

func (*SetEnabledParams) WithDefaults

func (o *SetEnabledParams) WithDefaults() *SetEnabledParams

WithDefaults hydrates default values in the set enabled params (not the query body).

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

func (*SetEnabledParams) WithEnable

func (o *SetEnabledParams) WithEnable(enable *models.Enabled) *SetEnabledParams

WithEnable adds the enable to the set enabled params

func (*SetEnabledParams) WithHTTPClient

func (o *SetEnabledParams) WithHTTPClient(client *http.Client) *SetEnabledParams

WithHTTPClient adds the HTTPClient to the set enabled params

func (*SetEnabledParams) WithTimeout

func (o *SetEnabledParams) WithTimeout(timeout time.Duration) *SetEnabledParams

WithTimeout adds the timeout to the set enabled params

func (*SetEnabledParams) WithUser

func (o *SetEnabledParams) WithUser(user string) *SetEnabledParams

WithUser adds the user to the set enabled params

func (*SetEnabledParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetEnabledReader

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

SetEnabledReader is a Reader for the SetEnabled structure.

func (*SetEnabledReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ValidateUserDefault

type ValidateUserDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ValidateUserDefault describes a response with status code -1, with default header values.

User invalid

func NewValidateUserDefault

func NewValidateUserDefault(code int) *ValidateUserDefault

NewValidateUserDefault creates a ValidateUserDefault with default headers values

func (*ValidateUserDefault) Code

func (o *ValidateUserDefault) Code() int

Code gets the status code for the validate user default response

func (*ValidateUserDefault) Error

func (o *ValidateUserDefault) Error() string

func (*ValidateUserDefault) GetPayload

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

func (*ValidateUserDefault) IsClientError

func (o *ValidateUserDefault) IsClientError() bool

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

func (*ValidateUserDefault) IsCode

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

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

func (*ValidateUserDefault) IsRedirect

func (o *ValidateUserDefault) IsRedirect() bool

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

func (*ValidateUserDefault) IsServerError

func (o *ValidateUserDefault) IsServerError() bool

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

func (*ValidateUserDefault) IsSuccess

func (o *ValidateUserDefault) IsSuccess() bool

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

func (*ValidateUserDefault) String

func (o *ValidateUserDefault) String() string

type ValidateUserOK

type ValidateUserOK struct {
}

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

Null response

func NewValidateUserOK

func NewValidateUserOK() *ValidateUserOK

NewValidateUserOK creates a ValidateUserOK with default headers values

func (*ValidateUserOK) Code

func (o *ValidateUserOK) Code() int

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

func (*ValidateUserOK) Error

func (o *ValidateUserOK) Error() string

func (*ValidateUserOK) IsClientError

func (o *ValidateUserOK) IsClientError() bool

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

func (*ValidateUserOK) IsCode

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

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

func (*ValidateUserOK) IsRedirect

func (o *ValidateUserOK) IsRedirect() bool

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

func (*ValidateUserOK) IsServerError

func (o *ValidateUserOK) IsServerError() bool

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

func (*ValidateUserOK) IsSuccess

func (o *ValidateUserOK) IsSuccess() bool

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

func (*ValidateUserOK) String

func (o *ValidateUserOK) String() string

type ValidateUserParams

type ValidateUserParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ValidateUserParams contains all the parameters to send to the API endpoint

for the validate user operation.

Typically these are written to a http.Request.

func NewValidateUserParams

func NewValidateUserParams() *ValidateUserParams

NewValidateUserParams creates a new ValidateUserParams 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 NewValidateUserParamsWithContext

func NewValidateUserParamsWithContext(ctx context.Context) *ValidateUserParams

NewValidateUserParamsWithContext creates a new ValidateUserParams object with the ability to set a context for a request.

func NewValidateUserParamsWithHTTPClient

func NewValidateUserParamsWithHTTPClient(client *http.Client) *ValidateUserParams

NewValidateUserParamsWithHTTPClient creates a new ValidateUserParams object with the ability to set a custom HTTPClient for a request.

func NewValidateUserParamsWithTimeout

func NewValidateUserParamsWithTimeout(timeout time.Duration) *ValidateUserParams

NewValidateUserParamsWithTimeout creates a new ValidateUserParams object with the ability to set a timeout on a request.

func (*ValidateUserParams) SetContext

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

SetContext adds the context to the validate user params

func (*ValidateUserParams) SetDefaults

func (o *ValidateUserParams) SetDefaults()

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

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

func (*ValidateUserParams) SetHTTPClient

func (o *ValidateUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the validate user params

func (*ValidateUserParams) SetTimeout

func (o *ValidateUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the validate user params

func (*ValidateUserParams) WithContext

WithContext adds the context to the validate user params

func (*ValidateUserParams) WithDefaults

func (o *ValidateUserParams) WithDefaults() *ValidateUserParams

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

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

func (*ValidateUserParams) WithHTTPClient

func (o *ValidateUserParams) WithHTTPClient(client *http.Client) *ValidateUserParams

WithHTTPClient adds the HTTPClient to the validate user params

func (*ValidateUserParams) WithTimeout

func (o *ValidateUserParams) WithTimeout(timeout time.Duration) *ValidateUserParams

WithTimeout adds the timeout to the validate user params

func (*ValidateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ValidateUserReader

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

ValidateUserReader is a Reader for the ValidateUser structure.

func (*ValidateUserReader) ReadResponse

func (o *ValidateUserReader) 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