client

package
v0.10.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for client

Documentation for all of Ory Keto's REST APIs. gRPC is documented separately.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import client "github.com/ory/keto-client-go"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), client.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), client.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), client.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
MetadataApi GetVersion Get /version Return Running Software Version.
MetadataApi IsAlive Get /health/alive Check HTTP Server Status
MetadataApi IsReady Get /health/ready Check HTTP Server and Database Status
ReadApi GetCheck Get /relation-tuples/check/openapi Check a relation tuple
ReadApi GetCheckMirrorStatus Get /relation-tuples/check Check a relation tuple
ReadApi GetExpand Get /relation-tuples/expand Expand a Relation Tuple
ReadApi GetRelationTuples Get /relation-tuples Query relation tuples
ReadApi PostCheck Post /relation-tuples/check/openapi Check a relation tuple
ReadApi PostCheckMirrorStatus Post /relation-tuples/check Check a relation tuple
WriteApi CreateRelationTuple Put /admin/relation-tuples Create a Relation Tuple
WriteApi DeleteRelationTuples Delete /admin/relation-tuples Delete Relation Tuples
WriteApi PatchRelationTuples Patch /admin/relation-tuples Patch Multiple Relation Tuples

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

hi@ory.sh

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	MetadataApi MetadataApi

	ReadApi ReadApi

	WriteApi WriteApi
	// contains filtered or unexported fields
}

APIClient manages communication with the Ory Keto API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type ExpandTree

type ExpandTree struct {
	// The children of the node, possibly none.
	Children []ExpandTree   `json:"children,omitempty"`
	Tuple    *RelationTuple `json:"tuple,omitempty"`
	// The type of the node. union TreeNodeUnion exclusion TreeNodeExclusion intersection TreeNodeIntersection leaf TreeNodeLeaf tuple_to_subject_set TreeNodeTupleToSubjectSet computed_subject_set TreeNodeComputedSubjectSet not TreeNodeNot unspecified TreeNodeUnspecified
	Type string `json:"type"`
}

ExpandTree struct for ExpandTree

func NewExpandTree

func NewExpandTree(type_ string) *ExpandTree

NewExpandTree instantiates a new ExpandTree object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExpandTreeWithDefaults

func NewExpandTreeWithDefaults() *ExpandTree

NewExpandTreeWithDefaults instantiates a new ExpandTree object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExpandTree) GetChildren

func (o *ExpandTree) GetChildren() []ExpandTree

GetChildren returns the Children field value if set, zero value otherwise.

func (*ExpandTree) GetChildrenOk

func (o *ExpandTree) GetChildrenOk() ([]ExpandTree, bool)

GetChildrenOk returns a tuple with the Children field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExpandTree) GetTuple

func (o *ExpandTree) GetTuple() RelationTuple

GetTuple returns the Tuple field value if set, zero value otherwise.

func (*ExpandTree) GetTupleOk

func (o *ExpandTree) GetTupleOk() (*RelationTuple, bool)

GetTupleOk returns a tuple with the Tuple field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ExpandTree) GetType

func (o *ExpandTree) GetType() string

GetType returns the Type field value

func (*ExpandTree) GetTypeOk

func (o *ExpandTree) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*ExpandTree) HasChildren

func (o *ExpandTree) HasChildren() bool

HasChildren returns a boolean if a field has been set.

func (*ExpandTree) HasTuple

func (o *ExpandTree) HasTuple() bool

HasTuple returns a boolean if a field has been set.

func (ExpandTree) MarshalJSON

func (o ExpandTree) MarshalJSON() ([]byte, error)

func (*ExpandTree) SetChildren

func (o *ExpandTree) SetChildren(v []ExpandTree)

SetChildren gets a reference to the given []ExpandTree and assigns it to the Children field.

func (*ExpandTree) SetTuple

func (o *ExpandTree) SetTuple(v RelationTuple)

SetTuple gets a reference to the given RelationTuple and assigns it to the Tuple field.

func (*ExpandTree) SetType

func (o *ExpandTree) SetType(v string)

SetType sets field value

type GenericError

type GenericError struct {
	Code    *int64                   `json:"code,omitempty"`
	Details []map[string]interface{} `json:"details,omitempty"`
	Message *string                  `json:"message,omitempty"`
	Reason  *string                  `json:"reason,omitempty"`
	Request *string                  `json:"request,omitempty"`
	Status  *string                  `json:"status,omitempty"`
}

GenericError The standard error format

func NewGenericError

func NewGenericError() *GenericError

NewGenericError instantiates a new GenericError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGenericErrorWithDefaults

func NewGenericErrorWithDefaults() *GenericError

NewGenericErrorWithDefaults instantiates a new GenericError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GenericError) GetCode

func (o *GenericError) GetCode() int64

GetCode returns the Code field value if set, zero value otherwise.

func (*GenericError) GetCodeOk

func (o *GenericError) GetCodeOk() (*int64, bool)

GetCodeOk returns a tuple with the Code field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenericError) GetDetails

func (o *GenericError) GetDetails() []map[string]interface{}

GetDetails returns the Details field value if set, zero value otherwise.

func (*GenericError) GetDetailsOk

func (o *GenericError) GetDetailsOk() ([]map[string]interface{}, bool)

GetDetailsOk returns a tuple with the Details field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenericError) GetMessage

func (o *GenericError) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*GenericError) GetMessageOk

func (o *GenericError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenericError) GetReason

func (o *GenericError) GetReason() string

GetReason returns the Reason field value if set, zero value otherwise.

func (*GenericError) GetReasonOk

func (o *GenericError) GetReasonOk() (*string, bool)

GetReasonOk returns a tuple with the Reason field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenericError) GetRequest

func (o *GenericError) GetRequest() string

GetRequest returns the Request field value if set, zero value otherwise.

func (*GenericError) GetRequestOk

func (o *GenericError) GetRequestOk() (*string, bool)

GetRequestOk returns a tuple with the Request field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenericError) GetStatus

func (o *GenericError) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*GenericError) GetStatusOk

func (o *GenericError) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GenericError) HasCode

func (o *GenericError) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*GenericError) HasDetails

func (o *GenericError) HasDetails() bool

HasDetails returns a boolean if a field has been set.

func (*GenericError) HasMessage

func (o *GenericError) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*GenericError) HasReason

func (o *GenericError) HasReason() bool

HasReason returns a boolean if a field has been set.

func (*GenericError) HasRequest

func (o *GenericError) HasRequest() bool

HasRequest returns a boolean if a field has been set.

func (*GenericError) HasStatus

func (o *GenericError) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (GenericError) MarshalJSON

func (o GenericError) MarshalJSON() ([]byte, error)

func (*GenericError) SetCode

func (o *GenericError) SetCode(v int64)

SetCode gets a reference to the given int64 and assigns it to the Code field.

func (*GenericError) SetDetails

func (o *GenericError) SetDetails(v []map[string]interface{})

