roles

package
v0.44.37 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 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 (*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 ClientService added in v0.43.0

type ClientService interface {
	DeleteRolesRoleID(params *DeleteRolesRoleIDParams) (*DeleteRolesRoleIDNoContent, error)

	GetRoles(params *GetRolesParams) (*GetRolesOK, error)

	GetRolesRoleID(params *GetRolesRoleIDParams) (*GetRolesRoleIDOK, error)

	PostRoles(params *PostRolesParams) (*PostRolesCreated, 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 roles API 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 GetRolesBadRequest added in v0.43.0

type GetRolesBadRequest struct {
	Payload *models.APIError
}

GetRolesBadRequest handles this case with default header values.

Bad Request

func NewGetRolesBadRequest added in v0.43.0

func NewGetRolesBadRequest() *GetRolesBadRequest

NewGetRolesBadRequest creates a GetRolesBadRequest with default headers values

func (*GetRolesBadRequest) Error added in v0.43.0

func (o *GetRolesBadRequest) Error() string

func (*GetRolesBadRequest) GetPayload added in v0.43.0

func (o *GetRolesBadRequest) GetPayload() *models.APIError

type GetRolesConflict added in v0.43.0

type GetRolesConflict struct {
	Payload *models.APIError
}

GetRolesConflict handles this case with default header values.

Conflict

func NewGetRolesConflict added in v0.43.0

func NewGetRolesConflict() *GetRolesConflict

NewGetRolesConflict creates a GetRolesConflict with default headers values

func (*GetRolesConflict) Error added in v0.43.0

func (o *GetRolesConflict) Error() string

func (*GetRolesConflict) GetPayload added in v0.43.0

func (o *GetRolesConflict) GetPayload() *models.APIError

type GetRolesForbidden added in v0.43.0

type GetRolesForbidden struct {
	Payload *models.APIError
}

GetRolesForbidden handles this case with default header values.

Forbidden

func NewGetRolesForbidden added in v0.43.0

func NewGetRolesForbidden() *GetRolesForbidden

NewGetRolesForbidden creates a GetRolesForbidden with default headers values

func (*GetRolesForbidden) Error added in v0.43.0

func (o *GetRolesForbidden) Error() string

func (*GetRolesForbidden) GetPayload added in v0.43.0

func (o *GetRolesForbidden) GetPayload() *models.APIError

type GetRolesInternalServerError added in v0.43.0

type GetRolesInternalServerError struct {
	Payload *models.APIError
}

GetRolesInternalServerError handles this case with default header values.

Internal Server Error

func NewGetRolesInternalServerError added in v0.43.0

func NewGetRolesInternalServerError() *GetRolesInternalServerError

NewGetRolesInternalServerError creates a GetRolesInternalServerError with default headers values

func (*GetRolesInternalServerError) Error added in v0.43.0

func (*GetRolesInternalServerError) GetPayload added in v0.43.0

func (o *GetRolesInternalServerError) GetPayload() *models.APIError

type GetRolesNotFound added in v0.43.0

type GetRolesNotFound struct {
	Payload *models.APIError
}

GetRolesNotFound handles this case with default header values.

Record not found

func NewGetRolesNotFound added in v0.43.0

func NewGetRolesNotFound() *GetRolesNotFound

NewGetRolesNotFound creates a GetRolesNotFound with default headers values

func (*GetRolesNotFound) Error added in v0.43.0

func (o *GetRolesNotFound) Error() string

func (*GetRolesNotFound) GetPayload added in v0.43.0

func (o *GetRolesNotFound) GetPayload() *models.APIError

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

func (*GetRolesOK) GetPayload added in v0.43.0

func (o *GetRolesOK) GetPayload() *models.RoleDetailsListResponse

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 GetRolesRoleIDBadRequest added in v0.43.0

type GetRolesRoleIDBadRequest struct {
	Payload *models.APIError
}

GetRolesRoleIDBadRequest handles this case with default header values.

Bad Request

func NewGetRolesRoleIDBadRequest added in v0.43.0

func NewGetRolesRoleIDBadRequest() *GetRolesRoleIDBadRequest

NewGetRolesRoleIDBadRequest creates a GetRolesRoleIDBadRequest with default headers values

func (*GetRolesRoleIDBadRequest) Error added in v0.43.0

func (o *GetRolesRoleIDBadRequest) Error() string

func (*GetRolesRoleIDBadRequest) GetPayload added in v0.43.0

func (o *GetRolesRoleIDBadRequest) GetPayload() *models.APIError

type GetRolesRoleIDConflict added in v0.43.0

type GetRolesRoleIDConflict struct {
	Payload *models.APIError
}

GetRolesRoleIDConflict handles this case with default header values.

Conflict

func NewGetRolesRoleIDConflict added in v0.43.0

func NewGetRolesRoleIDConflict() *GetRolesRoleIDConflict

NewGetRolesRoleIDConflict creates a GetRolesRoleIDConflict with default headers values

func (*GetRolesRoleIDConflict) Error added in v0.43.0

func (o *GetRolesRoleIDConflict) Error() string

func (*GetRolesRoleIDConflict) GetPayload added in v0.43.0

func (o *GetRolesRoleIDConflict) GetPayload() *models.APIError

type GetRolesRoleIDForbidden added in v0.43.0

type GetRolesRoleIDForbidden struct {
	Payload *models.APIError
}

GetRolesRoleIDForbidden handles this case with default header values.

Forbidden

func NewGetRolesRoleIDForbidden added in v0.43.0

func NewGetRolesRoleIDForbidden() *GetRolesRoleIDForbidden

NewGetRolesRoleIDForbidden creates a GetRolesRoleIDForbidden with default headers values

func (*GetRolesRoleIDForbidden) Error added in v0.43.0

func (o *GetRolesRoleIDForbidden) Error() string

func (*GetRolesRoleIDForbidden) GetPayload added in v0.43.0

func (o *GetRolesRoleIDForbidden) GetPayload() *models.APIError

type GetRolesRoleIDInternalServerError added in v0.43.0

type GetRolesRoleIDInternalServerError struct {
	Payload *models.APIError
}

GetRolesRoleIDInternalServerError handles this case with default header values.

Internal Server Error

func NewGetRolesRoleIDInternalServerError added in v0.43.0

func NewGetRolesRoleIDInternalServerError() *GetRolesRoleIDInternalServerError

NewGetRolesRoleIDInternalServerError creates a GetRolesRoleIDInternalServerError with default headers values

func (*GetRolesRoleIDInternalServerError) Error added in v0.43.0

func (*GetRolesRoleIDInternalServerError) GetPayload added in v0.43.0

type GetRolesRoleIDNotFound added in v0.43.0

type GetRolesRoleIDNotFound struct {
	Payload *models.APIError
}

GetRolesRoleIDNotFound handles this case with default header values.

Record not found

func NewGetRolesRoleIDNotFound added in v0.43.0

func NewGetRolesRoleIDNotFound() *GetRolesRoleIDNotFound

NewGetRolesRoleIDNotFound creates a GetRolesRoleIDNotFound with default headers values

func (*GetRolesRoleIDNotFound) Error added in v0.43.0

func (o *GetRolesRoleIDNotFound) Error() string

func (*GetRolesRoleIDNotFound) GetPayload added in v0.43.0

func (o *GetRolesRoleIDNotFound) GetPayload() *models.APIError

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

func (*GetRolesRoleIDOK) GetPayload added in v0.43.0

func (o *GetRolesRoleIDOK) GetPayload() *models.RoleDetailsResponse

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 GetRolesRoleIDServiceUnavailable added in v0.43.0

type GetRolesRoleIDServiceUnavailable struct {
	Payload *models.APIError
}

GetRolesRoleIDServiceUnavailable handles this case with default header values.

The server is up, but overloaded with requests. Try again later.

func NewGetRolesRoleIDServiceUnavailable added in v0.43.0

func NewGetRolesRoleIDServiceUnavailable() *GetRolesRoleIDServiceUnavailable

NewGetRolesRoleIDServiceUnavailable creates a GetRolesRoleIDServiceUnavailable with default headers values

func (*GetRolesRoleIDServiceUnavailable) Error added in v0.43.0

func (*GetRolesRoleIDServiceUnavailable) GetPayload added in v0.43.0

type GetRolesRoleIDTooManyRequests added in v0.43.0

type GetRolesRoleIDTooManyRequests struct {
	Payload *models.APIError
}

GetRolesRoleIDTooManyRequests handles this case with default header values.

The request cannot be served due to the application’s rate limit

func NewGetRolesRoleIDTooManyRequests added in v0.43.0

func NewGetRolesRoleIDTooManyRequests() *GetRolesRoleIDTooManyRequests

NewGetRolesRoleIDTooManyRequests creates a GetRolesRoleIDTooManyRequests with default headers values

func (*GetRolesRoleIDTooManyRequests) Error added in v0.43.0

func (*GetRolesRoleIDTooManyRequests) GetPayload added in v0.43.0

type GetRolesRoleIDUnauthorized added in v0.43.0

type GetRolesRoleIDUnauthorized struct {
	Payload *models.APIError
}

GetRolesRoleIDUnauthorized handles this case with default header values.

Authentication credentials were missing or incorrect

func NewGetRolesRoleIDUnauthorized added in v0.43.0

func NewGetRolesRoleIDUnauthorized() *GetRolesRoleIDUnauthorized

NewGetRolesRoleIDUnauthorized creates a GetRolesRoleIDUnauthorized with default headers values

func (*GetRolesRoleIDUnauthorized) Error added in v0.43.0

func (*GetRolesRoleIDUnauthorized) GetPayload added in v0.43.0

func (o *GetRolesRoleIDUnauthorized) GetPayload() *models.APIError

type GetRolesServiceUnavailable added in v0.43.0

type GetRolesServiceUnavailable struct {
	Payload *models.APIError
}

GetRolesServiceUnavailable handles this case with default header values.

The server is up, but overloaded with requests. Try again later.

func NewGetRolesServiceUnavailable added in v0.43.0

func NewGetRolesServiceUnavailable() *GetRolesServiceUnavailable

NewGetRolesServiceUnavailable creates a GetRolesServiceUnavailable with default headers values

func (*GetRolesServiceUnavailable) Error added in v0.43.0

func (*GetRolesServiceUnavailable) GetPayload added in v0.43.0

func (o *GetRolesServiceUnavailable) GetPayload() *models.APIError

type GetRolesTooManyRequests added in v0.43.0

type GetRolesTooManyRequests struct {
	Payload *models.APIError
}

GetRolesTooManyRequests handles this case with default header values.

The request cannot be served due to the application’s rate limit

func NewGetRolesTooManyRequests added in v0.43.0

func NewGetRolesTooManyRequests() *GetRolesTooManyRequests

NewGetRolesTooManyRequests creates a GetRolesTooManyRequests with default headers values

func (*GetRolesTooManyRequests) Error added in v0.43.0

func (o *GetRolesTooManyRequests) Error() string

func (*GetRolesTooManyRequests) GetPayload added in v0.43.0

func (o *GetRolesTooManyRequests) GetPayload() *models.APIError

type GetRolesUnauthorized added in v0.43.0

type GetRolesUnauthorized struct {
	Payload *models.APIError
}

GetRolesUnauthorized handles this case with default header values.

Authentication credentials were missing or incorrect

func NewGetRolesUnauthorized added in v0.43.0

func NewGetRolesUnauthorized() *GetRolesUnauthorized

NewGetRolesUnauthorized creates a GetRolesUnauthorized with default headers values

func (*GetRolesUnauthorized) Error added in v0.43.0

func (o *GetRolesUnauthorized) Error() string

func (*GetRolesUnauthorized) GetPayload added in v0.43.0

func (o *GetRolesUnauthorized) GetPayload() *models.APIError

type PostRolesBadRequest added in v0.43.0

type PostRolesBadRequest struct {
	Payload *models.APIError
}

PostRolesBadRequest handles this case with default header values.

Bad Request

func NewPostRolesBadRequest added in v0.43.0

func NewPostRolesBadRequest() *PostRolesBadRequest

NewPostRolesBadRequest creates a PostRolesBadRequest with default headers values

func (*PostRolesBadRequest) Error added in v0.43.0

func (o *PostRolesBadRequest) Error() string

func (*PostRolesBadRequest) GetPayload added in v0.43.0

func (o *PostRolesBadRequest) GetPayload() *models.APIError

type PostRolesConflict added in v0.43.0

type PostRolesConflict struct {
	Payload *models.APIError
}

PostRolesConflict handles this case with default header values.

Conflict

func NewPostRolesConflict added in v0.43.0

func NewPostRolesConflict() *PostRolesConflict

NewPostRolesConflict creates a PostRolesConflict with default headers values

func (*PostRolesConflict) Error added in v0.43.0

func (o *PostRolesConflict) Error() string

func (*PostRolesConflict) GetPayload added in v0.43.0

func (o *PostRolesConflict) GetPayload() *models.APIError

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

func (*PostRolesCreated) GetPayload added in v0.43.0

func (o *PostRolesCreated) GetPayload() *models.RoleCreationResponse

type PostRolesForbidden added in v0.43.0

type PostRolesForbidden struct {
	Payload *models.APIError
}

PostRolesForbidden handles this case with default header values.

Forbidden

func NewPostRolesForbidden added in v0.43.0

func NewPostRolesForbidden() *PostRolesForbidden

NewPostRolesForbidden creates a PostRolesForbidden with default headers values

func (*PostRolesForbidden) Error added in v0.43.0

func (o *PostRolesForbidden) Error() string

func (*PostRolesForbidden) GetPayload added in v0.43.0

func (o *PostRolesForbidden) GetPayload() *models.APIError

type PostRolesInternalServerError added in v0.43.0

type PostRolesInternalServerError struct {
	Payload *models.APIError
}

PostRolesInternalServerError handles this case with default header values.

Internal Server Error

func NewPostRolesInternalServerError added in v0.43.0

func NewPostRolesInternalServerError() *PostRolesInternalServerError

NewPostRolesInternalServerError creates a PostRolesInternalServerError with default headers values

func (*PostRolesInternalServerError) Error added in v0.43.0

func (*PostRolesInternalServerError) GetPayload added in v0.43.0

func (o *PostRolesInternalServerError) GetPayload() *models.APIError

type PostRolesNotFound added in v0.43.0

type PostRolesNotFound struct {
	Payload *models.APIError
}

PostRolesNotFound handles this case with default header values.

Record not found

func NewPostRolesNotFound added in v0.43.0

func NewPostRolesNotFound() *PostRolesNotFound

NewPostRolesNotFound creates a PostRolesNotFound with default headers values

func (*PostRolesNotFound) Error added in v0.43.0

func (o *PostRolesNotFound) Error() string

func (*PostRolesNotFound) GetPayload added in v0.43.0

func (o *PostRolesNotFound) GetPayload() *models.APIError

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.

type PostRolesServiceUnavailable added in v0.43.0

type PostRolesServiceUnavailable struct {
	Payload *models.APIError
}

PostRolesServiceUnavailable handles this case with default header values.

The server is up, but overloaded with requests. Try again later.

func NewPostRolesServiceUnavailable added in v0.43.0

func NewPostRolesServiceUnavailable() *PostRolesServiceUnavailable

NewPostRolesServiceUnavailable creates a PostRolesServiceUnavailable with default headers values

func (*PostRolesServiceUnavailable) Error added in v0.43.0

func (*PostRolesServiceUnavailable) GetPayload added in v0.43.0

func (o *PostRolesServiceUnavailable) GetPayload() *models.APIError

type PostRolesTooManyRequests added in v0.43.0

type PostRolesTooManyRequests struct {
	Payload *models.APIError
}

PostRolesTooManyRequests handles this case with default header values.

The request cannot be served due to the application’s rate limit

func NewPostRolesTooManyRequests added in v0.43.0

func NewPostRolesTooManyRequests() *PostRolesTooManyRequests

NewPostRolesTooManyRequests creates a PostRolesTooManyRequests with default headers values

func (*PostRolesTooManyRequests) Error added in v0.43.0

func (o *PostRolesTooManyRequests) Error() string

func (*PostRolesTooManyRequests) GetPayload added in v0.43.0

func (o *PostRolesTooManyRequests) GetPayload() *models.APIError

type PostRolesUnauthorized added in v0.43.0

type PostRolesUnauthorized struct {
	Payload *models.APIError
}

PostRolesUnauthorized handles this case with default header values.

Authentication credentials were missing or incorrect

func NewPostRolesUnauthorized added in v0.43.0

func NewPostRolesUnauthorized() *PostRolesUnauthorized

NewPostRolesUnauthorized creates a PostRolesUnauthorized with default headers values

func (*PostRolesUnauthorized) Error added in v0.43.0

func (o *PostRolesUnauthorized) Error() string

func (*PostRolesUnauthorized) GetPayload added in v0.43.0

func (o *PostRolesUnauthorized) GetPayload() *models.APIError

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL