security

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRoleDefinitionCreated

type AddRoleDefinitionCreated struct {
	Payload *kbmodel.RoleDefinition

	HttpResponse runtime.ClientResponse
}

AddRoleDefinitionCreated handles this case with default header values.

Role definition created successfully

func NewAddRoleDefinitionCreated

func NewAddRoleDefinitionCreated() *AddRoleDefinitionCreated

NewAddRoleDefinitionCreated creates a AddRoleDefinitionCreated with default headers values

func (*AddRoleDefinitionCreated) Error

func (o *AddRoleDefinitionCreated) Error() string

type AddRoleDefinitionParams

type AddRoleDefinitionParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Body*/
	Body *kbmodel.RoleDefinition

	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 values initialized.

func NewAddRoleDefinitionParamsWithContext

func NewAddRoleDefinitionParamsWithContext(ctx context.Context) *AddRoleDefinitionParams

NewAddRoleDefinitionParamsWithContext creates a new AddRoleDefinitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

User role created successfully

func NewAddUserRolesCreated

func NewAddUserRolesCreated() *AddUserRolesCreated

NewAddUserRolesCreated creates a AddUserRolesCreated with default headers values

func (*AddUserRolesCreated) Error

func (o *AddUserRolesCreated) Error() string

type AddUserRolesParams

type AddUserRolesParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Body*/
	Body *kbmodel.UserRoles

	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 values initialized.

func NewAddUserRolesParamsWithContext

func NewAddUserRolesParamsWithContext(ctx context.Context) *AddUserRolesParams

NewAddUserRolesParamsWithContext creates a new AddUserRolesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 GetCurrentUserPermissionsOK

type GetCurrentUserPermissionsOK struct {
	Payload []string

	HttpResponse runtime.ClientResponse
}

GetCurrentUserPermissionsOK handles this case with default header values.

successful operation

func NewGetCurrentUserPermissionsOK

func NewGetCurrentUserPermissionsOK() *GetCurrentUserPermissionsOK

NewGetCurrentUserPermissionsOK creates a GetCurrentUserPermissionsOK with default headers values

func (*GetCurrentUserPermissionsOK) Error

type GetCurrentUserPermissionsParams