SetDetails gets a reference to the given []map[string]interface{} and assigns it to the Details field.

func (*GenericError) SetMessage

func (o *GenericError) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*GenericError) SetReason

func (o *GenericError) SetReason(v string)

SetReason gets a reference to the given string and assigns it to the Reason field.

func (*GenericError) SetRequest

func (o *GenericError) SetRequest(v string)

SetRequest gets a reference to the given string and assigns it to the Request field.

func (*GenericError) SetStatus

func (o *GenericError) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetCheckResponse

type GetCheckResponse struct {
	// whether the relation tuple is allowed
	Allowed bool `json:"allowed"`
}

GetCheckResponse The content of the allowed field is mirrored in the HTTP status code.

func NewGetCheckResponse

func NewGetCheckResponse(allowed bool) *GetCheckResponse

NewGetCheckResponse instantiates a new GetCheckResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetCheckResponseWithDefaults

func NewGetCheckResponseWithDefaults() *GetCheckResponse

NewGetCheckResponseWithDefaults instantiates a new GetCheckResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetCheckResponse) GetAllowed

func (o *GetCheckResponse) GetAllowed() bool

GetAllowed returns the Allowed field value

func (*GetCheckResponse) GetAllowedOk

func (o *GetCheckResponse) GetAllowedOk() (*bool, bool)

GetAllowedOk returns a tuple with the Allowed field value and a boolean to check if the value has been set.

func (GetCheckResponse) MarshalJSON

func (o GetCheckResponse) MarshalJSON() ([]byte, error)

func (*GetCheckResponse) SetAllowed

func (o *GetCheckResponse) SetAllowed(v bool)

SetAllowed sets field value

type GetRelationTuplesResponse

type GetRelationTuplesResponse struct {
	// The opaque token to provide in a subsequent request to get the next page. It is the empty string iff this is the last page.
	NextPageToken  *string         `json:"next_page_token,omitempty"`
	RelationTuples []RelationTuple `json:"relation_tuples,omitempty"`
}

GetRelationTuplesResponse struct for GetRelationTuplesResponse

func NewGetRelationTuplesResponse

func NewGetRelationTuplesResponse() *GetRelationTuplesResponse

NewGetRelationTuplesResponse instantiates a new GetRelationTuplesResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGetRelationTuplesResponseWithDefaults

func NewGetRelationTuplesResponseWithDefaults() *GetRelationTuplesResponse

NewGetRelationTuplesResponseWithDefaults instantiates a new GetRelationTuplesResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*GetRelationTuplesResponse) GetNextPageToken

func (o *GetRelationTuplesResponse) GetNextPageToken() string

GetNextPageToken returns the NextPageToken field value if set, zero value otherwise.

func (*GetRelationTuplesResponse) GetNextPageTokenOk

func (o *GetRelationTuplesResponse) GetNextPageTokenOk() (*string, bool)

GetNextPageTokenOk returns a tuple with the NextPageToken field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetRelationTuplesResponse) GetRelationTuples

func (o *GetRelationTuplesResponse) GetRelationTuples() []RelationTuple

GetRelationTuples returns the RelationTuples field value if set, zero value otherwise.

func (*GetRelationTuplesResponse) GetRelationTuplesOk

func (o *GetRelationTuplesResponse) GetRelationTuplesOk() ([]RelationTuple, bool)

GetRelationTuplesOk returns a tuple with the RelationTuples field value if set, nil otherwise and a boolean to check if the value has been set.

func (*GetRelationTuplesResponse) HasNextPageToken

func (o *GetRelationTuplesResponse) HasNextPageToken() bool

HasNextPageToken returns a boolean if a field has been set.

func (*GetRelationTuplesResponse) HasRelationTuples

func (o *GetRelationTuplesResponse) HasRelationTuples() bool

HasRelationTuples returns a boolean if a field has been set.

func (GetRelationTuplesResponse) MarshalJSON

func (o GetRelationTuplesResponse) MarshalJSON() ([]byte, error)

func (*GetRelationTuplesResponse) SetNextPageToken

func (o *GetRelationTuplesResponse) SetNextPageToken(v string)

SetNextPageToken gets a reference to the given string and assigns it to the NextPageToken field.

func (*GetRelationTuplesResponse) SetRelationTuples

func (o *GetRelationTuplesResponse) SetRelationTuples(v []RelationTuple)

SetRelationTuples gets a reference to the given []RelationTuple and assigns it to the RelationTuples field.

type HealthNotReadyStatus

type HealthNotReadyStatus struct {
	// Errors contains a list of errors that caused the not ready status.
	Errors *map[string]string `json:"errors,omitempty"`
}

HealthNotReadyStatus struct for HealthNotReadyStatus

func NewHealthNotReadyStatus

func NewHealthNotReadyStatus() *HealthNotReadyStatus

NewHealthNotReadyStatus instantiates a new HealthNotReadyStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHealthNotReadyStatusWithDefaults

func NewHealthNotReadyStatusWithDefaults() *HealthNotReadyStatus

NewHealthNotReadyStatusWithDefaults instantiates a new HealthNotReadyStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HealthNotReadyStatus) GetErrors

func (o *HealthNotReadyStatus) GetErrors() map[string]string

GetErrors returns the Errors field value if set, zero value otherwise.

func (*HealthNotReadyStatus) GetErrorsOk

func (o *HealthNotReadyStatus) GetErrorsOk() (*map[string]string, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HealthNotReadyStatus) HasErrors

func (o *HealthNotReadyStatus) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (HealthNotReadyStatus) MarshalJSON

func (o HealthNotReadyStatus) MarshalJSON() ([]byte, error)

func (*HealthNotReadyStatus) SetErrors

func (o *HealthNotReadyStatus) SetErrors(v map[string]string)

SetErrors gets a reference to the given map[string]string and assigns it to the Errors field.

type HealthStatus

type HealthStatus struct {
	// Status always contains \"ok\".
	Status *string `json:"status,omitempty"`
}

HealthStatus struct for HealthStatus

func NewHealthStatus

func NewHealthStatus() *HealthStatus

NewHealthStatus instantiates a new HealthStatus object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewHealthStatusWithDefaults

func NewHealthStatusWithDefaults() *HealthStatus

NewHealthStatusWithDefaults instantiates a new HealthStatus object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*HealthStatus) GetStatus

func (o *HealthStatus) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*HealthStatus) GetStatusOk

func (o *HealthStatus) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value if set, nil otherwise and a boolean to check if the value has been set.

func (*HealthStatus) HasStatus

func (o *HealthStatus) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (HealthStatus) MarshalJSON

func (o HealthStatus) MarshalJSON() ([]byte, error)

func (*HealthStatus) SetStatus

func (o *HealthStatus) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

type InlineResponse200

type InlineResponse200 struct {
	// Always \"ok\".
	Status string `json:"status"`
}

InlineResponse200 struct for InlineResponse200

func NewInlineResponse200

func NewInlineResponse200(status string) *InlineResponse200

