security

package
v3.0.2-draft Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 License: Apache-2.0 Imports: 10 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
}
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) Error

func (o *AddRoleDefinitionCreated) Error() string

func (*AddRoleDefinitionCreated) GetPayload

type AddRoleDefinitionParams

type AddRoleDefinitionParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.RoleDefinition

	Context    context.Context
	HTTPClient *http.Client
	// 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
}
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) Error

func (o *AddUserRolesCreated) Error() string

func (*AddUserRolesCreated) GetPayload

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

type AddUserRolesParams

type AddUserRolesParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.UserRoles

	Context    context.Context
	HTTPClient *http.Client
	// 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 (*Client) AddRoleDefinition

func (a *Client) AddRoleDefinition(params *AddRoleDefinitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleDefinitionCreated, error)

AddRoleDefinition adds a new role definition

func (*Client) AddUserRoles

func (a *Client) AddUserRoles(params *AddUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddUserRolesCreated, error)

AddUserRoles adds a new user with roles to make api requests

func (*Client) GetCurrentUserPermissions

func (a *Client) GetCurrentUserPermissions(params *GetCurrentUserPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserPermissionsOK, error)

GetCurrentUserPermissions lists user permissions

func (*Client) GetCurrentUserSubject

func (a *Client) GetCurrentUserSubject(params *GetCurrentUserSubjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserSubjectOK, error)

GetCurrentUserSubject gets user information

func (*Client) GetRoleDefinition

func (a *Client) GetRoleDefinition(params *GetRoleDefinitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleDefinitionOK, error)

GetRoleDefinition gets role definition

func (*Client) GetUserRoles

func (a *Client) GetUserRoles(params *GetUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserRolesOK, error)

GetUserRoles gets roles associated to a user

func (*Client) InvalidateUser

func (a *Client) InvalidateUser(params *InvalidateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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(params *UpdateRoleDefinitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleDefinitionNoContent, error)

UpdateRoleDefinition updates a new role definition

func (*Client) UpdateUserPassword

func (a *Client) UpdateUserPassword(params *UpdateUserPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserPasswordNoContent, error)

UpdateUserPassword updates a user password

func (*Client) UpdateUserRoles

func (a *Client) UpdateUserRoles(params *UpdateUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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(params *AddRoleDefinitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleDefinitionCreated, error)

	AddUserRoles(params *AddUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddUserRolesCreated, error)

	GetCurrentUserPermissions(params *GetCurrentUserPermissionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserPermissionsOK, error)

	GetCurrentUserSubject(params *GetCurrentUserSubjectParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCurrentUserSubjectOK, error)

	GetRoleDefinition(params *GetRoleDefinitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRoleDefinitionOK, error)

	GetUserRoles(params *GetUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserRolesOK, error)

	InvalidateUser(params *InvalidateUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InvalidateUserNoContent, error)

	UpdateRoleDefinition(params *UpdateRoleDefinitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateRoleDefinitionNoContent, error)

	UpdateUserPassword(params *UpdateUserPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserPasswordNoContent, error)

	UpdateUserRoles(params *UpdateUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserRolesNoContent, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new security API client.

type GetCurrentUserPermissionsOK

type GetCurrentUserPermissionsOK struct {
	Payload []string
}
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) Error

func (*GetCurrentUserPermissionsOK) GetPayload

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

type GetCurrentUserPermissionsParams

type GetCurrentUserPermissionsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// 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
}
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) Error

func (o *GetCurrentUserSubjectOK) Error() string

func (*GetCurrentUserSubjectOK) GetPayload

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

type GetCurrentUserSubjectParams

type GetCurrentUserSubjectParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// 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
}
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) Error

func (o *GetRoleDefinitionOK) Error() string

func (*GetRoleDefinitionOK) GetPayload

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

type GetRoleDefinitionParams

type GetRoleDefinitionParams struct {

	// Role.
	Role string

	Context    context.Context
	HTTPClient *http.Client
	// 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 {
}
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) Error

func (o *GetUserRolesNotFound) Error() string

type GetUserRolesOK

type GetUserRolesOK struct {
	Payload *kbmodel.UserRoles
}
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) Error

func (o *GetUserRolesOK) Error() string

func (*GetUserRolesOK) GetPayload

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

type GetUserRolesParams

type GetUserRolesParams struct {

	// Username.
	Username string

	Context    context.Context
	HTTPClient *http.Client
	// 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 {
}
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) Error

func (o *InvalidateUserNoContent) Error() string

type InvalidateUserParams

type InvalidateUserParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Username.
	Username string

	Context    context.Context
	HTTPClient *http.Client
	// 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 UpdateRoleDefinitionNoContent

type UpdateRoleDefinitionNoContent struct {
}
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) Error

type UpdateRoleDefinitionParams

type UpdateRoleDefinitionParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.RoleDefinition

	Context    context.Context
	HTTPClient *http.Client
	// 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 {
}
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) Error

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.UserRoles

	// Username.
	Username string

	Context    context.Context
	HTTPClient *http.Client
	// 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 {
}
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) 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

	Context    context.Context
	HTTPClient *http.Client
	// 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