security_management_users

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangePasswordBadRequest

type ChangePasswordBadRequest struct {
}

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

Password was not supplied in the body of the request

func NewChangePasswordBadRequest

func NewChangePasswordBadRequest() *ChangePasswordBadRequest

NewChangePasswordBadRequest creates a ChangePasswordBadRequest with default headers values

func (*ChangePasswordBadRequest) Code

func (o *ChangePasswordBadRequest) Code() int

Code gets the status code for the change password bad request response

func (*ChangePasswordBadRequest) Error

func (o *ChangePasswordBadRequest) Error() string

func (*ChangePasswordBadRequest) IsClientError

func (o *ChangePasswordBadRequest) IsClientError() bool

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

func (*ChangePasswordBadRequest) IsCode

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

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

func (*ChangePasswordBadRequest) IsRedirect

func (o *ChangePasswordBadRequest) IsRedirect() bool

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

func (*ChangePasswordBadRequest) IsServerError

func (o *ChangePasswordBadRequest) IsServerError() bool

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

func (*ChangePasswordBadRequest) IsSuccess

func (o *ChangePasswordBadRequest) IsSuccess() bool

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

func (*ChangePasswordBadRequest) String

func (o *ChangePasswordBadRequest) String() string

type ChangePasswordForbidden

type ChangePasswordForbidden struct {
}

ChangePasswordForbidden describes a response with status code 403, with default header values.

The user does not have permission to perform the operation.

func NewChangePasswordForbidden

func NewChangePasswordForbidden() *ChangePasswordForbidden

NewChangePasswordForbidden creates a ChangePasswordForbidden with default headers values

func (*ChangePasswordForbidden) Code

func (o *ChangePasswordForbidden) Code() int

Code gets the status code for the change password forbidden response

func (*ChangePasswordForbidden) Error

func (o *ChangePasswordForbidden) Error() string

func (*ChangePasswordForbidden) IsClientError

func (o *ChangePasswordForbidden) IsClientError() bool

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

func (*ChangePasswordForbidden) IsCode

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

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

func (*ChangePasswordForbidden) IsRedirect

func (o *ChangePasswordForbidden) IsRedirect() bool

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

func (*ChangePasswordForbidden) IsServerError

func (o *ChangePasswordForbidden) IsServerError() bool

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

func (*ChangePasswordForbidden) IsSuccess

func (o *ChangePasswordForbidden) IsSuccess() bool

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

func (*ChangePasswordForbidden) String

func (o *ChangePasswordForbidden) String() string

type ChangePasswordNotFound

type ChangePasswordNotFound struct {
}

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

User not found in the system.

func NewChangePasswordNotFound

func NewChangePasswordNotFound() *ChangePasswordNotFound

NewChangePasswordNotFound creates a ChangePasswordNotFound with default headers values

func (*ChangePasswordNotFound) Code

func (o *ChangePasswordNotFound) Code() int

Code gets the status code for the change password not found response

func (*ChangePasswordNotFound) Error

func (o *ChangePasswordNotFound) Error() string

func (*ChangePasswordNotFound) IsClientError

func (o *ChangePasswordNotFound) IsClientError() bool

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

func (*ChangePasswordNotFound) IsCode

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

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

func (*ChangePasswordNotFound) IsRedirect

func (o *ChangePasswordNotFound) IsRedirect() bool

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

func (*ChangePasswordNotFound) IsServerError

func (o *ChangePasswordNotFound) IsServerError() bool

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

func (*ChangePasswordNotFound) IsSuccess

func (o *ChangePasswordNotFound) IsSuccess() bool

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

func (*ChangePasswordNotFound) String

func (o *ChangePasswordNotFound) String() string

type ChangePasswordParams

type ChangePasswordParams struct {

	/* Body.

	   The new password to use.
	*/
	Body string

	/* UserID.

	   The userid the request should apply to.
	*/
	UserID 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) SetBody

func (o *ChangePasswordParams) SetBody(body string)

SetBody adds the body to the change password params

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

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

SetTimeout adds the timeout to the change password params

func (*ChangePasswordParams) SetUserID

func (o *ChangePasswordParams) SetUserID(userID string)

SetUserID adds the userId to the change password params