NewInlineResponse200 instantiates a new InlineResponse200 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineResponse200WithDefaults

func NewInlineResponse200WithDefaults() *InlineResponse200

NewInlineResponse200WithDefaults instantiates a new InlineResponse200 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineResponse200) GetStatus

func (o *InlineResponse200) GetStatus() string

GetStatus returns the Status field value

func (*InlineResponse200) GetStatusOk

func (o *InlineResponse200) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (InlineResponse200) MarshalJSON

func (o InlineResponse200) MarshalJSON() ([]byte, error)

func (*InlineResponse200) SetStatus

func (o *InlineResponse200) SetStatus(v string)

SetStatus sets field value

type InlineResponse2001

type InlineResponse2001 struct {
	// The version of Ory Keto.
	Version string `json:"version"`
}

InlineResponse2001 struct for InlineResponse2001

func NewInlineResponse2001

func NewInlineResponse2001(version string) *InlineResponse2001

NewInlineResponse2001 instantiates a new InlineResponse2001 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineResponse2001WithDefaults

func NewInlineResponse2001WithDefaults() *InlineResponse2001

NewInlineResponse2001WithDefaults instantiates a new InlineResponse2001 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineResponse2001) GetVersion

func (o *InlineResponse2001) GetVersion() string

GetVersion returns the Version field value

func (*InlineResponse2001) GetVersionOk

func (o *InlineResponse2001) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (InlineResponse2001) MarshalJSON

func (o InlineResponse2001) MarshalJSON() ([]byte, error)

func (*InlineResponse2001) SetVersion

func (o *InlineResponse2001) SetVersion(v string)

SetVersion sets field value

type InlineResponse503

type InlineResponse503 struct {
	// Errors contains a list of errors that caused the not ready status.
	Errors map[string]string `json:"errors"`
}

InlineResponse503 struct for InlineResponse503

func NewInlineResponse503

func NewInlineResponse503(errors map[string]string) *InlineResponse503

NewInlineResponse503 instantiates a new InlineResponse503 object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInlineResponse503WithDefaults

func NewInlineResponse503WithDefaults() *InlineResponse503

NewInlineResponse503WithDefaults instantiates a new InlineResponse503 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InlineResponse503) GetErrors

func (o *InlineResponse503) GetErrors() map[string]string

GetErrors returns the Errors field value

func (*InlineResponse503) GetErrorsOk

func (o *InlineResponse503) GetErrorsOk() (*map[string]string, bool)

GetErrorsOk returns a tuple with the Errors field value and a boolean to check if the value has been set.

func (InlineResponse503) MarshalJSON

func (o InlineResponse503) MarshalJSON() ([]byte, error)

func (*InlineResponse503) SetErrors

func (o *InlineResponse503) SetErrors(v map[string]string)

SetErrors sets field value

type MetadataApi

type MetadataApi interface {

	/*
			 * GetVersion Return Running Software Version.
			 * This endpoint returns the version of Ory Keto.

		If the service supports TLS Edge Termination, this endpoint does not require the
		`X-Forwarded-Proto` header to be set.

		Be aware that if you are running multiple nodes of this service, the version will never
		refer to the cluster state, only to a single instance.
			 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			 * @return MetadataApiApiGetVersionRequest
	*/
	GetVersion(ctx context.Context) MetadataApiApiGetVersionRequest

	/*
	 * GetVersionExecute executes the request
	 * @return InlineResponse2001
	 */
	GetVersionExecute(r MetadataApiApiGetVersionRequest) (*InlineResponse2001, *http.Response, error)

	/*
			 * IsAlive Check HTTP Server Status
			 * This endpoint returns a HTTP 200 status code when Ory Keto is accepting incoming
		HTTP requests. This status does currently not include checks whether the database connection is working.

		If the service supports TLS Edge Termination, this endpoint does not require the
		`X-Forwarded-Proto` header to be set.

		Be aware that if you are running multiple nodes of this service, the health status will never
		refer to the cluster state, only to a single instance.
			 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			 * @return MetadataApiApiIsAliveRequest
	*/
	IsAlive(ctx context.Context) MetadataApiApiIsAliveRequest

	/*
	 * IsAliveExecute executes the request
	 * @return InlineResponse200
	 */
	IsAliveExecute(r MetadataApiApiIsAliveRequest) (*InlineResponse200, *http.Response, error)

	/*
			 * IsReady Check HTTP Server and Database Status
			 * This endpoint returns a HTTP 200 status code when Ory Keto is up running and the environment dependencies (e.g.
		the database) are responsive as well.

		If the service supports TLS Edge Termination, this endpoint does not require the
		`X-Forwarded-Proto` header to be set.

		Be aware that if you are running multiple nodes of Ory Keto, the health status will never
		refer to the cluster state, only to a single instance.
			 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
			 * @return MetadataApiApiIsReadyRequest
	*/
	IsReady(ctx context.Context) MetadataApiApiIsReadyRequest

	/*
	 * IsReadyExecute executes the request
	 * @return InlineResponse200
	 */
	IsReadyExecute(r MetadataApiApiIsReadyRequest) (*InlineResponse200, *http.Response, error)
}

type MetadataApiApiGetVersionRequest

type MetadataApiApiGetVersionRequest struct {
	ApiService MetadataApi
	// contains filtered or unexported fields
}

func (MetadataApiApiGetVersionRequest) Execute

type MetadataApiApiIsAliveRequest

type MetadataApiApiIsAliveRequest struct {
	ApiService MetadataApi
	// contains filtered or unexported fields
}

func (MetadataApiApiIsAliveRequest) Execute

type MetadataApiApiIsReadyRequest

type MetadataApiApiIsReadyRequest struct {
	ApiService MetadataApi
	// contains filtered or unexported fields
}

func (MetadataApiApiIsReadyRequest) Execute

type MetadataApiService

type MetadataApiService service

MetadataApiService MetadataApi service

func (*MetadataApiService) GetVersion

  • GetVersion Return Running Software Version.
  • This endpoint returns the version of Ory Keto.

If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.

Be aware that if you are running multiple nodes of this service, the version will never refer to the cluster state, only to a single instance.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @return MetadataApiApiGetVersionRequest

func (*MetadataApiService) GetVersionExecute

* Execute executes the request * @return InlineResponse2001

func (*MetadataApiService) IsAlive

  • IsAlive Check HTTP Server Status
  • This endpoint returns a HTTP 200 status code when Ory Keto is accepting incoming

HTTP requests. This status does currently not include checks whether the database connection is working.

If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.

Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @return MetadataApiApiIsAliveRequest

func (*MetadataApiService) IsAliveExecute

* Execute executes the request * @return InlineResponse200

func (*MetadataApiService) IsReady

  • IsReady Check HTTP Server and Database Status
  • This endpoint returns a HTTP 200 status code when Ory Keto is up running and the environment dependencies (e.g.

the database) are responsive as well.

If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.

