Documentation ¶
Index ¶
- type Client
- func (a *Client) GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error)
- func (a *Client) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error)
- func (a *Client) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error)
- func (a *Client) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetCheckBadRequest
- type GetCheckBadRequestBody
- func (o *GetCheckBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetCheckBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *GetCheckBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *GetCheckBadRequestBody) Validate(formats strfmt.Registry) error
- type GetCheckForbidden
- type GetCheckInternalServerError
- type GetCheckInternalServerErrorBody
- func (o *GetCheckInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetCheckInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetCheckInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetCheckInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetCheckOK
- type GetCheckParams
- func (o *GetCheckParams) SetContext(ctx context.Context)
- func (o *GetCheckParams) SetDefaults()
- func (o *GetCheckParams) SetHTTPClient(client *http.Client)
- func (o *GetCheckParams) SetNamespace(namespace string)
- func (o *GetCheckParams) SetObject(object string)
- func (o *GetCheckParams) SetRelation(relation string)
- func (o *GetCheckParams) SetSubjectID(subjectID *string)
- func (o *GetCheckParams) SetSubjectSetNamespace(subjectSetNamespace *string)
- func (o *GetCheckParams) SetSubjectSetObject(subjectSetObject *string)
- func (o *GetCheckParams) SetSubjectSetRelation(subjectSetRelation *string)
- func (o *GetCheckParams) SetTimeout(timeout time.Duration)
- func (o *GetCheckParams) WithContext(ctx context.Context) *GetCheckParams
- func (o *GetCheckParams) WithDefaults() *GetCheckParams
- func (o *GetCheckParams) WithHTTPClient(client *http.Client) *GetCheckParams
- func (o *GetCheckParams) WithNamespace(namespace string) *GetCheckParams
- func (o *GetCheckParams) WithObject(object string) *GetCheckParams
- func (o *GetCheckParams) WithRelation(relation string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectID(subjectID *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectSetObject(subjectSetObject *string) *GetCheckParams
- func (o *GetCheckParams) WithSubjectSetRelation(subjectSetRelation *string) *GetCheckParams
- func (o *GetCheckParams) WithTimeout(timeout time.Duration) *GetCheckParams
- func (o *GetCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCheckReader
- type GetExpandBadRequest
- type GetExpandBadRequestBody
- func (o *GetExpandBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetExpandBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *GetExpandBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *GetExpandBadRequestBody) Validate(formats strfmt.Registry) error
- type GetExpandInternalServerError
- type GetExpandInternalServerErrorBody
- func (o *GetExpandInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetExpandInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetExpandInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetExpandInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetExpandNotFound
- type GetExpandNotFoundBody
- type GetExpandOK
- type GetExpandParams
- func (o *GetExpandParams) SetContext(ctx context.Context)
- func (o *GetExpandParams) SetDefaults()
- func (o *GetExpandParams) SetHTTPClient(client *http.Client)
- func (o *GetExpandParams) SetMaxDepth(maxDepth *int64)
- func (o *GetExpandParams) SetNamespace(namespace string)
- func (o *GetExpandParams) SetObject(object string)
- func (o *GetExpandParams) SetRelation(relation string)
- func (o *GetExpandParams) SetTimeout(timeout time.Duration)
- func (o *GetExpandParams) WithContext(ctx context.Context) *GetExpandParams
- func (o *GetExpandParams) WithDefaults() *GetExpandParams
- func (o *GetExpandParams) WithHTTPClient(client *http.Client) *GetExpandParams
- func (o *GetExpandParams) WithMaxDepth(maxDepth *int64) *GetExpandParams
- func (o *GetExpandParams) WithNamespace(namespace string) *GetExpandParams
- func (o *GetExpandParams) WithObject(object string) *GetExpandParams
- func (o *GetExpandParams) WithRelation(relation string) *GetExpandParams
- func (o *GetExpandParams) WithTimeout(timeout time.Duration) *GetExpandParams
- func (o *GetExpandParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetExpandReader
- type GetRelationTuplesInternalServerError
- type GetRelationTuplesInternalServerErrorBody
- func (o *GetRelationTuplesInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRelationTuplesInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *GetRelationTuplesInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *GetRelationTuplesInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type GetRelationTuplesNotFound
- type GetRelationTuplesNotFoundBody
- func (o *GetRelationTuplesNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *GetRelationTuplesNotFoundBody) MarshalBinary() ([]byte, error)
- func (o *GetRelationTuplesNotFoundBody) UnmarshalBinary(b []byte) error
- func (o *GetRelationTuplesNotFoundBody) Validate(formats strfmt.Registry) error
- type GetRelationTuplesOK
- type GetRelationTuplesParams
- func NewGetRelationTuplesParams() *GetRelationTuplesParams
- func NewGetRelationTuplesParamsWithContext(ctx context.Context) *GetRelationTuplesParams
- func NewGetRelationTuplesParamsWithHTTPClient(client *http.Client) *GetRelationTuplesParams
- func NewGetRelationTuplesParamsWithTimeout(timeout time.Duration) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) SetContext(ctx context.Context)
- func (o *GetRelationTuplesParams) SetDefaults()
- func (o *GetRelationTuplesParams) SetHTTPClient(client *http.Client)
- func (o *GetRelationTuplesParams) SetNamespace(namespace string)
- func (o *GetRelationTuplesParams) SetObject(object string)
- func (o *GetRelationTuplesParams) SetPageSize(pageSize *int64)
- func (o *GetRelationTuplesParams) SetPageToken(pageToken *string)
- func (o *GetRelationTuplesParams) SetRelation(relation string)
- func (o *GetRelationTuplesParams) SetSubjectID(subjectID *string)
- func (o *GetRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)
- func (o *GetRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)
- func (o *GetRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)
- func (o *GetRelationTuplesParams) SetTimeout(timeout time.Duration)
- func (o *GetRelationTuplesParams) WithContext(ctx context.Context) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithDefaults() *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithHTTPClient(client *http.Client) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithNamespace(namespace string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithObject(object string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithPageSize(pageSize *int64) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithPageToken(pageToken *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithRelation(relation string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectID(subjectID *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WithTimeout(timeout time.Duration) *GetRelationTuplesParams
- func (o *GetRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRelationTuplesReader
- type PostCheckBadRequest
- type PostCheckBadRequestBody
- func (o *PostCheckBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostCheckBadRequestBody) MarshalBinary() ([]byte, error)
- func (o *PostCheckBadRequestBody) UnmarshalBinary(b []byte) error
- func (o *PostCheckBadRequestBody) Validate(formats strfmt.Registry) error
- type PostCheckForbidden
- type PostCheckInternalServerError
- type PostCheckInternalServerErrorBody
- func (o *PostCheckInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PostCheckInternalServerErrorBody) MarshalBinary() ([]byte, error)
- func (o *PostCheckInternalServerErrorBody) UnmarshalBinary(b []byte) error
- func (o *PostCheckInternalServerErrorBody) Validate(formats strfmt.Registry) error
- type PostCheckOK
- type PostCheckParams
- func (o *PostCheckParams) SetContext(ctx context.Context)
- func (o *PostCheckParams) SetDefaults()
- func (o *PostCheckParams) SetHTTPClient(client *http.Client)
- func (o *PostCheckParams) SetPayload(payload *models.RelationQuery)
- func (o *PostCheckParams) SetTimeout(timeout time.Duration)
- func (o *PostCheckParams) WithContext(ctx context.Context) *PostCheckParams
- func (o *PostCheckParams) WithDefaults() *PostCheckParams
- func (o *PostCheckParams) WithHTTPClient(client *http.Client) *PostCheckParams
- func (o *PostCheckParams) WithPayload(payload *models.RelationQuery) *PostCheckParams
- func (o *PostCheckParams) WithTimeout(timeout time.Duration) *PostCheckParams
- func (o *PostCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostCheckReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for read API
func (*Client) GetCheck ¶
func (a *Client) GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error)
GetCheck checks a relation tuple
To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
func (*Client) GetExpand ¶
func (a *Client) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error)
GetExpand expands a relation tuple
Use this endpoint to expand a relation tuple.
func (*Client) GetRelationTuples ¶
func (a *Client) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error)
GetRelationTuples queries relation tuples
Get all relation tuples that match the query. Only the namespace field is required.
func (*Client) PostCheck ¶
func (a *Client) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error)
PostCheck checks a relation tuple
To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetCheck(params *GetCheckParams, opts ...ClientOption) (*GetCheckOK, error) GetExpand(params *GetExpandParams, opts ...ClientOption) (*GetExpandOK, error) GetRelationTuples(params *GetRelationTuplesParams, opts ...ClientOption) (*GetRelationTuplesOK, error) PostCheck(params *PostCheckParams, opts ...ClientOption) (*PostCheckOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new read API client.
type GetCheckBadRequest ¶
type GetCheckBadRequest struct {
Payload *GetCheckBadRequestBody
}
GetCheckBadRequest describes a response with status code 400, with default header values.
The standard error format
func NewGetCheckBadRequest ¶
func NewGetCheckBadRequest() *GetCheckBadRequest
NewGetCheckBadRequest creates a GetCheckBadRequest with default headers values
func (*GetCheckBadRequest) Error ¶
func (o *GetCheckBadRequest) Error() string
func (*GetCheckBadRequest) GetPayload ¶
func (o *GetCheckBadRequest) GetPayload() *GetCheckBadRequestBody
type GetCheckBadRequestBody ¶
type GetCheckBadRequestBody 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"` }
GetCheckBadRequestBody get check bad request body swagger:model GetCheckBadRequestBody
func (*GetCheckBadRequestBody) ContextValidate ¶
func (o *GetCheckBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get check bad request body based on context it is used
func (*GetCheckBadRequestBody) MarshalBinary ¶
func (o *GetCheckBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetCheckBadRequestBody) UnmarshalBinary ¶
func (o *GetCheckBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetCheckForbidden ¶
type GetCheckForbidden struct {
Payload *models.GetCheckResponse
}
GetCheckForbidden describes a response with status code 403, with default header values.
getCheckResponse
func NewGetCheckForbidden ¶
func NewGetCheckForbidden() *GetCheckForbidden
NewGetCheckForbidden creates a GetCheckForbidden with default headers values
func (*GetCheckForbidden) Error ¶
func (o *GetCheckForbidden) Error() string
func (*GetCheckForbidden) GetPayload ¶
func (o *GetCheckForbidden) GetPayload() *models.GetCheckResponse
type GetCheckInternalServerError ¶
type GetCheckInternalServerError struct {
Payload *GetCheckInternalServerErrorBody
}
GetCheckInternalServerError describes a response with status code 500, with default header values.
The standard error format
func NewGetCheckInternalServerError ¶
func NewGetCheckInternalServerError() *GetCheckInternalServerError
NewGetCheckInternalServerError creates a GetCheckInternalServerError with default headers values
func (*GetCheckInternalServerError) Error ¶
func (o *GetCheckInternalServerError) Error() string
func (*GetCheckInternalServerError) GetPayload ¶
func (o *GetCheckInternalServerError) GetPayload() *GetCheckInternalServerErrorBody
type GetCheckInternalServerErrorBody ¶
type GetCheckInternalServerErrorBody 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"` }
GetCheckInternalServerErrorBody get check internal server error body swagger:model GetCheckInternalServerErrorBody
func (*GetCheckInternalServerErrorBody) ContextValidate ¶
func (o *GetCheckInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get check internal server error body based on context it is used
func (*GetCheckInternalServerErrorBody) MarshalBinary ¶
func (o *GetCheckInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetCheckInternalServerErrorBody) UnmarshalBinary ¶
func (o *GetCheckInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetCheckOK ¶
type GetCheckOK struct {
Payload *models.GetCheckResponse
}
GetCheckOK describes a response with status code 200, with default header values.
getCheckResponse
func NewGetCheckOK ¶
func NewGetCheckOK() *GetCheckOK
NewGetCheckOK creates a GetCheckOK with default headers values
func (*GetCheckOK) Error ¶
func (o *GetCheckOK) Error() string
func (*GetCheckOK) GetPayload ¶
func (o *GetCheckOK) GetPayload() *models.GetCheckResponse
type GetCheckParams ¶
type GetCheckParams struct { /* Namespace. Namespace of the Relation Tuple */ Namespace string /* Object. Object of the Relation Tuple */ Object string /* Relation. Relation of the Relation Tuple */ Relation string /* SubjectID. SubjectID of the Relation Tuple */ SubjectID *string /* SubjectSetNamespace. Namespace of the Subject Set */ SubjectSetNamespace *string /* SubjectSetObject. Object of the Subject Set */ SubjectSetObject *string /* SubjectSetRelation. Relation of the Subject Set */ SubjectSetRelation *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCheckParams contains all the parameters to send to the API endpoint
for the get check operation. Typically these are written to a http.Request.
func NewGetCheckParams ¶
func NewGetCheckParams() *GetCheckParams
NewGetCheckParams creates a new GetCheckParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetCheckParamsWithContext ¶
func NewGetCheckParamsWithContext(ctx context.Context) *GetCheckParams
NewGetCheckParamsWithContext creates a new GetCheckParams object with the ability to set a context for a request.
func NewGetCheckParamsWithHTTPClient ¶
func NewGetCheckParamsWithHTTPClient(client *http.Client) *GetCheckParams
NewGetCheckParamsWithHTTPClient creates a new GetCheckParams object with the ability to set a custom HTTPClient for a request.
func NewGetCheckParamsWithTimeout ¶
func NewGetCheckParamsWithTimeout(timeout time.Duration) *GetCheckParams
NewGetCheckParamsWithTimeout creates a new GetCheckParams object with the ability to set a timeout on a request.
func (*GetCheckParams) SetContext ¶
func (o *GetCheckParams) SetContext(ctx context.Context)
SetContext adds the context to the get check params
func (*GetCheckParams) SetDefaults ¶
func (o *GetCheckParams) SetDefaults()
SetDefaults hydrates default values in the get check params (not the query body).
All values with no default are reset to their zero value.
func (*GetCheckParams) SetHTTPClient ¶
func (o *GetCheckParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get check params
func (*GetCheckParams) SetNamespace ¶
func (o *GetCheckParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get check params
func (*GetCheckParams) SetObject ¶
func (o *GetCheckParams) SetObject(object string)
SetObject adds the object to the get check params
func (*GetCheckParams) SetRelation ¶
func (o *GetCheckParams) SetRelation(relation string)
SetRelation adds the relation to the get check params
func (*GetCheckParams) SetSubjectID ¶
func (o *GetCheckParams) SetSubjectID(subjectID *string)
SetSubjectID adds the subjectId to the get check params
func (*GetCheckParams) SetSubjectSetNamespace ¶
func (o *GetCheckParams) SetSubjectSetNamespace(subjectSetNamespace *string)
SetSubjectSetNamespace adds the subjectSetNamespace to the get check params
func (*GetCheckParams) SetSubjectSetObject ¶
func (o *GetCheckParams) SetSubjectSetObject(subjectSetObject *string)
SetSubjectSetObject adds the subjectSetObject to the get check params
func (*GetCheckParams) SetSubjectSetRelation ¶
func (o *GetCheckParams) SetSubjectSetRelation(subjectSetRelation *string)
SetSubjectSetRelation adds the subjectSetRelation to the get check params
func (*GetCheckParams) SetTimeout ¶
func (o *GetCheckParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get check params
func (*GetCheckParams) WithContext ¶
func (o *GetCheckParams) WithContext(ctx context.Context) *GetCheckParams
WithContext adds the context to the get check params
func (*GetCheckParams) WithDefaults ¶
func (o *GetCheckParams) WithDefaults() *GetCheckParams
WithDefaults hydrates default values in the get check params (not the query body).
All values with no default are reset to their zero value.
func (*GetCheckParams) WithHTTPClient ¶
func (o *GetCheckParams) WithHTTPClient(client *http.Client) *GetCheckParams
WithHTTPClient adds the HTTPClient to the get check params
func (*GetCheckParams) WithNamespace ¶
func (o *GetCheckParams) WithNamespace(namespace string) *GetCheckParams
WithNamespace adds the namespace to the get check params
func (*GetCheckParams) WithObject ¶
func (o *GetCheckParams) WithObject(object string) *GetCheckParams
WithObject adds the object to the get check params
func (*GetCheckParams) WithRelation ¶
func (o *GetCheckParams) WithRelation(relation string) *GetCheckParams
WithRelation adds the relation to the get check params
func (*GetCheckParams) WithSubjectID ¶
func (o *GetCheckParams) WithSubjectID(subjectID *string) *GetCheckParams
WithSubjectID adds the subjectID to the get check params
func (*GetCheckParams) WithSubjectSetNamespace ¶
func (o *GetCheckParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetCheckParams
WithSubjectSetNamespace adds the subjectSetNamespace to the get check params
func (*GetCheckParams) WithSubjectSetObject ¶
func (o *GetCheckParams) WithSubjectSetObject(subjectSetObject *string) *GetCheckParams
WithSubjectSetObject adds the subjectSetObject to the get check params
func (*GetCheckParams) WithSubjectSetRelation ¶
func (o *GetCheckParams) WithSubjectSetRelation(subjectSetRelation *string) *GetCheckParams
WithSubjectSetRelation adds the subjectSetRelation to the get check params
func (*GetCheckParams) WithTimeout ¶
func (o *GetCheckParams) WithTimeout(timeout time.Duration) *GetCheckParams
WithTimeout adds the timeout to the get check params
func (*GetCheckParams) WriteToRequest ¶
func (o *GetCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCheckReader ¶
type GetCheckReader struct {
// contains filtered or unexported fields
}
GetCheckReader is a Reader for the GetCheck structure.
func (*GetCheckReader) ReadResponse ¶
func (o *GetCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetExpandBadRequest ¶
type GetExpandBadRequest struct {
Payload *GetExpandBadRequestBody
}
GetExpandBadRequest describes a response with status code 400, with default header values.
The standard error format
func NewGetExpandBadRequest ¶
func NewGetExpandBadRequest() *GetExpandBadRequest
NewGetExpandBadRequest creates a GetExpandBadRequest with default headers values
func (*GetExpandBadRequest) Error ¶
func (o *GetExpandBadRequest) Error() string
func (*GetExpandBadRequest) GetPayload ¶
func (o *GetExpandBadRequest) GetPayload() *GetExpandBadRequestBody
type GetExpandBadRequestBody ¶
type GetExpandBadRequestBody 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"` }
GetExpandBadRequestBody get expand bad request body swagger:model GetExpandBadRequestBody
func (*GetExpandBadRequestBody) ContextValidate ¶
func (o *GetExpandBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get expand bad request body based on context it is used
func (*GetExpandBadRequestBody) MarshalBinary ¶
func (o *GetExpandBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetExpandBadRequestBody) UnmarshalBinary ¶
func (o *GetExpandBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetExpandInternalServerError ¶
type GetExpandInternalServerError struct {
Payload *GetExpandInternalServerErrorBody
}
GetExpandInternalServerError describes a response with status code 500, with default header values.
The standard error format
func NewGetExpandInternalServerError ¶
func NewGetExpandInternalServerError() *GetExpandInternalServerError
NewGetExpandInternalServerError creates a GetExpandInternalServerError with default headers values
func (*GetExpandInternalServerError) Error ¶
func (o *GetExpandInternalServerError) Error() string
func (*GetExpandInternalServerError) GetPayload ¶
func (o *GetExpandInternalServerError) GetPayload() *GetExpandInternalServerErrorBody
type GetExpandInternalServerErrorBody ¶
type GetExpandInternalServerErrorBody 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"` }
GetExpandInternalServerErrorBody get expand internal server error body swagger:model GetExpandInternalServerErrorBody
func (*GetExpandInternalServerErrorBody) ContextValidate ¶
func (o *GetExpandInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get expand internal server error body based on context it is used
func (*GetExpandInternalServerErrorBody) MarshalBinary ¶
func (o *GetExpandInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetExpandInternalServerErrorBody) UnmarshalBinary ¶
func (o *GetExpandInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetExpandNotFound ¶
type GetExpandNotFound struct {
Payload *GetExpandNotFoundBody
}
GetExpandNotFound describes a response with status code 404, with default header values.
The standard error format
func NewGetExpandNotFound ¶
func NewGetExpandNotFound() *GetExpandNotFound
NewGetExpandNotFound creates a GetExpandNotFound with default headers values
func (*GetExpandNotFound) Error ¶
func (o *GetExpandNotFound) Error() string
func (*GetExpandNotFound) GetPayload ¶
func (o *GetExpandNotFound) GetPayload() *GetExpandNotFoundBody
type GetExpandNotFoundBody ¶
type GetExpandNotFoundBody 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"` }
GetExpandNotFoundBody get expand not found body swagger:model GetExpandNotFoundBody
func (*GetExpandNotFoundBody) ContextValidate ¶
ContextValidate validates this get expand not found body based on context it is used
func (*GetExpandNotFoundBody) MarshalBinary ¶
func (o *GetExpandNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetExpandNotFoundBody) UnmarshalBinary ¶
func (o *GetExpandNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetExpandOK ¶
type GetExpandOK struct {
Payload *models.ExpandTree
}
GetExpandOK describes a response with status code 200, with default header values.
expandTree
func NewGetExpandOK ¶
func NewGetExpandOK() *GetExpandOK
NewGetExpandOK creates a GetExpandOK with default headers values
func (*GetExpandOK) Error ¶
func (o *GetExpandOK) Error() string
func (*GetExpandOK) GetPayload ¶
func (o *GetExpandOK) GetPayload() *models.ExpandTree
type GetExpandParams ¶
type GetExpandParams struct { // MaxDepth. // // Format: int64 MaxDepth *int64 /* Namespace. Namespace of the Subject Set */ Namespace string /* Object. Object of the Subject Set */ Object string /* Relation. Relation of the Subject Set */ Relation string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetExpandParams contains all the parameters to send to the API endpoint
for the get expand operation. Typically these are written to a http.Request.
func NewGetExpandParams ¶
func NewGetExpandParams() *GetExpandParams
NewGetExpandParams creates a new GetExpandParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetExpandParamsWithContext ¶
func NewGetExpandParamsWithContext(ctx context.Context) *GetExpandParams
NewGetExpandParamsWithContext creates a new GetExpandParams object with the ability to set a context for a request.
func NewGetExpandParamsWithHTTPClient ¶
func NewGetExpandParamsWithHTTPClient(client *http.Client) *GetExpandParams
NewGetExpandParamsWithHTTPClient creates a new GetExpandParams object with the ability to set a custom HTTPClient for a request.
func NewGetExpandParamsWithTimeout ¶
func NewGetExpandParamsWithTimeout(timeout time.Duration) *GetExpandParams
NewGetExpandParamsWithTimeout creates a new GetExpandParams object with the ability to set a timeout on a request.
func (*GetExpandParams) SetContext ¶
func (o *GetExpandParams) SetContext(ctx context.Context)
SetContext adds the context to the get expand params
func (*GetExpandParams) SetDefaults ¶
func (o *GetExpandParams) SetDefaults()
SetDefaults hydrates default values in the get expand params (not the query body).
All values with no default are reset to their zero value.
func (*GetExpandParams) SetHTTPClient ¶
func (o *GetExpandParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get expand params
func (*GetExpandParams) SetMaxDepth ¶
func (o *GetExpandParams) SetMaxDepth(maxDepth *int64)
SetMaxDepth adds the maxDepth to the get expand params
func (*GetExpandParams) SetNamespace ¶
func (o *GetExpandParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get expand params
func (*GetExpandParams) SetObject ¶
func (o *GetExpandParams) SetObject(object string)
SetObject adds the object to the get expand params
func (*GetExpandParams) SetRelation ¶
func (o *GetExpandParams) SetRelation(relation string)
SetRelation adds the relation to the get expand params
func (*GetExpandParams) SetTimeout ¶
func (o *GetExpandParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get expand params
func (*GetExpandParams) WithContext ¶
func (o *GetExpandParams) WithContext(ctx context.Context) *GetExpandParams
WithContext adds the context to the get expand params
func (*GetExpandParams) WithDefaults ¶
func (o *GetExpandParams) WithDefaults() *GetExpandParams
WithDefaults hydrates default values in the get expand params (not the query body).
All values with no default are reset to their zero value.
func (*GetExpandParams) WithHTTPClient ¶
func (o *GetExpandParams) WithHTTPClient(client *http.Client) *GetExpandParams
WithHTTPClient adds the HTTPClient to the get expand params
func (*GetExpandParams) WithMaxDepth ¶
func (o *GetExpandParams) WithMaxDepth(maxDepth *int64) *GetExpandParams
WithMaxDepth adds the maxDepth to the get expand params
func (*GetExpandParams) WithNamespace ¶
func (o *GetExpandParams) WithNamespace(namespace string) *GetExpandParams
WithNamespace adds the namespace to the get expand params
func (*GetExpandParams) WithObject ¶
func (o *GetExpandParams) WithObject(object string) *GetExpandParams
WithObject adds the object to the get expand params
func (*GetExpandParams) WithRelation ¶
func (o *GetExpandParams) WithRelation(relation string) *GetExpandParams
WithRelation adds the relation to the get expand params
func (*GetExpandParams) WithTimeout ¶
func (o *GetExpandParams) WithTimeout(timeout time.Duration) *GetExpandParams
WithTimeout adds the timeout to the get expand params
func (*GetExpandParams) WriteToRequest ¶
func (o *GetExpandParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetExpandReader ¶
type GetExpandReader struct {
// contains filtered or unexported fields
}
GetExpandReader is a Reader for the GetExpand structure.
func (*GetExpandReader) ReadResponse ¶
func (o *GetExpandReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetRelationTuplesInternalServerError ¶
type GetRelationTuplesInternalServerError struct {
Payload *GetRelationTuplesInternalServerErrorBody
}
GetRelationTuplesInternalServerError describes a response with status code 500, with default header values.
The standard error format
func NewGetRelationTuplesInternalServerError ¶
func NewGetRelationTuplesInternalServerError() *GetRelationTuplesInternalServerError
NewGetRelationTuplesInternalServerError creates a GetRelationTuplesInternalServerError with default headers values
func (*GetRelationTuplesInternalServerError) Error ¶
func (o *GetRelationTuplesInternalServerError) Error() string
func (*GetRelationTuplesInternalServerError) GetPayload ¶
func (o *GetRelationTuplesInternalServerError) GetPayload() *GetRelationTuplesInternalServerErrorBody
type GetRelationTuplesInternalServerErrorBody ¶
type GetRelationTuplesInternalServerErrorBody 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"` }
GetRelationTuplesInternalServerErrorBody get relation tuples internal server error body swagger:model GetRelationTuplesInternalServerErrorBody
func (*GetRelationTuplesInternalServerErrorBody) ContextValidate ¶
func (o *GetRelationTuplesInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get relation tuples internal server error body based on context it is used
func (*GetRelationTuplesInternalServerErrorBody) MarshalBinary ¶
func (o *GetRelationTuplesInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRelationTuplesInternalServerErrorBody) UnmarshalBinary ¶
func (o *GetRelationTuplesInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRelationTuplesNotFound ¶
type GetRelationTuplesNotFound struct {
Payload *GetRelationTuplesNotFoundBody
}
GetRelationTuplesNotFound describes a response with status code 404, with default header values.
The standard error format
func NewGetRelationTuplesNotFound ¶
func NewGetRelationTuplesNotFound() *GetRelationTuplesNotFound
NewGetRelationTuplesNotFound creates a GetRelationTuplesNotFound with default headers values
func (*GetRelationTuplesNotFound) Error ¶
func (o *GetRelationTuplesNotFound) Error() string
func (*GetRelationTuplesNotFound) GetPayload ¶
func (o *GetRelationTuplesNotFound) GetPayload() *GetRelationTuplesNotFoundBody
type GetRelationTuplesNotFoundBody ¶
type GetRelationTuplesNotFoundBody 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"` }
GetRelationTuplesNotFoundBody get relation tuples not found body swagger:model GetRelationTuplesNotFoundBody
func (*GetRelationTuplesNotFoundBody) ContextValidate ¶
func (o *GetRelationTuplesNotFoundBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this get relation tuples not found body based on context it is used
func (*GetRelationTuplesNotFoundBody) MarshalBinary ¶
func (o *GetRelationTuplesNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRelationTuplesNotFoundBody) UnmarshalBinary ¶
func (o *GetRelationTuplesNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRelationTuplesOK ¶
type GetRelationTuplesOK struct {
Payload *models.GetRelationTuplesResponse
}
GetRelationTuplesOK describes a response with status code 200, with default header values.
getRelationTuplesResponse
func NewGetRelationTuplesOK ¶
func NewGetRelationTuplesOK() *GetRelationTuplesOK
NewGetRelationTuplesOK creates a GetRelationTuplesOK with default headers values
func (*GetRelationTuplesOK) Error ¶
func (o *GetRelationTuplesOK) Error() string
func (*GetRelationTuplesOK) GetPayload ¶
func (o *GetRelationTuplesOK) GetPayload() *models.GetRelationTuplesResponse
type GetRelationTuplesParams ¶
type GetRelationTuplesParams struct { /* Namespace. Namespace of the Relation Tuple */ Namespace string /* Object. Object of the Relation Tuple */ Object string // PageSize. // // Format: int64 PageSize *int64 // PageToken. PageToken *string /* Relation. Relation of the Relation Tuple */ Relation string /* SubjectID. SubjectID of the Relation Tuple */ SubjectID *string /* SubjectSetNamespace. Namespace of the Subject Set */ SubjectSetNamespace *string /* SubjectSetObject. Object of the Subject Set */ SubjectSetObject *string /* SubjectSetRelation. Relation of the Subject Set */ SubjectSetRelation *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetRelationTuplesParams contains all the parameters to send to the API endpoint
for the get relation tuples operation. Typically these are written to a http.Request.
func NewGetRelationTuplesParams ¶
func NewGetRelationTuplesParams() *GetRelationTuplesParams
NewGetRelationTuplesParams creates a new GetRelationTuplesParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetRelationTuplesParamsWithContext ¶
func NewGetRelationTuplesParamsWithContext(ctx context.Context) *GetRelationTuplesParams
NewGetRelationTuplesParamsWithContext creates a new GetRelationTuplesParams object with the ability to set a context for a request.
func NewGetRelationTuplesParamsWithHTTPClient ¶
func NewGetRelationTuplesParamsWithHTTPClient(client *http.Client) *GetRelationTuplesParams
NewGetRelationTuplesParamsWithHTTPClient creates a new GetRelationTuplesParams object with the ability to set a custom HTTPClient for a request.
func NewGetRelationTuplesParamsWithTimeout ¶
func NewGetRelationTuplesParamsWithTimeout(timeout time.Duration) *GetRelationTuplesParams
NewGetRelationTuplesParamsWithTimeout creates a new GetRelationTuplesParams object with the ability to set a timeout on a request.
func (*GetRelationTuplesParams) SetContext ¶
func (o *GetRelationTuplesParams) SetContext(ctx context.Context)
SetContext adds the context to the get relation tuples params
func (*GetRelationTuplesParams) SetDefaults ¶
func (o *GetRelationTuplesParams) SetDefaults()
SetDefaults hydrates default values in the get relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*GetRelationTuplesParams) SetHTTPClient ¶
func (o *GetRelationTuplesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get relation tuples params
func (*GetRelationTuplesParams) SetNamespace ¶
func (o *GetRelationTuplesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get relation tuples params
func (*GetRelationTuplesParams) SetObject ¶
func (o *GetRelationTuplesParams) SetObject(object string)
SetObject adds the object to the get relation tuples params
func (*GetRelationTuplesParams) SetPageSize ¶
func (o *GetRelationTuplesParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the get relation tuples params
func (*GetRelationTuplesParams) SetPageToken ¶
func (o *GetRelationTuplesParams) SetPageToken(pageToken *string)
SetPageToken adds the pageToken to the get relation tuples params
func (*GetRelationTuplesParams) SetRelation ¶
func (o *GetRelationTuplesParams) SetRelation(relation string)
SetRelation adds the relation to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectID ¶
func (o *GetRelationTuplesParams) SetSubjectID(subjectID *string)
SetSubjectID adds the subjectId to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectSetNamespace ¶
func (o *GetRelationTuplesParams) SetSubjectSetNamespace(subjectSetNamespace *string)
SetSubjectSetNamespace adds the subjectSetNamespace to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectSetObject ¶
func (o *GetRelationTuplesParams) SetSubjectSetObject(subjectSetObject *string)
SetSubjectSetObject adds the subjectSetObject to the get relation tuples params
func (*GetRelationTuplesParams) SetSubjectSetRelation ¶
func (o *GetRelationTuplesParams) SetSubjectSetRelation(subjectSetRelation *string)
SetSubjectSetRelation adds the subjectSetRelation to the get relation tuples params
func (*GetRelationTuplesParams) SetTimeout ¶
func (o *GetRelationTuplesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get relation tuples params
func (*GetRelationTuplesParams) WithContext ¶
func (o *GetRelationTuplesParams) WithContext(ctx context.Context) *GetRelationTuplesParams
WithContext adds the context to the get relation tuples params
func (*GetRelationTuplesParams) WithDefaults ¶
func (o *GetRelationTuplesParams) WithDefaults() *GetRelationTuplesParams
WithDefaults hydrates default values in the get relation tuples params (not the query body).
All values with no default are reset to their zero value.
func (*GetRelationTuplesParams) WithHTTPClient ¶
func (o *GetRelationTuplesParams) WithHTTPClient(client *http.Client) *GetRelationTuplesParams
WithHTTPClient adds the HTTPClient to the get relation tuples params
func (*GetRelationTuplesParams) WithNamespace ¶
func (o *GetRelationTuplesParams) WithNamespace(namespace string) *GetRelationTuplesParams
WithNamespace adds the namespace to the get relation tuples params
func (*GetRelationTuplesParams) WithObject ¶
func (o *GetRelationTuplesParams) WithObject(object string) *GetRelationTuplesParams
WithObject adds the object to the get relation tuples params
func (*GetRelationTuplesParams) WithPageSize ¶
func (o *GetRelationTuplesParams) WithPageSize(pageSize *int64) *GetRelationTuplesParams
WithPageSize adds the pageSize to the get relation tuples params
func (*GetRelationTuplesParams) WithPageToken ¶
func (o *GetRelationTuplesParams) WithPageToken(pageToken *string) *GetRelationTuplesParams
WithPageToken adds the pageToken to the get relation tuples params
func (*GetRelationTuplesParams) WithRelation ¶
func (o *GetRelationTuplesParams) WithRelation(relation string) *GetRelationTuplesParams
WithRelation adds the relation to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectID ¶
func (o *GetRelationTuplesParams) WithSubjectID(subjectID *string) *GetRelationTuplesParams
WithSubjectID adds the subjectID to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectSetNamespace ¶
func (o *GetRelationTuplesParams) WithSubjectSetNamespace(subjectSetNamespace *string) *GetRelationTuplesParams
WithSubjectSetNamespace adds the subjectSetNamespace to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectSetObject ¶
func (o *GetRelationTuplesParams) WithSubjectSetObject(subjectSetObject *string) *GetRelationTuplesParams
WithSubjectSetObject adds the subjectSetObject to the get relation tuples params
func (*GetRelationTuplesParams) WithSubjectSetRelation ¶
func (o *GetRelationTuplesParams) WithSubjectSetRelation(subjectSetRelation *string) *GetRelationTuplesParams
WithSubjectSetRelation adds the subjectSetRelation to the get relation tuples params
func (*GetRelationTuplesParams) WithTimeout ¶
func (o *GetRelationTuplesParams) WithTimeout(timeout time.Duration) *GetRelationTuplesParams
WithTimeout adds the timeout to the get relation tuples params
func (*GetRelationTuplesParams) WriteToRequest ¶
func (o *GetRelationTuplesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetRelationTuplesReader ¶
type GetRelationTuplesReader struct {
// contains filtered or unexported fields
}
GetRelationTuplesReader is a Reader for the GetRelationTuples structure.
func (*GetRelationTuplesReader) ReadResponse ¶
func (o *GetRelationTuplesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostCheckBadRequest ¶
type PostCheckBadRequest struct {
Payload *PostCheckBadRequestBody
}
PostCheckBadRequest describes a response with status code 400, with default header values.
The standard error format
func NewPostCheckBadRequest ¶
func NewPostCheckBadRequest() *PostCheckBadRequest
NewPostCheckBadRequest creates a PostCheckBadRequest with default headers values
func (*PostCheckBadRequest) Error ¶
func (o *PostCheckBadRequest) Error() string
func (*PostCheckBadRequest) GetPayload ¶
func (o *PostCheckBadRequest) GetPayload() *PostCheckBadRequestBody
type PostCheckBadRequestBody ¶
type PostCheckBadRequestBody 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"` }
PostCheckBadRequestBody post check bad request body swagger:model PostCheckBadRequestBody
func (*PostCheckBadRequestBody) ContextValidate ¶
func (o *PostCheckBadRequestBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post check bad request body based on context it is used
func (*PostCheckBadRequestBody) MarshalBinary ¶
func (o *PostCheckBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostCheckBadRequestBody) UnmarshalBinary ¶
func (o *PostCheckBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostCheckForbidden ¶
type PostCheckForbidden struct {
Payload *models.GetCheckResponse
}
PostCheckForbidden describes a response with status code 403, with default header values.
getCheckResponse
func NewPostCheckForbidden ¶
func NewPostCheckForbidden() *PostCheckForbidden
NewPostCheckForbidden creates a PostCheckForbidden with default headers values
func (*PostCheckForbidden) Error ¶
func (o *PostCheckForbidden) Error() string
func (*PostCheckForbidden) GetPayload ¶
func (o *PostCheckForbidden) GetPayload() *models.GetCheckResponse
type PostCheckInternalServerError ¶
type PostCheckInternalServerError struct {
Payload *PostCheckInternalServerErrorBody
}
PostCheckInternalServerError describes a response with status code 500, with default header values.
The standard error format
func NewPostCheckInternalServerError ¶
func NewPostCheckInternalServerError() *PostCheckInternalServerError
NewPostCheckInternalServerError creates a PostCheckInternalServerError with default headers values
func (*PostCheckInternalServerError) Error ¶
func (o *PostCheckInternalServerError) Error() string
func (*PostCheckInternalServerError) GetPayload ¶
func (o *PostCheckInternalServerError) GetPayload() *PostCheckInternalServerErrorBody
type PostCheckInternalServerErrorBody ¶
type PostCheckInternalServerErrorBody 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"` }
PostCheckInternalServerErrorBody post check internal server error body swagger:model PostCheckInternalServerErrorBody
func (*PostCheckInternalServerErrorBody) ContextValidate ¶
func (o *PostCheckInternalServerErrorBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this post check internal server error body based on context it is used
func (*PostCheckInternalServerErrorBody) MarshalBinary ¶
func (o *PostCheckInternalServerErrorBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PostCheckInternalServerErrorBody) UnmarshalBinary ¶
func (o *PostCheckInternalServerErrorBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PostCheckOK ¶
type PostCheckOK struct {
Payload *models.GetCheckResponse
}
PostCheckOK describes a response with status code 200, with default header values.
getCheckResponse
func NewPostCheckOK ¶
func NewPostCheckOK() *PostCheckOK
NewPostCheckOK creates a PostCheckOK with default headers values
func (*PostCheckOK) Error ¶
func (o *PostCheckOK) Error() string
func (*PostCheckOK) GetPayload ¶
func (o *PostCheckOK) GetPayload() *models.GetCheckResponse
type PostCheckParams ¶
type PostCheckParams struct { // Payload. Payload *models.RelationQuery Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostCheckParams contains all the parameters to send to the API endpoint
for the post check operation. Typically these are written to a http.Request.
func NewPostCheckParams ¶
func NewPostCheckParams() *PostCheckParams
NewPostCheckParams creates a new PostCheckParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostCheckParamsWithContext ¶
func NewPostCheckParamsWithContext(ctx context.Context) *PostCheckParams
NewPostCheckParamsWithContext creates a new PostCheckParams object with the ability to set a context for a request.
func NewPostCheckParamsWithHTTPClient ¶
func NewPostCheckParamsWithHTTPClient(client *http.Client) *PostCheckParams
NewPostCheckParamsWithHTTPClient creates a new PostCheckParams object with the ability to set a custom HTTPClient for a request.
func NewPostCheckParamsWithTimeout ¶
func NewPostCheckParamsWithTimeout(timeout time.Duration) *PostCheckParams
NewPostCheckParamsWithTimeout creates a new PostCheckParams object with the ability to set a timeout on a request.
func (*PostCheckParams) SetContext ¶
func (o *PostCheckParams) SetContext(ctx context.Context)
SetContext adds the context to the post check params
func (*PostCheckParams) SetDefaults ¶
func (o *PostCheckParams) SetDefaults()
SetDefaults hydrates default values in the post check params (not the query body).
All values with no default are reset to their zero value.
func (*PostCheckParams) SetHTTPClient ¶
func (o *PostCheckParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post check params
func (*PostCheckParams) SetPayload ¶
func (o *PostCheckParams) SetPayload(payload *models.RelationQuery)
SetPayload adds the payload to the post check params
func (*PostCheckParams) SetTimeout ¶
func (o *PostCheckParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post check params
func (*PostCheckParams) WithContext ¶
func (o *PostCheckParams) WithContext(ctx context.Context) *PostCheckParams
WithContext adds the context to the post check params
func (*PostCheckParams) WithDefaults ¶
func (o *PostCheckParams) WithDefaults() *PostCheckParams
WithDefaults hydrates default values in the post check params (not the query body).
All values with no default are reset to their zero value.
func (*PostCheckParams) WithHTTPClient ¶
func (o *PostCheckParams) WithHTTPClient(client *http.Client) *PostCheckParams
WithHTTPClient adds the HTTPClient to the post check params
func (*PostCheckParams) WithPayload ¶
func (o *PostCheckParams) WithPayload(payload *models.RelationQuery) *PostCheckParams
WithPayload adds the payload to the post check params
func (*PostCheckParams) WithTimeout ¶
func (o *PostCheckParams) WithTimeout(timeout time.Duration) *PostCheckParams
WithTimeout adds the timeout to the post check params
func (*PostCheckParams) WriteToRequest ¶
func (o *PostCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostCheckReader ¶
type PostCheckReader struct {
// contains filtered or unexported fields
}
PostCheckReader is a Reader for the PostCheck structure.
func (*PostCheckReader) ReadResponse ¶
func (o *PostCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.