users_roles

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddRoleDefault

type AddRoleDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

AddRoleDefault describes a response with status code -1, with default header values.

unexpected error

func NewAddRoleDefault

func NewAddRoleDefault(code int) *AddRoleDefault

NewAddRoleDefault creates a AddRoleDefault with default headers values

func (*AddRoleDefault) Code

func (o *AddRoleDefault) Code() int

Code gets the status code for the add role default response

func (*AddRoleDefault) Error

func (o *AddRoleDefault) Error() string

func (*AddRoleDefault) GetPayload

func (o *AddRoleDefault) GetPayload() *models.Error

func (*AddRoleDefault) IsClientError

func (o *AddRoleDefault) IsClientError() bool

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

func (*AddRoleDefault) IsCode

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

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

func (*AddRoleDefault) IsRedirect

func (o *AddRoleDefault) IsRedirect() bool

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

func (*AddRoleDefault) IsServerError

func (o *AddRoleDefault) IsServerError() bool

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

func (*AddRoleDefault) IsSuccess

func (o *AddRoleDefault) IsSuccess() bool

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

func (*AddRoleDefault) String

func (o *AddRoleDefault) String() string

type AddRoleNoContent

type AddRoleNoContent struct {
}

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

Null response

func NewAddRoleNoContent

func NewAddRoleNoContent() *AddRoleNoContent

NewAddRoleNoContent creates a AddRoleNoContent with default headers values

func (*AddRoleNoContent) Code

func (o *AddRoleNoContent) Code() int

Code gets the status code for the add role no content response

func (*AddRoleNoContent) Error

func (o *AddRoleNoContent) Error() string

func (*AddRoleNoContent) IsClientError

func (o *AddRoleNoContent) IsClientError() bool

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

func (*AddRoleNoContent) IsCode

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

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

func (*AddRoleNoContent) IsRedirect

func (o *AddRoleNoContent) IsRedirect() bool

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

func (*AddRoleNoContent) IsServerError

func (o *AddRoleNoContent) IsServerError() bool

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

func (*AddRoleNoContent) IsSuccess

func (o *AddRoleNoContent) IsSuccess() bool

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

func (*AddRoleNoContent) String

func (o *AddRoleNoContent) String() string

type AddRoleParams