Be aware that if you are running multiple nodes of Ory Keto, the health status will never refer to the cluster state, only to a single instance.

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @return MetadataApiApiIsReadyRequest

func (*MetadataApiService) IsReadyExecute

* Execute executes the request * @return InlineResponse200

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableExpandTree

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

func NewNullableExpandTree

func NewNullableExpandTree(val *ExpandTree) *NullableExpandTree

func (NullableExpandTree) Get

func (v NullableExpandTree) Get() *ExpandTree

func (NullableExpandTree) IsSet

func (v NullableExpandTree) IsSet() bool

func (NullableExpandTree) MarshalJSON

func (v NullableExpandTree) MarshalJSON() ([]byte, error)

func (*NullableExpandTree) Set

func (v *NullableExpandTree) Set(val *ExpandTree)

func (*NullableExpandTree) UnmarshalJSON

func (v *NullableExpandTree) UnmarshalJSON(src []byte) error

func (*NullableExpandTree) Unset

func (v *NullableExpandTree) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGenericError

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

func NewNullableGenericError

func NewNullableGenericError(val *GenericError) *NullableGenericError

func (NullableGenericError) Get

func (NullableGenericError) IsSet

func (v NullableGenericError) IsSet() bool

func (NullableGenericError) MarshalJSON

func (v NullableGenericError) MarshalJSON() ([]byte, error)

func (*NullableGenericError) Set

func (v *NullableGenericError) Set(val *GenericError)

func (*NullableGenericError) UnmarshalJSON

func (v *NullableGenericError) UnmarshalJSON(src []byte) error

func (*NullableGenericError) Unset

func (v *NullableGenericError) Unset()

type NullableGetCheckResponse

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

func NewNullableGetCheckResponse

func NewNullableGetCheckResponse(val *GetCheckResponse) *NullableGetCheckResponse

func (NullableGetCheckResponse) Get

func (NullableGetCheckResponse) IsSet

func (v NullableGetCheckResponse) IsSet() bool

func (NullableGetCheckResponse) MarshalJSON

func (v NullableGetCheckResponse) MarshalJSON() ([]byte, error)

func (*NullableGetCheckResponse) Set

func (*NullableGetCheckResponse) UnmarshalJSON

func (v *NullableGetCheckResponse) UnmarshalJSON(src []byte) error

func (*NullableGetCheckResponse) Unset

func (v *NullableGetCheckResponse) Unset()

type NullableGetRelationTuplesResponse

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

func (NullableGetRelationTuplesResponse) Get

func (NullableGetRelationTuplesResponse) IsSet

func (NullableGetRelationTuplesResponse) MarshalJSON

func (v NullableGetRelationTuplesResponse) MarshalJSON() ([]byte, error)

func (*NullableGetRelationTuplesResponse) Set

func (*NullableGetRelationTuplesResponse) UnmarshalJSON

func (v *NullableGetRelationTuplesResponse) UnmarshalJSON(src []byte) error

func (*NullableGetRelationTuplesResponse) Unset

type NullableHealthNotReadyStatus

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

func NewNullableHealthNotReadyStatus

func NewNullableHealthNotReadyStatus(val *HealthNotReadyStatus) *NullableHealthNotReadyStatus

func (NullableHealthNotReadyStatus) Get

func (NullableHealthNotReadyStatus) IsSet

func (NullableHealthNotReadyStatus) MarshalJSON

func (v NullableHealthNotReadyStatus) MarshalJSON() ([]byte, error)

func (*NullableHealthNotReadyStatus) Set

func (*NullableHealthNotReadyStatus) UnmarshalJSON

func (v *NullableHealthNotReadyStatus) UnmarshalJSON(src []byte) error

func (*NullableHealthNotReadyStatus) Unset

func (v *NullableHealthNotReadyStatus) Unset()

type NullableHealthStatus

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

func NewNullableHealthStatus

func NewNullableHealthStatus(val *HealthStatus) *NullableHealthStatus

func (NullableHealthStatus) Get

func (NullableHealthStatus) IsSet

func (v NullableHealthStatus) IsSet() bool

func (NullableHealthStatus) MarshalJSON

func (v NullableHealthStatus) MarshalJSON() ([]byte, error)

func (*NullableHealthStatus) Set

func (v *NullableHealthStatus) Set(val *HealthStatus)

func (*NullableHealthStatus) UnmarshalJSON

func (v *NullableHealthStatus) UnmarshalJSON(src []byte) error

func (*NullableHealthStatus) Unset

func (v *NullableHealthStatus) Unset()

type NullableInlineResponse200

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

func NewNullableInlineResponse200

func NewNullableInlineResponse200(val *InlineResponse200) *NullableInlineResponse200

func (NullableInlineResponse200) Get

func (NullableInlineResponse200) IsSet

func (v NullableInlineResponse200) IsSet() bool

func (NullableInlineResponse200) MarshalJSON

func (v NullableInlineResponse200) MarshalJSON() ([]byte, error)

func (*NullableInlineResponse200) Set

func (*NullableInlineResponse200) UnmarshalJSON

func (v *NullableInlineResponse200) UnmarshalJSON(src []byte) error

func (*NullableInlineResponse200) Unset

func (v *NullableInlineResponse200) Unset()

type NullableInlineResponse2001

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

func NewNullableInlineResponse2001

func NewNullableInlineResponse2001(val *InlineResponse2001) *NullableInlineResponse2001

func (NullableInlineResponse2001) Get

func (NullableInlineResponse2001) IsSet

func (v NullableInlineResponse2001) IsSet() bool

func (NullableInlineResponse2001) MarshalJSON

func (v NullableInlineResponse2001) MarshalJSON() ([]byte, error)

func (*NullableInlineResponse2001) Set

func (*NullableInlineResponse2001) UnmarshalJSON

func (v *NullableInlineResponse2001) UnmarshalJSON(src []byte) error

func (*NullableInlineResponse2001) Unset

func (v *NullableInlineResponse2001) Unset()

type NullableInlineResponse503

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

func NewNullableInlineResponse503

func NewNullableInlineResponse503(val *InlineResponse503) *NullableInlineResponse503

func (NullableInlineResponse503) Get

func (NullableInlineResponse503) IsSet

func (v NullableInlineResponse503) IsSet() bool

func (NullableInlineResponse503) MarshalJSON

func (v NullableInlineResponse503) MarshalJSON() ([]byte, error)

func (*NullableInlineResponse503) Set

func (*NullableInlineResponse503) UnmarshalJSON

func (v *NullableInlineResponse503) UnmarshalJSON(src []byte) error

func (*NullableInlineResponse503) Unset

func (v *NullableInlineResponse503) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullablePatchDelta

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

func NewNullablePatchDelta

func NewNullablePatchDelta(val *PatchDelta) *NullablePatchDelta

func (NullablePatchDelta) Get

func (v NullablePatchDelta) Get() *PatchDelta

func (NullablePatchDelta) IsSet

func (v NullablePatchDelta) IsSet() bool

