Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateRelationTuple(params *CreateRelationTupleParams, opts ...ClientOption) (*CreateRelationTupleCreated, error)
- func (a *Client) DeleteRelationTuple(params *DeleteRelationTupleParams, opts ...ClientOption) (*DeleteRelationTupleNoContent, 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 CreateRelationTupleBadRequestBody
- func (o *CreateRelationTupleBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRelationTupleBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *CreateRelationTupleBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *CreateRelationTupleBadRequestBody) Validate(formats strfmt.Registry) error
- type CreateRelationTupleCreated
- type CreateRelationTupleInternalServerError
- type CreateRelationTupleInternalServerErrorBody
- func (o *CreateRelationTupleInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *CreateRelationTupleInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *CreateRelationTupleInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *CreateRelationTupleInternalServerErrorBody) Validate(formats strfmt.Registry) error
- 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.InternalRelationTuple)
- 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.InternalRelationTuple) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WithTimeout(timeout time.Duration) *CreateRelationTupleParams
- func (o *CreateRelationTupleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRelationTupleReader
- type DeleteRelationTupleBadRequest
- type DeleteRelationTupleBadRequestBody
- func (o *DeleteRelationTupleBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteRelationTupleBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *DeleteRelationTupleBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *DeleteRelationTupleBadRequestBody) Validate(formats strfmt.Registry) error
- type DeleteRelationTupleInternalServerError
- type DeleteRelationTupleInternalServerErrorBody
- func (o *DeleteRelationTupleInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *DeleteRelationTupleInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *DeleteRelationTupleInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *DeleteRelationTupleInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type DeleteRelationTupleNoContent
- type DeleteRelationTupleParams
- func NewDeleteRelationTupleParams() *DeleteRelationTupleParams
- func NewDeleteRelationTupleParamsWithContext(ctx context.Context) *DeleteRelationTupleParams
- func NewDeleteRelationTupleParamsWithHTTPClient(client *http.Client) *DeleteRelationTupleParams
- func NewDeleteRelationTupleParamsWithTimeout(timeout time.Duration) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) SetContext(ctx context.Context)
- func (o *DeleteRelationTupleParams) SetDefaults()
- func (o *DeleteRelationTupleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRelationTupleParams) SetNamespace(namespace string)
- func (o *DeleteRelationTupleParams) SetObject(object string)
- func (o *DeleteRelationTupleParams) SetRelation(relation string)
- func (o *DeleteRelationTupleParams) SetSubject(subject *string)
- func (o *DeleteRelationTupleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRelationTupleParams) WithContext(ctx context.Context) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithDefaults() *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithHTTPClient(client *http.Client) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithNamespace(namespace string) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithObject(object string) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithRelation(relation string) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithSubject(subject *string) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WithTimeout(timeout time.Duration) *DeleteRelationTupleParams
- func (o *DeleteRelationTupleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRelationTupleReader
- type PatchRelationTuplesBadRequest
- type PatchRelationTuplesBadRequestBody
- func (o *PatchRelationTuplesBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchRelationTuplesBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *PatchRelationTuplesBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *PatchRelationTuplesBadRequestBody) Validate(formats strfmt.Registry) error
- type PatchRelationTuplesInternalServerError
- type PatchRelationTuplesInternalServerErrorBody
- func (o *PatchRelationTuplesInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchRelationTuplesInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *PatchRelationTuplesInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *PatchRelationTuplesInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type PatchRelationTuplesNoContent
- type PatchRelationTuplesNotFound
- type PatchRelationTuplesNotFoundBody
- func (o *PatchRelationTuplesNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchRelationTuplesNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *PatchRelationTuplesNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *PatchRelationTuplesNotFoundBody) Validate(formats strfmt.Registry) error
- 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) DeleteRelationTuple ¶
func (a *Client) DeleteRelationTuple(params *DeleteRelationTupleParams, opts ...ClientOption) (*DeleteRelationTupleNoContent, error)
DeleteRelationTuple deletes a relation tuple
Use this endpoint to delete a relation tuple.
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) DeleteRelationTuple(params *DeleteRelationTupleParams, opts ...ClientOption) (*DeleteRelationTupleNoContent, 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 *CreateRelationTupleBadRequestBody
}
CreateRelationTupleBadRequest describes a response with status code 400, with default header values.
The standard error format
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() *CreateRelationTupleBadRequestBody
type CreateRelationTupleBadRequestBody ¶
type CreateRelationTupleBadRequestBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
CreateRelationTupleBadRequestBody create relation tuple bad request body swagger:model CreateRelationTupleBadRequestBody
func (*CreateRelationTupleBadRequestBody) ContextValidate ¶
func (o *CreateRelationTupleBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create relation tuple bad request body based on context it is used
func (*CreateRelationTupleBadRequestBody) MarshalBinary ¶
func (o *CreateRelationTupleBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRelationTupleBadRequestBody) UnmarshalBinary ¶
func (o *CreateRelationTupleBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateRelationTupleCreated ¶
type CreateRelationTupleCreated struct {
Payload *models.InternalRelationTuple
}
CreateRelationTupleCreated describes a response with status code 201, with default header values.
InternalRelationTuple
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.InternalRelationTuple
type CreateRelationTupleInternalServerError ¶
type CreateRelationTupleInternalServerError struct {
Payload *CreateRelationTupleInternalServerErrorBody
}
CreateRelationTupleInternalServerError describes a response with status code 500, with default header values.
The standard error format
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() *CreateRelationTupleInternalServerErrorBody
type CreateRelationTupleInternalServerErrorBody ¶
type CreateRelationTupleInternalServerErrorBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
CreateRelationTupleInternalServerErrorBody create relation tuple internal server error body swagger:model CreateRelationTupleInternalServerErrorBody
func (*CreateRelationTupleInternalServerErrorBody) ContextValidate ¶
func (o *CreateRelationTupleInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this create relation tuple internal server error body based on context it is used
func (*CreateRelationTupleInternalServerErrorBody) MarshalBinary ¶
func (o *CreateRelationTupleInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateRelationTupleInternalServerErrorBody) UnmarshalBinary ¶
func (o *CreateRelationTupleInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateRelationTupleParams ¶
type CreateRelationTupleParams struct { // Payload. Payload *models.InternalRelationTuple 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.InternalRelationTuple)
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.InternalRelationTuple) *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 DeleteRelationTupleBadRequest ¶
type DeleteRelationTupleBadRequest struct {
Payload *DeleteRelationTupleBadRequestBody
}
DeleteRelationTupleBadRequest describes a response with status code 400, with default header values.
The standard error format
func NewDeleteRelationTupleBadRequest ¶
func NewDeleteRelationTupleBadRequest() *DeleteRelationTupleBadRequest
NewDeleteRelationTupleBadRequest creates a DeleteRelationTupleBadRequest with default headers values
func (*DeleteRelationTupleBadRequest) Error ¶
func (o *DeleteRelationTupleBadRequest) Error() string
func (*DeleteRelationTupleBadRequest) GetPayload ¶
func (o *DeleteRelationTupleBadRequest) GetPayload() *DeleteRelationTupleBadRequestBody
type DeleteRelationTupleBadRequestBody ¶
type DeleteRelationTupleBadRequestBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
DeleteRelationTupleBadRequestBody delete relation tuple bad request body swagger:model DeleteRelationTupleBadRequestBody
func (*DeleteRelationTupleBadRequestBody) ContextValidate ¶
func (o *DeleteRelationTupleBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete relation tuple bad request body based on context it is used
func (*DeleteRelationTupleBadRequestBody) MarshalBinary ¶
func (o *DeleteRelationTupleBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteRelationTupleBadRequestBody) UnmarshalBinary ¶
func (o *DeleteRelationTupleBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteRelationTupleInternalServerError ¶
type DeleteRelationTupleInternalServerError struct {
Payload *DeleteRelationTupleInternalServerErrorBody
}
DeleteRelationTupleInternalServerError describes a response with status code 500, with default header values.
The standard error format
func NewDeleteRelationTupleInternalServerError ¶
func NewDeleteRelationTupleInternalServerError() *DeleteRelationTupleInternalServerError
NewDeleteRelationTupleInternalServerError creates a DeleteRelationTupleInternalServerError with default headers values
func (*DeleteRelationTupleInternalServerError) Error ¶
func (o *DeleteRelationTupleInternalServerError) Error() string
func (*DeleteRelationTupleInternalServerError) GetPayload ¶
func (o *DeleteRelationTupleInternalServerError) GetPayload() *DeleteRelationTupleInternalServerErrorBody
type DeleteRelationTupleInternalServerErrorBody ¶
type DeleteRelationTupleInternalServerErrorBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
DeleteRelationTupleInternalServerErrorBody delete relation tuple internal server error body swagger:model DeleteRelationTupleInternalServerErrorBody
func (*DeleteRelationTupleInternalServerErrorBody) ContextValidate ¶
func (o *DeleteRelationTupleInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this delete relation tuple internal server error body based on context it is used
func (*DeleteRelationTupleInternalServerErrorBody) MarshalBinary ¶
func (o *DeleteRelationTupleInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteRelationTupleInternalServerErrorBody) UnmarshalBinary ¶
func (o *DeleteRelationTupleInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteRelationTupleNoContent ¶
type DeleteRelationTupleNoContent struct { }
DeleteRelationTupleNoContent 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 NewDeleteRelationTupleNoContent ¶
func NewDeleteRelationTupleNoContent() *DeleteRelationTupleNoContent
NewDeleteRelationTupleNoContent creates a DeleteRelationTupleNoContent with default headers values
func (*DeleteRelationTupleNoContent) Error ¶
func (o *DeleteRelationTupleNoContent) Error() string
type DeleteRelationTupleParams ¶
type DeleteRelationTupleParams 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 /* Subject. Subject of the Relation Tuple The subject follows the subject string encoding format. */ Subject *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteRelationTupleParams contains all the parameters to send to the API endpoint
for the delete relation tuple operation. Typically these are written to a http.Request.
func NewDeleteRelationTupleParams ¶
func NewDeleteRelationTupleParams() *DeleteRelationTupleParams
NewDeleteRelationTupleParams creates a new DeleteRelationTupleParams 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 NewDeleteRelationTupleParamsWithContext ¶
func NewDeleteRelationTupleParamsWithContext(ctx context.Context) *DeleteRelationTupleParams
NewDeleteRelationTupleParamsWithContext creates a new DeleteRelationTupleParams object with the ability to set a context for a request.
func NewDeleteRelationTupleParamsWithHTTPClient ¶
func NewDeleteRelationTupleParamsWithHTTPClient(client *http.Client) *DeleteRelationTupleParams
NewDeleteRelationTupleParamsWithHTTPClient creates a new DeleteRelationTupleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteRelationTupleParamsWithTimeout ¶
func NewDeleteRelationTupleParamsWithTimeout(timeout time.Duration) *DeleteRelationTupleParams
NewDeleteRelationTupleParamsWithTimeout creates a new DeleteRelationTupleParams object with the ability to set a timeout on a request.
func (*DeleteRelationTupleParams) SetContext ¶
func (o *DeleteRelationTupleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete relation tuple params
func (*DeleteRelationTupleParams) SetDefaults ¶
func (o *DeleteRelationTupleParams) SetDefaults()
SetDefaults hydrates default values in the delete relation tuple params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRelationTupleParams) SetHTTPClient ¶
func (o *DeleteRelationTupleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete relation tuple params
func (*DeleteRelationTupleParams) SetNamespace ¶
func (o *DeleteRelationTupleParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete relation tuple params
func (*DeleteRelationTupleParams) SetObject ¶
func (o *DeleteRelationTupleParams) SetObject(object string)
SetObject adds the object to the delete relation tuple params
func (*DeleteRelationTupleParams) SetRelation ¶
func (o *DeleteRelationTupleParams) SetRelation(relation string)
SetRelation adds the relation to the delete relation tuple params
func (*DeleteRelationTupleParams) SetSubject ¶
func (o *DeleteRelationTupleParams) SetSubject(subject *string)
SetSubject adds the subject to the delete relation tuple params
func (*DeleteRelationTupleParams) SetTimeout ¶
func (o *DeleteRelationTupleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete relation tuple params
func (*DeleteRelationTupleParams) WithContext ¶
func (o *DeleteRelationTupleParams) WithContext(ctx context.Context) *DeleteRelationTupleParams
WithContext adds the context to the delete relation tuple params
func (*DeleteRelationTupleParams) WithDefaults ¶
func (o *DeleteRelationTupleParams) WithDefaults() *DeleteRelationTupleParams
WithDefaults hydrates default values in the delete relation tuple params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteRelationTupleParams) WithHTTPClient ¶
func (o *DeleteRelationTupleParams) WithHTTPClient(client *http.Client) *DeleteRelationTupleParams
WithHTTPClient adds the HTTPClient to the delete relation tuple params
func (*DeleteRelationTupleParams) WithNamespace ¶
func (o *DeleteRelationTupleParams) WithNamespace(namespace string) *DeleteRelationTupleParams
WithNamespace adds the namespace to the delete relation tuple params
func (*DeleteRelationTupleParams) WithObject ¶
func (o *DeleteRelationTupleParams) WithObject(object string) *DeleteRelationTupleParams
WithObject adds the object to the delete relation tuple params
func (*DeleteRelationTupleParams) WithRelation ¶
func (o *DeleteRelationTupleParams) WithRelation(relation string) *DeleteRelationTupleParams
WithRelation adds the relation to the delete relation tuple params
func (*DeleteRelationTupleParams) WithSubject ¶
func (o *DeleteRelationTupleParams) WithSubject(subject *string) *DeleteRelationTupleParams
WithSubject adds the subject to the delete relation tuple params
func (*DeleteRelationTupleParams) WithTimeout ¶
func (o *DeleteRelationTupleParams) WithTimeout(timeout time.Duration) *DeleteRelationTupleParams
WithTimeout adds the timeout to the delete relation tuple params
func (*DeleteRelationTupleParams) WriteToRequest ¶
func (o *DeleteRelationTupleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRelationTupleReader ¶
type DeleteRelationTupleReader struct {
// contains filtered or unexported fields
}
DeleteRelationTupleReader is a Reader for the DeleteRelationTuple structure.
func (*DeleteRelationTupleReader) ReadResponse ¶
func (o *DeleteRelationTupleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchRelationTuplesBadRequest ¶
type PatchRelationTuplesBadRequest struct {
Payload *PatchRelationTuplesBadRequestBody
}
PatchRelationTuplesBadRequest describes a response with status code 400, with default header values.
The standard error format
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() *PatchRelationTuplesBadRequestBody
type PatchRelationTuplesBadRequestBody ¶
type PatchRelationTuplesBadRequestBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
PatchRelationTuplesBadRequestBody patch relation tuples bad request body swagger:model PatchRelationTuplesBadRequestBody
func (*PatchRelationTuplesBadRequestBody) ContextValidate ¶
func (o *PatchRelationTuplesBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this patch relation tuples bad request body based on context it is used
func (*PatchRelationTuplesBadRequestBody) MarshalBinary ¶
func (o *PatchRelationTuplesBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchRelationTuplesBadRequestBody) UnmarshalBinary ¶
func (o *PatchRelationTuplesBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PatchRelationTuplesInternalServerError ¶
type PatchRelationTuplesInternalServerError struct {
Payload *PatchRelationTuplesInternalServerErrorBody
}
PatchRelationTuplesInternalServerError describes a response with status code 500, with default header values.
The standard error format
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() *PatchRelationTuplesInternalServerErrorBody
type PatchRelationTuplesInternalServerErrorBody ¶
type PatchRelationTuplesInternalServerErrorBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
PatchRelationTuplesInternalServerErrorBody patch relation tuples internal server error body swagger:model PatchRelationTuplesInternalServerErrorBody
func (*PatchRelationTuplesInternalServerErrorBody) ContextValidate ¶
func (o *PatchRelationTuplesInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this patch relation tuples internal server error body based on context it is used
func (*PatchRelationTuplesInternalServerErrorBody) MarshalBinary ¶
func (o *PatchRelationTuplesInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchRelationTuplesInternalServerErrorBody) UnmarshalBinary ¶
func (o *PatchRelationTuplesInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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 *PatchRelationTuplesNotFoundBody
}
PatchRelationTuplesNotFound describes a response with status code 404, with default header values.
The standard error format
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() *PatchRelationTuplesNotFoundBody
type PatchRelationTuplesNotFoundBody ¶
type PatchRelationTuplesNotFoundBody struct { // code Code int64 `json:"code,omitempty"` // details Details []interface{} `json:"details"` // message Message string `json:"message,omitempty"` // reason Reason string `json:"reason,omitempty"` // request Request string `json:"request,omitempty"` // status Status string `json:"status,omitempty"` }
PatchRelationTuplesNotFoundBody patch relation tuples not found body swagger:model PatchRelationTuplesNotFoundBody
func (*PatchRelationTuplesNotFoundBody) ContextValidate ¶
func (o *PatchRelationTuplesNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this patch relation tuples not found body based on context it is used
func (*PatchRelationTuplesNotFoundBody) MarshalBinary ¶
func (o *PatchRelationTuplesNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchRelationTuplesNotFoundBody) UnmarshalBinary ¶
func (o *PatchRelationTuplesNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
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.