roles

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 13 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 {
	Defaults client.Defaults
	// contains filtered or unexported fields
}

Client for roles API

func New

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

New creates a new roles API client.

func (*Client) CreateRoles

func (c *Client) CreateRoles() *CreateRolesRequest

Client.CreateRoles creates a new CreateRolesRequest object with the default values initialized.

func (*Client) DeleteRole

func (c *Client) DeleteRole() *DeleteRoleRequest

Client.DeleteRole creates a new DeleteRoleRequest object with the default values initialized.

func (*Client) GetRole

func (c *Client) GetRole() *GetRoleRequest

Client.GetRole creates a new GetRoleRequest object with the default values initialized.

func (*Client) ListRoles

func (c *Client) ListRoles() *ListRolesRequest

Client.ListRoles creates a new ListRolesRequest object with the default values initialized.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateRolesBadRequest

type CreateRolesBadRequest struct {

	// isStream: false
	*models.APIError
}

CreateRolesBadRequest handles this case with default header values.

Bad request

func NewCreateRolesBadRequest

func NewCreateRolesBadRequest() *CreateRolesBadRequest

NewCreateRolesBadRequest creates a CreateRolesBadRequest with default headers values

func (*CreateRolesBadRequest) Code

func (o *CreateRolesBadRequest) Code() int

Code gets the status code for the create roles bad request response

func (*CreateRolesBadRequest) Error

func (o *CreateRolesBadRequest) Error() string

func (*CreateRolesBadRequest) IsClientError

func (o *CreateRolesBadRequest) IsClientError() bool

IsClientError returns true when this create roles bad request response has a 4xx status code

func (*CreateRolesBadRequest) IsCode

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

IsCode returns true when this create roles bad request response a status code equal to that given

func (*CreateRolesBadRequest) IsRedirect

func (o *CreateRolesBadRequest) IsRedirect() bool

IsRedirect returns true when this create roles bad request response has a 3xx status code

func (*CreateRolesBadRequest) IsServerError

func (o *CreateRolesBadRequest) IsServerError() bool

IsServerError returns true when this create roles bad request response has a 5xx status code

func (*CreateRolesBadRequest) IsSuccess

func (o *CreateRolesBadRequest) IsSuccess() bool

IsSuccess returns true when this create roles bad request response has a 2xx status code

type CreateRolesConflict

type CreateRolesConflict struct {

	// isStream: false
	*models.APIError
}

CreateRolesConflict handles this case with default header values.

Conflict

func NewCreateRolesConflict

func NewCreateRolesConflict() *CreateRolesConflict

NewCreateRolesConflict creates a CreateRolesConflict with default headers values

func (*CreateRolesConflict) Code

func (o *CreateRolesConflict) Code() int

Code gets the status code for the create roles conflict response

func (*CreateRolesConflict) Error

func (o *CreateRolesConflict) Error() string

func (*CreateRolesConflict) IsClientError

func (o *CreateRolesConflict) IsClientError() bool

IsClientError returns true when this create roles conflict response has a 4xx status code

func (*CreateRolesConflict) IsCode

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

IsCode returns true when this create roles conflict response a status code equal to that given

func (*CreateRolesConflict) IsRedirect

func (o *CreateRolesConflict) IsRedirect() bool

IsRedirect returns true when this create roles conflict response has a 3xx status code

func (*CreateRolesConflict) IsServerError

func (o *CreateRolesConflict) IsServerError() bool

IsServerError returns true when this create roles conflict response has a 5xx status code

func (*CreateRolesConflict) IsSuccess

func (o *CreateRolesConflict) IsSuccess() bool

IsSuccess returns true when this create roles conflict response has a 2xx status code

type CreateRolesCreated

type CreateRolesCreated struct {

	// isStream: false
	*models.RoleCreationResponse
}

CreateRolesCreated handles this case with default header values.

Role creation response

func NewCreateRolesCreated