func (NullablePatchDelta) MarshalJSON

func (v NullablePatchDelta) MarshalJSON() ([]byte, error)

func (*NullablePatchDelta) Set

func (v *NullablePatchDelta) Set(val *PatchDelta)

func (*NullablePatchDelta) UnmarshalJSON

func (v *NullablePatchDelta) UnmarshalJSON(src []byte) error

func (*NullablePatchDelta) Unset

func (v *NullablePatchDelta) Unset()

type NullableRelationQuery

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

func NewNullableRelationQuery

func NewNullableRelationQuery(val *RelationQuery) *NullableRelationQuery

func (NullableRelationQuery) Get

func (NullableRelationQuery) IsSet

func (v NullableRelationQuery) IsSet() bool

func (NullableRelationQuery) MarshalJSON

func (v NullableRelationQuery) MarshalJSON() ([]byte, error)

func (*NullableRelationQuery) Set

func (v *NullableRelationQuery) Set(val *RelationQuery)

func (*NullableRelationQuery) UnmarshalJSON

func (v *NullableRelationQuery) UnmarshalJSON(src []byte) error

func (*NullableRelationQuery) Unset

func (v *NullableRelationQuery) Unset()

type NullableRelationTuple

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

func NewNullableRelationTuple

func NewNullableRelationTuple(val *RelationTuple) *NullableRelationTuple

func (NullableRelationTuple) Get

func (NullableRelationTuple) IsSet

func (v NullableRelationTuple) IsSet() bool

func (NullableRelationTuple) MarshalJSON

func (v NullableRelationTuple) MarshalJSON() ([]byte, error)

func (*NullableRelationTuple) Set

func (v *NullableRelationTuple) Set(val *RelationTuple)

func (*NullableRelationTuple) UnmarshalJSON

func (v *NullableRelationTuple) UnmarshalJSON(src []byte) error

func (*NullableRelationTuple) Unset

func (v *NullableRelationTuple) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableSubjectSet

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

func NewNullableSubjectSet

func NewNullableSubjectSet(val *SubjectSet) *NullableSubjectSet

func (NullableSubjectSet) Get

func (v NullableSubjectSet) Get() *SubjectSet

func (NullableSubjectSet) IsSet

func (v NullableSubjectSet) IsSet() bool

func (NullableSubjectSet) MarshalJSON

func (v NullableSubjectSet) MarshalJSON() ([]byte, error)

func (*NullableSubjectSet) Set

func (v *NullableSubjectSet) Set(val *SubjectSet)

func (*NullableSubjectSet) UnmarshalJSON

func (v *NullableSubjectSet) UnmarshalJSON(src []byte) error

func (*NullableSubjectSet) Unset

func (v *NullableSubjectSet) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableVersion

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

func NewNullableVersion

func NewNullableVersion(val *Version) *NullableVersion

func (NullableVersion) Get

func (v NullableVersion) Get() *Version

func (NullableVersion) IsSet

func (v NullableVersion) IsSet() bool

func (NullableVersion) MarshalJSON

func (v NullableVersion) MarshalJSON() ([]byte, error)

func (*NullableVersion) Set

func (v *NullableVersion) Set(val *Version)

func (*NullableVersion) UnmarshalJSON

func (v *NullableVersion) UnmarshalJSON(src []byte) error

func (*NullableVersion) Unset

func (v *NullableVersion) Unset()

type PatchDelta

type PatchDelta struct {
	Action        *string        `json:"action,omitempty"`
	RelationTuple *RelationTuple `json:"relation_tuple,omitempty"`
}

PatchDelta struct for PatchDelta

func NewPatchDelta

func NewPatchDelta() *PatchDelta

NewPatchDelta instantiates a new PatchDelta object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPatchDeltaWithDefaults

func NewPatchDeltaWithDefaults() *PatchDelta

NewPatchDeltaWithDefaults instantiates a new PatchDelta object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PatchDelta) GetAction

func (o *PatchDelta) GetAction() string

GetAction returns the Action field value if set, zero value otherwise.

func (*PatchDelta) GetActionOk

func (o *PatchDelta) GetActionOk() (*string, bool)

GetActionOk returns a tuple with the Action field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchDelta) GetRelationTuple

func (o *PatchDelta) GetRelationTuple() RelationTuple

GetRelationTuple returns the RelationTuple field value if set, zero value otherwise.

func (*PatchDelta) GetRelationTupleOk

func (o *PatchDelta) GetRelationTupleOk() (*RelationTuple, bool)

GetRelationTupleOk returns a tuple with the RelationTuple field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PatchDelta) HasAction

func (o *PatchDelta) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*PatchDelta) HasRelationTuple

func (o *PatchDelta) HasRelationTuple() bool

HasRelationTuple returns a boolean if a field has been set.

func (PatchDelta) MarshalJSON

func (o PatchDelta) MarshalJSON() ([]byte, error)

func (*PatchDelta) SetAction

func (o *PatchDelta) SetAction(v string)

SetAction gets a reference to the given string and assigns it to the Action field.

func (*PatchDelta) SetRelationTuple

func (o *PatchDelta) SetRelationTuple(v RelationTuple)

SetRelationTuple gets a reference to the given RelationTuple and assigns it to the RelationTuple field.

type ReadApi

type ReadApi interface {

	/*
	 * GetCheck Check a relation tuple
	 * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ReadApiApiGetCheckRequest
	 */
	GetCheck(ctx context.Context) ReadApiApiGetCheckRequest

	/*
	 * GetCheckExecute executes the request
	 * @return GetCheckResponse
	 */
	GetCheckExecute(r ReadApiApiGetCheckRequest) (*GetCheckResponse, *http.Response, error)

	/*
	 * GetCheckMirrorStatus Check a relation tuple
	 * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ReadApiApiGetCheckMirrorStatusRequest
	 */
	GetCheckMirrorStatus(ctx context.Context) ReadApiApiGetCheckMirrorStatusRequest

	/*
	 * GetCheckMirrorStatusExecute executes the request
	 * @return GetCheckResponse
	 */
	GetCheckMirrorStatusExecute(r ReadApiApiGetCheckMirrorStatusRequest) (*GetCheckResponse, *http.Response, error)

	/*
	 * GetExpand Expand a Relation Tuple
	 * Use this endpoint to expand a relation tuple.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ReadApiApiGetExpandRequest
	 */
	GetExpand(ctx context.Context) ReadApiApiGetExpandRequest

	/*
	 * GetExpandExecute executes the request
	 * @return ExpandTree
	 */
	GetExpandExecute(r ReadApiApiGetExpandRequest) (*ExpandTree, *http.Response, error)

	/*
	 * GetRelationTuples Query relation tuples
	 * Get all relation tuples that match the query. Only the namespace field is required.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ReadApiApiGetRelationTuplesRequest
	 */
	GetRelationTuples(ctx context.Context) ReadApiApiGetRelationTuplesRequest

	/*
	 * GetRelationTuplesExecute executes the request
	 * @return GetRelationTuplesResponse
	 */
	GetRelationTuplesExecute(r ReadApiApiGetRelationTuplesRequest) (*GetRelationTuplesResponse, *http.Response, error)

	/*
	 * PostCheck Check a relation tuple
	 * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ReadApiApiPostCheckRequest
	 */
	PostCheck(ctx context.Context) ReadApiApiPostCheckRequest

	/*
	 * PostCheckExecute executes the request
	 * @return GetCheckResponse
	 */
	PostCheckExecute(r ReadApiApiPostCheckRequest) (*GetCheckResponse, *http.Response, error)

	/*
	 * PostCheckMirrorStatus Check a relation tuple
	 * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ReadApiApiPostCheckMirrorStatusRequest
	 */
	PostCheckMirrorStatus(ctx context.Context) ReadApiApiPostCheckMirrorStatusRequest

	/*
	 * PostCheckMirrorStatusExecute executes the request
	 * @return GetCheckResponse
	 */
	PostCheckMirrorStatusExecute(r ReadApiApiPostCheckMirrorStatusRequest) (*GetCheckResponse, *http.Response, error)
}