func (*ChangePasswordParams) WithBody

WithBody adds the body 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) WithTimeout

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

WithTimeout adds the timeout to the change password params

func (*ChangePasswordParams) WithUserID

func (o *ChangePasswordParams) WithUserID(userID string) *ChangePasswordParams

WithUserID adds the userID 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 security management users API

func (*Client) ChangePassword

func (a *Client) ChangePassword(params *ChangePasswordParams, opts ...ClientOption) error

ChangePassword changes a user s password

func (*Client) CreateUser

func (a *Client) CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error)

CreateUser creates a new user in the default source

func (*Client) DeleteUser

func (a *Client) DeleteUser(params *DeleteUserParams, opts ...ClientOption) error

DeleteUser deletes a user

func (*Client) GetUsers

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

GetUsers retrieves a list of users note if the source is not default the response is limited to 100 users

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUser

func (a *Client) UpdateUser(params *UpdateUserParams, opts ...ClientOption) error

UpdateUser updates an existing user

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	ChangePassword(params *ChangePasswordParams, opts ...ClientOption) error

	CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error)

	DeleteUser(params *DeleteUserParams, opts ...ClientOption) error

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

	UpdateUser(params *UpdateUserParams, opts ...ClientOption) 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 security management users API client.

type CreateUserBadRequest

type CreateUserBadRequest struct {
}

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

Password was not supplied in the body of the request

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Code

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

func (o *CreateUserBadRequest) IsClientError() bool

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

func (*CreateUserBadRequest) IsCode

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

func (o *CreateUserBadRequest) IsRedirect() bool

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

func (*CreateUserBadRequest) IsServerError

func (o *CreateUserBadRequest) IsServerError() bool

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

func (*CreateUserBadRequest) IsSuccess

func (o *CreateUserBadRequest) IsSuccess() bool

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

func (*CreateUserBadRequest) String

func (o *CreateUserBadRequest) String() string

type CreateUserForbidden

type CreateUserForbidden struct {
}

CreateUserForbidden describes a response with status code 403, with default header values.

The user does not have permission to perform the operation.

func NewCreateUserForbidden

func NewCreateUserForbidden() *CreateUserForbidden

NewCreateUserForbidden creates a CreateUserForbidden with default headers values

func (*CreateUserForbidden) Code

func (o *CreateUserForbidden) Code() int

Code gets the status code for the create user forbidden response

func (*CreateUserForbidden) Error

func (o *CreateUserForbidden) Error() string

func (*CreateUserForbidden) IsClientError

func (o *CreateUserForbidden) IsClientError() bool

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

func (*CreateUserForbidden) IsCode

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

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

func (*CreateUserForbidden) IsRedirect

func (o *CreateUserForbidden) IsRedirect() bool

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

func (*CreateUserForbidden) IsServerError

func (o *CreateUserForbidden) IsServerError() bool

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

func (*CreateUserForbidden) IsSuccess

func (o *CreateUserForbidden) IsSuccess() bool

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

func (*CreateUserForbidden) String

func (o *CreateUserForbidden) String() string

type CreateUserOK

type CreateUserOK struct {
	Payload *models.APIUser
}

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

successful operation

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates a CreateUserOK with default headers values

func (*CreateUserOK) Code

func (o *CreateUserOK) Code() int

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

func (*CreateUserOK) Error

func (o *CreateUserOK) Error() string

func (*CreateUserOK) GetPayload

func (o *CreateUserOK) GetPayload() *models.APIUser

func (*CreateUserOK) IsClientError

func (o *CreateUserOK) IsClientError() bool

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

func (*CreateUserOK) IsCode

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

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

func (*CreateUserOK) IsRedirect

func (o *CreateUserOK) IsRedirect() bool

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

func (*CreateUserOK) IsServerError

func (o *CreateUserOK) IsServerError() bool

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

func (*CreateUserOK) IsSuccess

func (o *CreateUserOK) IsSuccess() bool

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

func (*CreateUserOK) String

func (o *CreateUserOK) String() string

type CreateUserParams

type CreateUserParams struct {

	/* Body.

	   A representation of the user to create.
	*/
	Body *models.APICreateUser

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

func (o *CreateUserParams) SetBody(body *models.APICreateUser)

SetBody adds the body to the create user params

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

WithBody adds the body 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) 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 DeleteUserBadRequest

