Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateRelationTuple(params *CreateRelationTupleParams, opts ...ClientOption) (*CreateRelationTupleCreated, error)
- func (a *Client) DeleteRelationTuples(params *DeleteRelationTuplesParams, opts ...ClientOption) (*DeleteRelationTuplesNoContent, error)
- func (a *Client) PatchRelationTuples(params *PatchRelationTuplesParams, opts ...ClientOption) (*PatchRelationTuplesNoContent, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateRelationTupleBadRequest
- type CreateRelationTupleCreated
- type CreateRelationTupleInternalServerError
- type CreateRelationTupleParams
- func NewCreateRelationTupleParams() *CreateRelationTupleParams
- func NewCreateRelationTupleParamsWithContext(ctx context.Context) *CreateRelationTupleParams
- func NewCreateRelationTupleParamsWithHTTPClient(client *http.Client) *CreateRelationTupleParams
- func NewCreateRelationTupleParamsWithTimeout(timeout time.Duration) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) SetContext(ctx context.Context)
- func (o *CreateRelationTupleParams) SetDefaults()
- func (o *CreateRelationTupleParams) SetHTTPClient(client *http.Client)
- func (o *CreateRelationTupleParams) SetPayload(payload *models.RelationQuery)
- func (o *CreateRelationTupleParams) SetTimeout(timeout time.Duration)
- func (o *CreateRelationTupleParams) WithContext(ctx context.Context) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WithDefaults() *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WithHTTPClient(client *http.Client) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WithPayload(payload *models.RelationQuery) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WithTimeout(timeout time.Duration) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRelationTupleReader
- type DeleteRelationTuplesBadRequest
- type DeleteRelationTuplesInternalServerError
- type DeleteRelationTuplesNoContent
- type DeleteRelationTuplesParams
- func NewDeleteRelationTuplesParams() *DeleteRelationTuplesParams
- func NewDeleteRelationTuplesParamsWithContext(ctx context.Context) *DeleteRelationTuplesParams
- func NewDeleteRelationTuplesParamsWithHTTPClient(client *http.Client) *DeleteRelationTuplesParams
- func NewDeleteRelationTuplesParamsWithTimeout(timeout time.Duration) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) SetContext(ctx context.Context)
- func (o *DeleteRelationTuplesParams) SetDefaults()
- func (o *DeleteRelationTuplesParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRelationTuplesParams) SetNamespace(namespace *string)
- func (o *DeleteRelationTuplesParams) SetObject(object *string)
- func (o *DeleteRelationTuplesParams) SetRelation(relation *string)
- func (o *DeleteRelationTuplesParams) SetSubjectID(subjectID *string)
- func (o *DeleteRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)
- func (o *DeleteRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)
- func (o *DeleteRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)
- func (o *DeleteRelationTuplesParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRelationTuplesParams) WithContext(ctx context.Context) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithDefaults() *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithHTTPClient(client *http.Client) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithNamespace(namespace *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithObject(object *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithRelation(relation *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithSubjectID(subjectID *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WithTimeout(timeout time.Duration) *DeleteRelationTuplesParams
- func (o *DeleteRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRelationTuplesReader
- type PatchRelationTuplesBadRequest
- type PatchRelationTuplesInternalServerError
- type PatchRelationTuplesNoContent
- type PatchRelationTuplesNotFound
- type PatchRelationTuplesParams
- func NewPatchRelationTuplesParams() *PatchRelationTuplesParams
- func NewPatchRelationTuplesParamsWithContext(ctx context.Context) *PatchRelationTuplesParams
- func NewPatchRelationTuplesParamsWithHTTPClient(client *http.Client) *PatchRelationTuplesParams
- func NewPatchRelationTuplesParamsWithTimeout(timeout time.Duration) *PatchRelationTuplesParams
- func (o *PatchRelationTuplesParams) SetContext(ctx context.Context)
- func (o *PatchRelationTuplesParams) SetDefaults()
- func (o *PatchRelationTuplesParams) SetHTTPClient(client *http.Client)
- func (o *PatchRelationTuplesParams) SetPayload(payload []*models.PatchDelta)
- func (o *PatchRelationTuplesParams) SetTimeout(timeout time.Duration)
- func (o *PatchRelationTuplesParams) WithContext(ctx context.Context) *PatchRelationTuplesParams
- func (o *PatchRelationTuplesParams) WithDefaults() *PatchRelationTuplesParams
- func (o *PatchRelationTuplesParams) WithHTTPClient(client *http.Client) *PatchRelationTuplesParams
- func (o *PatchRelationTuplesParams) WithPayload(payload []*models.PatchDelta) *PatchRelationTuplesParams
- func (o *PatchRelationTuplesParams) WithTimeout(timeout time.Duration) *PatchRelationTuplesParams
- func (o *PatchRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchRelationTuplesReader
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 write API
func (*Client) CreateRelationTuple ¶
func (a *Client) CreateRelationTuple(params *CreateRelationTupleParams, opts ...ClientOption) (*CreateRelationTupleCreated, error)
CreateRelationTuple creates a relation tuple
Use this endpoint to create a relation tuple.
func (*Client) DeleteRelationTuples ¶
func (a *Client) DeleteRelationTuples(params *DeleteRelationTuplesParams, opts ...ClientOption) (*DeleteRelationTuplesNoContent, error)
DeleteRelationTuples deletes relation tuples
Use this endpoint to delete relation tuples
func (*Client) PatchRelationTuples ¶
func (a *Client) PatchRelationTuples(params *PatchRelationTuplesParams, opts ...ClientOption) (*PatchRelationTuplesNoContent, error)
PatchRelationTuples patches multiple relation tuples
Use this endpoint to patch one or more relation tuples.
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 { CreateRelationTuple(params *CreateRelationTupleParams, opts ...ClientOption) (*CreateRelationTupleCreated, error) DeleteRelationTuples(params *DeleteRelationTuplesParams, opts ...ClientOption) (*DeleteRelationTuplesNoContent, error) PatchRelationTuples(params *PatchRelationTuplesParams, opts ...ClientOption) (*PatchRelationTuplesNoContent, 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 write API client.
type CreateRelationTupleBadRequest ¶
type CreateRelationTupleBadRequest struct {
Payload *models.GenericError
}
CreateRelationTupleBadRequest describes a response with status code 400, with default header values.
genericError
func NewCreateRelationTupleBadRequest ¶
func NewCreateRelationTupleBadRequest() *CreateRelationTupleBadRequest
NewCreateRelationTupleBadRequest creates a CreateRelationTupleBadRequest with default headers values
func (*CreateRelationTupleBadRequest) Error ¶
func (o *CreateRelationTupleBadRequest) Error() string
func (*CreateRelationTupleBadRequest) GetPayload ¶
func (o *CreateRelationTupleBadRequest) GetPayload() *models.GenericError
type CreateRelationTupleCreated ¶
type CreateRelationTupleCreated struct {
Payload *models.RelationQuery
}
CreateRelationTupleCreated describes a response with status code 201, with default header values.
RelationQuery
func NewCreateRelationTupleCreated ¶
func NewCreateRelationTupleCreated() *CreateRelationTupleCreated
NewCreateRelationTupleCreated creates a CreateRelationTupleCreated with default headers values
func (*CreateRelationTupleCreated) Error ¶
func (o *CreateRelationTupleCreated) Error() string
func (*CreateRelationTupleCreated) GetPayload ¶
func (o *CreateRelationTupleCreated) GetPayload() *models.RelationQuery
type CreateRelationTupleInternalServerError ¶
type CreateRelationTupleInternalServerError struct {
Payload *models.GenericError
}
CreateRelationTupleInternalServerError describes a response with status code 500, with default header values.
genericError
func NewCreateRelationTupleInternalServerError ¶
func NewCreateRelationTupleInternalServerError() *CreateRelationTupleInternalServerError
NewCreateRelationTupleInternalServerError creates a CreateRelationTupleInternalServerError with default headers values
func (*CreateRelationTupleInternalServerError) Error ¶
func (o *CreateRelationTupleInternalServerError) Error() string
func (*CreateRelationTupleInternalServerError) GetPayload ¶
func (o *CreateRelationTupleInternalServerError) GetPayload() *models.GenericError
type CreateRelationTupleParams ¶
type CreateRelationTupleParams struct { // Payload. Payload *models.RelationQuery Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateRelationTupleParams contains all the parameters to send to the API endpoint
for the create relation tuple operation. Typically these are written to a http.Request.
func NewCreateRelationTupleParams ¶
func NewCreateRelationTupleParams() *CreateRelationTupleParams
NewCreateRelationTupleParams creates a new CreateRelationTupleParams 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 NewCreateRelationTupleParamsWithContext ¶
func NewCreateRelationTupleParamsWithContext(ctx context.Context) *CreateRelationTupleParams
NewCreateRelationTupleParamsWithContext creates a new CreateRelationTupleParams object with the ability to set a context for a request.
func NewCreateRelationTupleParamsWithHTTPClient ¶
func NewCreateRelationTupleParamsWithHTTPClient(client *http.Client) *CreateRelationTupleParams
NewCreateRelationTupleParamsWithHTTPClient creates a new CreateRelationTupleParams object with the ability to set a custom HTTPClient for a request.
func NewCreateRelationTupleParamsWithTimeout ¶
func NewCreateRelationTupleParamsWithTimeout(timeout time.Duration) *CreateRelationTupleParams
NewCreateRelationTupleParamsWithTimeout creates a new CreateRelationTupleParams object with the ability to set a timeout on a request.
func (*CreateRelationTupleParams) SetContext ¶
func (o *CreateRelationTupleParams) SetContext(ctx context.Context)
SetContext adds the context to the create relation tuple params
func (*CreateRelationTupleParams) SetDefaults ¶
func (o *CreateRelationTupleParams) SetDefaults()
SetDefaults hydrates default values in the create relation tuple params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRelationTupleParams) SetHTTPClient ¶
func (o *CreateRelationTupleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create relation tuple params
func (*CreateRelationTupleParams) SetPayload ¶
func (o *CreateRelationTupleParams) SetPayload(payload *models.RelationQuery)
SetPayload adds the payload to the create relation tuple params
func (*CreateRelationTupleParams) SetTimeout ¶
func (o *CreateRelationTupleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create relation tuple params
func (*CreateRelationTupleParams) WithContext ¶
func (o *CreateRelationTupleParams) WithContext(ctx context.Context) *CreateRelationTupleParams
WithContext adds the context to the create relation tuple params
func (*CreateRelationTupleParams) WithDefaults ¶
func (o *CreateRelationTupleParams) WithDefaults() *CreateRelationTupleParams
WithDefaults hydrates default values in the create relation tuple params (not the query body).
All values with no default are reset to their zero value.
func (*CreateRelationTupleParams) WithHTTPClient ¶
func (o *CreateRelationTupleParams) WithHTTPClient(client *http.Client) *CreateRelationTupleParams
WithHTTPClient adds the HTTPClient to the create relation tuple params
func (*CreateRelationTupleParams) WithPayload ¶
func (o *CreateRelationTupleParams) WithPayload(payload *models.RelationQuery) *CreateRelationTupleParams
WithPayload adds the payload to the create relation tuple params
func (*CreateRelationTupleParams) WithTimeout ¶
func (o *CreateRelationTupleParams) WithTimeout(timeout time.Duration) *CreateRelationTupleParams
WithTimeout adds the timeout to the create relation tuple params
func (*CreateRelationTupleParams) WriteToRequest ¶
func (o *CreateRelationTupleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateRelationTupleReader ¶
type CreateRelationTupleReader struct {
// contains filtered or unexported fields
}
CreateRelationTupleReader is a Reader for the CreateRelationTuple structure.
func (*CreateRelationTupleReader) ReadResponse ¶
func (o *CreateRelationTupleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteRelationTuplesBadRequest ¶
type DeleteRelationTuplesBadRequest struct {
Payload *models.GenericError
}
DeleteRelationTuplesBadRequest describes a response with status code 400, with default header values.
genericError
func NewDeleteRelationTuplesBadRequest ¶
func NewDeleteRelationTuplesBadRequest() *DeleteRelationTuplesBadRequest
NewDeleteRelationTuplesBadRequest creates a DeleteRelationTuplesBadRequest with default headers values
func (*DeleteRelationTuplesBadRequest) Error ¶
func (o *DeleteRelationTuplesBadRequest) Error() string
func (*DeleteRelationTuplesBadRequest) GetPayload ¶
func (o *DeleteRelationTuplesBadRequest) GetPayload() *models.GenericError
type DeleteRelationTuplesInternalServerError ¶
type DeleteRelationTuplesInternalServerError struct {
Payload *models.GenericError
}
DeleteRelationTuplesInternalServerError describes a response with status code 500, with default header values.
genericError
func NewDeleteRelationTuplesInternalServerError ¶
func NewDeleteRelationTuplesInternalServerError() *DeleteRelationTuplesInternalServerError
NewDeleteRelationTuplesInternalServerError creates a DeleteRelationTuplesInternalServerError with default headers values
func (*DeleteRelationTuplesInternalServerError) Error ¶
func (o *DeleteRelationTuplesInternalServerError) Error() string
func (*DeleteRelationTuplesInternalServerError) GetPayload ¶
func (o *DeleteRelationTuplesInternalServerError) GetPayload() *models.GenericError
type DeleteRelationTuplesNoContent ¶
type DeleteRelationTuplesNoContent struct { }
DeleteRelationTuplesNoContent describes a response with status code 204, with default header values.
Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.
func NewDeleteRelationTuplesNoContent ¶
func NewDeleteRelationTuplesNoContent() *DeleteRelationTuplesNoContent
NewDeleteRelationTuplesNoContent creates a DeleteRelationTuplesNoContent with default headers values
func (*DeleteRelationTuplesNoContent) Error ¶
func (o *DeleteRelationTuplesNoContent) Error() string
type DeleteRelationTuplesParams ¶
type DeleteRelationTuplesParams struct { /* 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 }
DeleteRelationTuplesParams contains all the parameters to send to the API endpoint
for the delete relation tuples operation. Typically these are written to a http.Request.
func NewDeleteRelationTuplesParams ¶
func NewDeleteRelationTuplesParams() *DeleteRelationTuplesParams
NewDeleteRelationTuplesParams creates a new DeleteRelationTuplesParams 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 NewDeleteRelationTuplesParamsWithContext ¶
func NewDeleteRelationTuplesParamsWithContext(ctx context.Context) *DeleteRelationTuplesParams
NewDeleteRelationTuplesParamsWithContext creates a new DeleteRelationTuplesParams object with the ability to set a context for a request.
func NewDeleteRelationTuplesParamsWithHTTPClient ¶
func NewDeleteRelationTuplesParamsWithHTTPClient(client *http.Client) *DeleteRelationTuplesParams
NewDeleteRelationTuplesParamsWithHTTPClient creates a new DeleteRelationTuplesParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteRelationTuplesParamsWithTimeout ¶
func NewDeleteRelationTuplesParamsWithTimeout(timeout time.Duration) *DeleteRelationTuplesParams
NewDeleteRelationTuplesParamsWithTimeout creates a new DeleteRelationTuplesParams object with the ability to set a timeout on a request.
func (*DeleteRelationTuplesParams) SetContext ¶
func (o *DeleteRelationTuplesParams) SetContext(ctx context.Context)
SetContext adds the context to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetDefaults ¶
func (o *DeleteRelationTuplesParams) SetDefaults()
SetDefaults hydrates default values in the delete relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRelationTuplesParams) SetHTTPClient ¶
func (o *DeleteRelationTuplesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetNamespace ¶
func (o *DeleteRelationTuplesParams) SetNamespace(namespace *string)
SetNamespace adds the namespace to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetObject ¶
func (o *DeleteRelationTuplesParams) SetObject(object *string)
SetObject adds the object to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetRelation ¶
func (o *DeleteRelationTuplesParams) SetRelation(relation *string)
SetRelation adds the relation to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetSubjectID ¶
func (o *DeleteRelationTuplesParams) SetSubjectID(subjectID *string)
SetSubjectID adds the subjectId to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetSubjectSetNamespace ¶
func (o *DeleteRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)
SetSubjectSetNamespace adds the subjectSetNamespace to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetSubjectSetObject ¶
func (o *DeleteRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)
SetSubjectSetObject adds the subjectSetObject to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetSubjectSetRelation ¶
func (o *DeleteRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)
SetSubjectSetRelation adds the subjectSetRelation to the delete relation tuples params
func (*DeleteRelationTuplesParams) SetTimeout ¶
func (o *DeleteRelationTuplesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithContext ¶
func (o *DeleteRelationTuplesParams) WithContext(ctx context.Context) *DeleteRelationTuplesParams
WithContext adds the context to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithDefaults ¶
func (o *DeleteRelationTuplesParams) WithDefaults() *DeleteRelationTuplesParams
WithDefaults hydrates default values in the delete relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRelationTuplesParams) WithHTTPClient ¶
func (o *DeleteRelationTuplesParams) WithHTTPClient(client *http.Client) *DeleteRelationTuplesParams
WithHTTPClient adds the HTTPClient to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithNamespace ¶
func (o *DeleteRelationTuplesParams) WithNamespace(namespace *string) *DeleteRelationTuplesParams
WithNamespace adds the namespace to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithObject ¶
func (o *DeleteRelationTuplesParams) WithObject(object *string) *DeleteRelationTuplesParams
WithObject adds the object to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithRelation ¶
func (o *DeleteRelationTuplesParams) WithRelation(relation *string) *DeleteRelationTuplesParams
WithRelation adds the relation to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithSubjectID ¶
func (o *DeleteRelationTuplesParams) WithSubjectID(subjectID *string) *DeleteRelationTuplesParams
WithSubjectID adds the subjectID to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithSubjectSetNamespace ¶
func (o *DeleteRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *DeleteRelationTuplesParams
WithSubjectSetNamespace adds the subjectSetNamespace to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithSubjectSetObject ¶
func (o *DeleteRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *DeleteRelationTuplesParams
WithSubjectSetObject adds the subjectSetObject to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithSubjectSetRelation ¶
func (o *DeleteRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *DeleteRelationTuplesParams
WithSubjectSetRelation adds the subjectSetRelation to the delete relation tuples params
func (*DeleteRelationTuplesParams) WithTimeout ¶
func (o *DeleteRelationTuplesParams) WithTimeout(timeout time.Duration) *DeleteRelationTuplesParams
WithTimeout adds the timeout to the delete relation tuples params
func (*DeleteRelationTuplesParams) WriteToRequest ¶
func (o *DeleteRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRelationTuplesReader ¶
type DeleteRelationTuplesReader struct {
// contains filtered or unexported fields
}
DeleteRelationTuplesReader is a Reader for the DeleteRelationTuples structure.
func (*DeleteRelationTuplesReader) ReadResponse ¶
func (o *DeleteRelationTuplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchRelationTuplesBadRequest ¶
type PatchRelationTuplesBadRequest struct {
Payload *models.GenericError
}
PatchRelationTuplesBadRequest describes a response with status code 400, with default header values.
genericError
func NewPatchRelationTuplesBadRequest ¶
func NewPatchRelationTuplesBadRequest() *PatchRelationTuplesBadRequest
NewPatchRelationTuplesBadRequest creates a PatchRelationTuplesBadRequest with default headers values
func (*PatchRelationTuplesBadRequest) Error ¶
func (o *PatchRelationTuplesBadRequest) Error() string
func (*PatchRelationTuplesBadRequest) GetPayload ¶
func (o *PatchRelationTuplesBadRequest) GetPayload() *models.GenericError
type PatchRelationTuplesInternalServerError ¶
type PatchRelationTuplesInternalServerError struct {
Payload *models.GenericError
}
PatchRelationTuplesInternalServerError describes a response with status code 500, with default header values.
genericError
func NewPatchRelationTuplesInternalServerError ¶
func NewPatchRelationTuplesInternalServerError() *PatchRelationTuplesInternalServerError
NewPatchRelationTuplesInternalServerError creates a PatchRelationTuplesInternalServerError with default headers values
func (*PatchRelationTuplesInternalServerError) Error ¶
func (o *PatchRelationTuplesInternalServerError) Error() string
func (*PatchRelationTuplesInternalServerError) GetPayload ¶
func (o *PatchRelationTuplesInternalServerError) GetPayload() *models.GenericError
type PatchRelationTuplesNoContent ¶
type PatchRelationTuplesNoContent struct { }
PatchRelationTuplesNoContent describes a response with status code 204, with default header values.
Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is typically 201.
func NewPatchRelationTuplesNoContent ¶
func NewPatchRelationTuplesNoContent() *PatchRelationTuplesNoContent
NewPatchRelationTuplesNoContent creates a PatchRelationTuplesNoContent with default headers values
func (*PatchRelationTuplesNoContent) Error ¶
func (o *PatchRelationTuplesNoContent) Error() string
type PatchRelationTuplesNotFound ¶
type PatchRelationTuplesNotFound struct {
Payload *models.GenericError
}
PatchRelationTuplesNotFound describes a response with status code 404, with default header values.
genericError
func NewPatchRelationTuplesNotFound ¶
func NewPatchRelationTuplesNotFound() *PatchRelationTuplesNotFound
NewPatchRelationTuplesNotFound creates a PatchRelationTuplesNotFound with default headers values
func (*PatchRelationTuplesNotFound) Error ¶
func (o *PatchRelationTuplesNotFound) Error() string
func (*PatchRelationTuplesNotFound) GetPayload ¶
func (o *PatchRelationTuplesNotFound) GetPayload() *models.GenericError
type PatchRelationTuplesParams ¶
type PatchRelationTuplesParams struct { // Payload. Payload []*models.PatchDelta Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchRelationTuplesParams contains all the parameters to send to the API endpoint
for the patch relation tuples operation. Typically these are written to a http.Request.
func NewPatchRelationTuplesParams ¶
func NewPatchRelationTuplesParams() *PatchRelationTuplesParams
NewPatchRelationTuplesParams creates a new PatchRelationTuplesParams 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 NewPatchRelationTuplesParamsWithContext ¶
func NewPatchRelationTuplesParamsWithContext(ctx context.Context) *PatchRelationTuplesParams
NewPatchRelationTuplesParamsWithContext creates a new PatchRelationTuplesParams object with the ability to set a context for a request.
func NewPatchRelationTuplesParamsWithHTTPClient ¶
func NewPatchRelationTuplesParamsWithHTTPClient(client *http.Client) *PatchRelationTuplesParams
NewPatchRelationTuplesParamsWithHTTPClient creates a new PatchRelationTuplesParams object with the ability to set a custom HTTPClient for a request.
func NewPatchRelationTuplesParamsWithTimeout ¶
func NewPatchRelationTuplesParamsWithTimeout(timeout time.Duration) *PatchRelationTuplesParams
NewPatchRelationTuplesParamsWithTimeout creates a new PatchRelationTuplesParams object with the ability to set a timeout on a request.
func (*PatchRelationTuplesParams) SetContext ¶
func (o *PatchRelationTuplesParams) SetContext(ctx context.Context)
SetContext adds the context to the patch relation tuples params
func (*PatchRelationTuplesParams) SetDefaults ¶
func (o *PatchRelationTuplesParams) SetDefaults()
SetDefaults hydrates default values in the patch relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*PatchRelationTuplesParams) SetHTTPClient ¶
func (o *PatchRelationTuplesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch relation tuples params
func (*PatchRelationTuplesParams) SetPayload ¶
func (o *PatchRelationTuplesParams) SetPayload(payload []*models.PatchDelta)
SetPayload adds the payload to the patch relation tuples params
func (*PatchRelationTuplesParams) SetTimeout ¶
func (o *PatchRelationTuplesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch relation tuples params
func (*PatchRelationTuplesParams) WithContext ¶
func (o *PatchRelationTuplesParams) WithContext(ctx context.Context) *PatchRelationTuplesParams
WithContext adds the context to the patch relation tuples params
func (*PatchRelationTuplesParams) WithDefaults ¶
func (o *PatchRelationTuplesParams) WithDefaults() *PatchRelationTuplesParams
WithDefaults hydrates default values in the patch relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*PatchRelationTuplesParams) WithHTTPClient ¶
func (o *PatchRelationTuplesParams) WithHTTPClient(client *http.Client) *PatchRelationTuplesParams
WithHTTPClient adds the HTTPClient to the patch relation tuples params
func (*PatchRelationTuplesParams) WithPayload ¶
func (o *PatchRelationTuplesParams) WithPayload(payload []*models.PatchDelta) *PatchRelationTuplesParams
WithPayload adds the payload to the patch relation tuples params
func (*PatchRelationTuplesParams) WithTimeout ¶
func (o *PatchRelationTuplesParams) WithTimeout(timeout time.Duration) *PatchRelationTuplesParams
WithTimeout adds the timeout to the patch relation tuples params
func (*PatchRelationTuplesParams) WriteToRequest ¶
func (o *PatchRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchRelationTuplesReader ¶
type PatchRelationTuplesReader struct {
// contains filtered or unexported fields
}
PatchRelationTuplesReader is a Reader for the PatchRelationTuples structure.
func (*PatchRelationTuplesReader) ReadResponse ¶
func (o *PatchRelationTuplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.