roles

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 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 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) Error

func (o *CreateRolesCreated) Error() string

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 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) Error

func (o *DeleteRoleNoContent) Error() string

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 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) Error

func (o *GetRoleOK) Error() string

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) Error

func (o *ListRolesOK) Error() string

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