type DeleteUserBadRequest struct {
}

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

There was problem deleting a user. Consult the response body for more details

func NewDeleteUserBadRequest

func NewDeleteUserBadRequest() *DeleteUserBadRequest

NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values

func (*DeleteUserBadRequest) Code

func (o *DeleteUserBadRequest) Code() int

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

func (*DeleteUserBadRequest) Error

func (o *DeleteUserBadRequest) Error() string

func (*DeleteUserBadRequest) IsClientError

func (o *DeleteUserBadRequest) IsClientError() bool

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

func (*DeleteUserBadRequest) IsCode

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

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

func (*DeleteUserBadRequest) IsRedirect

func (o *DeleteUserBadRequest) IsRedirect() bool

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

func (*DeleteUserBadRequest) IsServerError

func (o *DeleteUserBadRequest) IsServerError() bool

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

func (*DeleteUserBadRequest) IsSuccess

func (o *DeleteUserBadRequest) IsSuccess() bool

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

func (*DeleteUserBadRequest) String

func (o *DeleteUserBadRequest) String() string

type DeleteUserForbidden

type DeleteUserForbidden struct {
}

DeleteUserForbidden describes a response with status code 403, with default header values.

The user does not have permission to perform the operation.

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) Code

func (o *DeleteUserForbidden) Code() int

Code gets the status code for the delete user forbidden response

func (*DeleteUserForbidden) Error

func (o *DeleteUserForbidden) Error() string

func (*DeleteUserForbidden) IsClientError

func (o *DeleteUserForbidden) IsClientError() bool

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

func (*DeleteUserForbidden) IsCode

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

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

func (*DeleteUserForbidden) IsRedirect

func (o *DeleteUserForbidden) IsRedirect() bool

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

func (*DeleteUserForbidden) IsServerError

func (o *DeleteUserForbidden) IsServerError() bool

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

func (*DeleteUserForbidden) IsSuccess

func (o *DeleteUserForbidden) IsSuccess() bool

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

func (*DeleteUserForbidden) String

func (o *DeleteUserForbidden) String() string

type DeleteUserNotFound

type DeleteUserNotFound struct {
}

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

User or user source not found in the system.

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Code

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

func (o *DeleteUserNotFound) IsClientError() bool

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

func (*DeleteUserNotFound) IsCode

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

func (o *DeleteUserNotFound) IsRedirect() bool

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

func (*DeleteUserNotFound) IsServerError

func (o *DeleteUserNotFound) IsServerError() bool

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

func (*DeleteUserNotFound) IsSuccess

func (o *DeleteUserNotFound) IsSuccess() bool

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

func (*DeleteUserNotFound) String

func (o *DeleteUserNotFound) String() string

type DeleteUserParams

