write

package
v0.6.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 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 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 (*CreateRelationTupleBadRequest) GetPayload

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

func (*CreateRelationTupleBadRequestBody) Validate

Validate validates this create relation tuple bad request body

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 (*CreateRelationTupleCreated) GetPayload

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 (*CreateRelationTupleInternalServerError) GetPayload

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

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

func (*CreateRelationTupleInternalServerErrorBody) Validate

Validate validates this create relation tuple internal server error body

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

WithContext adds the context to the create relation tuple params

func (*CreateRelationTupleParams) WithDefaults

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

WithPayload adds the payload to the create relation tuple params

func (*CreateRelationTupleParams) WithTimeout

WithTimeout adds the timeout to the create relation tuple params

func (*CreateRelationTupleParams) WriteToRequest

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 (*DeleteRelationTupleBadRequest) GetPayload

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

func (*DeleteRelationTupleBadRequestBody) Validate

Validate validates this delete relation tuple bad request body

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 (*DeleteRelationTupleInternalServerError) GetPayload

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

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

func (*DeleteRelationTupleInternalServerErrorBody) Validate

Validate validates this delete relation tuple internal server error body

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

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

WithContext adds the context to the delete relation tuple params

func (*DeleteRelationTupleParams) WithDefaults

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

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

WithSubject adds the subject to the delete relation tuple params

func (*DeleteRelationTupleParams) WithTimeout

WithTimeout adds the timeout to the delete relation tuple params

func (*DeleteRelationTupleParams) WriteToRequest

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 (*PatchRelationTuplesBadRequest) GetPayload

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

func (*PatchRelationTuplesBadRequestBody) Validate

Validate validates this patch relation tuples bad request body

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 (*PatchRelationTuplesInternalServerError) GetPayload

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

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

func (*PatchRelationTuplesInternalServerErrorBody) Validate

Validate validates this patch relation tuples internal server error body

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

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 (*PatchRelationTuplesNotFound) GetPayload

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

func (*PatchRelationTuplesNotFoundBody) Validate

Validate validates this patch relation tuples not found body

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

WithContext adds the context to the patch relation tuples params

func (*PatchRelationTuplesParams) WithDefaults

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

WithPayload adds the payload to the patch relation tuples params

func (*PatchRelationTuplesParams) WithTimeout

WithTimeout adds the timeout to the patch relation tuples params

func (*PatchRelationTuplesParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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