type ReadApiApiGetCheckMirrorStatusRequest

type ReadApiApiGetCheckMirrorStatusRequest struct {
	ApiService ReadApi
	// contains filtered or unexported fields
}

func (ReadApiApiGetCheckMirrorStatusRequest) Execute

type ReadApiApiGetCheckRequest

type ReadApiApiGetCheckRequest struct {
	ApiService ReadApi
	// contains filtered or unexported fields
}

func (ReadApiApiGetCheckRequest) Execute

func (ReadApiApiGetCheckRequest) MaxDepth

func (ReadApiApiGetCheckRequest) Namespace

func (ReadApiApiGetCheckRequest) Object

func (ReadApiApiGetCheckRequest) Relation

func (ReadApiApiGetCheckRequest) SubjectId

func (ReadApiApiGetCheckRequest) SubjectSetNamespace

func (r ReadApiApiGetCheckRequest) SubjectSetNamespace(subjectSetNamespace string) ReadApiApiGetCheckRequest

func (ReadApiApiGetCheckRequest) SubjectSetObject

func (r ReadApiApiGetCheckRequest) SubjectSetObject(subjectSetObject string) ReadApiApiGetCheckRequest

func (ReadApiApiGetCheckRequest) SubjectSetRelation

func (r ReadApiApiGetCheckRequest) SubjectSetRelation(subjectSetRelation string) ReadApiApiGetCheckRequest

type ReadApiApiGetExpandRequest

type ReadApiApiGetExpandRequest struct {
	ApiService ReadApi
	// contains filtered or unexported fields
}

func (ReadApiApiGetExpandRequest) Execute

func (ReadApiApiGetExpandRequest) MaxDepth

func (ReadApiApiGetExpandRequest) Namespace

func (ReadApiApiGetExpandRequest) Object

func (ReadApiApiGetExpandRequest) Relation

type ReadApiApiGetRelationTuplesRequest

type ReadApiApiGetRelationTuplesRequest struct {
	ApiService ReadApi
	// contains filtered or unexported fields
}

func (ReadApiApiGetRelationTuplesRequest) Execute

func (ReadApiApiGetRelationTuplesRequest) Namespace

func (ReadApiApiGetRelationTuplesRequest) Object

func (ReadApiApiGetRelationTuplesRequest) PageSize

func (ReadApiApiGetRelationTuplesRequest) PageToken

func (ReadApiApiGetRelationTuplesRequest) Relation

func (ReadApiApiGetRelationTuplesRequest) SubjectId

func (ReadApiApiGetRelationTuplesRequest) SubjectSetNamespace

func (r ReadApiApiGetRelationTuplesRequest) SubjectSetNamespace(subjectSetNamespace string) ReadApiApiGetRelationTuplesRequest

func (ReadApiApiGetRelationTuplesRequest) SubjectSetObject

func (ReadApiApiGetRelationTuplesRequest) SubjectSetRelation

func (r ReadApiApiGetRelationTuplesRequest) SubjectSetRelation(subjectSetRelation string) ReadApiApiGetRelationTuplesRequest

type ReadApiApiPostCheckMirrorStatusRequest

type ReadApiApiPostCheckMirrorStatusRequest struct {
	ApiService ReadApi
	// contains filtered or unexported fields
}

func (ReadApiApiPostCheckMirrorStatusRequest) Execute

type ReadApiApiPostCheckRequest

type ReadApiApiPostCheckRequest struct {
	ApiService ReadApi
	// contains filtered or unexported fields
}

func (ReadApiApiPostCheckRequest) Execute

func (ReadApiApiPostCheckRequest) MaxDepth

func (ReadApiApiPostCheckRequest) RelationQuery

type ReadApiService

type ReadApiService service

ReadApiService ReadApi service

func (*ReadApiService) GetCheck

* GetCheck Check a relation tuple * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ReadApiApiGetCheckRequest

func (*ReadApiService) GetCheckExecute

* Execute executes the request * @return GetCheckResponse

func (*ReadApiService) GetCheckMirrorStatus

* GetCheckMirrorStatus Check a relation tuple * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ReadApiApiGetCheckMirrorStatusRequest

func (*ReadApiService) GetCheckMirrorStatusExecute

* Execute executes the request * @return GetCheckResponse

func (*ReadApiService) GetExpand

* GetExpand Expand a Relation Tuple * Use this endpoint to expand a relation tuple. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ReadApiApiGetExpandRequest

func (*ReadApiService) GetExpandExecute

* Execute executes the request * @return ExpandTree

func (*ReadApiService) GetRelationTuples

* GetRelationTuples Query relation tuples * Get all relation tuples that match the query. Only the namespace field is required. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ReadApiApiGetRelationTuplesRequest

func (*ReadApiService) GetRelationTuplesExecute

* Execute executes the request * @return GetRelationTuplesResponse

func (*ReadApiService) PostCheck

* PostCheck Check a relation tuple * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ReadApiApiPostCheckRequest

func (*ReadApiService) PostCheckExecute

* Execute executes the request * @return GetCheckResponse

func (*ReadApiService) PostCheckMirrorStatus

* PostCheckMirrorStatus Check a relation tuple * To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ReadApiApiPostCheckMirrorStatusRequest

func (*ReadApiService) PostCheckMirrorStatusExecute

* Execute executes the request * @return GetCheckResponse

type RelationQuery

type RelationQuery struct {
	// Namespace to query
	Namespace *string `json:"namespace,omitempty"`
	// Object to query
	Object *string `json:"object,omitempty"`
	// Relation to query
	Relation *string `json:"relation,omitempty"`
	// SubjectID to query  Either SubjectSet or SubjectID can be provided.
	SubjectId  *string     `json:"subject_id,omitempty"`
	SubjectSet *SubjectSet `json:"subject_set,omitempty"`
}

RelationQuery struct for RelationQuery

