read

package
v0.9.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 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 read API

func (*Client) GetCheck

func (a *Client) GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error)

GetCheck checks a relation tuple

To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).

func (*Client) GetCheckMirrorStatus

func (a *Client) GetCheckMirrorStatus(params *GetCheckMirrorStatusParams, opts ...ClientOption) (*GetCheckMirrorStatusOK, error)

GetCheckMirrorStatus checks a relation tuple

To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).

func (*Client) GetExpand

func (a *Client) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error)

GetExpand expands a relation tuple

Use this endpoint to expand a relation tuple.

func (*Client) GetRelationTuples

func (a *Client) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error)

GetRelationTuples queries relation tuples

Get all relation tuples that match the query. Only the namespace field is required.

func (*Client) PostCheck

func (a *Client) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error)

PostCheck checks a relation tuple

To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).

func (*Client) PostCheckMirrorStatus

func (a *Client) PostCheckMirrorStatus(params *PostCheckMirrorStatusParams, opts ...ClientOption) (*PostCheckMirrorStatusOK, error)

PostCheckMirrorStatus checks a relation tuple

To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).

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 {
	GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error)

	GetCheckMirrorStatus(params *GetCheckMirrorStatusParams, opts ...ClientOption) (*GetCheckMirrorStatusOK, error)

	GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error)

	GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error)

	PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error)

	PostCheckMirrorStatus(params *PostCheckMirrorStatusParams, opts ...ClientOption) (*PostCheckMirrorStatusOK, 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 read API client.

type GetCheckBadRequest

type GetCheckBadRequest struct {
	Payload *models.GenericError
}
GetCheckBadRequest describes a response with status code 400, with default header values.

genericError

func NewGetCheckBadRequest

func NewGetCheckBadRequest() *GetCheckBadRequest

NewGetCheckBadRequest creates a GetCheckBadRequest with default headers values

func (*GetCheckBadRequest) Error

func (o *GetCheckBadRequest) Error() string

func (*GetCheckBadRequest) GetPayload

func (o *GetCheckBadRequest) GetPayload() *models.GenericError

type GetCheckInternalServerError

type GetCheckInternalServerError struct {
	Payload *models.GenericError
}
GetCheckInternalServerError describes a response with status code 500, with default header values.

genericError

func NewGetCheckInternalServerError

func NewGetCheckInternalServerError() *GetCheckInternalServerError

NewGetCheckInternalServerError creates a GetCheckInternalServerError with default headers values

func (*GetCheckInternalServerError) Error

func (*GetCheckInternalServerError) GetPayload

type GetCheckMirrorStatusBadRequest

type GetCheckMirrorStatusBadRequest struct {
	Payload *models.GenericError
}
GetCheckMirrorStatusBadRequest describes a response with status code 400, with default header values.

genericError

func NewGetCheckMirrorStatusBadRequest

func NewGetCheckMirrorStatusBadRequest() *GetCheckMirrorStatusBadRequest

NewGetCheckMirrorStatusBadRequest creates a GetCheckMirrorStatusBadRequest with default headers values

func (*GetCheckMirrorStatusBadRequest) Error

func (*GetCheckMirrorStatusBadRequest) GetPayload

type GetCheckMirrorStatusForbidden

type GetCheckMirrorStatusForbidden struct {
	Payload *models.GetCheckResponse
}
GetCheckMirrorStatusForbidden describes a response with status code 403, with default header values.

getCheckResponse

func NewGetCheckMirrorStatusForbidden

func NewGetCheckMirrorStatusForbidden() *GetCheckMirrorStatusForbidden

NewGetCheckMirrorStatusForbidden creates a GetCheckMirrorStatusForbidden with default headers values

func (*GetCheckMirrorStatusForbidden) Error

func (*GetCheckMirrorStatusForbidden) GetPayload

type GetCheckMirrorStatusInternalServerError

type GetCheckMirrorStatusInternalServerError struct {
	Payload *models.GenericError
}
GetCheckMirrorStatusInternalServerError describes a response with status code 500, with default header values.

genericError

func NewGetCheckMirrorStatusInternalServerError

func NewGetCheckMirrorStatusInternalServerError() *GetCheckMirrorStatusInternalServerError

NewGetCheckMirrorStatusInternalServerError creates a GetCheckMirrorStatusInternalServerError with default headers values

func (*GetCheckMirrorStatusInternalServerError) Error

func (*GetCheckMirrorStatusInternalServerError) GetPayload

type GetCheckMirrorStatusOK

type GetCheckMirrorStatusOK struct {
	Payload *models.GetCheckResponse
}
GetCheckMirrorStatusOK describes a response with status code 200, with default header values.

getCheckResponse

func NewGetCheckMirrorStatusOK

func NewGetCheckMirrorStatusOK() *GetCheckMirrorStatusOK

NewGetCheckMirrorStatusOK creates a GetCheckMirrorStatusOK with default headers values

func (*GetCheckMirrorStatusOK) Error

func (o *GetCheckMirrorStatusOK) Error() string

func (*GetCheckMirrorStatusOK) GetPayload

type GetCheckMirrorStatusParams

type GetCheckMirrorStatusParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCheckMirrorStatusParams contains all the parameters to send to the API endpoint

for the get check mirror status operation.

Typically these are written to a http.Request.

func NewGetCheckMirrorStatusParams

func NewGetCheckMirrorStatusParams() *GetCheckMirrorStatusParams

NewGetCheckMirrorStatusParams creates a new GetCheckMirrorStatusParams 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 NewGetCheckMirrorStatusParamsWithContext

func NewGetCheckMirrorStatusParamsWithContext(ctx context.Context) *GetCheckMirrorStatusParams

NewGetCheckMirrorStatusParamsWithContext creates a new GetCheckMirrorStatusParams object with the ability to set a context for a request.

func NewGetCheckMirrorStatusParamsWithHTTPClient

func NewGetCheckMirrorStatusParamsWithHTTPClient(client *http.Client) *GetCheckMirrorStatusParams

NewGetCheckMirrorStatusParamsWithHTTPClient creates a new GetCheckMirrorStatusParams object with the ability to set a custom HTTPClient for a request.

func NewGetCheckMirrorStatusParamsWithTimeout

func NewGetCheckMirrorStatusParamsWithTimeout(timeout time.Duration) *GetCheckMirrorStatusParams

NewGetCheckMirrorStatusParamsWithTimeout creates a new GetCheckMirrorStatusParams object with the ability to set a timeout on a request.

func (*GetCheckMirrorStatusParams) SetContext

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

SetContext adds the context to the get check mirror status params

func (*GetCheckMirrorStatusParams) SetDefaults

func (o *GetCheckMirrorStatusParams) SetDefaults()

SetDefaults hydrates default values in the get check mirror status params (not the query body).

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

func (*GetCheckMirrorStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get check mirror status params

func (*GetCheckMirrorStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get check mirror status params

func (*GetCheckMirrorStatusParams) WithContext

WithContext adds the context to the get check mirror status params

func (*GetCheckMirrorStatusParams) WithDefaults

WithDefaults hydrates default values in the get check mirror status params (not the query body).

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

func (*GetCheckMirrorStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get check mirror status params

func (*GetCheckMirrorStatusParams) WithTimeout

WithTimeout adds the timeout to the get check mirror status params

func (*GetCheckMirrorStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCheckMirrorStatusReader

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

GetCheckMirrorStatusReader is a Reader for the GetCheckMirrorStatus structure.

func (*GetCheckMirrorStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCheckOK

type GetCheckOK struct {
	Payload *models.GetCheckResponse
}
GetCheckOK describes a response with status code 200, with default header values.

getCheckResponse

func NewGetCheckOK

func NewGetCheckOK() *GetCheckOK

NewGetCheckOK creates a GetCheckOK with default headers values

func (*GetCheckOK) Error

func (o *GetCheckOK) Error() string

func (*GetCheckOK) GetPayload

func (o *GetCheckOK) GetPayload() *models.GetCheckResponse

type GetCheckParams

type GetCheckParams struct {

	// MaxDepth.
	//
	// Format: int64
	MaxDepth *int64

	/* Namespace.

	   Namespace of the Relation Tuple
	*/
	Namespace *string

	/* Object.

	   Object of the Relation Tuple
	*/
	Object *string

	/* Relation.

	   Relation of the Relation Tuple
	*/
	Relation *string

	/* SubjectID.

	   SubjectID of the Relation Tuple
	*/
	SubjectID *string

	/* SubjectSetNamespace.

	   Namespace of the Subject Set
	*/
	SubjectSetNamespace *string

	/* SubjectSetObject.

	   Object of the Subject Set
	*/
	SubjectSetObject *string

	/* SubjectSetRelation.

	   Relation of the Subject Set
	*/
	SubjectSetRelation *string

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

GetCheckParams contains all the parameters to send to the API endpoint

for the get check operation.

Typically these are written to a http.Request.

func NewGetCheckParams

func NewGetCheckParams() *GetCheckParams

NewGetCheckParams creates a new GetCheckParams 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 NewGetCheckParamsWithContext

func NewGetCheckParamsWithContext(ctx context.Context) *GetCheckParams

NewGetCheckParamsWithContext creates a new GetCheckParams object with the ability to set a context for a request.

func NewGetCheckParamsWithHTTPClient

func NewGetCheckParamsWithHTTPClient(client *http.Client) *GetCheckParams

NewGetCheckParamsWithHTTPClient creates a new GetCheckParams object with the ability to set a custom HTTPClient for a request.

func NewGetCheckParamsWithTimeout

func NewGetCheckParamsWithTimeout(timeout time.Duration) *GetCheckParams

NewGetCheckParamsWithTimeout creates a new GetCheckParams object with the ability to set a timeout on a request.

func (*GetCheckParams) SetContext

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

SetContext adds the context to the get check params

func (*GetCheckParams) SetDefaults

func (o *GetCheckParams) SetDefaults()

SetDefaults hydrates default values in the get check params (not the query body).

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

func (*GetCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get check params

func (*GetCheckParams) SetMaxDepth

func (o *GetCheckParams) SetMaxDepth(maxDepth *int64)

SetMaxDepth adds the maxDepth to the get check params

func (*GetCheckParams) SetNamespace

func (o *GetCheckParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the get check params

func (*GetCheckParams) SetObject

func (o *GetCheckParams) SetObject(object *string)

SetObject adds the object to the get check params

func (*GetCheckParams) SetRelation

func (o *GetCheckParams) SetRelation(relation *string)

SetRelation adds the relation to the get check params

func (*GetCheckParams) SetSubjectID

func (o *GetCheckParams) SetSubjectID(subjectID *string)

SetSubjectID adds the subjectId to the get check params

func (*GetCheckParams) SetSubjectSetNamespace

func (o *GetCheckParams) SetSubjectSetNamespace(subjectSetNamespace *string)

SetSubjectSetNamespace adds the subjectSetNamespace to the get check params

func (*GetCheckParams) SetSubjectSetObject

func (o *GetCheckParams) SetSubjectSetObject(subjectSetObject *string)

SetSubjectSetObject adds the subjectSetObject to the get check params

func (*GetCheckParams) SetSubjectSetRelation

func (o *GetCheckParams) SetSubjectSetRelation(subjectSetRelation *string)

SetSubjectSetRelation adds the subjectSetRelation to the get check params

func (*GetCheckParams) SetTimeout

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

SetTimeout adds the timeout to the get check params

func (*GetCheckParams) WithContext

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

WithContext adds the context to the get check params

func (*GetCheckParams) WithDefaults

func (o *GetCheckParams) WithDefaults() *GetCheckParams

WithDefaults hydrates default values in the get check params (not the query body).

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

func (*GetCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get check params

func (*GetCheckParams) WithMaxDepth

func (o *GetCheckParams) WithMaxDepth(maxDepth *int64) *GetCheckParams

WithMaxDepth adds the maxDepth to the get check params

func (*GetCheckParams) WithNamespace

func (o *GetCheckParams) WithNamespace(namespace *string) *GetCheckParams

WithNamespace adds the namespace to the get check params

func (*GetCheckParams) WithObject

func (o *GetCheckParams) WithObject(object *string) *GetCheckParams

WithObject adds the object to the get check params

func (*GetCheckParams) WithRelation

func (o *GetCheckParams) WithRelation(relation *string) *GetCheckParams

WithRelation adds the relation to the get check params

func (*GetCheckParams) WithSubjectID

func (o *GetCheckParams) WithSubjectID(subjectID *string) *GetCheckParams

WithSubjectID adds the subjectID to the get check params

func (*GetCheckParams) WithSubjectSetNamespace

func (o *GetCheckParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetCheckParams

WithSubjectSetNamespace adds the subjectSetNamespace to the get check params

func (*GetCheckParams) WithSubjectSetObject

func (o *GetCheckParams) WithSubjectSetObject(subjectSetObject *string) *GetCheckParams

WithSubjectSetObject adds the subjectSetObject to the get check params

func (*GetCheckParams) WithSubjectSetRelation

func (o *GetCheckParams) WithSubjectSetRelation(subjectSetRelation *string) *GetCheckParams

WithSubjectSetRelation adds the subjectSetRelation to the get check params

func (*GetCheckParams) WithTimeout

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

WithTimeout adds the timeout to the get check params

func (*GetCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCheckReader

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

GetCheckReader is a Reader for the GetCheck structure.

func (*GetCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetExpandBadRequest

type GetExpandBadRequest struct {
	Payload *models.GenericError
}
GetExpandBadRequest describes a response with status code 400, with default header values.

genericError

func NewGetExpandBadRequest

func NewGetExpandBadRequest() *GetExpandBadRequest

NewGetExpandBadRequest creates a GetExpandBadRequest with default headers values

func (*GetExpandBadRequest) Error

func (o *GetExpandBadRequest) Error() string

func (*GetExpandBadRequest) GetPayload

func (o *GetExpandBadRequest) GetPayload() *models.GenericError

type GetExpandInternalServerError

type GetExpandInternalServerError struct {
	Payload *models.GenericError
}
GetExpandInternalServerError describes a response with status code 500, with default header values.

genericError

func NewGetExpandInternalServerError

func NewGetExpandInternalServerError() *GetExpandInternalServerError

NewGetExpandInternalServerError creates a GetExpandInternalServerError with default headers values

func (*GetExpandInternalServerError) Error

func (*GetExpandInternalServerError) GetPayload

type GetExpandNotFound

type GetExpandNotFound struct {
	Payload *models.GenericError
}
GetExpandNotFound describes a response with status code 404, with default header values.

genericError

func NewGetExpandNotFound

func NewGetExpandNotFound() *GetExpandNotFound

NewGetExpandNotFound creates a GetExpandNotFound with default headers values

func (*GetExpandNotFound) Error

func (o *GetExpandNotFound) Error() string

func (*GetExpandNotFound) GetPayload

func (o *GetExpandNotFound) GetPayload() *models.GenericError

type GetExpandOK

type GetExpandOK struct {
	Payload *models.ExpandTree
}
GetExpandOK describes a response with status code 200, with default header values.

expandTree

func NewGetExpandOK

func NewGetExpandOK() *GetExpandOK

NewGetExpandOK creates a GetExpandOK with default headers values

func (*GetExpandOK) Error

func (o *GetExpandOK) Error() string

func (*GetExpandOK) GetPayload

func (o *GetExpandOK) GetPayload() *models.ExpandTree

type GetExpandParams

type GetExpandParams struct {

	// MaxDepth.
	//
	// Format: int64
	MaxDepth *int64

	/* Namespace.

	   Namespace of the Subject Set
	*/
	Namespace string

	/* Object.

	   Object of the Subject Set
	*/
	Object string

	/* Relation.

	   Relation of the Subject Set
	*/
	Relation string

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

GetExpandParams contains all the parameters to send to the API endpoint

for the get expand operation.

Typically these are written to a http.Request.

func NewGetExpandParams

func NewGetExpandParams() *GetExpandParams

NewGetExpandParams creates a new GetExpandParams 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 NewGetExpandParamsWithContext

func NewGetExpandParamsWithContext(ctx context.Context) *GetExpandParams

NewGetExpandParamsWithContext creates a new GetExpandParams object with the ability to set a context for a request.

func NewGetExpandParamsWithHTTPClient

func NewGetExpandParamsWithHTTPClient(client *http.Client) *GetExpandParams

NewGetExpandParamsWithHTTPClient creates a new GetExpandParams object with the ability to set a custom HTTPClient for a request.

func NewGetExpandParamsWithTimeout

func NewGetExpandParamsWithTimeout(timeout time.Duration) *GetExpandParams

NewGetExpandParamsWithTimeout creates a new GetExpandParams object with the ability to set a timeout on a request.

func (*GetExpandParams) SetContext

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

SetContext adds the context to the get expand params

func (*GetExpandParams) SetDefaults

func (o *GetExpandParams) SetDefaults()

SetDefaults hydrates default values in the get expand params (not the query body).

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

func (*GetExpandParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get expand params

func (*GetExpandParams) SetMaxDepth

func (o *GetExpandParams) SetMaxDepth(maxDepth *int64)

SetMaxDepth adds the maxDepth to the get expand params

func (*GetExpandParams) SetNamespace

func (o *GetExpandParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get expand params

func (*GetExpandParams) SetObject

func (o *GetExpandParams) SetObject(object string)

SetObject adds the object to the get expand params

func (*GetExpandParams) SetRelation

func (o *GetExpandParams) SetRelation(relation string)

SetRelation adds the relation to the get expand params

func (*GetExpandParams) SetTimeout

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

SetTimeout adds the timeout to the get expand params

func (*GetExpandParams) WithContext

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

WithContext adds the context to the get expand params

func (*GetExpandParams) WithDefaults

func (o *GetExpandParams) WithDefaults() *GetExpandParams

WithDefaults hydrates default values in the get expand params (not the query body).

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

func (*GetExpandParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get expand params

func (*GetExpandParams) WithMaxDepth

func (o *GetExpandParams) WithMaxDepth(maxDepth *int64) *GetExpandParams

WithMaxDepth adds the maxDepth to the get expand params

func (*GetExpandParams) WithNamespace

func (o *GetExpandParams) WithNamespace(namespace string) *GetExpandParams

WithNamespace adds the namespace to the get expand params

func (*GetExpandParams) WithObject

func (o *GetExpandParams) WithObject(object string) *GetExpandParams

WithObject adds the object to the get expand params

func (*GetExpandParams) WithRelation

func (o *GetExpandParams) WithRelation(relation string) *GetExpandParams

WithRelation adds the relation to the get expand params

func (*GetExpandParams) WithTimeout

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

WithTimeout adds the timeout to the get expand params

func (*GetExpandParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetExpandReader

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

GetExpandReader is a Reader for the GetExpand structure.

func (*GetExpandReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRelationTuplesInternalServerError

type GetRelationTuplesInternalServerError struct {
	Payload *models.GenericError
}
GetRelationTuplesInternalServerError describes a response with status code 500, with default header values.

genericError

func NewGetRelationTuplesInternalServerError

func NewGetRelationTuplesInternalServerError() *GetRelationTuplesInternalServerError

NewGetRelationTuplesInternalServerError creates a GetRelationTuplesInternalServerError with default headers values

func (*GetRelationTuplesInternalServerError) Error

func (*GetRelationTuplesInternalServerError) GetPayload

type GetRelationTuplesNotFound

type GetRelationTuplesNotFound struct {
	Payload *models.GenericError
}
GetRelationTuplesNotFound describes a response with status code 404, with default header values.

genericError

func NewGetRelationTuplesNotFound

func NewGetRelationTuplesNotFound() *GetRelationTuplesNotFound

NewGetRelationTuplesNotFound creates a GetRelationTuplesNotFound with default headers values

func (*GetRelationTuplesNotFound) Error

func (o *GetRelationTuplesNotFound) Error() string

func (*GetRelationTuplesNotFound) GetPayload

type GetRelationTuplesOK

type GetRelationTuplesOK struct {
	Payload *models.GetRelationTuplesResponse
}
GetRelationTuplesOK describes a response with status code 200, with default header values.

getRelationTuplesResponse

func NewGetRelationTuplesOK

func NewGetRelationTuplesOK() *GetRelationTuplesOK

NewGetRelationTuplesOK creates a GetRelationTuplesOK with default headers values

func (*GetRelationTuplesOK) Error

func (o *GetRelationTuplesOK) Error() string

func (*GetRelationTuplesOK) GetPayload

type GetRelationTuplesParams

type GetRelationTuplesParams struct {

	/* Namespace.

	   Namespace of the Relation Tuple
	*/
	Namespace *string

	/* Object.

	   Object of the Relation Tuple
	*/
	Object *string

	// PageSize.
	//
	// Format: int64
	PageSize *int64

	// PageToken.
	PageToken *string

	/* Relation.

	   Relation of the Relation Tuple
	*/
	Relation *string

	/* SubjectID.

	   SubjectID of the Relation Tuple
	*/
	SubjectID *string

	/* SubjectSetNamespace.

	   Namespace of the Subject Set
	*/
	SubjectSetNamespace *string

	/* SubjectSetObject.

	   Object of the Subject Set
	*/
	SubjectSetObject *string

	/* SubjectSetRelation.

	   Relation of the Subject Set
	*/
	SubjectSetRelation *string

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

GetRelationTuplesParams contains all the parameters to send to the API endpoint

for the get relation tuples operation.

Typically these are written to a http.Request.

func NewGetRelationTuplesParams

func NewGetRelationTuplesParams() *GetRelationTuplesParams

NewGetRelationTuplesParams creates a new GetRelationTuplesParams 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 NewGetRelationTuplesParamsWithContext

func NewGetRelationTuplesParamsWithContext(ctx context.Context) *GetRelationTuplesParams

NewGetRelationTuplesParamsWithContext creates a new GetRelationTuplesParams object with the ability to set a context for a request.

func NewGetRelationTuplesParamsWithHTTPClient

func NewGetRelationTuplesParamsWithHTTPClient(client *http.Client) *GetRelationTuplesParams

NewGetRelationTuplesParamsWithHTTPClient creates a new GetRelationTuplesParams object with the ability to set a custom HTTPClient for a request.

func NewGetRelationTuplesParamsWithTimeout

func NewGetRelationTuplesParamsWithTimeout(timeout time.Duration) *GetRelationTuplesParams

NewGetRelationTuplesParamsWithTimeout creates a new GetRelationTuplesParams object with the ability to set a timeout on a request.

func (*GetRelationTuplesParams) SetContext

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

SetContext adds the context to the get relation tuples params

func (*GetRelationTuplesParams) SetDefaults

func (o *GetRelationTuplesParams) SetDefaults()

SetDefaults hydrates default values in the get relation tuples params (not the query body).

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

func (*GetRelationTuplesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get relation tuples params

func (*GetRelationTuplesParams) SetNamespace

func (o *GetRelationTuplesParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the get relation tuples params

func (*GetRelationTuplesParams) SetObject

func (o *GetRelationTuplesParams) SetObject(object *string)

SetObject adds the object to the get relation tuples params

func (*GetRelationTuplesParams) SetPageSize

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

SetPageSize adds the pageSize to the get relation tuples params

func (*GetRelationTuplesParams) SetPageToken

func (o *GetRelationTuplesParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the get relation tuples params

func (*GetRelationTuplesParams) SetRelation

func (o *GetRelationTuplesParams) SetRelation(relation *string)

SetRelation adds the relation to the get relation tuples params

func (*GetRelationTuplesParams) SetSubjectID

func (o *GetRelationTuplesParams) SetSubjectID(subjectID *string)

SetSubjectID adds the subjectId to the get relation tuples params

func (*GetRelationTuplesParams) SetSubjectSetNamespace

func (o *GetRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)

SetSubjectSetNamespace adds the subjectSetNamespace to the get relation tuples params

func (*GetRelationTuplesParams) SetSubjectSetObject

func (o *GetRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)

SetSubjectSetObject adds the subjectSetObject to the get relation tuples params

func (*GetRelationTuplesParams) SetSubjectSetRelation

func (o *GetRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)

SetSubjectSetRelation adds the subjectSetRelation to the get relation tuples params

func (*GetRelationTuplesParams) SetTimeout

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

SetTimeout adds the timeout to the get relation tuples params

func (*GetRelationTuplesParams) WithContext

WithContext adds the context to the get relation tuples params

func (*GetRelationTuplesParams) WithDefaults

WithDefaults hydrates default values in the get relation tuples params (not the query body).

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

func (*GetRelationTuplesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get relation tuples params

func (*GetRelationTuplesParams) WithNamespace

func (o *GetRelationTuplesParams) WithNamespace(namespace *string) *GetRelationTuplesParams

WithNamespace adds the namespace to the get relation tuples params

func (*GetRelationTuplesParams) WithObject

func (o *GetRelationTuplesParams) WithObject(object *string) *GetRelationTuplesParams

WithObject adds the object to the get relation tuples params

func (*GetRelationTuplesParams) WithPageSize

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

WithPageSize adds the pageSize to the get relation tuples params

func (*GetRelationTuplesParams) WithPageToken

func (o *GetRelationTuplesParams) WithPageToken(pageToken *string) *GetRelationTuplesParams

WithPageToken adds the pageToken to the get relation tuples params

func (*GetRelationTuplesParams) WithRelation

func (o *GetRelationTuplesParams) WithRelation(relation *string) *GetRelationTuplesParams

WithRelation adds the relation to the get relation tuples params

func (*GetRelationTuplesParams) WithSubjectID

func (o *GetRelationTuplesParams) WithSubjectID(subjectID *string) *GetRelationTuplesParams

WithSubjectID adds the subjectID to the get relation tuples params

func (*GetRelationTuplesParams) WithSubjectSetNamespace

func (o *GetRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetRelationTuplesParams

WithSubjectSetNamespace adds the subjectSetNamespace to the get relation tuples params

func (*GetRelationTuplesParams) WithSubjectSetObject

func (o *GetRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *GetRelationTuplesParams

WithSubjectSetObject adds the subjectSetObject to the get relation tuples params

func (*GetRelationTuplesParams) WithSubjectSetRelation

func (o *GetRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *GetRelationTuplesParams

WithSubjectSetRelation adds the subjectSetRelation to the get relation tuples params

func (*GetRelationTuplesParams) WithTimeout

WithTimeout adds the timeout to the get relation tuples params

func (*GetRelationTuplesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRelationTuplesReader

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

GetRelationTuplesReader is a Reader for the GetRelationTuples structure.

func (*GetRelationTuplesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostCheckBadRequest

type PostCheckBadRequest struct {
	Payload *models.GenericError
}
PostCheckBadRequest describes a response with status code 400, with default header values.

genericError

func NewPostCheckBadRequest

func NewPostCheckBadRequest() *PostCheckBadRequest

NewPostCheckBadRequest creates a PostCheckBadRequest with default headers values

func (*PostCheckBadRequest) Error

func (o *PostCheckBadRequest) Error() string

func (*PostCheckBadRequest) GetPayload

func (o *PostCheckBadRequest) GetPayload() *models.GenericError

type PostCheckInternalServerError

type PostCheckInternalServerError struct {
	Payload *models.GenericError
}
PostCheckInternalServerError describes a response with status code 500, with default header values.

genericError

func NewPostCheckInternalServerError

func NewPostCheckInternalServerError() *PostCheckInternalServerError

NewPostCheckInternalServerError creates a PostCheckInternalServerError with default headers values

func (*PostCheckInternalServerError) Error

func (*PostCheckInternalServerError) GetPayload

type PostCheckMirrorStatusBadRequest

type PostCheckMirrorStatusBadRequest struct {
	Payload *models.GenericError
}
PostCheckMirrorStatusBadRequest describes a response with status code 400, with default header values.

genericError

func NewPostCheckMirrorStatusBadRequest

func NewPostCheckMirrorStatusBadRequest() *PostCheckMirrorStatusBadRequest

NewPostCheckMirrorStatusBadRequest creates a PostCheckMirrorStatusBadRequest with default headers values

func (*PostCheckMirrorStatusBadRequest) Error

func (*PostCheckMirrorStatusBadRequest) GetPayload

type PostCheckMirrorStatusForbidden

type PostCheckMirrorStatusForbidden struct {
	Payload *models.GetCheckResponse
}
PostCheckMirrorStatusForbidden describes a response with status code 403, with default header values.

getCheckResponse

func NewPostCheckMirrorStatusForbidden

func NewPostCheckMirrorStatusForbidden() *PostCheckMirrorStatusForbidden

NewPostCheckMirrorStatusForbidden creates a PostCheckMirrorStatusForbidden with default headers values

func (*PostCheckMirrorStatusForbidden) Error

func (*PostCheckMirrorStatusForbidden) GetPayload

type PostCheckMirrorStatusInternalServerError

type PostCheckMirrorStatusInternalServerError struct {
	Payload *models.GenericError
}
PostCheckMirrorStatusInternalServerError describes a response with status code 500, with default header values.

genericError

func NewPostCheckMirrorStatusInternalServerError

func NewPostCheckMirrorStatusInternalServerError() *PostCheckMirrorStatusInternalServerError

NewPostCheckMirrorStatusInternalServerError creates a PostCheckMirrorStatusInternalServerError with default headers values

func (*PostCheckMirrorStatusInternalServerError) Error

func (*PostCheckMirrorStatusInternalServerError) GetPayload

type PostCheckMirrorStatusOK

type PostCheckMirrorStatusOK struct {
	Payload *models.GetCheckResponse
}
PostCheckMirrorStatusOK describes a response with status code 200, with default header values.

getCheckResponse

func NewPostCheckMirrorStatusOK

func NewPostCheckMirrorStatusOK() *PostCheckMirrorStatusOK

NewPostCheckMirrorStatusOK creates a PostCheckMirrorStatusOK with default headers values

func (*PostCheckMirrorStatusOK) Error

func (o *PostCheckMirrorStatusOK) Error() string

func (*PostCheckMirrorStatusOK) GetPayload

type PostCheckMirrorStatusParams

type PostCheckMirrorStatusParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostCheckMirrorStatusParams contains all the parameters to send to the API endpoint

for the post check mirror status operation.

Typically these are written to a http.Request.

func NewPostCheckMirrorStatusParams

func NewPostCheckMirrorStatusParams() *PostCheckMirrorStatusParams

NewPostCheckMirrorStatusParams creates a new PostCheckMirrorStatusParams 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 NewPostCheckMirrorStatusParamsWithContext

func NewPostCheckMirrorStatusParamsWithContext(ctx context.Context) *PostCheckMirrorStatusParams

NewPostCheckMirrorStatusParamsWithContext creates a new PostCheckMirrorStatusParams object with the ability to set a context for a request.

func NewPostCheckMirrorStatusParamsWithHTTPClient

func NewPostCheckMirrorStatusParamsWithHTTPClient(client *http.Client) *PostCheckMirrorStatusParams

NewPostCheckMirrorStatusParamsWithHTTPClient creates a new PostCheckMirrorStatusParams object with the ability to set a custom HTTPClient for a request.

func NewPostCheckMirrorStatusParamsWithTimeout

func NewPostCheckMirrorStatusParamsWithTimeout(timeout time.Duration) *PostCheckMirrorStatusParams

NewPostCheckMirrorStatusParamsWithTimeout creates a new PostCheckMirrorStatusParams object with the ability to set a timeout on a request.

func (*PostCheckMirrorStatusParams) SetContext

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

SetContext adds the context to the post check mirror status params

func (*PostCheckMirrorStatusParams) SetDefaults

func (o *PostCheckMirrorStatusParams) SetDefaults()

SetDefaults hydrates default values in the post check mirror status params (not the query body).

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

func (*PostCheckMirrorStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post check mirror status params

func (*PostCheckMirrorStatusParams) SetTimeout

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

SetTimeout adds the timeout to the post check mirror status params

func (*PostCheckMirrorStatusParams) WithContext

WithContext adds the context to the post check mirror status params

func (*PostCheckMirrorStatusParams) WithDefaults

WithDefaults hydrates default values in the post check mirror status params (not the query body).

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

func (*PostCheckMirrorStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post check mirror status params

func (*PostCheckMirrorStatusParams) WithTimeout

WithTimeout adds the timeout to the post check mirror status params

func (*PostCheckMirrorStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostCheckMirrorStatusReader

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

PostCheckMirrorStatusReader is a Reader for the PostCheckMirrorStatus structure.

func (*PostCheckMirrorStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostCheckOK

type PostCheckOK struct {
	Payload *models.GetCheckResponse
}
PostCheckOK describes a response with status code 200, with default header values.

getCheckResponse

func NewPostCheckOK

func NewPostCheckOK() *PostCheckOK

NewPostCheckOK creates a PostCheckOK with default headers values

func (*PostCheckOK) Error

func (o *PostCheckOK) Error() string

func (*PostCheckOK) GetPayload

func (o *PostCheckOK) GetPayload() *models.GetCheckResponse

type PostCheckParams

type PostCheckParams struct {

	// Payload.
	Payload *models.RelationQuery

	// MaxDepth.
	//
	// Format: int64
	MaxDepth *int64

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

PostCheckParams contains all the parameters to send to the API endpoint

for the post check operation.

Typically these are written to a http.Request.

func NewPostCheckParams

func NewPostCheckParams() *PostCheckParams

NewPostCheckParams creates a new PostCheckParams 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 NewPostCheckParamsWithContext

func NewPostCheckParamsWithContext(ctx context.Context) *PostCheckParams

NewPostCheckParamsWithContext creates a new PostCheckParams object with the ability to set a context for a request.

func NewPostCheckParamsWithHTTPClient

func NewPostCheckParamsWithHTTPClient(client *http.Client) *PostCheckParams

NewPostCheckParamsWithHTTPClient creates a new PostCheckParams object with the ability to set a custom HTTPClient for a request.

func NewPostCheckParamsWithTimeout

func NewPostCheckParamsWithTimeout(timeout time.Duration) *PostCheckParams

NewPostCheckParamsWithTimeout creates a new PostCheckParams object with the ability to set a timeout on a request.

func (*PostCheckParams) SetContext

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

SetContext adds the context to the post check params

func (*PostCheckParams) SetDefaults

func (o *PostCheckParams) SetDefaults()

SetDefaults hydrates default values in the post check params (not the query body).

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

func (*PostCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post check params

func (*PostCheckParams) SetMaxDepth

func (o *PostCheckParams) SetMaxDepth(maxDepth *int64)

SetMaxDepth adds the maxDepth to the post check params

func (*PostCheckParams) SetPayload

func (o *PostCheckParams) SetPayload(payload *models.RelationQuery)

SetPayload adds the payload to the post check params

func (*PostCheckParams) SetTimeout

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

SetTimeout adds the timeout to the post check params

func (*PostCheckParams) WithContext

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

WithContext adds the context to the post check params

func (*PostCheckParams) WithDefaults

func (o *PostCheckParams) WithDefaults() *PostCheckParams

WithDefaults hydrates default values in the post check params (not the query body).

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

func (*PostCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post check params

func (*PostCheckParams) WithMaxDepth

func (o *PostCheckParams) WithMaxDepth(maxDepth *int64) *PostCheckParams

WithMaxDepth adds the maxDepth to the post check params

func (*PostCheckParams) WithPayload

func (o *PostCheckParams) WithPayload(payload *models.RelationQuery) *PostCheckParams

WithPayload adds the payload to the post check params

func (*PostCheckParams) WithTimeout

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

WithTimeout adds the timeout to the post check params

func (*PostCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostCheckReader

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

PostCheckReader is a Reader for the PostCheck structure.

func (*PostCheckReader) ReadResponse

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