roles

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for roles API

func New

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

New creates a new roles API client.

func (*Client) DeleteRolesRoleID

func (a *Client) DeleteRolesRoleID(params *DeleteRolesRoleIDParams) (*DeleteRolesRoleIDNoContent, error)

DeleteRolesRoleID deletes role

func (*Client) GetRoles

func (a *Client) GetRoles(params *GetRolesParams) (*GetRolesOK, error)

GetRoles lists all roles

func (*Client) GetRolesRoleID

func (a *Client) GetRolesRoleID(params *GetRolesRoleIDParams) (*GetRolesRoleIDOK, error)

GetRolesRoleID fetches role

func (*Client) PostRoles

func (a *Client) PostRoles(params *PostRolesParams) (*PostRolesCreated, error)

PostRoles creates role

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type DeleteRolesRoleIDNoContent

type DeleteRolesRoleIDNoContent struct {
}

DeleteRolesRoleIDNoContent handles this case with default header values.

Role deleted

func NewDeleteRolesRoleIDNoContent

func NewDeleteRolesRoleIDNoContent() *DeleteRolesRoleIDNoContent

NewDeleteRolesRoleIDNoContent creates a DeleteRolesRoleIDNoContent with default headers values

func (*DeleteRolesRoleIDNoContent) Error

type DeleteRolesRoleIDParams

