security

package
v3.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRoleDefinitionCreated

type AddRoleDefinitionCreated struct {
	Payload      *kbmodel.RoleDefinition
	HttpResponse runtime.ClientResponse
}

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

Role definition created successfully

func NewAddRoleDefinitionCreated

func NewAddRoleDefinitionCreated() *AddRoleDefinitionCreated

NewAddRoleDefinitionCreated creates a AddRoleDefinitionCreated with default headers values

func (*AddRoleDefinitionCreated) Code

func (o *AddRoleDefinitionCreated) Code() int

Code gets the status code for the add role definition created response

func (*AddRoleDefinitionCreated) Error

func (o *AddRoleDefinitionCreated) Error() string

func (*AddRoleDefinitionCreated) GetPayload

func (*AddRoleDefinitionCreated) IsClientError

func (o *AddRoleDefinitionCreated) IsClientError() bool

IsClientError returns true when this add role definition created response has a 4xx status code

func (*AddRoleDefinitionCreated) IsCode

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

IsCode returns true when this add role definition created response a status code equal to that given

func (*AddRoleDefinitionCreated) IsRedirect

func (o *AddRoleDefinitionCreated) IsRedirect() bool

IsRedirect returns true when this add role definition created response has a 3xx status code

func (*AddRoleDefinitionCreated) IsServerError

func (o *AddRoleDefinitionCreated) IsServerError() bool

IsServerError returns true when this add role definition created response has a 5xx status code

func (*AddRoleDefinitionCreated) IsSuccess

func (o *AddRoleDefinitionCreated) IsSuccess() bool

IsSuccess returns true when this add role definition created response has a 2xx status code

func (*AddRoleDefinitionCreated) String

func (o *AddRoleDefinitionCreated) String() string

type AddRoleDefinitionParams

type AddRoleDefinitionParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.RoleDefinition

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

AddRoleDefinitionParams contains all the parameters to send to the API endpoint

for the add role definition operation.

Typically these are written to a http.Request.

func NewAddRoleDefinitionParams

func NewAddRoleDefinitionParams() *AddRoleDefinitionParams

NewAddRoleDefinitionParams creates a new AddRoleDefinitionParams 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 NewAddRoleDefinitionParamsWithContext

func NewAddRoleDefinitionParamsWithContext(ctx context.Context) *AddRoleDefinitionParams

NewAddRoleDefinitionParamsWithContext creates a new AddRoleDefinitionParams object with the ability to set a context for a request.

func NewAddRoleDefinitionParamsWithHTTPClient

func NewAddRoleDefinitionParamsWithHTTPClient(client *http.Client) *AddRoleDefinitionParams

NewAddRoleDefinitionParamsWithHTTPClient creates a new AddRoleDefinitionParams object with the ability to set a custom HTTPClient for a request.

func NewAddRoleDefinitionParamsWithTimeout

func NewAddRoleDefinitionParamsWithTimeout(timeout time.Duration) *AddRoleDefinitionParams

NewAddRoleDefinitionParamsWithTimeout creates a new AddRoleDefinitionParams object with the ability to set a timeout on a request.

func (*AddRoleDefinitionParams) SetBody

SetBody adds the body to the add role definition params

func (*AddRoleDefinitionParams) SetContext

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

SetContext adds the context to the add role definition params

func (*AddRoleDefinitionParams) SetDefaults

func (o *AddRoleDefinitionParams) SetDefaults()

SetDefaults hydrates default values in the add role definition params (not the query body).

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