type DeleteUserParams struct {

	/* UserID.

	   The userid the request should apply to.
	*/
	UserID string

	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

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

func (o *DeleteUserParams) SetUserID(userID string)

SetUserID adds the userId 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

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

func (o *DeleteUserParams) WithUserID(userID string) *DeleteUserParams

WithUserID adds the userID 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 GetUsersBadRequest

type GetUsersBadRequest struct {
}

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

Password was not supplied in the body of the request

func NewGetUsersBadRequest

func NewGetUsersBadRequest() *GetUsersBadRequest

NewGetUsersBadRequest creates a GetUsersBadRequest with default headers values

func (*GetUsersBadRequest) Code

func (o *GetUsersBadRequest) Code() int

Code gets the status code for the get users bad request response

func (*GetUsersBadRequest) Error

func (o *GetUsersBadRequest) Error() string

func (*GetUsersBadRequest) IsClientError

func (o *GetUsersBadRequest) IsClientError() bool

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

func (*GetUsersBadRequest) IsCode

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

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

func (*GetUsersBadRequest) IsRedirect

func (o *GetUsersBadRequest) IsRedirect() bool

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

func (*GetUsersBadRequest) IsServerError

func (o *GetUsersBadRequest) IsServerError() bool

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

func (*GetUsersBadRequest) IsSuccess

func (o *GetUsersBadRequest) IsSuccess() bool

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

func (*GetUsersBadRequest) String

func (o *GetUsersBadRequest) String() string

type GetUsersForbidden

type GetUsersForbidden struct {
}

GetUsersForbidden describes a response with status code 403, with default header values.

The user does not have permission to perform the operation.

func NewGetUsersForbidden

func NewGetUsersForbidden() *GetUsersForbidden

NewGetUsersForbidden creates a GetUsersForbidden with default headers values

func (*GetUsersForbidden) Code

func (o *GetUsersForbidden) Code() int

Code gets the status code for the get users forbidden response

func (*GetUsersForbidden) Error

func (o *GetUsersForbidden) Error() string

func (*GetUsersForbidden) IsClientError

func (o *GetUsersForbidden) IsClientError() bool

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

func (*GetUsersForbidden) IsCode

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

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

func (*GetUsersForbidden) IsRedirect

func (o *GetUsersForbidden) IsRedirect() bool

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

func (*GetUsersForbidden) IsServerError

func (o *GetUsersForbidden) IsServerError() bool

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

func (*GetUsersForbidden) IsSuccess

func (o *GetUsersForbidden) IsSuccess() bool

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

func (*GetUsersForbidden) String

func (o *GetUsersForbidden) String() string

type GetUsersOK

type GetUsersOK struct {
	Payload []*models.APIUser
}

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

func (o *GetUsersOK) Code() int

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

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

func (*GetUsersOK) GetPayload

func (o *GetUsersOK) GetPayload() []*models.APIUser

func (*GetUsersOK) IsClientError

func (o *GetUsersOK) IsClientError() bool

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

func (*GetUsersOK) IsCode

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

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

func (*GetUsersOK) IsRedirect

func (o *GetUsersOK) IsRedirect() bool

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

func (*GetUsersOK) IsServerError

func (o *GetUsersOK) IsServerError() bool

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

func (*GetUsersOK) IsSuccess

func (o *GetUsersOK) IsSuccess() bool

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

func (*GetUsersOK) String

func (o *GetUsersOK) String() string

type GetUsersParams

type GetUsersParams struct {

	/* Source.

	   An optional user source to restrict the search to.
	*/
	Source *string

	/* UserID.

	   An optional term to search userids for.
	*/
	UserID *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

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

func (o *GetUsersParams) SetSource(source *string)

SetSource adds the source 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) SetUserID

func (o *GetUsersParams) SetUserID(userID *string)

SetUserID adds the userId to the get users params

func (*GetUsersParams) WithContext

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

WithContext adds the context to the get users params

func (*GetUsersParams) WithDefaults

func (o *GetUsersParams) WithDefaults() *GetUsersParams

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

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

func (*GetUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithSource

func (o *GetUsersParams) WithSource(source *string) *GetUsersParams

WithSource adds the source 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) WithUserID

func (o *GetUsersParams) WithUserID(userID *string) *GetUsersParams

WithUserID adds the userID 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 UpdateUserBadRequest

type UpdateUserBadRequest struct {
}

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

Password was not supplied in the body of the request

func NewUpdateUserBadRequest

func NewUpdateUserBadRequest() *UpdateUserBadRequest

NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values

func (*UpdateUserBadRequest) Code

func (o *UpdateUserBadRequest) Code() int

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

func (*UpdateUserBadRequest) Error

func (o *UpdateUserBadRequest) Error() string

func (*UpdateUserBadRequest) IsClientError

func (o *UpdateUserBadRequest) IsClientError() bool

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

func (*UpdateUserBadRequest) IsCode

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

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

func (*UpdateUserBadRequest) IsRedirect

func (o *UpdateUserBadRequest) IsRedirect() bool

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

func (*UpdateUserBadRequest) IsServerError

func (o *UpdateUserBadRequest) IsServerError() bool

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

func (*UpdateUserBadRequest) IsSuccess

func (o *UpdateUserBadRequest) IsSuccess() bool

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

func (*UpdateUserBadRequest) String

func (o *UpdateUserBadRequest) String() string

type UpdateUserForbidden

type UpdateUserForbidden struct {
}

UpdateUserForbidden describes a response with status code 403, with default header values.

The user does not have permission to perform the operation.

func NewUpdateUserForbidden

func NewUpdateUserForbidden() *UpdateUserForbidden

NewUpdateUserForbidden creates a UpdateUserForbidden with default headers values

func (*UpdateUserForbidden) Code

func (o *UpdateUserForbidden) Code() int

Code gets the status code for the update user forbidden response

func (*UpdateUserForbidden) Error

func (o *UpdateUserForbidden) Error() string

func (*UpdateUserForbidden) IsClientError

func (o *UpdateUserForbidden) IsClientError() bool

IsClientError returns true when this update user forbidden response has a 4xx status code

func (*UpdateUserForbidden) IsCode

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

IsCode returns true when this update user forbidden response a status code equal to that given

func (*UpdateUserForbidden) IsRedirect

func (o *UpdateUserForbidden) IsRedirect() bool

IsRedirect returns true when this update user forbidden response has a 3xx status code

func (*UpdateUserForbidden) IsServerError

func (o *UpdateUserForbidden) IsServerError() bool

IsServerError returns true when this update user forbidden response has a 5xx status code

func (*UpdateUserForbidden) IsSuccess

func (o *UpdateUserForbidden) IsSuccess() bool

IsSuccess returns true when this update user forbidden response has a 2xx status code

func (*UpdateUserForbidden) String

func (o *UpdateUserForbidden) String() string

type UpdateUserNotFound

type UpdateUserNotFound struct {
}

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

User or user source not found in the system.

func NewUpdateUserNotFound

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) Code