type AddRoleParams struct {

	/* Role.

	   The name of the role to add
	*/
	Role *models.Rolename

	/* User.

	   The username of the user who gets the new role
	*/
	User string

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

AddRoleParams contains all the parameters to send to the API endpoint

for the add role operation.

Typically these are written to a http.Request.

func NewAddRoleParams

func NewAddRoleParams() *AddRoleParams

NewAddRoleParams creates a new AddRoleParams 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 NewAddRoleParamsWithContext

func NewAddRoleParamsWithContext(ctx context.Context) *AddRoleParams

NewAddRoleParamsWithContext creates a new AddRoleParams object with the ability to set a context for a request.

func NewAddRoleParamsWithHTTPClient

func NewAddRoleParamsWithHTTPClient(client *http.Client) *AddRoleParams

NewAddRoleParamsWithHTTPClient creates a new AddRoleParams object with the ability to set a custom HTTPClient for a request.

func NewAddRoleParamsWithTimeout

func NewAddRoleParamsWithTimeout(timeout time.Duration) *AddRoleParams

NewAddRoleParamsWithTimeout creates a new AddRoleParams object with the ability to set a timeout on a request.

func (*AddRoleParams) SetContext

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

SetContext adds the context to the add role params

func (*AddRoleParams) SetDefaults

func (o *AddRoleParams) SetDefaults()

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

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

func (*AddRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add role params

func (*AddRoleParams) SetRole

func (o *AddRoleParams) SetRole(role *models.Rolename)

SetRole adds the role to the add role params

func (*AddRoleParams) SetTimeout

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

SetTimeout adds the timeout to the add role params

func (*AddRoleParams) SetUser

func (o *AddRoleParams) SetUser(user string)

SetUser adds the user to the add role params

func (*AddRoleParams) WithContext

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

WithContext adds the context to the add role params

func (*AddRoleParams) WithDefaults

func (o *AddRoleParams) WithDefaults() *AddRoleParams

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

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

func (*AddRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add role params

func (*AddRoleParams) WithRole

func (o *AddRoleParams) WithRole(role *models.Rolename) *AddRoleParams

WithRole adds the role to the add role params

func (*AddRoleParams) WithTimeout

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

WithTimeout adds the timeout to the add role params

func (*AddRoleParams) WithUser

func (o *AddRoleParams) WithUser(user string) *AddRoleParams

WithUser adds the user to the add role params

func (*AddRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddRoleReader

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

AddRoleReader is a Reader for the AddRole structure.

func (*AddRoleReader) ReadResponse

func (o *AddRoleReader) 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 users roles API

func (*Client) AddRole

func (a *Client) AddRole(params *AddRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleNoContent, error)

AddRole adds a role to a user

func (*Client) ListRoleUsers

func (a *Client) ListRoleUsers(params *ListRoleUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRoleUsersOK, error)

ListRoleUsers lists the users with the given role

func (*Client) ListUserRoles

func (a *Client) ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserRolesOK, error)

ListUserRoles lists the users roles

func (*Client) PutRoles

func (a *Client) PutRoles(params *PutRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutRolesOK, error)

PutRoles sets the roles of a user

func (*Client) RemoveRoleOfUser

func (a *Client) RemoveRoleOfUser(params *RemoveRoleOfUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRoleOfUserNoContent, error)

RemoveRoleOfUser removes a role from a user

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddRole(params *AddRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddRoleNoContent, error)

	ListRoleUsers(params *ListRoleUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListRoleUsersOK, error)

	ListUserRoles(params *ListUserRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserRolesOK, error)

	PutRoles(params *PutRolesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutRolesOK, error)

	RemoveRoleOfUser(params *RemoveRoleOfUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RemoveRoleOfUserNoContent, 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 users roles API client.

type ListRoleUsersDefault

type ListRoleUsersDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ListRoleUsersDefault describes a response with status code -1, with default header values.

unexpected error

func NewListRoleUsersDefault

func NewListRoleUsersDefault(code int) *ListRoleUsersDefault

NewListRoleUsersDefault creates a ListRoleUsersDefault with default headers values

func (*ListRoleUsersDefault) Code

func (o *ListRoleUsersDefault) Code() int

Code gets the status code for the list role users default response

func (*ListRoleUsersDefault) Error

func (o *ListRoleUsersDefault) Error() string

func (*ListRoleUsersDefault) GetPayload

func (o *ListRoleUsersDefault) GetPayload() *models.Error

func (*ListRoleUsersDefault) IsClientError

func (o *ListRoleUsersDefault) IsClientError() bool

IsClientError returns true when this list role users default response has a 4xx status code

func (*ListRoleUsersDefault) IsCode

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

IsCode returns true when this list role users default response a status code equal to that given

func (*ListRoleUsersDefault) IsRedirect

func (o *ListRoleUsersDefault) IsRedirect() bool

IsRedirect returns true when this list role users default response has a 3xx status code

func (*ListRoleUsersDefault) IsServerError

func (o *ListRoleUsersDefault) IsServerError() bool

IsServerError returns true when this list role users default response has a 5xx status code

func (*ListRoleUsersDefault) IsSuccess

func (o *ListRoleUsersDefault) IsSuccess() bool

IsSuccess returns true when this list role users default response has a 2xx status code

func (*ListRoleUsersDefault) String

func (o *ListRoleUsersDefault) String() string

type ListRoleUsersOK

type ListRoleUsersOK struct {
	Payload *models.Users
}

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

The users assigned to the role

func NewListRoleUsersOK

func NewListRoleUsersOK() *ListRoleUsersOK

NewListRoleUsersOK creates a ListRoleUsersOK with default headers values

func (*ListRoleUsersOK) Code

func (o *ListRoleUsersOK) Code() int

Code gets the status code for the list role users o k response

func (*ListRoleUsersOK) Error

func (o *ListRoleUsersOK) Error() string

func (*ListRoleUsersOK) GetPayload

func (o *ListRoleUsersOK) GetPayload() *models.Users

func (*ListRoleUsersOK) IsClientError

func (o *ListRoleUsersOK) IsClientError() bool

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

func (*ListRoleUsersOK) IsCode

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

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

func (*ListRoleUsersOK) IsRedirect

func (o *ListRoleUsersOK) IsRedirect() bool

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

func (*ListRoleUsersOK) IsServerError

func (o *ListRoleUsersOK) IsServerError() bool

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

func (*ListRoleUsersOK) IsSuccess

func (o *ListRoleUsersOK) IsSuccess() bool

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

func (*ListRoleUsersOK) String

func (o *ListRoleUsersOK) String() string

type ListRoleUsersParams

type ListRoleUsersParams struct {

	/* Role.

	   The role name of the role whose users should be listed
	*/
	Role string

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

ListRoleUsersParams contains all the parameters to send to the API endpoint

for the list role users operation.

Typically these are written to a http.Request.

func NewListRoleUsersParams

func NewListRoleUsersParams() *ListRoleUsersParams

NewListRoleUsersParams creates a new ListRoleUsersParams 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 NewListRoleUsersParamsWithContext

func NewListRoleUsersParamsWithContext(ctx context.Context) *ListRoleUsersParams

NewListRoleUsersParamsWithContext creates a new ListRoleUsersParams object with the ability to set a context for a request.

func NewListRoleUsersParamsWithHTTPClient

func NewListRoleUsersParamsWithHTTPClient(client *http.Client) *ListRoleUsersParams

NewListRoleUsersParamsWithHTTPClient creates a new ListRoleUsersParams object with the ability to set a custom HTTPClient for a request.

func NewListRoleUsersParamsWithTimeout

func NewListRoleUsersParamsWithTimeout(timeout time.Duration) *ListRoleUsersParams

NewListRoleUsersParamsWithTimeout creates a new ListRoleUsersParams object with the ability to set a timeout on a request.

func (*ListRoleUsersParams) SetContext

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

SetContext adds the context to the list role users params

func (*ListRoleUsersParams) SetDefaults

func (o *ListRoleUsersParams) SetDefaults()

SetDefaults hydrates default values in the list role users params (not the query body).

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

func (*ListRoleUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list role users params

func (*ListRoleUsersParams) SetRole

func (o *ListRoleUsersParams) SetRole(role string)

SetRole adds the role to the list role users params

func (*ListRoleUsersParams) SetTimeout

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

SetTimeout adds the timeout to the list role users params

func (*ListRoleUsersParams) WithContext

WithContext adds the context to the list role users params

func (*ListRoleUsersParams) WithDefaults

func (o *ListRoleUsersParams) WithDefaults() *ListRoleUsersParams

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

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

func (*ListRoleUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list role users params

func (*ListRoleUsersParams) WithRole

func (o *ListRoleUsersParams) WithRole(role string) *ListRoleUsersParams

WithRole adds the role to the list role users params

func (*ListRoleUsersParams) WithTimeout

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

WithTimeout adds the timeout to the list role users params

func (*ListRoleUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListRoleUsersReader

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

ListRoleUsersReader is a Reader for the ListRoleUsers structure.

func (*ListRoleUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserRolesDefault

type ListUserRolesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

ListUserRolesDefault describes a response with status code -1, with default header values.

unexpected error

func NewListUserRolesDefault

func NewListUserRolesDefault(code int) *ListUserRolesDefault

NewListUserRolesDefault creates a ListUserRolesDefault with default headers values

func (*ListUserRolesDefault) Code

func (o *ListUserRolesDefault) Code() int

Code gets the status code for the list user roles default response

func (*ListUserRolesDefault) Error

func (o *ListUserRolesDefault) Error() string

func (*ListUserRolesDefault) GetPayload

func (o *ListUserRolesDefault) GetPayload() *models.Error

func (*ListUserRolesDefault) IsClientError

func (o *ListUserRolesDefault) IsClientError() bool

IsClientError returns true when this list user roles default response has a 4xx status code

func (*ListUserRolesDefault) IsCode

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

IsCode returns true when this list user roles default response a status code equal to that given

func (*ListUserRolesDefault) IsRedirect

func (o *ListUserRolesDefault) IsRedirect() bool

IsRedirect returns true when this list user roles default response has a 3xx status code

func (*ListUserRolesDefault) IsServerError

func (o *ListUserRolesDefault) IsServerError() bool

IsServerError returns true when this list user roles default response has a 5xx status code

func (*ListUserRolesDefault) IsSuccess

func (o *ListUserRolesDefault) IsSuccess() bool

IsSuccess returns true when this list user roles default response has a 2xx status code

func (*ListUserRolesDefault) String

func (o *ListUserRolesDefault) String() string

type ListUserRolesOK

type ListUserRolesOK struct {
	Payload *models.Roles
}

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

The user's roles

func NewListUserRolesOK

func NewListUserRolesOK() *ListUserRolesOK

NewListUserRolesOK creates a ListUserRolesOK with default headers values

func (*ListUserRolesOK) Code

func (o *ListUserRolesOK) Code() int

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

func (*ListUserRolesOK) Error

func (o *ListUserRolesOK) Error() string

func (*ListUserRolesOK) GetPayload

func (o *ListUserRolesOK) GetPayload() *models.Roles

func (*ListUserRolesOK) IsClientError

func (o *ListUserRolesOK) IsClientError() bool

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

func (*ListUserRolesOK) IsCode

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

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

func (*ListUserRolesOK) IsRedirect

func (o *ListUserRolesOK) IsRedirect() bool

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

func (*ListUserRolesOK) IsServerError

func (o *ListUserRolesOK) IsServerError() bool

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

func (*ListUserRolesOK) IsSuccess

func (o *ListUserRolesOK) IsSuccess() bool

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

func (*ListUserRolesOK) String

func (o *ListUserRolesOK) String() string

type ListUserRolesParams

type ListUserRolesParams struct {

	/* User.

	   The username of the user whose roles should be listed
	*/
	User string

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

ListUserRolesParams contains all the parameters to send to the API endpoint

for the list user roles operation.

Typically these are written to a http.Request.

func NewListUserRolesParams

func NewListUserRolesParams() *ListUserRolesParams

NewListUserRolesParams creates a new ListUserRolesParams 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 NewListUserRolesParamsWithContext

func NewListUserRolesParamsWithContext(ctx context.Context) *ListUserRolesParams

NewListUserRolesParamsWithContext creates a new ListUserRolesParams object with the ability to set a context for a request.

func NewListUserRolesParamsWithHTTPClient

func NewListUserRolesParamsWithHTTPClient(client *http.Client) *ListUserRolesParams

NewListUserRolesParamsWithHTTPClient creates a new ListUserRolesParams object with the ability to set a custom HTTPClient for a request.

func NewListUserRolesParamsWithTimeout

func NewListUserRolesParamsWithTimeout(timeout time.Duration) *ListUserRolesParams

NewListUserRolesParamsWithTimeout creates a new ListUserRolesParams object with the ability to set a timeout on a request.

func (*ListUserRolesParams) SetContext

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

SetContext adds the context to the list user roles params

func (*ListUserRolesParams) SetDefaults

func (o *ListUserRolesParams) SetDefaults()

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

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

func (*ListUserRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user roles params

func (*ListUserRolesParams) SetTimeout

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

SetTimeout adds the timeout to the list user roles params

func (*ListUserRolesParams) SetUser

func (o *ListUserRolesParams) SetUser(user string)

SetUser adds the user to the list user roles params

func (*ListUserRolesParams) WithContext

WithContext adds the context to the list user roles params

func (*ListUserRolesParams) WithDefaults

func (o *ListUserRolesParams) WithDefaults() *ListUserRolesParams

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

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

func (*ListUserRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list user roles params

func (*ListUserRolesParams) WithTimeout

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

WithTimeout adds the timeout to the list user roles params

func (*ListUserRolesParams) WithUser

func (o *ListUserRolesParams) WithUser(user string) *ListUserRolesParams

WithUser adds the user to the list user roles params

func (*ListUserRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUserRolesReader

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

ListUserRolesReader is a Reader for the ListUserRoles structure.

func (*ListUserRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutRolesDefault

type PutRolesDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

PutRolesDefault describes a response with status code -1, with default header values.

unexpected error

func NewPutRolesDefault

func NewPutRolesDefault(code int) *PutRolesDefault

NewPutRolesDefault creates a PutRolesDefault with default headers values

func (*PutRolesDefault) Code

func (o *PutRolesDefault) Code() int

Code gets the status code for the put roles default response

func (*PutRolesDefault) Error

func (o *PutRolesDefault) Error() string

func (*PutRolesDefault) GetPayload

func (o *PutRolesDefault) GetPayload() *models.Error

func (*PutRolesDefault) IsClientError

func (o *PutRolesDefault) IsClientError() bool

IsClientError returns true when this put roles default response has a 4xx status code

func (*PutRolesDefault) IsCode

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

IsCode returns true when this put roles default response a status code equal to that given

func (*PutRolesDefault) IsRedirect

func (o *PutRolesDefault) IsRedirect() bool

IsRedirect returns true when this put roles default response has a 3xx status code

func (*PutRolesDefault) IsServerError

func (o *PutRolesDefault) IsServerError() bool

IsServerError returns true when this put roles default response has a 5xx status code

func (*PutRolesDefault) IsSuccess

func (o *PutRolesDefault) IsSuccess() bool

IsSuccess returns true when this put roles default response has a 2xx status code

func (*PutRolesDefault) String

func (o *PutRolesDefault) String() string

type PutRolesOK

type PutRolesOK struct {
}

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

Null response

func NewPutRolesOK

func NewPutRolesOK() *PutRolesOK

NewPutRolesOK creates a PutRolesOK with default headers values

func (*PutRolesOK) Code

func (o *PutRolesOK) Code() int

Code gets the status code for the put roles o k response

func (*PutRolesOK) Error

func (o *PutRolesOK) Error() string

func (*PutRolesOK) IsClientError

func (o *PutRolesOK) IsClientError() bool

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

func (*PutRolesOK) IsCode

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

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

func (*PutRolesOK) IsRedirect

func (o *PutRolesOK) IsRedirect() bool

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

func (*PutRolesOK) IsServerError

func (o *PutRolesOK) IsServerError() bool

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

func (*PutRolesOK) IsSuccess

func (o *PutRolesOK) IsSuccess() bool

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

func (*PutRolesOK) String

func (o *PutRolesOK) String() string

type PutRolesParams

type PutRolesParams struct {

	/* Roles.

	   The new set of roles
	*/
	Roles *models.Roles

	/* User.

	   The username of the user whose roles should be changed
	*/
	User string

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

PutRolesParams contains all the parameters to send to the API endpoint

for the put roles operation.

Typically these are written to a http.Request.

func NewPutRolesParams

func NewPutRolesParams() *PutRolesParams

NewPutRolesParams creates a new PutRolesParams 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 NewPutRolesParamsWithContext

func NewPutRolesParamsWithContext(ctx context.Context) *PutRolesParams

NewPutRolesParamsWithContext creates a new PutRolesParams object with the ability to set a context for a request.

func NewPutRolesParamsWithHTTPClient

func NewPutRolesParamsWithHTTPClient(client *http.Client) *PutRolesParams

NewPutRolesParamsWithHTTPClient creates a new PutRolesParams object with the ability to set a custom HTTPClient for a request.

func NewPutRolesParamsWithTimeout

func NewPutRolesParamsWithTimeout(timeout time.Duration) *PutRolesParams

NewPutRolesParamsWithTimeout creates a new PutRolesParams object with the ability to set a timeout on a request.

func (*PutRolesParams) SetContext

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

SetContext adds the context to the put roles params

func (*PutRolesParams) SetDefaults

func (o *PutRolesParams) SetDefaults()

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

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

func (*PutRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put roles params

func (*PutRolesParams) SetRoles

func (o *PutRolesParams) SetRoles(roles *models.Roles)

SetRoles adds the roles to the put roles params

func (*PutRolesParams) SetTimeout

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

SetTimeout adds the timeout to the put roles params

func (*PutRolesParams) SetUser

func (o *PutRolesParams) SetUser(user string)

SetUser adds the user to the put roles params

func (*PutRolesParams) WithContext

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

WithContext adds the context to the put roles params

func (*PutRolesParams) WithDefaults

func (o *PutRolesParams) WithDefaults() *PutRolesParams

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

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

func (*PutRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put roles params

func (*PutRolesParams) WithRoles

func (o *PutRolesParams) WithRoles(roles *models.Roles) *PutRolesParams

WithRoles adds the roles to the put roles params

func (*PutRolesParams) WithTimeout

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

WithTimeout adds the timeout to the put roles params

func (*PutRolesParams) WithUser

func (o *PutRolesParams) WithUser(user string) *PutRolesParams

WithUser adds the user to the put roles params

func (*PutRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutRolesReader

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

PutRolesReader is a Reader for the PutRoles structure.

func (*PutRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RemoveRoleOfUserDefault

type RemoveRoleOfUserDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

RemoveRoleOfUserDefault describes a response with status code -1, with default header values.

unexpected error

func NewRemoveRoleOfUserDefault

func NewRemoveRoleOfUserDefault(code int) *RemoveRoleOfUserDefault

NewRemoveRoleOfUserDefault creates a RemoveRoleOfUserDefault with default headers values

func (*RemoveRoleOfUserDefault) Code

func (o *RemoveRoleOfUserDefault) Code() int

Code gets the status code for the remove role of user default response

func (*RemoveRoleOfUserDefault) Error

func (o *RemoveRoleOfUserDefault) Error() string

func (*RemoveRoleOfUserDefault) GetPayload

func (o *RemoveRoleOfUserDefault) GetPayload() *models.Error

func (*RemoveRoleOfUserDefault) IsClientError

func (o *RemoveRoleOfUserDefault) IsClientError() bool

IsClientError returns true when this remove role of user default response has a 4xx status code

func (*RemoveRoleOfUserDefault) IsCode

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

IsCode returns true when this remove role of user default response a status code equal to that given

func (*RemoveRoleOfUserDefault) IsRedirect

func (o *RemoveRoleOfUserDefault) IsRedirect() bool

IsRedirect returns true when this remove role of user default response has a 3xx status code

func (*RemoveRoleOfUserDefault) IsServerError

func (o *RemoveRoleOfUserDefault) IsServerError() bool

IsServerError returns true when this remove role of user default response has a 5xx status code

func (*RemoveRoleOfUserDefault) IsSuccess

func (o *RemoveRoleOfUserDefault) IsSuccess() bool

IsSuccess returns true when this remove role of user default response has a 2xx status code

func (*RemoveRoleOfUserDefault) String

func (o *RemoveRoleOfUserDefault) String() string

type RemoveRoleOfUserNoContent

type RemoveRoleOfUserNoContent struct {
}

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

Null response

func NewRemoveRoleOfUserNoContent

func NewRemoveRoleOfUserNoContent() *RemoveRoleOfUserNoContent

NewRemoveRoleOfUserNoContent creates a RemoveRoleOfUserNoContent with default headers values

func (*RemoveRoleOfUserNoContent) Code

func (o *RemoveRoleOfUserNoContent) Code() int

Code gets the status code for the remove role of user no content response

func (*RemoveRoleOfUserNoContent) Error

func (o *RemoveRoleOfUserNoContent) Error() string

func (*RemoveRoleOfUserNoContent) IsClientError

func (o *RemoveRoleOfUserNoContent) IsClientError() bool

IsClientError returns true when this remove role of user no content response has a 4xx status code

func (*RemoveRoleOfUserNoContent) IsCode

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

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

func (*RemoveRoleOfUserNoContent) IsRedirect

func (o *RemoveRoleOfUserNoContent) IsRedirect() bool

IsRedirect returns true when this remove role of user no content response has a 3xx status code

func (*RemoveRoleOfUserNoContent) IsServerError

func (o *RemoveRoleOfUserNoContent) IsServerError() bool

IsServerError returns true when this remove role of user no content response has a 5xx status code

func (*RemoveRoleOfUserNoContent) IsSuccess

func (o *RemoveRoleOfUserNoContent) IsSuccess() bool

IsSuccess returns true when this remove role of user no content response has a 2xx status code

func (*RemoveRoleOfUserNoContent) String

func (o *RemoveRoleOfUserNoContent) String() string

type RemoveRoleOfUserNotFound

type RemoveRoleOfUserNotFound struct {
	Payload *models.NotExists
}

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

Role user does not exist

func NewRemoveRoleOfUserNotFound

func NewRemoveRoleOfUserNotFound() *RemoveRoleOfUserNotFound

NewRemoveRoleOfUserNotFound creates a RemoveRoleOfUserNotFound with default headers values

func (*RemoveRoleOfUserNotFound) Code

func (o *RemoveRoleOfUserNotFound) Code() int

Code gets the status code for the remove role of user not found response

func (*RemoveRoleOfUserNotFound) Error

func (o *RemoveRoleOfUserNotFound) Error() string

func (*RemoveRoleOfUserNotFound) GetPayload

func (o *RemoveRoleOfUserNotFound) GetPayload() *models.NotExists

func (*RemoveRoleOfUserNotFound) IsClientError

func (o *RemoveRoleOfUserNotFound) IsClientError() bool

IsClientError returns true when this remove role of user not found response has a 4xx status code

func (*RemoveRoleOfUserNotFound) IsCode

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

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

func (*RemoveRoleOfUserNotFound) IsRedirect

func (o *RemoveRoleOfUserNotFound) IsRedirect() bool

IsRedirect returns true when this remove role of user not found response has a 3xx status code

func (*RemoveRoleOfUserNotFound) IsServerError

func (o *RemoveRoleOfUserNotFound) IsServerError() bool

IsServerError returns true when this remove role of user not found response has a 5xx status code

func (*RemoveRoleOfUserNotFound) IsSuccess

func (o *RemoveRoleOfUserNotFound) IsSuccess() bool

IsSuccess returns true when this remove role of user not found response has a 2xx status code

func (*RemoveRoleOfUserNotFound) String

func (o *RemoveRoleOfUserNotFound) String() string

type RemoveRoleOfUserParams

type RemoveRoleOfUserParams struct {

	/* Role.

	   The name of the role to remove
	*/
	Role string

	/* User.

	   The username of the user whose role should be removed
	*/
	User string

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

RemoveRoleOfUserParams contains all the parameters to send to the API endpoint

for the remove role of user operation.

Typically these are written to a http.Request.

func NewRemoveRoleOfUserParams

func NewRemoveRoleOfUserParams() *RemoveRoleOfUserParams

NewRemoveRoleOfUserParams creates a new RemoveRoleOfUserParams 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 NewRemoveRoleOfUserParamsWithContext

func NewRemoveRoleOfUserParamsWithContext(ctx context.Context) *RemoveRoleOfUserParams

NewRemoveRoleOfUserParamsWithContext creates a new RemoveRoleOfUserParams object with the ability to set a context for a request.

func NewRemoveRoleOfUserParamsWithHTTPClient

func NewRemoveRoleOfUserParamsWithHTTPClient(client *http.Client) *RemoveRoleOfUserParams

NewRemoveRoleOfUserParamsWithHTTPClient creates a new RemoveRoleOfUserParams object with the ability to set a custom HTTPClient for a request.

func NewRemoveRoleOfUserParamsWithTimeout

func NewRemoveRoleOfUserParamsWithTimeout(timeout time.Duration) *RemoveRoleOfUserParams

NewRemoveRoleOfUserParamsWithTimeout creates a new RemoveRoleOfUserParams object with the ability to set a timeout on a request.

func (*RemoveRoleOfUserParams) SetContext

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

SetContext adds the context to the remove role of user params

func (*RemoveRoleOfUserParams) SetDefaults

func (o *RemoveRoleOfUserParams) SetDefaults()

SetDefaults hydrates default values in the remove role of user params (not the query body).

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

func (*RemoveRoleOfUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the remove role of user params

func (*RemoveRoleOfUserParams) SetRole

func (o *RemoveRoleOfUserParams) SetRole(role string)

SetRole adds the role to the remove role of user params

func (*RemoveRoleOfUserParams) SetTimeout

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

SetTimeout adds the timeout to the remove role of user params

func (*RemoveRoleOfUserParams) SetUser

func (o *RemoveRoleOfUserParams) SetUser(user string)

SetUser adds the user to the remove role of user params

func (*RemoveRoleOfUserParams) WithContext

WithContext adds the context to the remove role of user params

func (*RemoveRoleOfUserParams) WithDefaults

WithDefaults hydrates default values in the remove role of user params (not the query body).

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

func (*RemoveRoleOfUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the remove role of user params

func (*RemoveRoleOfUserParams) WithRole

WithRole adds the role to the remove role of user params

func (*RemoveRoleOfUserParams) WithTimeout

WithTimeout adds the timeout to the remove role of user params

func (*RemoveRoleOfUserParams) WithUser

WithUser adds the user to the remove role of user params

func (*RemoveRoleOfUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RemoveRoleOfUserReader

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

RemoveRoleOfUserReader is a Reader for the RemoveRoleOfUser structure.

func (*RemoveRoleOfUserReader) ReadResponse

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