type DeleteRolesRoleIDParams struct {

	/*RoleID
	  Role Id

	*/
	RoleID strfmt.UUID
	/*Version
	  Version

	*/
	Version int64

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

DeleteRolesRoleIDParams contains all the parameters to send to the API endpoint for the delete roles role ID operation typically these are written to a http.Request

func NewDeleteRolesRoleIDParams

func NewDeleteRolesRoleIDParams() *DeleteRolesRoleIDParams

NewDeleteRolesRoleIDParams creates a new DeleteRolesRoleIDParams object with the default values initialized.

func NewDeleteRolesRoleIDParamsWithContext

func NewDeleteRolesRoleIDParamsWithContext(ctx context.Context) *DeleteRolesRoleIDParams

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

func NewDeleteRolesRoleIDParamsWithHTTPClient

func NewDeleteRolesRoleIDParamsWithHTTPClient(client *http.Client) *DeleteRolesRoleIDParams

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

func NewDeleteRolesRoleIDParamsWithTimeout

func NewDeleteRolesRoleIDParamsWithTimeout(timeout time.Duration) *DeleteRolesRoleIDParams

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

func (*DeleteRolesRoleIDParams) SetContext

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

SetContext adds the context to the delete roles role ID params

func (*DeleteRolesRoleIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete roles role ID params

func (*DeleteRolesRoleIDParams) SetRoleID

func (o *DeleteRolesRoleIDParams) SetRoleID(roleID strfmt.UUID)

SetRoleID adds the roleId to the delete roles role ID params

func (*DeleteRolesRoleIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete roles role ID params

func (*DeleteRolesRoleIDParams) SetVersion

func (o *DeleteRolesRoleIDParams) SetVersion(version int64)

SetVersion adds the version to the delete roles role ID params

func (*DeleteRolesRoleIDParams) WithContext

WithContext adds the context to the delete roles role ID params

func (*DeleteRolesRoleIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete roles role ID params

func (*DeleteRolesRoleIDParams) WithRoleID

WithRoleID adds the roleID to the delete roles role ID params

func (*DeleteRolesRoleIDParams) WithTimeout

WithTimeout adds the timeout to the delete roles role ID params

func (*DeleteRolesRoleIDParams) WithVersion

func (o *DeleteRolesRoleIDParams) WithVersion(version int64) *DeleteRolesRoleIDParams

WithVersion adds the version to the delete roles role ID params

func (*DeleteRolesRoleIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRolesRoleIDReader

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

DeleteRolesRoleIDReader is a Reader for the DeleteRolesRoleID structure.

func (*DeleteRolesRoleIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRolesOK

type GetRolesOK struct {
	Payload *models.RoleDetailsListResponse
}

GetRolesOK handles this case with default header values.

List of role details

func NewGetRolesOK

func NewGetRolesOK() *GetRolesOK

NewGetRolesOK creates a GetRolesOK with default headers values

func (*GetRolesOK) Error

func (o *GetRolesOK) Error() string

type GetRolesParams

type GetRolesParams struct {

	/*PageNumber
	  Which page to select

	*/
	PageNumber *int64
	/*PageSize
	  Number of items to select

	*/
	PageSize *int64

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

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

func NewGetRolesParams

func NewGetRolesParams() *GetRolesParams

NewGetRolesParams creates a new GetRolesParams object with the default values initialized.

func NewGetRolesParamsWithContext

func NewGetRolesParamsWithContext(ctx context.Context) *GetRolesParams

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

func NewGetRolesParamsWithHTTPClient

func NewGetRolesParamsWithHTTPClient(client *http.Client) *GetRolesParams

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

func NewGetRolesParamsWithTimeout

func NewGetRolesParamsWithTimeout(timeout time.Duration) *GetRolesParams

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

func (*GetRolesParams) SetContext

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

SetContext adds the context to the get roles params

func (*GetRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get roles params

func (*GetRolesParams) SetPageNumber

func (o *GetRolesParams) SetPageNumber(pageNumber *int64)

SetPageNumber adds the pageNumber to the get roles params

func (*GetRolesParams) SetPageSize

func (o *GetRolesParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the get roles params

func (*GetRolesParams) SetTimeout

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

SetTimeout adds the timeout to the get roles params

func (*GetRolesParams) WithContext

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

WithContext adds the context to the get roles params

func (*GetRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get roles params

func (*GetRolesParams) WithPageNumber

func (o *GetRolesParams) WithPageNumber(pageNumber *int64) *GetRolesParams

WithPageNumber adds the pageNumber to the get roles params

func (*GetRolesParams) WithPageSize

func (o *GetRolesParams) WithPageSize(pageSize *int64) *GetRolesParams

WithPageSize adds the pageSize to the get roles params

func (*GetRolesParams) WithTimeout

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

WithTimeout adds the timeout to the get roles params

func (*GetRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRolesReader

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

GetRolesReader is a Reader for the GetRoles structure.

func (*GetRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRolesRoleIDOK

type GetRolesRoleIDOK struct {
	Payload *models.RoleDetailsResponse
}

GetRolesRoleIDOK handles this case with default header values.

Role details

func NewGetRolesRoleIDOK

func NewGetRolesRoleIDOK() *GetRolesRoleIDOK

NewGetRolesRoleIDOK creates a GetRolesRoleIDOK with default headers values

func (*GetRolesRoleIDOK) Error

func (o *GetRolesRoleIDOK) Error() string

type GetRolesRoleIDParams

type GetRolesRoleIDParams struct {

	/*RoleID
	  Role Id

	*/
	RoleID strfmt.UUID

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

GetRolesRoleIDParams contains all the parameters to send to the API endpoint for the get roles role ID operation typically these are written to a http.Request

func NewGetRolesRoleIDParams

func NewGetRolesRoleIDParams() *GetRolesRoleIDParams

NewGetRolesRoleIDParams creates a new GetRolesRoleIDParams object with the default values initialized.

func NewGetRolesRoleIDParamsWithContext

func NewGetRolesRoleIDParamsWithContext(ctx context.Context) *GetRolesRoleIDParams

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

func NewGetRolesRoleIDParamsWithHTTPClient

func NewGetRolesRoleIDParamsWithHTTPClient(client *http.Client) *GetRolesRoleIDParams

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

func NewGetRolesRoleIDParamsWithTimeout

func NewGetRolesRoleIDParamsWithTimeout(timeout time.Duration) *GetRolesRoleIDParams

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

func (*GetRolesRoleIDParams) SetContext

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

SetContext adds the context to the get roles role ID params

func (*GetRolesRoleIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get roles role ID params

func (*GetRolesRoleIDParams) SetRoleID

func (o *GetRolesRoleIDParams) SetRoleID(roleID strfmt.UUID)

SetRoleID adds the roleId to the get roles role ID params

func (*GetRolesRoleIDParams) SetTimeout

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

SetTimeout adds the timeout to the get roles role ID params

func (*GetRolesRoleIDParams) WithContext

WithContext adds the context to the get roles role ID params

func (*GetRolesRoleIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get roles role ID params

func (*GetRolesRoleIDParams) WithRoleID

func (o *GetRolesRoleIDParams) WithRoleID(roleID strfmt.UUID) *GetRolesRoleIDParams

WithRoleID adds the roleID to the get roles role ID params

func (*GetRolesRoleIDParams) WithTimeout

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

WithTimeout adds the timeout to the get roles role ID params

func (*GetRolesRoleIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRolesRoleIDReader

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

GetRolesRoleIDReader is a Reader for the GetRolesRoleID structure.

func (*GetRolesRoleIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostRolesCreated

type PostRolesCreated struct {
	Payload *models.RoleCreationResponse
}

PostRolesCreated handles this case with default header values.

Role creation response

func NewPostRolesCreated

func NewPostRolesCreated() *PostRolesCreated

NewPostRolesCreated creates a PostRolesCreated with default headers values

func (*PostRolesCreated) Error

func (o *PostRolesCreated) Error() string

type PostRolesParams

type PostRolesParams struct {

	/*RoleCreationRequest*/
	RoleCreationRequest *models.RoleCreation

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

PostRolesParams contains all the parameters to send to the API endpoint for the post roles operation typically these are written to a http.Request

func NewPostRolesParams

func NewPostRolesParams() *PostRolesParams

NewPostRolesParams creates a new PostRolesParams object with the default values initialized.

func NewPostRolesParamsWithContext

func NewPostRolesParamsWithContext(ctx context.Context) *PostRolesParams

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

func NewPostRolesParamsWithHTTPClient

func NewPostRolesParamsWithHTTPClient(client *http.Client) *PostRolesParams

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

func NewPostRolesParamsWithTimeout

func NewPostRolesParamsWithTimeout(timeout time.Duration) *PostRolesParams

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

func (*PostRolesParams) SetContext

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

SetContext adds the context to the post roles params

func (*PostRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post roles params

func (*PostRolesParams) SetRoleCreationRequest

func (o *PostRolesParams) SetRoleCreationRequest(roleCreationRequest *models.RoleCreation)

SetRoleCreationRequest adds the roleCreationRequest to the post roles params

func (*PostRolesParams) SetTimeout

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

SetTimeout adds the timeout to the post roles params

func (*PostRolesParams) WithContext

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

WithContext adds the context to the post roles params

func (*PostRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post roles params

func (*PostRolesParams) WithRoleCreationRequest

func (o *PostRolesParams) WithRoleCreationRequest(roleCreationRequest *models.RoleCreation) *PostRolesParams

WithRoleCreationRequest adds the roleCreationRequest to the post roles params

func (*PostRolesParams) WithTimeout

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

WithTimeout adds the timeout to the post roles params

func (*PostRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostRolesReader

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

PostRolesReader is a Reader for the PostRoles structure.

func (*PostRolesReader) ReadResponse

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