func NewRelationQuery

func NewRelationQuery() *RelationQuery

NewRelationQuery instantiates a new RelationQuery object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRelationQueryWithDefaults

func NewRelationQueryWithDefaults() *RelationQuery

NewRelationQueryWithDefaults instantiates a new RelationQuery object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RelationQuery) GetNamespace

func (o *RelationQuery) GetNamespace() string

GetNamespace returns the Namespace field value if set, zero value otherwise.

func (*RelationQuery) GetNamespaceOk

func (o *RelationQuery) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationQuery) GetObject

func (o *RelationQuery) GetObject() string

GetObject returns the Object field value if set, zero value otherwise.

func (*RelationQuery) GetObjectOk

func (o *RelationQuery) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationQuery) GetRelation

func (o *RelationQuery) GetRelation() string

GetRelation returns the Relation field value if set, zero value otherwise.

func (*RelationQuery) GetRelationOk

func (o *RelationQuery) GetRelationOk() (*string, bool)

GetRelationOk returns a tuple with the Relation field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationQuery) GetSubjectId

func (o *RelationQuery) GetSubjectId() string

GetSubjectId returns the SubjectId field value if set, zero value otherwise.

func (*RelationQuery) GetSubjectIdOk

func (o *RelationQuery) GetSubjectIdOk() (*string, bool)

GetSubjectIdOk returns a tuple with the SubjectId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationQuery) GetSubjectSet

func (o *RelationQuery) GetSubjectSet() SubjectSet

GetSubjectSet returns the SubjectSet field value if set, zero value otherwise.

func (*RelationQuery) GetSubjectSetOk

func (o *RelationQuery) GetSubjectSetOk() (*SubjectSet, bool)

GetSubjectSetOk returns a tuple with the SubjectSet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationQuery) HasNamespace

func (o *RelationQuery) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*RelationQuery) HasObject

func (o *RelationQuery) HasObject() bool

HasObject returns a boolean if a field has been set.

func (*RelationQuery) HasRelation

func (o *RelationQuery) HasRelation() bool

HasRelation returns a boolean if a field has been set.

func (*RelationQuery) HasSubjectId

func (o *RelationQuery) HasSubjectId() bool

HasSubjectId returns a boolean if a field has been set.

func (*RelationQuery) HasSubjectSet

func (o *RelationQuery) HasSubjectSet() bool

HasSubjectSet returns a boolean if a field has been set.

func (RelationQuery) MarshalJSON

func (o RelationQuery) MarshalJSON() ([]byte, error)

func (*RelationQuery) SetNamespace

func (o *RelationQuery) SetNamespace(v string)

SetNamespace gets a reference to the given string and assigns it to the Namespace field.

func (*RelationQuery) SetObject

func (o *RelationQuery) SetObject(v string)

SetObject gets a reference to the given string and assigns it to the Object field.

func (*RelationQuery) SetRelation

func (o *RelationQuery) SetRelation(v string)

SetRelation gets a reference to the given string and assigns it to the Relation field.

func (*RelationQuery) SetSubjectId

func (o *RelationQuery) SetSubjectId(v string)

SetSubjectId gets a reference to the given string and assigns it to the SubjectId field.

func (*RelationQuery) SetSubjectSet

func (o *RelationQuery) SetSubjectSet(v SubjectSet)

SetSubjectSet gets a reference to the given SubjectSet and assigns it to the SubjectSet field.

type RelationTuple

type RelationTuple struct {
	// Namespace of the Relation Tuple
	Namespace string `json:"namespace"`
	// Object of the Relation Tuple
	Object string `json:"object"`
	// Relation of the Relation Tuple
	Relation string `json:"relation"`
	// SubjectID of the Relation Tuple  Either SubjectSet or SubjectID can be provided.
	SubjectId  *string     `json:"subject_id,omitempty"`
	SubjectSet *SubjectSet `json:"subject_set,omitempty"`
}

RelationTuple struct for RelationTuple

func NewRelationTuple

func NewRelationTuple(namespace string, object string, relation string) *RelationTuple

NewRelationTuple instantiates a new RelationTuple object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRelationTupleWithDefaults

func NewRelationTupleWithDefaults() *RelationTuple

NewRelationTupleWithDefaults instantiates a new RelationTuple object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RelationTuple) GetNamespace

func (o *RelationTuple) GetNamespace() string

GetNamespace returns the Namespace field value

func (*RelationTuple) GetNamespaceOk

func (o *RelationTuple) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value and a boolean to check if the value has been set.

func (*RelationTuple) GetObject

func (o *RelationTuple) GetObject() string

GetObject returns the Object field value

func (*RelationTuple) GetObjectOk

func (o *RelationTuple) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.

func (*RelationTuple) GetRelation

func (o *RelationTuple) GetRelation() string

GetRelation returns the Relation field value

func (*RelationTuple) GetRelationOk

func (o *RelationTuple) GetRelationOk() (*string, bool)

GetRelationOk returns a tuple with the Relation field value and a boolean to check if the value has been set.

func (*RelationTuple) GetSubjectId

func (o *RelationTuple) GetSubjectId() string

GetSubjectId returns the SubjectId field value if set, zero value otherwise.

func (*RelationTuple) GetSubjectIdOk

func (o *RelationTuple) GetSubjectIdOk() (*string, bool)

GetSubjectIdOk returns a tuple with the SubjectId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationTuple) GetSubjectSet

func (o *RelationTuple) GetSubjectSet() SubjectSet

GetSubjectSet returns the SubjectSet field value if set, zero value otherwise.

func (*RelationTuple) GetSubjectSetOk

func (o *RelationTuple) GetSubjectSetOk() (*SubjectSet, bool)

GetSubjectSetOk returns a tuple with the SubjectSet field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RelationTuple) HasSubjectId

func (o *RelationTuple) HasSubjectId() bool

HasSubjectId returns a boolean if a field has been set.

func (*RelationTuple) HasSubjectSet

func (o *RelationTuple) HasSubjectSet() bool

HasSubjectSet returns a boolean if a field has been set.

func (RelationTuple) MarshalJSON

func (o RelationTuple) MarshalJSON() ([]byte, error)

func (*RelationTuple) SetNamespace

func (o *RelationTuple) SetNamespace(v string)

SetNamespace sets field value

func (*RelationTuple) SetObject

func (o *RelationTuple) SetObject(v string)

SetObject sets field value

func (*RelationTuple) SetRelation

func (o *RelationTuple) SetRelation(v string)

SetRelation sets field value

func (*RelationTuple) SetSubjectId

func (o *RelationTuple) SetSubjectId(v string)

SetSubjectId gets a reference to the given string and assigns it to the SubjectId field.

func (*RelationTuple) SetSubjectSet

func (o *RelationTuple) SetSubjectSet(v SubjectSet)

SetSubjectSet gets a reference to the given SubjectSet and assigns it to the SubjectSet field.

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SubjectSet

type SubjectSet struct {
	// Namespace of the Subject Set
	Namespace string `json:"namespace"`
	// Object of the Subject Set
	Object string `json:"object"`
	// Relation of the Subject Set
	Relation string `json:"relation"`
}

SubjectSet struct for SubjectSet

func NewSubjectSet

func NewSubjectSet(namespace string, object string, relation string) *SubjectSet

NewSubjectSet instantiates a new SubjectSet object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewSubjectSetWithDefaults

func NewSubjectSetWithDefaults() *SubjectSet

NewSubjectSetWithDefaults instantiates a new SubjectSet object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SubjectSet) GetNamespace

func (o *SubjectSet) GetNamespace() string

GetNamespace returns the Namespace field value

func (*SubjectSet) GetNamespaceOk

func (o *SubjectSet) GetNamespaceOk() (*string, bool)

GetNamespaceOk returns a tuple with the Namespace field value and a boolean to check if the value has been set.

func (*SubjectSet) GetObject

func (o *SubjectSet) GetObject() string

GetObject returns the Object field value

func (*SubjectSet) GetObjectOk

func (o *SubjectSet) GetObjectOk() (*string, bool)

GetObjectOk returns a tuple with the Object field value and a boolean to check if the value has been set.

func (*SubjectSet) GetRelation

func (o *SubjectSet) GetRelation() string

GetRelation returns the Relation field value

func (*SubjectSet) GetRelationOk

func (o *SubjectSet) GetRelationOk() (*string, bool)

GetRelationOk returns a tuple with the Relation field value and a boolean to check if the value has been set.

func (SubjectSet) MarshalJSON

func (o SubjectSet) MarshalJSON() ([]byte, error)

func (*SubjectSet) SetNamespace

func (o *SubjectSet) SetNamespace(v string)

SetNamespace sets field value

func (*SubjectSet) SetObject

func (o *SubjectSet) SetObject(v string)

SetObject sets field value

func (*SubjectSet) SetRelation

func (o *SubjectSet) SetRelation(v string)

SetRelation sets field value

type Version

type Version struct {
	// Version is the service's version.
	Version *string `json:"version,omitempty"`
}

Version struct for Version

func NewVersion

func NewVersion() *Version

NewVersion instantiates a new Version object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewVersionWithDefaults

func NewVersionWithDefaults() *Version

NewVersionWithDefaults instantiates a new Version object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Version) GetVersion

func (o *Version) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*Version) GetVersionOk

func (o *Version) GetVersionOk() (*string, bool)

GetVersionOk returns a tuple with the Version field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Version) HasVersion

func (o *Version) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (Version) MarshalJSON

func (o Version) MarshalJSON() ([]byte, error)

func (*Version) SetVersion

func (o *Version) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

type WriteApi

type WriteApi interface {

	/*
	 * CreateRelationTuple Create a Relation Tuple
	 * Use this endpoint to create a relation tuple.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return WriteApiApiCreateRelationTupleRequest
	 */
	CreateRelationTuple(ctx context.Context) WriteApiApiCreateRelationTupleRequest

	/*
	 * CreateRelationTupleExecute executes the request
	 * @return RelationQuery
	 */
	CreateRelationTupleExecute(r WriteApiApiCreateRelationTupleRequest) (*RelationQuery, *http.Response, error)

	/*
	 * DeleteRelationTuples Delete Relation Tuples
	 * Use this endpoint to delete relation tuples
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return WriteApiApiDeleteRelationTuplesRequest
	 */
	DeleteRelationTuples(ctx context.Context) WriteApiApiDeleteRelationTuplesRequest

	/*
	 * DeleteRelationTuplesExecute executes the request
	 */
	DeleteRelationTuplesExecute(r WriteApiApiDeleteRelationTuplesRequest) (*http.Response, error)

	/*
	 * PatchRelationTuples Patch Multiple Relation Tuples
	 * Use this endpoint to patch one or more relation tuples.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return WriteApiApiPatchRelationTuplesRequest
	 */
	PatchRelationTuples(ctx context.Context) WriteApiApiPatchRelationTuplesRequest

	/*
	 * PatchRelationTuplesExecute executes the request
	 */
	PatchRelationTuplesExecute(r WriteApiApiPatchRelationTuplesRequest) (*http.Response, error)
}

type WriteApiApiCreateRelationTupleRequest

type WriteApiApiCreateRelationTupleRequest struct {
	ApiService WriteApi
	// contains filtered or unexported fields
}

func (WriteApiApiCreateRelationTupleRequest) Execute

func (WriteApiApiCreateRelationTupleRequest) RelationQuery

type WriteApiApiDeleteRelationTuplesRequest

type WriteApiApiDeleteRelationTuplesRequest struct {
	ApiService WriteApi
	// contains filtered or unexported fields
}

func (WriteApiApiDeleteRelationTuplesRequest) Execute

func (WriteApiApiDeleteRelationTuplesRequest) Namespace

func (WriteApiApiDeleteRelationTuplesRequest) Object

func (WriteApiApiDeleteRelationTuplesRequest) Relation

func (WriteApiApiDeleteRelationTuplesRequest) SubjectId

func (WriteApiApiDeleteRelationTuplesRequest) SubjectSetNamespace

func (WriteApiApiDeleteRelationTuplesRequest) SubjectSetObject

func (WriteApiApiDeleteRelationTuplesRequest) SubjectSetRelation

type WriteApiApiPatchRelationTuplesRequest

type WriteApiApiPatchRelationTuplesRequest struct {
	ApiService WriteApi
	// contains filtered or unexported fields
}

func (WriteApiApiPatchRelationTuplesRequest) Execute

func (WriteApiApiPatchRelationTuplesRequest) PatchDelta

type WriteApiService

type WriteApiService service

WriteApiService WriteApi service

func (*WriteApiService) CreateRelationTuple

* CreateRelationTuple Create a Relation Tuple * Use this endpoint to create a relation tuple. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return WriteApiApiCreateRelationTupleRequest

func (*WriteApiService) CreateRelationTupleExecute

* Execute executes the request * @return RelationQuery

func (*WriteApiService) DeleteRelationTuples

* DeleteRelationTuples Delete Relation Tuples * Use this endpoint to delete relation tuples * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return WriteApiApiDeleteRelationTuplesRequest

func (*WriteApiService) DeleteRelationTuplesExecute

func (a *WriteApiService) DeleteRelationTuplesExecute(r WriteApiApiDeleteRelationTuplesRequest) (*http.Response, error)

* Execute executes the request

func (*WriteApiService) PatchRelationTuples

* PatchRelationTuples Patch Multiple Relation Tuples * Use this endpoint to patch one or more relation tuples. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return WriteApiApiPatchRelationTuplesRequest

func (*WriteApiService) PatchRelationTuplesExecute

func (a *WriteApiService) PatchRelationTuplesExecute(r WriteApiApiPatchRelationTuplesRequest) (*http.Response, error)

* Execute executes the request

Jump to

Keyboard shortcuts

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