func (*AddRoleDefinitionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add role definition params

func (*AddRoleDefinitionParams) SetTimeout

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

SetTimeout adds the timeout to the add role definition params

func (*AddRoleDefinitionParams) SetXKillbillComment

func (o *AddRoleDefinitionParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the add role definition params

func (*AddRoleDefinitionParams) SetXKillbillCreatedBy

func (o *AddRoleDefinitionParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the add role definition params

func (*AddRoleDefinitionParams) SetXKillbillReason

func (o *AddRoleDefinitionParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the add role definition params

func (*AddRoleDefinitionParams) WithBody

WithBody adds the body to the add role definition params

func (*AddRoleDefinitionParams) WithContext

WithContext adds the context to the add role definition params

func (*AddRoleDefinitionParams) WithDefaults

WithDefaults hydrates default values in the add role definition params (not the query body).

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

func (*AddRoleDefinitionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add role definition params

func (*AddRoleDefinitionParams) WithTimeout

WithTimeout adds the timeout to the add role definition params

func (*AddRoleDefinitionParams) WithXKillbillComment

func (o *AddRoleDefinitionParams) WithXKillbillComment(xKillbillComment *string) *AddRoleDefinitionParams

WithXKillbillComment adds the xKillbillComment to the add role definition params

func (*AddRoleDefinitionParams) WithXKillbillCreatedBy

func (o *AddRoleDefinitionParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *AddRoleDefinitionParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the add role definition params

func (*AddRoleDefinitionParams) WithXKillbillReason

func (o *AddRoleDefinitionParams) WithXKillbillReason(xKillbillReason *string) *AddRoleDefinitionParams

WithXKillbillReason adds the xKillbillReason to the add role definition params

func (*AddRoleDefinitionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AddRoleDefinitionReader

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

AddRoleDefinitionReader is a Reader for the AddRoleDefinition structure.

func (*AddRoleDefinitionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddUserRolesCreated

type AddUserRolesCreated struct {
	Payload      *kbmodel.UserRoles
	HttpResponse runtime.ClientResponse
}

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

User role created successfully

func NewAddUserRolesCreated

func NewAddUserRolesCreated() *AddUserRolesCreated

NewAddUserRolesCreated creates a AddUserRolesCreated with default headers values

func (*AddUserRolesCreated) Code

func (o *AddUserRolesCreated) Code() int

Code gets the status code for the add user roles created response

func (*AddUserRolesCreated) Error

func (o *AddUserRolesCreated) Error() string

func (*AddUserRolesCreated) GetPayload

func (o *AddUserRolesCreated) GetPayload() *kbmodel.UserRoles

func (*AddUserRolesCreated) IsClientError

func (o *AddUserRolesCreated) IsClientError() bool

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

func (*AddUserRolesCreated) IsCode

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

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

func (*AddUserRolesCreated) IsRedirect

func (o *AddUserRolesCreated) IsRedirect() bool

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

func (*AddUserRolesCreated) IsServerError

func (o *AddUserRolesCreated) IsServerError() bool

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

func (*AddUserRolesCreated) IsSuccess

func (o *AddUserRolesCreated) IsSuccess() bool

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

func (*AddUserRolesCreated) String

func (o *AddUserRolesCreated) String() string

type AddUserRolesParams

type AddUserRolesParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.UserRoles

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

AddUserRolesParams contains all the parameters to send to the API endpoint

for the add user roles operation.

Typically these are written to a http.Request.

func NewAddUserRolesParams

func NewAddUserRolesParams() *AddUserRolesParams

NewAddUserRolesParams creates a new AddUserRolesParams 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 NewAddUserRolesParamsWithContext

func NewAddUserRolesParamsWithContext(ctx context.Context) *AddUserRolesParams

NewAddUserRolesParamsWithContext creates a new AddUserRolesParams object with the ability to set a context for a request.

func NewAddUserRolesParamsWithHTTPClient

func NewAddUserRolesParamsWithHTTPClient(client *http.Client) *AddUserRolesParams

NewAddUserRolesParamsWithHTTPClient creates a new AddUserRolesParams object with the ability to set a custom HTTPClient for a request.

func NewAddUserRolesParamsWithTimeout

func NewAddUserRolesParamsWithTimeout(timeout time.Duration) *AddUserRolesParams

NewAddUserRolesParamsWithTimeout creates a new AddUserRolesParams object with the ability to set a timeout on a request.

func (*AddUserRolesParams) SetBody

func (o *AddUserRolesParams) SetBody(body *kbmodel.UserRoles)

SetBody adds the body to the add user roles params

func (*AddUserRolesParams) SetContext

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

SetContext adds the context to the add user roles params

func (*AddUserRolesParams) SetDefaults

func (o *AddUserRolesParams) SetDefaults()

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

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

func (*AddUserRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add user roles params

func (*AddUserRolesParams) SetTimeout

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

SetTimeout adds the timeout to the add user roles params

func (*AddUserRolesParams) SetXKillbillComment

func (o *AddUserRolesParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the add user roles params

func (*AddUserRolesParams) SetXKillbillCreatedBy

func (o *AddUserRolesParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the add user roles params

func (*AddUserRolesParams) SetXKillbillReason

func (o *AddUserRolesParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the add user roles params

func (*AddUserRolesParams) WithBody

WithBody adds the body to the add user roles params

func (*AddUserRolesParams) WithContext

WithContext adds the context to the add user roles params

func (*AddUserRolesParams) WithDefaults

func (o *AddUserRolesParams) WithDefaults() *AddUserRolesParams

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

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

func (*AddUserRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add user roles params

func (*AddUserRolesParams) WithTimeout

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

WithTimeout adds the timeout to the add user roles params

func (*AddUserRolesParams) WithXKillbillComment

func (o *AddUserRolesParams) WithXKillbillComment(xKillbillComment *string) *AddUserRolesParams

WithXKillbillComment adds the xKillbillComment to the add user roles params

func (*AddUserRolesParams) WithXKillbillCreatedBy

func (o *AddUserRolesParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *AddUserRolesParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the add user roles params

func (*AddUserRolesParams) WithXKillbillReason

func (o *AddUserRolesParams) WithXKillbillReason(xKillbillReason *string) *AddUserRolesParams

WithXKillbillReason adds the xKillbillReason to the add user roles params

func (*AddUserRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddUserRolesReader

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

AddUserRolesReader is a Reader for the AddUserRoles structure.

func (*AddUserRolesReader) ReadResponse

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

func New

func New(transport runtime.ClientTransport,
	formats strfmt.Registry,
	authInfo runtime.ClientAuthInfoWriter,
	defaults KillbillDefaults) *Client

New creates a new security API client.

func (*Client) AddRoleDefinition

func (a *Client) AddRoleDefinition(ctx context.Context, params *AddRoleDefinitionParams) (*AddRoleDefinitionCreated, error)

AddRoleDefinition adds a new role definition

func (*Client) AddUserRoles

func (a *Client) AddUserRoles(ctx context.Context, params *AddUserRolesParams) (*AddUserRolesCreated, error)

AddUserRoles adds a new user with roles to make api requests

func (*Client) GetCurrentUserPermissions

func (a *Client) GetCurrentUserPermissions(ctx context.Context, params *GetCurrentUserPermissionsParams) (*GetCurrentUserPermissionsOK, error)

GetCurrentUserPermissions lists user permissions

func (*Client) GetCurrentUserSubject

func (a *Client) GetCurrentUserSubject(ctx context.Context, params *GetCurrentUserSubjectParams) (*GetCurrentUserSubjectOK, error)

GetCurrentUserSubject gets user information

func (*Client) GetRoleDefinition

func (a *Client) GetRoleDefinition(ctx context.Context, params *GetRoleDefinitionParams) (*GetRoleDefinitionOK, error)

GetRoleDefinition gets role definition

func (*Client) GetUserRoles

func (a *Client) GetUserRoles(ctx context.Context, params *GetUserRolesParams) (*GetUserRolesOK, error)

GetUserRoles gets roles associated to a user

func (*Client) InvalidateUser

func (a *Client) InvalidateUser(ctx context.Context, params *InvalidateUserParams) (*InvalidateUserNoContent, error)

InvalidateUser invalidates an existing user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateRoleDefinition

func (a *Client) UpdateRoleDefinition(ctx context.Context, params *UpdateRoleDefinitionParams) (*UpdateRoleDefinitionNoContent, error)

UpdateRoleDefinition updates a new role definition

func (*Client) UpdateUserPassword

func (a *Client) UpdateUserPassword(ctx context.Context, params *UpdateUserPasswordParams) (*UpdateUserPasswordNoContent, error)

UpdateUserPassword updates a user password

func (*Client) UpdateUserRoles

func (a *Client) UpdateUserRoles(ctx context.Context, params *UpdateUserRolesParams) (*UpdateUserRolesNoContent, error)

UpdateUserRoles updates roles associated to a user

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddRoleDefinition(ctx context.Context, params *AddRoleDefinitionParams) (*AddRoleDefinitionCreated, error)

	AddUserRoles(ctx context.Context, params *AddUserRolesParams) (*AddUserRolesCreated, error)

	GetCurrentUserPermissions(ctx context.Context, params *GetCurrentUserPermissionsParams) (*GetCurrentUserPermissionsOK, error)

	GetCurrentUserSubject(ctx context.Context, params *GetCurrentUserSubjectParams) (*GetCurrentUserSubjectOK, error)

	GetRoleDefinition(ctx context.Context, params *GetRoleDefinitionParams) (*GetRoleDefinitionOK, error)

	GetUserRoles(ctx context.Context, params *GetUserRolesParams) (*GetUserRolesOK, error)

	InvalidateUser(ctx context.Context, params *InvalidateUserParams) (*InvalidateUserNoContent, error)

	UpdateRoleDefinition(ctx context.Context, params *UpdateRoleDefinitionParams) (*UpdateRoleDefinitionNoContent, error)

	UpdateUserPassword(ctx context.Context, params *UpdateUserPasswordParams) (*UpdateUserPasswordNoContent, error)

	UpdateUserRoles(ctx context.Context, params *UpdateUserRolesParams) (*UpdateUserRolesNoContent, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

type GetCurrentUserPermissionsOK

type GetCurrentUserPermissionsOK struct {
	Payload      []string
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewGetCurrentUserPermissionsOK

func NewGetCurrentUserPermissionsOK() *GetCurrentUserPermissionsOK

NewGetCurrentUserPermissionsOK creates a GetCurrentUserPermissionsOK with default headers values

func (*GetCurrentUserPermissionsOK) Code

func (o *GetCurrentUserPermissionsOK) Code() int

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

func (*GetCurrentUserPermissionsOK) Error

func (*GetCurrentUserPermissionsOK) GetPayload

func (o *GetCurrentUserPermissionsOK) GetPayload() []string

func (*GetCurrentUserPermissionsOK) IsClientError

func (o *GetCurrentUserPermissionsOK) IsClientError() bool

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

func (*GetCurrentUserPermissionsOK) IsCode

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

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

func (*GetCurrentUserPermissionsOK) IsRedirect

func (o *GetCurrentUserPermissionsOK) IsRedirect() bool

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

func (*GetCurrentUserPermissionsOK) IsServerError

func (o *GetCurrentUserPermissionsOK) IsServerError() bool

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

func (*GetCurrentUserPermissionsOK) IsSuccess

func (o *GetCurrentUserPermissionsOK) IsSuccess() bool

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

func (*GetCurrentUserPermissionsOK) String

func (o *GetCurrentUserPermissionsOK) String() string

type GetCurrentUserPermissionsParams

type GetCurrentUserPermissionsParams struct {
	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetCurrentUserPermissionsParams contains all the parameters to send to the API endpoint

for the get current user permissions operation.

Typically these are written to a http.Request.

func NewGetCurrentUserPermissionsParams

func NewGetCurrentUserPermissionsParams() *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParams creates a new GetCurrentUserPermissionsParams 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 NewGetCurrentUserPermissionsParamsWithContext

func NewGetCurrentUserPermissionsParamsWithContext(ctx context.Context) *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParamsWithContext creates a new GetCurrentUserPermissionsParams object with the ability to set a context for a request.

func NewGetCurrentUserPermissionsParamsWithHTTPClient

func NewGetCurrentUserPermissionsParamsWithHTTPClient(client *http.Client) *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParamsWithHTTPClient creates a new GetCurrentUserPermissionsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCurrentUserPermissionsParamsWithTimeout

func NewGetCurrentUserPermissionsParamsWithTimeout(timeout time.Duration) *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParamsWithTimeout creates a new GetCurrentUserPermissionsParams object with the ability to set a timeout on a request.

func (*GetCurrentUserPermissionsParams) SetContext

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

SetContext adds the context to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetDefaults

func (o *GetCurrentUserPermissionsParams) SetDefaults()

SetDefaults hydrates default values in the get current user permissions params (not the query body).

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

func (*GetCurrentUserPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithContext

WithContext adds the context to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithDefaults

WithDefaults hydrates default values in the get current user permissions params (not the query body).

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

func (*GetCurrentUserPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithTimeout

WithTimeout adds the timeout to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentUserPermissionsReader

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

GetCurrentUserPermissionsReader is a Reader for the GetCurrentUserPermissions structure.

func (*GetCurrentUserPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrentUserSubjectOK

type GetCurrentUserSubjectOK struct {
	Payload      *kbmodel.Subject
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewGetCurrentUserSubjectOK

func NewGetCurrentUserSubjectOK() *GetCurrentUserSubjectOK

NewGetCurrentUserSubjectOK creates a GetCurrentUserSubjectOK with default headers values

func (*GetCurrentUserSubjectOK) Code

func (o *GetCurrentUserSubjectOK) Code() int

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

func (*GetCurrentUserSubjectOK) Error

func (o *GetCurrentUserSubjectOK) Error() string

func (*GetCurrentUserSubjectOK) GetPayload

func (o *GetCurrentUserSubjectOK) GetPayload() *kbmodel.Subject

func (*GetCurrentUserSubjectOK) IsClientError

func (o *GetCurrentUserSubjectOK) IsClientError() bool

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

func (*GetCurrentUserSubjectOK) IsCode

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

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

func (*GetCurrentUserSubjectOK) IsRedirect

func (o *GetCurrentUserSubjectOK) IsRedirect() bool

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

func (*GetCurrentUserSubjectOK) IsServerError

func (o *GetCurrentUserSubjectOK) IsServerError() bool

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

func (*GetCurrentUserSubjectOK) IsSuccess

func (o *GetCurrentUserSubjectOK) IsSuccess() bool

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

func (*GetCurrentUserSubjectOK) String

func (o *GetCurrentUserSubjectOK) String() string

type GetCurrentUserSubjectParams

type GetCurrentUserSubjectParams struct {
	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetCurrentUserSubjectParams contains all the parameters to send to the API endpoint

for the get current user subject operation.

Typically these are written to a http.Request.

func NewGetCurrentUserSubjectParams

func NewGetCurrentUserSubjectParams() *GetCurrentUserSubjectParams

NewGetCurrentUserSubjectParams creates a new GetCurrentUserSubjectParams 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 NewGetCurrentUserSubjectParamsWithContext

func NewGetCurrentUserSubjectParamsWithContext(ctx context.Context) *GetCurrentUserSubjectParams

NewGetCurrentUserSubjectParamsWithContext creates a new GetCurrentUserSubjectParams object with the ability to set a context for a request.

func NewGetCurrentUserSubjectParamsWithHTTPClient

func NewGetCurrentUserSubjectParamsWithHTTPClient(client *http.Client) *GetCurrentUserSubjectParams

NewGetCurrentUserSubjectParamsWithHTTPClient creates a new GetCurrentUserSubjectParams object with the ability to set a custom HTTPClient for a request.

func NewGetCurrentUserSubjectParamsWithTimeout

func NewGetCurrentUserSubjectParamsWithTimeout(timeout time.Duration) *GetCurrentUserSubjectParams

NewGetCurrentUserSubjectParamsWithTimeout creates a new GetCurrentUserSubjectParams object with the ability to set a timeout on a request.

func (*GetCurrentUserSubjectParams) SetContext

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

SetContext adds the context to the get current user subject params

func (*GetCurrentUserSubjectParams) SetDefaults

func (o *GetCurrentUserSubjectParams) SetDefaults()

SetDefaults hydrates default values in the get current user subject params (not the query body).

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

func (*GetCurrentUserSubjectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user subject params

func (*GetCurrentUserSubjectParams) SetTimeout

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

SetTimeout adds the timeout to the get current user subject params

func (*GetCurrentUserSubjectParams) WithContext

WithContext adds the context to the get current user subject params

func (*GetCurrentUserSubjectParams) WithDefaults

WithDefaults hydrates default values in the get current user subject params (not the query body).

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

func (*GetCurrentUserSubjectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get current user subject params

func (*GetCurrentUserSubjectParams) WithTimeout

WithTimeout adds the timeout to the get current user subject params

func (*GetCurrentUserSubjectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentUserSubjectReader

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

GetCurrentUserSubjectReader is a Reader for the GetCurrentUserSubject structure.

func (*GetCurrentUserSubjectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleDefinitionOK

type GetRoleDefinitionOK struct {
	Payload      *kbmodel.RoleDefinition
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewGetRoleDefinitionOK

func NewGetRoleDefinitionOK() *GetRoleDefinitionOK

NewGetRoleDefinitionOK creates a GetRoleDefinitionOK with default headers values

func (*GetRoleDefinitionOK) Code

func (o *GetRoleDefinitionOK) Code() int

Code gets the status code for the get role definition o k response

func (*GetRoleDefinitionOK) Error

func (o *GetRoleDefinitionOK) Error() string

func (*GetRoleDefinitionOK) GetPayload

func (o *GetRoleDefinitionOK) GetPayload() *kbmodel.RoleDefinition

func (*GetRoleDefinitionOK) IsClientError

func (o *GetRoleDefinitionOK) IsClientError() bool

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

func (*GetRoleDefinitionOK) IsCode

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

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

func (*GetRoleDefinitionOK) IsRedirect

func (o *GetRoleDefinitionOK) IsRedirect() bool

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

func (*GetRoleDefinitionOK) IsServerError

func (o *GetRoleDefinitionOK) IsServerError() bool

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

func (*GetRoleDefinitionOK) IsSuccess

func (o *GetRoleDefinitionOK) IsSuccess() bool

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

func (*GetRoleDefinitionOK) String

func (o *GetRoleDefinitionOK) String() string

type GetRoleDefinitionParams

type GetRoleDefinitionParams struct {

	// Role.
	Role string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetRoleDefinitionParams contains all the parameters to send to the API endpoint

for the get role definition operation.

Typically these are written to a http.Request.

func NewGetRoleDefinitionParams

func NewGetRoleDefinitionParams() *GetRoleDefinitionParams

NewGetRoleDefinitionParams creates a new GetRoleDefinitionParams 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 NewGetRoleDefinitionParamsWithContext

func NewGetRoleDefinitionParamsWithContext(ctx context.Context) *GetRoleDefinitionParams

NewGetRoleDefinitionParamsWithContext creates a new GetRoleDefinitionParams object with the ability to set a context for a request.

func NewGetRoleDefinitionParamsWithHTTPClient

func NewGetRoleDefinitionParamsWithHTTPClient(client *http.Client) *GetRoleDefinitionParams

NewGetRoleDefinitionParamsWithHTTPClient creates a new GetRoleDefinitionParams object with the ability to set a custom HTTPClient for a request.

func NewGetRoleDefinitionParamsWithTimeout

func NewGetRoleDefinitionParamsWithTimeout(timeout time.Duration) *GetRoleDefinitionParams

NewGetRoleDefinitionParamsWithTimeout creates a new GetRoleDefinitionParams object with the ability to set a timeout on a request.

func (*GetRoleDefinitionParams) SetContext

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

SetContext adds the context to the get role definition params

func (*GetRoleDefinitionParams) SetDefaults

func (o *GetRoleDefinitionParams) SetDefaults()

SetDefaults hydrates default values in the get role definition params (not the query body).

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

func (*GetRoleDefinitionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get role definition params

func (*GetRoleDefinitionParams) SetRole

func (o *GetRoleDefinitionParams) SetRole(role string)

SetRole adds the role to the get role definition params

func (*GetRoleDefinitionParams) SetTimeout

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

SetTimeout adds the timeout to the get role definition params

func (*GetRoleDefinitionParams) WithContext

WithContext adds the context to the get role definition params

func (*GetRoleDefinitionParams) WithDefaults

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

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

func (*GetRoleDefinitionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role definition params

func (*GetRoleDefinitionParams) WithRole

WithRole adds the role to the get role definition params

func (*GetRoleDefinitionParams) WithTimeout

WithTimeout adds the timeout to the get role definition params

func (*GetRoleDefinitionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRoleDefinitionReader

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

GetRoleDefinitionReader is a Reader for the GetRoleDefinition structure.

func (*GetRoleDefinitionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserRolesNotFound

type GetUserRolesNotFound struct {
	HttpResponse runtime.ClientResponse
}

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

The user does not exist or has been inactivated

func NewGetUserRolesNotFound

func NewGetUserRolesNotFound() *GetUserRolesNotFound

NewGetUserRolesNotFound creates a GetUserRolesNotFound with default headers values

func (*GetUserRolesNotFound) Code

func (o *GetUserRolesNotFound) Code() int

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

func (*GetUserRolesNotFound) Error

func (o *GetUserRolesNotFound) Error() string

func (*GetUserRolesNotFound) IsClientError

func (o *GetUserRolesNotFound) IsClientError() bool

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

func (*GetUserRolesNotFound) IsCode

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

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

func (*GetUserRolesNotFound) IsRedirect

func (o *GetUserRolesNotFound) IsRedirect() bool

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

func (*GetUserRolesNotFound) IsServerError

func (o *GetUserRolesNotFound) IsServerError() bool

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

func (*GetUserRolesNotFound) IsSuccess

func (o *GetUserRolesNotFound) IsSuccess() bool

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

func (*GetUserRolesNotFound) String

func (o *GetUserRolesNotFound) String() string

type GetUserRolesOK

type GetUserRolesOK struct {
	Payload      *kbmodel.UserRoles
	HttpResponse runtime.ClientResponse
}

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

successful operation

func NewGetUserRolesOK

func NewGetUserRolesOK() *GetUserRolesOK

NewGetUserRolesOK creates a GetUserRolesOK with default headers values

func (*GetUserRolesOK) Code

func (o *GetUserRolesOK) Code() int

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

func (*GetUserRolesOK) Error

func (o *GetUserRolesOK) Error() string

func (*GetUserRolesOK) GetPayload

func (o *GetUserRolesOK) GetPayload() *kbmodel.UserRoles

func (*GetUserRolesOK) IsClientError

func (o *GetUserRolesOK) IsClientError() bool

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

func (*GetUserRolesOK) IsCode

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

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

func (*GetUserRolesOK) IsRedirect

func (o *GetUserRolesOK) IsRedirect() bool

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

func (*GetUserRolesOK) IsServerError

func (o *GetUserRolesOK) IsServerError() bool

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

func (*GetUserRolesOK) IsSuccess

func (o *GetUserRolesOK) IsSuccess() bool

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

func (*GetUserRolesOK) String

func (o *GetUserRolesOK) String() string

type GetUserRolesParams

type GetUserRolesParams struct {

	// Username.
	Username string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

GetUserRolesParams contains all the parameters to send to the API endpoint

for the get user roles operation.

Typically these are written to a http.Request.

func NewGetUserRolesParams

func NewGetUserRolesParams() *GetUserRolesParams

NewGetUserRolesParams creates a new GetUserRolesParams 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 NewGetUserRolesParamsWithContext

func NewGetUserRolesParamsWithContext(ctx context.Context) *GetUserRolesParams

NewGetUserRolesParamsWithContext creates a new GetUserRolesParams object with the ability to set a context for a request.

func NewGetUserRolesParamsWithHTTPClient

func NewGetUserRolesParamsWithHTTPClient(client *http.Client) *GetUserRolesParams

NewGetUserRolesParamsWithHTTPClient creates a new GetUserRolesParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserRolesParamsWithTimeout

func NewGetUserRolesParamsWithTimeout(timeout time.Duration) *GetUserRolesParams

NewGetUserRolesParamsWithTimeout creates a new GetUserRolesParams object with the ability to set a timeout on a request.

func (*GetUserRolesParams) SetContext

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

SetContext adds the context to the get user roles params

func (*GetUserRolesParams) SetDefaults

func (o *GetUserRolesParams) SetDefaults()

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

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

func (*GetUserRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user roles params

func (*GetUserRolesParams) SetTimeout

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

SetTimeout adds the timeout to the get user roles params

func (*GetUserRolesParams) SetUsername

func (o *GetUserRolesParams) SetUsername(username string)

SetUsername adds the username to the get user roles params

func (*GetUserRolesParams) WithContext

WithContext adds the context to the get user roles params

func (*GetUserRolesParams) WithDefaults

func (o *GetUserRolesParams) WithDefaults() *GetUserRolesParams

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

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

func (*GetUserRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user roles params

func (*GetUserRolesParams) WithTimeout

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

WithTimeout adds the timeout to the get user roles params

func (*GetUserRolesParams) WithUsername

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

WithUsername adds the username to the get user roles params

func (*GetUserRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserRolesReader

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

GetUserRolesReader is a Reader for the GetUserRoles structure.

func (*GetUserRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type InvalidateUserNoContent

type InvalidateUserNoContent struct {
	HttpResponse runtime.ClientResponse
}

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

Successful operation

func NewInvalidateUserNoContent

func NewInvalidateUserNoContent() *InvalidateUserNoContent

NewInvalidateUserNoContent creates a InvalidateUserNoContent with default headers values

func (*InvalidateUserNoContent) Code

func (o *InvalidateUserNoContent) Code() int

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

func (*InvalidateUserNoContent) Error

func (o *InvalidateUserNoContent) Error() string

func (*InvalidateUserNoContent) IsClientError

func (o *InvalidateUserNoContent) IsClientError() bool

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

func (*InvalidateUserNoContent) IsCode

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

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

func (*InvalidateUserNoContent) IsRedirect

func (o *InvalidateUserNoContent) IsRedirect() bool

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

func (*InvalidateUserNoContent) IsServerError

func (o *InvalidateUserNoContent) IsServerError() bool

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

func (*InvalidateUserNoContent) IsSuccess

func (o *InvalidateUserNoContent) IsSuccess() bool

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

func (*InvalidateUserNoContent) String

func (o *InvalidateUserNoContent) String() string

type InvalidateUserParams

type InvalidateUserParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Username.
	Username string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

InvalidateUserParams contains all the parameters to send to the API endpoint

for the invalidate user operation.

Typically these are written to a http.Request.

func NewInvalidateUserParams

func NewInvalidateUserParams() *InvalidateUserParams

NewInvalidateUserParams creates a new InvalidateUserParams 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 NewInvalidateUserParamsWithContext

func NewInvalidateUserParamsWithContext(ctx context.Context) *InvalidateUserParams

NewInvalidateUserParamsWithContext creates a new InvalidateUserParams object with the ability to set a context for a request.

func NewInvalidateUserParamsWithHTTPClient

func NewInvalidateUserParamsWithHTTPClient(client *http.Client) *InvalidateUserParams

NewInvalidateUserParamsWithHTTPClient creates a new InvalidateUserParams object with the ability to set a custom HTTPClient for a request.

func NewInvalidateUserParamsWithTimeout

func NewInvalidateUserParamsWithTimeout(timeout time.Duration) *InvalidateUserParams

NewInvalidateUserParamsWithTimeout creates a new InvalidateUserParams object with the ability to set a timeout on a request.

func (*InvalidateUserParams) SetContext

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

SetContext adds the context to the invalidate user params

func (*InvalidateUserParams) SetDefaults

func (o *InvalidateUserParams) SetDefaults()

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

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

func (*InvalidateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the invalidate user params

func (*InvalidateUserParams) SetTimeout

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

SetTimeout adds the timeout to the invalidate user params

func (*InvalidateUserParams) SetUsername

func (o *InvalidateUserParams) SetUsername(username string)

SetUsername adds the username to the invalidate user params

func (*InvalidateUserParams) SetXKillbillComment

func (o *InvalidateUserParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the invalidate user params

func (*InvalidateUserParams) SetXKillbillCreatedBy

func (o *InvalidateUserParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the invalidate user params

func (*InvalidateUserParams) SetXKillbillReason

func (o *InvalidateUserParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the invalidate user params

func (*InvalidateUserParams) WithContext

WithContext adds the context to the invalidate user params

func (*InvalidateUserParams) WithDefaults

func (o *InvalidateUserParams) WithDefaults() *InvalidateUserParams

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

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

func (*InvalidateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the invalidate user params

func (*InvalidateUserParams) WithTimeout

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

WithTimeout adds the timeout to the invalidate user params

func (*InvalidateUserParams) WithUsername

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

WithUsername adds the username to the invalidate user params

func (*InvalidateUserParams) WithXKillbillComment

func (o *InvalidateUserParams) WithXKillbillComment(xKillbillComment *string) *InvalidateUserParams

WithXKillbillComment adds the xKillbillComment to the invalidate user params

func (*InvalidateUserParams) WithXKillbillCreatedBy

func (o *InvalidateUserParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *InvalidateUserParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the invalidate user params

func (*InvalidateUserParams) WithXKillbillReason

func (o *InvalidateUserParams) WithXKillbillReason(xKillbillReason *string) *InvalidateUserParams

WithXKillbillReason adds the xKillbillReason to the invalidate user params

func (*InvalidateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type InvalidateUserReader

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

InvalidateUserReader is a Reader for the InvalidateUser structure.

func (*InvalidateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type KillbillDefaults

type KillbillDefaults interface {
	// Default CreatedBy. If not set explicitly in params, this will be used.
	XKillbillCreatedBy() *string
	// Default Comment. If not set explicitly in params, this will be used.
	XKillbillComment() *string
	// Default Reason. If not set explicitly in params, this will be used.
	XKillbillReason() *string
	// Default WithWithProfilingInfo. If not set explicitly in params, this will be used.
	KillbillWithProfilingInfo() *string
	// Default WithStackTrace. If not set explicitly in params, this will be used.
	KillbillWithStackTrace() *bool
}

killbill default values. When a call is made to an operation, these values are used if params doesn't specify them.

type UpdateRoleDefinitionNoContent

type UpdateRoleDefinitionNoContent struct {
	HttpResponse runtime.ClientResponse
}

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

Successful operation

func NewUpdateRoleDefinitionNoContent

func NewUpdateRoleDefinitionNoContent() *UpdateRoleDefinitionNoContent

NewUpdateRoleDefinitionNoContent creates a UpdateRoleDefinitionNoContent with default headers values

func (*UpdateRoleDefinitionNoContent) Code

Code gets the status code for the update role definition no content response

func (*UpdateRoleDefinitionNoContent) Error

func (*UpdateRoleDefinitionNoContent) IsClientError

func (o *UpdateRoleDefinitionNoContent) IsClientError() bool

IsClientError returns true when this update role definition no content response has a 4xx status code

func (*UpdateRoleDefinitionNoContent) IsCode

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

IsCode returns true when this update role definition no content response a status code equal to that given

func (*UpdateRoleDefinitionNoContent) IsRedirect

func (o *UpdateRoleDefinitionNoContent) IsRedirect() bool

IsRedirect returns true when this update role definition no content response has a 3xx status code

func (*UpdateRoleDefinitionNoContent) IsServerError

func (o *UpdateRoleDefinitionNoContent) IsServerError() bool

IsServerError returns true when this update role definition no content response has a 5xx status code

func (*UpdateRoleDefinitionNoContent) IsSuccess

func (o *UpdateRoleDefinitionNoContent) IsSuccess() bool

IsSuccess returns true when this update role definition no content response has a 2xx status code

func (*UpdateRoleDefinitionNoContent) String

type UpdateRoleDefinitionParams

type UpdateRoleDefinitionParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.RoleDefinition

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

UpdateRoleDefinitionParams contains all the parameters to send to the API endpoint

for the update role definition operation.

Typically these are written to a http.Request.

func NewUpdateRoleDefinitionParams

func NewUpdateRoleDefinitionParams() *UpdateRoleDefinitionParams

NewUpdateRoleDefinitionParams creates a new UpdateRoleDefinitionParams 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 NewUpdateRoleDefinitionParamsWithContext

func NewUpdateRoleDefinitionParamsWithContext(ctx context.Context) *UpdateRoleDefinitionParams

NewUpdateRoleDefinitionParamsWithContext creates a new UpdateRoleDefinitionParams object with the ability to set a context for a request.

func NewUpdateRoleDefinitionParamsWithHTTPClient

func NewUpdateRoleDefinitionParamsWithHTTPClient(client *http.Client) *UpdateRoleDefinitionParams

NewUpdateRoleDefinitionParamsWithHTTPClient creates a new UpdateRoleDefinitionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateRoleDefinitionParamsWithTimeout

func NewUpdateRoleDefinitionParamsWithTimeout(timeout time.Duration) *UpdateRoleDefinitionParams

NewUpdateRoleDefinitionParamsWithTimeout creates a new UpdateRoleDefinitionParams object with the ability to set a timeout on a request.

func (*UpdateRoleDefinitionParams) SetBody

SetBody adds the body to the update role definition params

func (*UpdateRoleDefinitionParams) SetContext

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

SetContext adds the context to the update role definition params

func (*UpdateRoleDefinitionParams) SetDefaults

func (o *UpdateRoleDefinitionParams) SetDefaults()

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

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

func (*UpdateRoleDefinitionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update role definition params

func (*UpdateRoleDefinitionParams) SetTimeout

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

SetTimeout adds the timeout to the update role definition params

func (*UpdateRoleDefinitionParams) SetXKillbillComment

func (o *UpdateRoleDefinitionParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the update role definition params

func (*UpdateRoleDefinitionParams) SetXKillbillCreatedBy

func (o *UpdateRoleDefinitionParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the update role definition params

func (*UpdateRoleDefinitionParams) SetXKillbillReason

func (o *UpdateRoleDefinitionParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the update role definition params

func (*UpdateRoleDefinitionParams) WithBody

WithBody adds the body to the update role definition params

func (*UpdateRoleDefinitionParams) WithContext

WithContext adds the context to the update role definition params

func (*UpdateRoleDefinitionParams) WithDefaults

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

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

func (*UpdateRoleDefinitionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update role definition params

func (*UpdateRoleDefinitionParams) WithTimeout

WithTimeout adds the timeout to the update role definition params

func (*UpdateRoleDefinitionParams) WithXKillbillComment

func (o *UpdateRoleDefinitionParams) WithXKillbillComment(xKillbillComment *string) *UpdateRoleDefinitionParams

WithXKillbillComment adds the xKillbillComment to the update role definition params

func (*UpdateRoleDefinitionParams) WithXKillbillCreatedBy

func (o *UpdateRoleDefinitionParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *UpdateRoleDefinitionParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the update role definition params

func (*UpdateRoleDefinitionParams) WithXKillbillReason

func (o *UpdateRoleDefinitionParams) WithXKillbillReason(xKillbillReason *string) *UpdateRoleDefinitionParams

WithXKillbillReason adds the xKillbillReason to the update role definition params

func (*UpdateRoleDefinitionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateRoleDefinitionReader

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

UpdateRoleDefinitionReader is a Reader for the UpdateRoleDefinition structure.

func (*UpdateRoleDefinitionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserPasswordNoContent

type UpdateUserPasswordNoContent struct {
	HttpResponse runtime.ClientResponse
}

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

Successful operation

func NewUpdateUserPasswordNoContent

func NewUpdateUserPasswordNoContent() *UpdateUserPasswordNoContent

NewUpdateUserPasswordNoContent creates a UpdateUserPasswordNoContent with default headers values

func (*UpdateUserPasswordNoContent) Code

func (o *UpdateUserPasswordNoContent) Code() int

Code gets the status code for the update user password no content response

func (*UpdateUserPasswordNoContent) Error

func (*UpdateUserPasswordNoContent) IsClientError

func (o *UpdateUserPasswordNoContent) IsClientError() bool

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

func (*UpdateUserPasswordNoContent) IsCode

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

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

func (*UpdateUserPasswordNoContent) IsRedirect

func (o *UpdateUserPasswordNoContent) IsRedirect() bool

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

func (*UpdateUserPasswordNoContent) IsServerError

func (o *UpdateUserPasswordNoContent) IsServerError() bool

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

func (*UpdateUserPasswordNoContent) IsSuccess

func (o *UpdateUserPasswordNoContent) IsSuccess() bool

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

func (*UpdateUserPasswordNoContent) String

func (o *UpdateUserPasswordNoContent) String() string

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.UserRoles

	// Username.
	Username string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

UpdateUserPasswordParams contains all the parameters to send to the API endpoint

for the update user password operation.

Typically these are written to a http.Request.

func NewUpdateUserPasswordParams

func NewUpdateUserPasswordParams() *UpdateUserPasswordParams

NewUpdateUserPasswordParams creates a new UpdateUserPasswordParams 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 NewUpdateUserPasswordParamsWithContext

func NewUpdateUserPasswordParamsWithContext(ctx context.Context) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithContext creates a new UpdateUserPasswordParams object with the ability to set a context for a request.

func NewUpdateUserPasswordParamsWithHTTPClient

func NewUpdateUserPasswordParamsWithHTTPClient(client *http.Client) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithHTTPClient creates a new UpdateUserPasswordParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserPasswordParamsWithTimeout

func NewUpdateUserPasswordParamsWithTimeout(timeout time.Duration) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithTimeout creates a new UpdateUserPasswordParams object with the ability to set a timeout on a request.

func (*UpdateUserPasswordParams) SetBody

func (o *UpdateUserPasswordParams) SetBody(body *kbmodel.UserRoles)

SetBody adds the body to the update user password params

func (*UpdateUserPasswordParams) SetContext

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

SetContext adds the context to the update user password params

func (*UpdateUserPasswordParams) SetDefaults

func (o *UpdateUserPasswordParams) SetDefaults()

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

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

func (*UpdateUserPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user password params

func (*UpdateUserPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the update user password params

func (*UpdateUserPasswordParams) SetUsername

func (o *UpdateUserPasswordParams) SetUsername(username string)

SetUsername adds the username to the update user password params

func (*UpdateUserPasswordParams) SetXKillbillComment

func (o *UpdateUserPasswordParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the update user password params

func (*UpdateUserPasswordParams) SetXKillbillCreatedBy

func (o *UpdateUserPasswordParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the update user password params

func (*UpdateUserPasswordParams) SetXKillbillReason

func (o *UpdateUserPasswordParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the update user password params

func (*UpdateUserPasswordParams) WithBody

WithBody adds the body to the update user password params

func (*UpdateUserPasswordParams) WithContext

WithContext adds the context to the update user password params

func (*UpdateUserPasswordParams) WithDefaults

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

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

func (*UpdateUserPasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user password params

func (*UpdateUserPasswordParams) WithTimeout

WithTimeout adds the timeout to the update user password params

func (*UpdateUserPasswordParams) WithUsername

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

WithUsername adds the username to the update user password params

func (*UpdateUserPasswordParams) WithXKillbillComment

func (o *UpdateUserPasswordParams) WithXKillbillComment(xKillbillComment *string) *UpdateUserPasswordParams

WithXKillbillComment adds the xKillbillComment to the update user password params

func (*UpdateUserPasswordParams) WithXKillbillCreatedBy

func (o *UpdateUserPasswordParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *UpdateUserPasswordParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the update user password params

func (*UpdateUserPasswordParams) WithXKillbillReason

func (o *UpdateUserPasswordParams) WithXKillbillReason(xKillbillReason *string) *UpdateUserPasswordParams

WithXKillbillReason adds the xKillbillReason to the update user password params

func (*UpdateUserPasswordParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserPasswordReader

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

UpdateUserPasswordReader is a Reader for the UpdateUserPassword structure.

func (*UpdateUserPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserRolesNoContent

type UpdateUserRolesNoContent struct {
	HttpResponse runtime.ClientResponse
}

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

Successful operation

func NewUpdateUserRolesNoContent

func NewUpdateUserRolesNoContent() *UpdateUserRolesNoContent

NewUpdateUserRolesNoContent creates a UpdateUserRolesNoContent with default headers values

func (*UpdateUserRolesNoContent) Code

func (o *UpdateUserRolesNoContent) Code() int

Code gets the status code for the update user roles no content response

func (*UpdateUserRolesNoContent) Error

func (o *UpdateUserRolesNoContent) Error() string

func (*UpdateUserRolesNoContent) IsClientError

func (o *UpdateUserRolesNoContent) IsClientError() bool

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

func (*UpdateUserRolesNoContent) IsCode

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

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

func (*UpdateUserRolesNoContent) IsRedirect

func (o *UpdateUserRolesNoContent) IsRedirect() bool

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

func (*UpdateUserRolesNoContent) IsServerError

func (o *UpdateUserRolesNoContent) IsServerError() bool

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

func (*UpdateUserRolesNoContent) IsSuccess

func (o *UpdateUserRolesNoContent) IsSuccess() bool

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

func (*UpdateUserRolesNoContent) String

func (o *UpdateUserRolesNoContent) String() string

type UpdateUserRolesParams

type UpdateUserRolesParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.UserRoles

	// Username.
	Username string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

UpdateUserRolesParams contains all the parameters to send to the API endpoint

for the update user roles operation.

Typically these are written to a http.Request.

func NewUpdateUserRolesParams

func NewUpdateUserRolesParams() *UpdateUserRolesParams

NewUpdateUserRolesParams creates a new UpdateUserRolesParams 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 NewUpdateUserRolesParamsWithContext

func NewUpdateUserRolesParamsWithContext(ctx context.Context) *UpdateUserRolesParams

NewUpdateUserRolesParamsWithContext creates a new UpdateUserRolesParams object with the ability to set a context for a request.

func NewUpdateUserRolesParamsWithHTTPClient

func NewUpdateUserRolesParamsWithHTTPClient(client *http.Client) *UpdateUserRolesParams

NewUpdateUserRolesParamsWithHTTPClient creates a new UpdateUserRolesParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserRolesParamsWithTimeout

func NewUpdateUserRolesParamsWithTimeout(timeout time.Duration) *UpdateUserRolesParams

NewUpdateUserRolesParamsWithTimeout creates a new UpdateUserRolesParams object with the ability to set a timeout on a request.

func (*UpdateUserRolesParams) SetBody

func (o *UpdateUserRolesParams) SetBody(body *kbmodel.UserRoles)

SetBody adds the body to the update user roles params

func (*UpdateUserRolesParams) SetContext

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

SetContext adds the context to the update user roles params

func (*UpdateUserRolesParams) SetDefaults

func (o *UpdateUserRolesParams) SetDefaults()

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

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

func (*UpdateUserRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user roles params

func (*UpdateUserRolesParams) SetTimeout

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

SetTimeout adds the timeout to the update user roles params

func (*UpdateUserRolesParams) SetUsername

func (o *UpdateUserRolesParams) SetUsername(username string)

SetUsername adds the username to the update user roles params

func (*UpdateUserRolesParams) SetXKillbillComment

func (o *UpdateUserRolesParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the update user roles params

func (*UpdateUserRolesParams) SetXKillbillCreatedBy

func (o *UpdateUserRolesParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the update user roles params

func (*UpdateUserRolesParams) SetXKillbillReason

func (o *UpdateUserRolesParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the update user roles params

func (*UpdateUserRolesParams) WithBody

WithBody adds the body to the update user roles params

func (*UpdateUserRolesParams) WithContext

WithContext adds the context to the update user roles params

func (*UpdateUserRolesParams) WithDefaults

func (o *UpdateUserRolesParams) WithDefaults() *UpdateUserRolesParams

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

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

func (*UpdateUserRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user roles params

func (*UpdateUserRolesParams) WithTimeout

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

WithTimeout adds the timeout to the update user roles params

func (*UpdateUserRolesParams) WithUsername

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

WithUsername adds the username to the update user roles params

func (*UpdateUserRolesParams) WithXKillbillComment

func (o *UpdateUserRolesParams) WithXKillbillComment(xKillbillComment *string) *UpdateUserRolesParams

WithXKillbillComment adds the xKillbillComment to the update user roles params

func (*UpdateUserRolesParams) WithXKillbillCreatedBy

func (o *UpdateUserRolesParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *UpdateUserRolesParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the update user roles params

func (*UpdateUserRolesParams) WithXKillbillReason

func (o *UpdateUserRolesParams) WithXKillbillReason(xKillbillReason *string) *UpdateUserRolesParams

WithXKillbillReason adds the xKillbillReason to the update user roles params

func (*UpdateUserRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserRolesReader

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

UpdateUserRolesReader is a Reader for the UpdateUserRoles structure.

func (*UpdateUserRolesReader) ReadResponse

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