func (o *UpdateUserNotFound) Code() int

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

func (*UpdateUserNotFound) Error

func (o *UpdateUserNotFound) Error() string

func (*UpdateUserNotFound) IsClientError

func (o *UpdateUserNotFound) IsClientError() bool

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

func (*UpdateUserNotFound) IsCode

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

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

func (*UpdateUserNotFound) IsRedirect

func (o *UpdateUserNotFound) IsRedirect() bool

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

func (*UpdateUserNotFound) IsServerError

func (o *UpdateUserNotFound) IsServerError() bool

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

func (*UpdateUserNotFound) IsSuccess

func (o *UpdateUserNotFound) IsSuccess() bool

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

func (*UpdateUserNotFound) String

func (o *UpdateUserNotFound) String() string

type UpdateUserParams

type UpdateUserParams struct {

	/* Body.

	   A representation of the user to update.
	*/
	Body *models.APIUser

	/* UserID.

	   The userid the request should apply to.
	*/
	UserID string

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

UpdateUserParams contains all the parameters to send to the API endpoint

for the update user operation.

Typically these are written to a http.Request.

func NewUpdateUserParams

func NewUpdateUserParams() *UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the ability to set a context for a request.

func NewUpdateUserParamsWithHTTPClient

func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams

NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserParamsWithTimeout

func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams

NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the ability to set a timeout on a request.

func (*UpdateUserParams) SetBody

func (o *UpdateUserParams) SetBody(body *models.APIUser)

SetBody adds the body to the update user params

func (*UpdateUserParams) SetContext

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

SetContext adds the context to the update user params

func (*UpdateUserParams) SetDefaults

func (o *UpdateUserParams) SetDefaults()

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

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

func (*UpdateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) SetTimeout

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

SetTimeout adds the timeout to the update user params

func (*UpdateUserParams) SetUserID

func (o *UpdateUserParams) SetUserID(userID string)

SetUserID adds the userId to the update user params

func (*UpdateUserParams) WithBody

func (o *UpdateUserParams) WithBody(body *models.APIUser) *UpdateUserParams

WithBody adds the body to the update user params

func (*UpdateUserParams) WithContext

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

WithContext adds the context to the update user params

func (*UpdateUserParams) WithDefaults

func (o *UpdateUserParams) WithDefaults() *UpdateUserParams

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

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

func (*UpdateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) WithTimeout

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

WithTimeout adds the timeout to the update user params

func (*UpdateUserParams) WithUserID

func (o *UpdateUserParams) WithUserID(userID string) *UpdateUserParams

WithUserID adds the userID to the update user params

func (*UpdateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserReader

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

UpdateUserReader is a Reader for the UpdateUser structure.

func (*UpdateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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