func NewCreateRolesCreated() *CreateRolesCreated

NewCreateRolesCreated creates a CreateRolesCreated with default headers values

func (*CreateRolesCreated) Code

func (o *CreateRolesCreated) Code() int

Code gets the status code for the create roles created response

func (*CreateRolesCreated) Error

func (o *CreateRolesCreated) Error() string

func (*CreateRolesCreated) IsClientError

func (o *CreateRolesCreated) IsClientError() bool

IsClientError returns true when this create roles created response has a 4xx status code

func (*CreateRolesCreated) IsCode

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

IsCode returns true when this create roles created response a status code equal to that given

func (*CreateRolesCreated) IsRedirect

func (o *CreateRolesCreated) IsRedirect() bool

IsRedirect returns true when this create roles created response has a 3xx status code

func (*CreateRolesCreated) IsServerError

func (o *CreateRolesCreated) IsServerError() bool

IsServerError returns true when this create roles created response has a 5xx status code

func (*CreateRolesCreated) IsSuccess

func (o *CreateRolesCreated) IsSuccess() bool

IsSuccess returns true when this create roles created response has a 2xx status code

type CreateRolesReader

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

CreateRolesReader is a Reader for the CreateRoles structure.

func (*CreateRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRolesRequest

type CreateRolesRequest struct {
	*models.RoleCreation

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

func (*CreateRolesRequest) Do

create roles API

func (*CreateRolesRequest) FromJson

func (*CreateRolesRequest) MustDo

func (*CreateRolesRequest) WithContext

//////////////// WithContext adds the context to the create roles Request

func (*CreateRolesRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create roles Request

func (*CreateRolesRequest) WithRoleCreationRequest

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

func (*CreateRolesRequest) WithoutRoleCreationRequest

func (o *CreateRolesRequest) WithoutRoleCreationRequest() *CreateRolesRequest

func (*CreateRolesRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

type DeleteRoleConflict

type DeleteRoleConflict struct {

	// isStream: false
	*models.APIError
}

DeleteRoleConflict handles this case with default header values.

Conflict

func NewDeleteRoleConflict

func NewDeleteRoleConflict() *DeleteRoleConflict

NewDeleteRoleConflict creates a DeleteRoleConflict with default headers values

func (*DeleteRoleConflict) Code

func (o *DeleteRoleConflict) Code() int

Code gets the status code for the delete role conflict response

func (*DeleteRoleConflict) Error

func (o *DeleteRoleConflict) Error() string

func (*DeleteRoleConflict) IsClientError

func (o *DeleteRoleConflict) IsClientError() bool

IsClientError returns true when this delete role conflict response has a 4xx status code

func (*DeleteRoleConflict) IsCode

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

IsCode returns true when this delete role conflict response a status code equal to that given

func (*DeleteRoleConflict) IsRedirect

func (o *DeleteRoleConflict) IsRedirect() bool

IsRedirect returns true when this delete role conflict response has a 3xx status code

func (*DeleteRoleConflict) IsServerError

func (o *DeleteRoleConflict) IsServerError() bool

IsServerError returns true when this delete role conflict response has a 5xx status code

func (*DeleteRoleConflict) IsSuccess

func (o *DeleteRoleConflict) IsSuccess() bool

IsSuccess returns true when this delete role conflict response has a 2xx status code

type DeleteRoleNoContent

type DeleteRoleNoContent struct {
}

DeleteRoleNoContent handles this case with default header values.

Role deleted

func NewDeleteRoleNoContent

func NewDeleteRoleNoContent() *DeleteRoleNoContent

NewDeleteRoleNoContent creates a DeleteRoleNoContent with default headers values

func (*DeleteRoleNoContent) Code

func (o *DeleteRoleNoContent) Code() int

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

func (*DeleteRoleNoContent) Error

func (o *DeleteRoleNoContent) Error() string

func (*DeleteRoleNoContent) IsClientError

func (o *DeleteRoleNoContent) IsClientError() bool

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

func (*DeleteRoleNoContent) IsCode

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

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

func (*DeleteRoleNoContent) IsRedirect

func (o *DeleteRoleNoContent) IsRedirect() bool

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

func (*DeleteRoleNoContent) IsServerError

func (o *DeleteRoleNoContent) IsServerError() bool

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

func (*DeleteRoleNoContent) IsSuccess

func (o *DeleteRoleNoContent) IsSuccess() bool

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

type DeleteRoleNotFound

type DeleteRoleNotFound struct {

	// isStream: false
	*models.APIError
}

DeleteRoleNotFound handles this case with default header values.

Not Found

func NewDeleteRoleNotFound

func NewDeleteRoleNotFound() *DeleteRoleNotFound

NewDeleteRoleNotFound creates a DeleteRoleNotFound with default headers values

func (*DeleteRoleNotFound) Code

func (o *DeleteRoleNotFound) Code() int

Code gets the status code for the delete role not found response

func (*DeleteRoleNotFound) Error

func (o *DeleteRoleNotFound) Error() string

func (*DeleteRoleNotFound) IsClientError

func (o *DeleteRoleNotFound) IsClientError() bool

IsClientError returns true when this delete role not found response has a 4xx status code

func (*DeleteRoleNotFound) IsCode

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

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

func (*DeleteRoleNotFound) IsRedirect

func (o *DeleteRoleNotFound) IsRedirect() bool

IsRedirect returns true when this delete role not found response has a 3xx status code

func (*DeleteRoleNotFound) IsServerError

func (o *DeleteRoleNotFound) IsServerError() bool

IsServerError returns true when this delete role not found response has a 5xx status code

func (*DeleteRoleNotFound) IsSuccess

func (o *DeleteRoleNotFound) IsSuccess() bool

IsSuccess returns true when this delete role not found response has a 2xx status code

type DeleteRoleReader

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

DeleteRoleReader is a Reader for the DeleteRole structure.

func (*DeleteRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteRoleRequest

type DeleteRoleRequest struct {
	RoleID strfmt.UUID

	Version int64

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

func (*DeleteRoleRequest) Do

delete role API

func (*DeleteRoleRequest) FromJson

func (o *DeleteRoleRequest) FromJson(j string) (*DeleteRoleRequest, error)

func (*DeleteRoleRequest) MustDo

func (*DeleteRoleRequest) WithContext

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

//////////////// WithContext adds the context to the delete role Request

func (*DeleteRoleRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete role Request

func (*DeleteRoleRequest) WithRoleID

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

func (*DeleteRoleRequest) WithVersion

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

func (*DeleteRoleRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

type GetRoleNotFound

type GetRoleNotFound struct {

	// isStream: false
	*models.APIError
}

GetRoleNotFound handles this case with default header values.

Not Found

func NewGetRoleNotFound

func NewGetRoleNotFound() *GetRoleNotFound

NewGetRoleNotFound creates a GetRoleNotFound with default headers values

func (*GetRoleNotFound) Code

func (o *GetRoleNotFound) Code() int

Code gets the status code for the get role not found response

func (*GetRoleNotFound) Error

func (o *GetRoleNotFound) Error() string

func (*GetRoleNotFound) IsClientError

func (o *GetRoleNotFound) IsClientError() bool

IsClientError returns true when this get role not found response has a 4xx status code

func (*GetRoleNotFound) IsCode

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

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

func (*GetRoleNotFound) IsRedirect

func (o *GetRoleNotFound) IsRedirect() bool

IsRedirect returns true when this get role not found response has a 3xx status code

func (*GetRoleNotFound) IsServerError

func (o *GetRoleNotFound) IsServerError() bool

IsServerError returns true when this get role not found response has a 5xx status code

func (*GetRoleNotFound) IsSuccess

func (o *GetRoleNotFound) IsSuccess() bool

IsSuccess returns true when this get role not found response has a 2xx status code

type GetRoleOK

type GetRoleOK struct {

	// isStream: false
	*models.RoleDetailsResponse
}

GetRoleOK handles this case with default header values.

Role details

func NewGetRoleOK

func NewGetRoleOK() *GetRoleOK

NewGetRoleOK creates a GetRoleOK with default headers values

func (*GetRoleOK) Code

func (o *GetRoleOK) Code() int

Code gets the status code for the get role o k response

func (*GetRoleOK) Error

func (o *GetRoleOK) Error() string

func (*GetRoleOK) IsClientError

func (o *GetRoleOK) IsClientError() bool

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

func (*GetRoleOK) IsCode

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

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

func (*GetRoleOK) IsRedirect

func (o *GetRoleOK) IsRedirect() bool

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

func (*GetRoleOK) IsServerError

func (o *GetRoleOK) IsServerError() bool

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

func (*GetRoleOK) IsSuccess

func (o *GetRoleOK) IsSuccess() bool

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

type GetRoleReader

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

GetRoleReader is a Reader for the GetRole structure.

func (*GetRoleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRoleRequest

type GetRoleRequest struct {
	RoleID strfmt.UUID

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

func (*GetRoleRequest) Do

func (a *GetRoleRequest) Do() (*GetRoleOK, error)

get role API

func (*GetRoleRequest) FromJson

func (o *GetRoleRequest) FromJson(j string) (*GetRoleRequest, error)

func (*GetRoleRequest) MustDo

func (a *GetRoleRequest) MustDo() *GetRoleOK

func (*GetRoleRequest) WithContext

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

//////////////// WithContext adds the context to the get role Request

func (*GetRoleRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get role Request

func (*GetRoleRequest) WithRoleID

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

func (*GetRoleRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

type ListRolesOK

type ListRolesOK struct {

	// isStream: false
	*models.RoleDetailsListResponse
}

ListRolesOK handles this case with default header values.

List of role details

func NewListRolesOK

func NewListRolesOK() *ListRolesOK

NewListRolesOK creates a ListRolesOK with default headers values

func (*ListRolesOK) Code

func (o *ListRolesOK) Code() int

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

func (*ListRolesOK) Error

func (o *ListRolesOK) Error() string

func (*ListRolesOK) IsClientError

func (o *ListRolesOK) IsClientError() bool

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

func (*ListRolesOK) IsCode

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

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

func (*ListRolesOK) IsRedirect

func (o *ListRolesOK) IsRedirect() bool

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

func (*ListRolesOK) IsServerError

func (o *ListRolesOK) IsServerError() bool

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

func (*ListRolesOK) IsSuccess

func (o *ListRolesOK) IsSuccess() bool

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

type ListRolesReader

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

ListRolesReader is a Reader for the ListRoles structure.

func (*ListRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListRolesRequest

type ListRolesRequest struct {
	PageNumber *int64

	PageSize *int64

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

func (*ListRolesRequest) Do

func (a *ListRolesRequest) Do() (*ListRolesOK, error)

list roles API

func (*ListRolesRequest) FromJson

func (o *ListRolesRequest) FromJson(j string) (*ListRolesRequest, error)

func (*ListRolesRequest) MustDo

func (a *ListRolesRequest) MustDo() *ListRolesOK

func (*ListRolesRequest) WithContext

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

//////////////// WithContext adds the context to the list roles Request

func (*ListRolesRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list roles Request

func (*ListRolesRequest) WithPageNumber

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

func (*ListRolesRequest) WithPageSize

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

func (*ListRolesRequest) WithoutPageNumber

func (o *ListRolesRequest) WithoutPageNumber() *ListRolesRequest

func (*ListRolesRequest) WithoutPageSize

func (o *ListRolesRequest) WithoutPageSize() *ListRolesRequest

func (*ListRolesRequest) WriteToRequest

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

WriteToRequest writes these Request to a swagger request

Jump to

Keyboard shortcuts

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