operations

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 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 ChangePasswordBadRequest

type ChangePasswordBadRequest struct {
}

ChangePasswordBadRequest handles this case with default header values.

The new password is missing, or the old password is missing or incorrect.

func NewChangePasswordBadRequest

func NewChangePasswordBadRequest() *ChangePasswordBadRequest

NewChangePasswordBadRequest creates a ChangePasswordBadRequest with default headers values

func (*ChangePasswordBadRequest) Error

func (o *ChangePasswordBadRequest) Error() string

type ChangePasswordForbidden

type ChangePasswordForbidden struct {
}

ChangePasswordForbidden handles this case with default header values.

The requesting user has insufficient privileges to update the password for the given user.

func NewChangePasswordForbidden

func NewChangePasswordForbidden() *ChangePasswordForbidden

NewChangePasswordForbidden creates a ChangePasswordForbidden with default headers values

func (*ChangePasswordForbidden) Error

func (o *ChangePasswordForbidden) Error() string

type ChangePasswordNoContent

type ChangePasswordNoContent struct {
}

ChangePasswordNoContent handles this case with default header values.

The password was successfully updated. Subsequent requests must be made with the new password.

func NewChangePasswordNoContent

func NewChangePasswordNoContent() *ChangePasswordNoContent

NewChangePasswordNoContent creates a ChangePasswordNoContent with default headers values

func (*ChangePasswordNoContent) Error

func (o *ChangePasswordNoContent) Error() string

type ChangePasswordNotFound

type ChangePasswordNotFound struct {
}

ChangePasswordNotFound handles this case with default header values.

User does not exist.

func NewChangePasswordNotFound

func NewChangePasswordNotFound() *ChangePasswordNotFound

NewChangePasswordNotFound creates a ChangePasswordNotFound with default headers values

func (*ChangePasswordNotFound) Error

func (o *ChangePasswordNotFound) Error() string

type ChangePasswordOK

type ChangePasswordOK struct {
}

ChangePasswordOK handles this case with default header values.

No response was specified

func NewChangePasswordOK

func NewChangePasswordOK() *ChangePasswordOK

NewChangePasswordOK creates a ChangePasswordOK with default headers values

func (*ChangePasswordOK) Error

func (o *ChangePasswordOK) Error() string

type ChangePasswordParams

type ChangePasswordParams struct {

	/*JSONBody
	  The old and new passwords.

	*/
	JSONBody *models.ChangePasswordRequest
	/*Username
	  The name of the user whose password to change.

	*/
	Username 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 values initialized.

func NewChangePasswordParamsWithContext

func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams

NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) SetJSONBody

func (o *ChangePasswordParams) SetJSONBody(jSONBody *models.ChangePasswordRequest)

SetJSONBody adds the jsonBody 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) SetUsername

func (o *ChangePasswordParams) SetUsername(username string)

SetUsername adds the username to the change password params

func (*ChangePasswordParams) WithContext

WithContext adds the context to the change password params

func (*ChangePasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) WithJSONBody

WithJSONBody adds the jSONBody 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) WithUsername

func (o *ChangePasswordParams) WithUsername(username string) *ChangePasswordParams

WithUsername adds the username 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 ChangeUserBadRequest

type ChangeUserBadRequest struct {
}

ChangeUserBadRequest handles this case with default header values.

Missing or invalid user details.

func NewChangeUserBadRequest

func NewChangeUserBadRequest() *ChangeUserBadRequest

NewChangeUserBadRequest creates a ChangeUserBadRequest with default headers values

func (*ChangeUserBadRequest) Error

func (o *ChangeUserBadRequest) Error() string

type ChangeUserOK

type ChangeUserOK struct {
}

ChangeUserOK handles this case with default header values.

No response was specified

func NewChangeUserOK

func NewChangeUserOK() *ChangeUserOK

NewChangeUserOK creates a ChangeUserOK with default headers values

func (*ChangeUserOK) Error

func (o *ChangeUserOK) Error() string

type ChangeUserParams

type ChangeUserParams struct {

	/*JSONBody
	  Updated user information.

	*/
	JSONBody *models.ChangeUserRequest
	/*Username
	  The name of the user to modify.

	*/
	Username string

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

ChangeUserParams contains all the parameters to send to the API endpoint for the change user operation typically these are written to a http.Request

func NewChangeUserParams

func NewChangeUserParams() *ChangeUserParams

NewChangeUserParams creates a new ChangeUserParams object with the default values initialized.

func NewChangeUserParamsWithContext

func NewChangeUserParamsWithContext(ctx context.Context) *ChangeUserParams

NewChangeUserParamsWithContext creates a new ChangeUserParams object with the default values initialized, and the ability to set a context for a request

func NewChangeUserParamsWithHTTPClient

func NewChangeUserParamsWithHTTPClient(client *http.Client) *ChangeUserParams

NewChangeUserParamsWithHTTPClient creates a new ChangeUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewChangeUserParamsWithTimeout

func NewChangeUserParamsWithTimeout(timeout time.Duration) *ChangeUserParams

NewChangeUserParamsWithTimeout creates a new ChangeUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*ChangeUserParams) SetContext

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

SetContext adds the context to the change user params

func (*ChangeUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the change user params

func (*ChangeUserParams) SetJSONBody

func (o *ChangeUserParams) SetJSONBody(jSONBody *models.ChangeUserRequest)

SetJSONBody adds the jsonBody to the change user params

func (*ChangeUserParams) SetTimeout

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

SetTimeout adds the timeout to the change user params

func (*ChangeUserParams) SetUsername

func (o *ChangeUserParams) SetUsername(username string)

SetUsername adds the username to the change user params

func (*ChangeUserParams) WithContext

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

WithContext adds the context to the change user params

func (*ChangeUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the change user params

func (*ChangeUserParams) WithJSONBody

func (o *ChangeUserParams) WithJSONBody(jSONBody *models.ChangeUserRequest) *ChangeUserParams

WithJSONBody adds the jSONBody to the change user params

func (*ChangeUserParams) WithTimeout

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

WithTimeout adds the timeout to the change user params

func (*ChangeUserParams) WithUsername

func (o *ChangeUserParams) WithUsername(username string) *ChangeUserParams

WithUsername adds the username to the change user params

func (*ChangeUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChangeUserReader

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

ChangeUserReader is a Reader for the ChangeUser structure.

func (*ChangeUserReader) ReadResponse

func (o *ChangeUserReader) 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 operations API

func New

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

New creates a new operations API client.

func (*Client) ChangePassword

ChangePassword updates the password for a user

func (*Client) ChangeUser

func (a *Client) ChangeUser(params *ChangeUserParams, authInfo runtime.ClientAuthInfoWriter) (*ChangeUserOK, error)

ChangeUser modifies user details

func (*Client) EditPermissions

func (a *Client) EditPermissions(params *EditPermissionsParams, authInfo runtime.ClientAuthInfoWriter) (*EditPermissionsOK, error)

EditPermissions updates a user s permission set

func (*Client) GenerateNewToken

func (a *Client) GenerateNewToken(params *GenerateNewTokenParams, authInfo runtime.ClientAuthInfoWriter) (*GenerateNewTokenOK, error)

GenerateNewToken generates a new access token for a user

func (*Client) ListTokens

func (a *Client) ListTokens(params *ListTokensParams, authInfo runtime.ClientAuthInfoWriter) (*ListTokensOK, error)

ListTokens retrieves the list of access tokens for a user

func (*Client) ListUsers

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

ListUsers lists all users

The permissions assigned to the users are always included.

func (*Client) RevokeToken

func (a *Client) RevokeToken(params *RevokeTokenParams, authInfo runtime.ClientAuthInfoWriter) (*RevokeTokenOK, error)

RevokeToken removes a token for a user

func (*Client) SavePreferences

func (a *Client) SavePreferences(params *SavePreferencesParams, authInfo runtime.ClientAuthInfoWriter) (*SavePreferencesOK, error)

SavePreferences updates a user s preferences set

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateBadRequest

type CreateBadRequest struct {
}

CreateBadRequest handles this case with default header values.

Missing or invalid user details.

func NewCreateBadRequest

func NewCreateBadRequest() *CreateBadRequest

NewCreateBadRequest creates a CreateBadRequest with default headers values

func (*CreateBadRequest) Error

func (o *CreateBadRequest) Error() string

type CreateOK

type CreateOK struct {
}

CreateOK handles this case with default header values.

No response was specified

func NewCreateOK

func NewCreateOK() *CreateOK

NewCreateOK creates a CreateOK with default headers values

func (*CreateOK) Error

func (o *CreateOK) Error() string

type CreateParams

type CreateParams struct {

	/*JSONBody
	  Must contain username, full_name, email, password and a list of permissions.

	*/
	JSONBody *models.CreateUserRequest

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

CreateParams contains all the parameters to send to the API endpoint for the create operation typically these are written to a http.Request

func NewCreateParams

func NewCreateParams() *CreateParams

NewCreateParams creates a new CreateParams object with the default values initialized.

func NewCreateParamsWithContext

func NewCreateParamsWithContext(ctx context.Context) *CreateParams

NewCreateParamsWithContext creates a new CreateParams object with the default values initialized, and the ability to set a context for a request

func NewCreateParamsWithHTTPClient

func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams

NewCreateParamsWithHTTPClient creates a new CreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateParamsWithTimeout

func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams

NewCreateParamsWithTimeout creates a new CreateParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateParams) SetContext

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

SetContext adds the context to the create params

func (*CreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create params

func (*CreateParams) SetJSONBody

func (o *CreateParams) SetJSONBody(jSONBody *models.CreateUserRequest)

SetJSONBody adds the jsonBody to the create params

func (*CreateParams) SetTimeout

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

SetTimeout adds the timeout to the create params

func (*CreateParams) WithContext

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

WithContext adds the context to the create params

func (*CreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create params

func (*CreateParams) WithJSONBody

func (o *CreateParams) WithJSONBody(jSONBody *models.CreateUserRequest) *CreateParams

WithJSONBody adds the jSONBody to the create params

func (*CreateParams) WithTimeout

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

WithTimeout adds the timeout to the create params

func (*CreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateReader

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

CreateReader is a Reader for the Create structure.

func (*CreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePermissionsInternalServerError

type DeletePermissionsInternalServerError struct {
}

DeletePermissionsInternalServerError handles this case with default header values.

When saving the user failed.

func NewDeletePermissionsInternalServerError

func NewDeletePermissionsInternalServerError() *DeletePermissionsInternalServerError

NewDeletePermissionsInternalServerError creates a DeletePermissionsInternalServerError with default headers values

func (*DeletePermissionsInternalServerError) Error

type DeletePermissionsOK

type DeletePermissionsOK struct {
}

DeletePermissionsOK handles this case with default header values.

No response was specified

func NewDeletePermissionsOK

func NewDeletePermissionsOK() *DeletePermissionsOK

NewDeletePermissionsOK creates a DeletePermissionsOK with default headers values

func (*DeletePermissionsOK) Error

func (o *DeletePermissionsOK) Error() string

type DeletePermissionsParams

type DeletePermissionsParams struct {

	/*Username
	  The name of the user to modify.

	*/
	Username string

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

DeletePermissionsParams contains all the parameters to send to the API endpoint for the delete permissions operation typically these are written to a http.Request

func NewDeletePermissionsParams

func NewDeletePermissionsParams() *DeletePermissionsParams

NewDeletePermissionsParams creates a new DeletePermissionsParams object with the default values initialized.

func NewDeletePermissionsParamsWithContext

func NewDeletePermissionsParamsWithContext(ctx context.Context) *DeletePermissionsParams

NewDeletePermissionsParamsWithContext creates a new DeletePermissionsParams object with the default values initialized, and the ability to set a context for a request

func NewDeletePermissionsParamsWithHTTPClient

func NewDeletePermissionsParamsWithHTTPClient(client *http.Client) *DeletePermissionsParams

NewDeletePermissionsParamsWithHTTPClient creates a new DeletePermissionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeletePermissionsParamsWithTimeout

func NewDeletePermissionsParamsWithTimeout(timeout time.Duration) *DeletePermissionsParams

NewDeletePermissionsParamsWithTimeout creates a new DeletePermissionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeletePermissionsParams) SetContext

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

SetContext adds the context to the delete permissions params

func (*DeletePermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete permissions params

func (*DeletePermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the delete permissions params

func (*DeletePermissionsParams) SetUsername

func (o *DeletePermissionsParams) SetUsername(username string)

SetUsername adds the username to the delete permissions params

func (*DeletePermissionsParams) WithContext

WithContext adds the context to the delete permissions params

func (*DeletePermissionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete permissions params

func (*DeletePermissionsParams) WithTimeout

WithTimeout adds the timeout to the delete permissions params

func (*DeletePermissionsParams) WithUsername

func (o *DeletePermissionsParams) WithUsername(username string) *DeletePermissionsParams

WithUsername adds the username to the delete permissions params

func (*DeletePermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePermissionsReader

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

DeletePermissionsReader is a Reader for the DeletePermissions structure.

func (*DeletePermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteUserBadRequest

type DeleteUserBadRequest struct {
}

DeleteUserBadRequest handles this case with default header values.

When attempting to remove a read only user (e.g. built-in or LDAP user).

func NewDeleteUserBadRequest

func NewDeleteUserBadRequest() *DeleteUserBadRequest

NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values

func (*DeleteUserBadRequest) Error

func (o *DeleteUserBadRequest) Error() string

type DeleteUserOK

type DeleteUserOK struct {
}

DeleteUserOK handles this case with default header values.

No response was specified

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

type DeleteUserParams

type DeleteUserParams struct {

	/*Username
	  The name of the user to delete.

	*/
	Username 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 values initialized.

func NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteUserParamsWithHTTPClient

func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams

NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteUserParamsWithTimeout

func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams

NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteUserParams) SetContext

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

SetContext adds the context to the delete user params

func (*DeleteUserParams) 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) SetUsername

func (o *DeleteUserParams) SetUsername(username string)

SetUsername adds the username 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) 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) WithUsername

func (o *DeleteUserParams) WithUsername(username string) *DeleteUserParams

WithUsername adds the username 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 EditPermissionsBadRequest

type EditPermissionsBadRequest struct {
}

EditPermissionsBadRequest handles this case with default header values.

Missing or invalid permission data.

func NewEditPermissionsBadRequest

func NewEditPermissionsBadRequest() *EditPermissionsBadRequest

NewEditPermissionsBadRequest creates a EditPermissionsBadRequest with default headers values

func (*EditPermissionsBadRequest) Error

func (o *EditPermissionsBadRequest) Error() string

type EditPermissionsOK

type EditPermissionsOK struct {
}

EditPermissionsOK handles this case with default header values.

No response was specified

func NewEditPermissionsOK

func NewEditPermissionsOK() *EditPermissionsOK

NewEditPermissionsOK creates a EditPermissionsOK with default headers values

func (*EditPermissionsOK) Error

func (o *EditPermissionsOK) Error() string

type EditPermissionsParams

type EditPermissionsParams struct {

	/*JSONBody
	  The list of permissions to assign to the user.

	*/
	JSONBody *models.PermissionEditRequest
	/*Username
	  The name of the user to modify.

	*/
	Username string

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

EditPermissionsParams contains all the parameters to send to the API endpoint for the edit permissions operation typically these are written to a http.Request

func NewEditPermissionsParams

func NewEditPermissionsParams() *EditPermissionsParams

NewEditPermissionsParams creates a new EditPermissionsParams object with the default values initialized.

func NewEditPermissionsParamsWithContext

func NewEditPermissionsParamsWithContext(ctx context.Context) *EditPermissionsParams

NewEditPermissionsParamsWithContext creates a new EditPermissionsParams object with the default values initialized, and the ability to set a context for a request

func NewEditPermissionsParamsWithHTTPClient

func NewEditPermissionsParamsWithHTTPClient(client *http.Client) *EditPermissionsParams

NewEditPermissionsParamsWithHTTPClient creates a new EditPermissionsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewEditPermissionsParamsWithTimeout

func NewEditPermissionsParamsWithTimeout(timeout time.Duration) *EditPermissionsParams

NewEditPermissionsParamsWithTimeout creates a new EditPermissionsParams object with the default values initialized, and the ability to set a timeout on a request

func (*EditPermissionsParams) SetContext

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

SetContext adds the context to the edit permissions params

func (*EditPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the edit permissions params

func (*EditPermissionsParams) SetJSONBody

func (o *EditPermissionsParams) SetJSONBody(jSONBody *models.PermissionEditRequest)

SetJSONBody adds the jsonBody to the edit permissions params

func (*EditPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the edit permissions params

func (*EditPermissionsParams) SetUsername

func (o *EditPermissionsParams) SetUsername(username string)

SetUsername adds the username to the edit permissions params

func (*EditPermissionsParams) WithContext

WithContext adds the context to the edit permissions params

func (*EditPermissionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the edit permissions params

func (*EditPermissionsParams) WithJSONBody

WithJSONBody adds the jSONBody to the edit permissions params

func (*EditPermissionsParams) WithTimeout

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

WithTimeout adds the timeout to the edit permissions params

func (*EditPermissionsParams) WithUsername

func (o *EditPermissionsParams) WithUsername(username string) *EditPermissionsParams

WithUsername adds the username to the edit permissions params

func (*EditPermissionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type EditPermissionsReader

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

EditPermissionsReader is a Reader for the EditPermissions structure.

func (*EditPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GenerateNewTokenOK

type GenerateNewTokenOK struct {
	Payload *models.Token
}

GenerateNewTokenOK handles this case with default header values.

No response was specified

func NewGenerateNewTokenOK

func NewGenerateNewTokenOK() *GenerateNewTokenOK

NewGenerateNewTokenOK creates a GenerateNewTokenOK with default headers values

func (*GenerateNewTokenOK) Error

func (o *GenerateNewTokenOK) Error() string

type GenerateNewTokenParams

type GenerateNewTokenParams struct {

	/*JSONBody
	  Placeholder because POST requests should have a body. Set to '{}', the content will be ignored.

	*/
	JSONBody *string
	/*Name
	  Descriptive name for this token (e.g. 'cronjob')

	*/
	Name string
	/*Username*/
	Username string

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

GenerateNewTokenParams contains all the parameters to send to the API endpoint for the generate new token operation typically these are written to a http.Request

func NewGenerateNewTokenParams

func NewGenerateNewTokenParams() *GenerateNewTokenParams

NewGenerateNewTokenParams creates a new GenerateNewTokenParams object with the default values initialized.

func NewGenerateNewTokenParamsWithContext

func NewGenerateNewTokenParamsWithContext(ctx context.Context) *GenerateNewTokenParams

NewGenerateNewTokenParamsWithContext creates a new GenerateNewTokenParams object with the default values initialized, and the ability to set a context for a request

func NewGenerateNewTokenParamsWithHTTPClient

func NewGenerateNewTokenParamsWithHTTPClient(client *http.Client) *GenerateNewTokenParams

NewGenerateNewTokenParamsWithHTTPClient creates a new GenerateNewTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGenerateNewTokenParamsWithTimeout

func NewGenerateNewTokenParamsWithTimeout(timeout time.Duration) *GenerateNewTokenParams

NewGenerateNewTokenParamsWithTimeout creates a new GenerateNewTokenParams object with the default values initialized, and the ability to set a timeout on a request

func (*GenerateNewTokenParams) SetContext

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

SetContext adds the context to the generate new token params

func (*GenerateNewTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the generate new token params

func (*GenerateNewTokenParams) SetJSONBody

func (o *GenerateNewTokenParams) SetJSONBody(jSONBody *string)

SetJSONBody adds the jsonBody to the generate new token params

func (*GenerateNewTokenParams) SetName

func (o *GenerateNewTokenParams) SetName(name string)

SetName adds the name to the generate new token params

func (*GenerateNewTokenParams) SetTimeout

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

SetTimeout adds the timeout to the generate new token params

func (*GenerateNewTokenParams) SetUsername

func (o *GenerateNewTokenParams) SetUsername(username string)

SetUsername adds the username to the generate new token params

func (*GenerateNewTokenParams) WithContext

WithContext adds the context to the generate new token params

func (*GenerateNewTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the generate new token params

func (*GenerateNewTokenParams) WithJSONBody

func (o *GenerateNewTokenParams) WithJSONBody(jSONBody *string) *GenerateNewTokenParams

WithJSONBody adds the jSONBody to the generate new token params

func (*GenerateNewTokenParams) WithName

WithName adds the name to the generate new token params

func (*GenerateNewTokenParams) WithTimeout

WithTimeout adds the timeout to the generate new token params

func (*GenerateNewTokenParams) WithUsername

func (o *GenerateNewTokenParams) WithUsername(username string) *GenerateNewTokenParams

WithUsername adds the username to the generate new token params

func (*GenerateNewTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GenerateNewTokenReader

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

GenerateNewTokenReader is a Reader for the GenerateNewToken structure.

func (*GenerateNewTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNotFound

type GetNotFound struct {
}

GetNotFound handles this case with default header values.

The user could not be found.

func NewGetNotFound

func NewGetNotFound() *GetNotFound

NewGetNotFound creates a GetNotFound with default headers values

func (*GetNotFound) Error

func (o *GetNotFound) Error() string

type GetOK

type GetOK struct {
	Payload *models.UserSummary
}

GetOK handles this case with default header values.

No response was specified

func NewGetOK

func NewGetOK() *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Error

func (o *GetOK) Error() string

type GetParams

type GetParams struct {

	/*Username
	  The username to return information for.

	*/
	Username string

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

GetParams contains all the parameters to send to the API endpoint for the get operation typically these are written to a http.Request

func NewGetParams

func NewGetParams() *GetParams

NewGetParams creates a new GetParams object with the default values initialized.

func NewGetParamsWithContext

func NewGetParamsWithContext(ctx context.Context) *GetParams

NewGetParamsWithContext creates a new GetParams object with the default values initialized, and the ability to set a context for a request

func NewGetParamsWithHTTPClient

func NewGetParamsWithHTTPClient(client *http.Client) *GetParams

NewGetParamsWithHTTPClient creates a new GetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetParamsWithTimeout

func NewGetParamsWithTimeout(timeout time.Duration) *GetParams

NewGetParamsWithTimeout creates a new GetParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetParams) SetContext

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

SetContext adds the context to the get params

func (*GetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get params

func (*GetParams) SetTimeout

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

SetTimeout adds the timeout to the get params

func (*GetParams) SetUsername

func (o *GetParams) SetUsername(username string)

SetUsername adds the username to the get params

func (*GetParams) WithContext

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

WithContext adds the context to the get params

func (*GetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get params

func (*GetParams) WithTimeout

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

WithTimeout adds the timeout to the get params

func (*GetParams) WithUsername

func (o *GetParams) WithUsername(username string) *GetParams

WithUsername adds the username to the get params

func (*GetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReader

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

GetReader is a Reader for the Get structure.

func (*GetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTokensOK

type ListTokensOK struct {
	Payload *models.TokenList
}

ListTokensOK handles this case with default header values.

No response was specified

func NewListTokensOK

func NewListTokensOK() *ListTokensOK

NewListTokensOK creates a ListTokensOK with default headers values

func (*ListTokensOK) Error

func (o *ListTokensOK) Error() string

type ListTokensParams

type ListTokensParams struct {

	/*Username*/
	Username string

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

ListTokensParams contains all the parameters to send to the API endpoint for the list tokens operation typically these are written to a http.Request

func NewListTokensParams

func NewListTokensParams() *ListTokensParams

NewListTokensParams creates a new ListTokensParams object with the default values initialized.

func NewListTokensParamsWithContext

func NewListTokensParamsWithContext(ctx context.Context) *ListTokensParams

NewListTokensParamsWithContext creates a new ListTokensParams object with the default values initialized, and the ability to set a context for a request

func NewListTokensParamsWithHTTPClient

func NewListTokensParamsWithHTTPClient(client *http.Client) *ListTokensParams

NewListTokensParamsWithHTTPClient creates a new ListTokensParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListTokensParamsWithTimeout

func NewListTokensParamsWithTimeout(timeout time.Duration) *ListTokensParams

NewListTokensParamsWithTimeout creates a new ListTokensParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListTokensParams) SetContext

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

SetContext adds the context to the list tokens params

func (*ListTokensParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list tokens params

func (*ListTokensParams) SetTimeout

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

SetTimeout adds the timeout to the list tokens params

func (*ListTokensParams) SetUsername

func (o *ListTokensParams) SetUsername(username string)

SetUsername adds the username to the list tokens params

func (*ListTokensParams) WithContext

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

WithContext adds the context to the list tokens params

func (*ListTokensParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list tokens params

func (*ListTokensParams) WithTimeout

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

WithTimeout adds the timeout to the list tokens params

func (*ListTokensParams) WithUsername

func (o *ListTokensParams) WithUsername(username string) *ListTokensParams

WithUsername adds the username to the list tokens params

func (*ListTokensParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListTokensReader

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

ListTokensReader is a Reader for the ListTokens structure.

func (*ListTokensReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUsersOK

type ListUsersOK struct {
	Payload *models.UserList
}

ListUsersOK handles this case with default header values.

No response was specified

func NewListUsersOK

func NewListUsersOK() *ListUsersOK

NewListUsersOK creates a ListUsersOK with default headers values

func (*ListUsersOK) Error

func (o *ListUsersOK) Error() 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 values initialized.

func NewListUsersParamsWithContext

func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams

NewListUsersParamsWithContext creates a new ListUsersParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 RevokeTokenOK

type RevokeTokenOK struct {
}

RevokeTokenOK handles this case with default header values.

No response was specified

func NewRevokeTokenOK

func NewRevokeTokenOK() *RevokeTokenOK

NewRevokeTokenOK creates a RevokeTokenOK with default headers values

func (*RevokeTokenOK) Error

func (o *RevokeTokenOK) Error() string

type RevokeTokenParams

type RevokeTokenParams struct {

	/*Token*/
	Token string
	/*Username*/
	Username string

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

RevokeTokenParams contains all the parameters to send to the API endpoint for the revoke token operation typically these are written to a http.Request

func NewRevokeTokenParams

func NewRevokeTokenParams() *RevokeTokenParams

NewRevokeTokenParams creates a new RevokeTokenParams object with the default values initialized.

func NewRevokeTokenParamsWithContext

func NewRevokeTokenParamsWithContext(ctx context.Context) *RevokeTokenParams

NewRevokeTokenParamsWithContext creates a new RevokeTokenParams object with the default values initialized, and the ability to set a context for a request

func NewRevokeTokenParamsWithHTTPClient

func NewRevokeTokenParamsWithHTTPClient(client *http.Client) *RevokeTokenParams

NewRevokeTokenParamsWithHTTPClient creates a new RevokeTokenParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRevokeTokenParamsWithTimeout

func NewRevokeTokenParamsWithTimeout(timeout time.Duration) *RevokeTokenParams

NewRevokeTokenParamsWithTimeout creates a new RevokeTokenParams object with the default values initialized, and the ability to set a timeout on a request

func (*RevokeTokenParams) SetContext

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

SetContext adds the context to the revoke token params

func (*RevokeTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke token params

func (*RevokeTokenParams) SetTimeout

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

SetTimeout adds the timeout to the revoke token params

func (*RevokeTokenParams) SetToken

func (o *RevokeTokenParams) SetToken(token string)

SetToken adds the token to the revoke token params

func (*RevokeTokenParams) SetUsername

func (o *RevokeTokenParams) SetUsername(username string)

SetUsername adds the username to the revoke token params

func (*RevokeTokenParams) WithContext

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

WithContext adds the context to the revoke token params

func (*RevokeTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the revoke token params

func (*RevokeTokenParams) WithTimeout

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

WithTimeout adds the timeout to the revoke token params

func (*RevokeTokenParams) WithToken

func (o *RevokeTokenParams) WithToken(token string) *RevokeTokenParams

WithToken adds the token to the revoke token params

func (*RevokeTokenParams) WithUsername

func (o *RevokeTokenParams) WithUsername(username string) *RevokeTokenParams

WithUsername adds the username to the revoke token params

func (*RevokeTokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RevokeTokenReader

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

RevokeTokenReader is a Reader for the RevokeToken structure.

func (*RevokeTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SavePreferencesBadRequest

type SavePreferencesBadRequest struct {
}

SavePreferencesBadRequest handles this case with default header values.

Missing or invalid permission data.

func NewSavePreferencesBadRequest

func NewSavePreferencesBadRequest() *SavePreferencesBadRequest

NewSavePreferencesBadRequest creates a SavePreferencesBadRequest with default headers values

func (*SavePreferencesBadRequest) Error

func (o *SavePreferencesBadRequest) Error() string

type SavePreferencesOK

type SavePreferencesOK struct {
}

SavePreferencesOK handles this case with default header values.

No response was specified

func NewSavePreferencesOK

func NewSavePreferencesOK() *SavePreferencesOK

NewSavePreferencesOK creates a SavePreferencesOK with default headers values

func (*SavePreferencesOK) Error

func (o *SavePreferencesOK) Error() string

type SavePreferencesParams

type SavePreferencesParams struct {

	/*JSONBody
	  The map of preferences to assign to the user.

	*/
	JSONBody *models.UpdateUserPreferences
	/*Username
	  The name of the user to modify.

	*/
	Username string

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

SavePreferencesParams contains all the parameters to send to the API endpoint for the save preferences operation typically these are written to a http.Request

func NewSavePreferencesParams

func NewSavePreferencesParams() *SavePreferencesParams

NewSavePreferencesParams creates a new SavePreferencesParams object with the default values initialized.

func NewSavePreferencesParamsWithContext

func NewSavePreferencesParamsWithContext(ctx context.Context) *SavePreferencesParams

NewSavePreferencesParamsWithContext creates a new SavePreferencesParams object with the default values initialized, and the ability to set a context for a request

func NewSavePreferencesParamsWithHTTPClient

func NewSavePreferencesParamsWithHTTPClient(client *http.Client) *SavePreferencesParams

NewSavePreferencesParamsWithHTTPClient creates a new SavePreferencesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSavePreferencesParamsWithTimeout

func NewSavePreferencesParamsWithTimeout(timeout time.Duration) *SavePreferencesParams

NewSavePreferencesParamsWithTimeout creates a new SavePreferencesParams object with the default values initialized, and the ability to set a timeout on a request

func (*SavePreferencesParams) SetContext

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

SetContext adds the context to the save preferences params

func (*SavePreferencesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the save preferences params

func (*SavePreferencesParams) SetJSONBody

func (o *SavePreferencesParams) SetJSONBody(jSONBody *models.UpdateUserPreferences)

SetJSONBody adds the jsonBody to the save preferences params

func (*SavePreferencesParams) SetTimeout

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

SetTimeout adds the timeout to the save preferences params

func (*SavePreferencesParams) SetUsername

func (o *SavePreferencesParams) SetUsername(username string)

SetUsername adds the username to the save preferences params

func (*SavePreferencesParams) WithContext

WithContext adds the context to the save preferences params

func (*SavePreferencesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the save preferences params

func (*SavePreferencesParams) WithJSONBody

WithJSONBody adds the jSONBody to the save preferences params

func (*SavePreferencesParams) WithTimeout

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

WithTimeout adds the timeout to the save preferences params

func (*SavePreferencesParams) WithUsername

func (o *SavePreferencesParams) WithUsername(username string) *SavePreferencesParams

WithUsername adds the username to the save preferences params

func (*SavePreferencesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SavePreferencesReader

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

SavePreferencesReader is a Reader for the SavePreferences structure.

func (*SavePreferencesReader) ReadResponse

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