type GetCurrentUserPermissionsParams struct {
	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 values initialized.

func NewGetCurrentUserPermissionsParamsWithContext

func NewGetCurrentUserPermissionsParamsWithContext(ctx context.Context) *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParamsWithContext creates a new GetCurrentUserPermissionsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

successful operation

func NewGetCurrentUserSubjectOK

func NewGetCurrentUserSubjectOK() *GetCurrentUserSubjectOK

NewGetCurrentUserSubjectOK creates a GetCurrentUserSubjectOK with default headers values

func (*GetCurrentUserSubjectOK) Error

func (o *GetCurrentUserSubjectOK) Error() string

type GetCurrentUserSubjectParams

type GetCurrentUserSubjectParams struct {
	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 values initialized.

func NewGetCurrentUserSubjectParamsWithContext

func NewGetCurrentUserSubjectParamsWithContext(ctx context.Context) *GetCurrentUserSubjectParams

NewGetCurrentUserSubjectParamsWithContext creates a new GetCurrentUserSubjectParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

successful operation

func NewGetRoleDefinitionOK

func NewGetRoleDefinitionOK() *GetRoleDefinitionOK

NewGetRoleDefinitionOK creates a GetRoleDefinitionOK with default headers values

func (*GetRoleDefinitionOK) Error

func (o *GetRoleDefinitionOK) Error() string

type GetRoleDefinitionParams

type GetRoleDefinitionParams struct {

	/*Role*/
	Role string

	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 values initialized.

func NewGetRoleDefinitionParamsWithContext

func NewGetRoleDefinitionParamsWithContext(ctx context.Context) *GetRoleDefinitionParams

NewGetRoleDefinitionParamsWithContext creates a new GetRoleDefinitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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) Error

func (o *GetUserRolesNotFound) Error() string

type GetUserRolesOK

type GetUserRolesOK struct {
	Payload *kbmodel.UserRoles

	HttpResponse runtime.ClientResponse
}

GetUserRolesOK handles this case with default header values.

successful operation

func NewGetUserRolesOK

func NewGetUserRolesOK() *GetUserRolesOK

NewGetUserRolesOK creates a GetUserRolesOK with default headers values

func (*GetUserRolesOK) Error

func (o *GetUserRolesOK) Error() string

type GetUserRolesParams

type GetUserRolesParams struct {

	/*Username*/
	Username string

	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 values initialized.

func NewGetUserRolesParamsWithContext

func NewGetUserRolesParamsWithContext(ctx context.Context) *GetUserRolesParams

NewGetUserRolesParamsWithContext creates a new GetUserRolesParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 ISecurity

type ISecurity interface {
	/*
		AddRoleDefinition adds a new role definition
	*/
	AddRoleDefinition(ctx context.Context, params *AddRoleDefinitionParams) (*AddRoleDefinitionCreated, error)

	/*
		AddUserRoles adds a new user with roles to make api requests
	*/
	AddUserRoles(ctx context.Context, params *AddUserRolesParams) (*AddUserRolesCreated, error)

	/*
		GetCurrentUserPermissions lists user permissions
	*/
	GetCurrentUserPermissions(ctx context.Context, params *GetCurrentUserPermissionsParams) (*GetCurrentUserPermissionsOK, error)

	/*
		GetCurrentUserSubject gets user information
	*/
	GetCurrentUserSubject(ctx context.Context, params *GetCurrentUserSubjectParams) (*GetCurrentUserSubjectOK, error)

	/*
		GetRoleDefinition gets role definition
	*/
	GetRoleDefinition(ctx context.Context, params *GetRoleDefinitionParams) (*GetRoleDefinitionOK, error)

	/*
		GetUserRoles gets roles associated to a user
	*/
	GetUserRoles(ctx context.Context, params *GetUserRolesParams) (*GetUserRolesOK, error)

	/*
		InvalidateUser invalidates an existing user
	*/
	InvalidateUser(ctx context.Context, params *InvalidateUserParams) (*InvalidateUserNoContent, error)

	/*
		UpdateRoleDefinition updates a new role definition
	*/
	UpdateRoleDefinition(ctx context.Context, params *UpdateRoleDefinitionParams) (*UpdateRoleDefinitionNoContent, error)

	/*
		UpdateUserPassword updates a user password
	*/
	UpdateUserPassword(ctx context.Context, params *UpdateUserPasswordParams) (*UpdateUserPasswordNoContent, error)

	/*
		UpdateUserRoles updates roles associated to a user
	*/
	UpdateUserRoles(ctx context.Context, params *UpdateUserRolesParams) (*UpdateUserRolesNoContent, error)
}

ISecurity - interface for Security client.

type InvalidateUserNoContent

type InvalidateUserNoContent struct {
	HttpResponse runtime.ClientResponse
}

InvalidateUserNoContent handles this case with default header values.

Successful operation

func NewInvalidateUserNoContent

func NewInvalidateUserNoContent() *InvalidateUserNoContent

NewInvalidateUserNoContent creates a InvalidateUserNoContent with default headers values

func (*InvalidateUserNoContent) Error

func (o *InvalidateUserNoContent) Error() string

type InvalidateUserParams

type InvalidateUserParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Username*/
	Username string

	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 values initialized.

func NewInvalidateUserParamsWithContext

func NewInvalidateUserParamsWithContext(ctx context.Context) *InvalidateUserParams

NewInvalidateUserParamsWithContext creates a new InvalidateUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 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 handles this case with default header values.

Successful operation

func NewUpdateRoleDefinitionNoContent

func NewUpdateRoleDefinitionNoContent() *UpdateRoleDefinitionNoContent

NewUpdateRoleDefinitionNoContent creates a UpdateRoleDefinitionNoContent with default headers values

func (*UpdateRoleDefinitionNoContent) Error

type UpdateRoleDefinitionParams

type UpdateRoleDefinitionParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Body*/
	Body *kbmodel.RoleDefinition

	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 values initialized.

func NewUpdateRoleDefinitionParamsWithContext

func NewUpdateRoleDefinitionParamsWithContext(ctx context.Context) *UpdateRoleDefinitionParams

NewUpdateRoleDefinitionParamsWithContext creates a new UpdateRoleDefinitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

Successful operation

func NewUpdateUserPasswordNoContent

func NewUpdateUserPasswordNoContent() *UpdateUserPasswordNoContent

NewUpdateUserPasswordNoContent creates a UpdateUserPasswordNoContent with default headers values

func (*UpdateUserPasswordNoContent) Error

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Body*/
	Body *kbmodel.UserRoles
	/*Username*/
	Username string

	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 values initialized.

func NewUpdateUserPasswordParamsWithContext

func NewUpdateUserPasswordParamsWithContext(ctx context.Context) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithContext creates a new UpdateUserPasswordParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.

Successful operation

func NewUpdateUserRolesNoContent

func NewUpdateUserRolesNoContent() *UpdateUserRolesNoContent

NewUpdateUserRolesNoContent creates a UpdateUserRolesNoContent with default headers values

func (*UpdateUserRolesNoContent) Error

func (o *UpdateUserRolesNoContent) Error() string

type UpdateUserRolesParams

type UpdateUserRolesParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*Body*/
	Body *kbmodel.UserRoles
	/*Username*/
	Username string

	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 values initialized.

func NewUpdateUserRolesParamsWithContext

func NewUpdateUserRolesParamsWithContext(ctx context.Context) *UpdateUserRolesParams

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