client

package
v0.11.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 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
PermissionApi CheckPermission Get /relation-tuples/check/openapi Check a permission
PermissionApi CheckPermissionOrError Get /relation-tuples/check Check a permission
PermissionApi ExpandPermissions Get /relation-tuples/expand Expand a Relationship into permissions.
PermissionApi PostCheckPermission Post /relation-tuples/check/openapi Check a permission
PermissionApi PostCheckPermissionOrError Post /relation-tuples/check Check a permission
RelationshipApi CheckOplSyntax Post /opl/syntax/check Check the syntax of an OPL file
RelationshipApi CreateRelationship Put /admin/relation-tuples Create a Relationship
RelationshipApi DeleteRelationships Delete /admin/relation-tuples Delete Relationships
RelationshipApi GetRelationships Get /relation-tuples Query relationships
RelationshipApi ListRelationshipNamespaces Get /namespaces Query namespaces
RelationshipApi PatchRelationships Patch /admin/relation-tuples Patch Multiple Relationships

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

	PermissionApi PermissionApi

	RelationshipApi RelationshipApi
	// 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 CheckOplSyntaxResult

type CheckOplSyntaxResult struct {
	// The list of syntax errors
	Errors []ParseError `json:"errors,omitempty"`
}

CheckOplSyntaxResult struct for CheckOplSyntaxResult

func NewCheckOplSyntaxResult

func NewCheckOplSyntaxResult() *CheckOplSyntaxResult

NewCheckOplSyntaxResult instantiates a new CheckOplSyntaxResult 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 NewCheckOplSyntaxResultWithDefaults

func NewCheckOplSyntaxResultWithDefaults() *CheckOplSyntaxResult

NewCheckOplSyntaxResultWithDefaults instantiates a new CheckOplSyntaxResult 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 (*CheckOplSyntaxResult) GetErrors

func (o *CheckOplSyntaxResult) GetErrors() []ParseError

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

func (*CheckOplSyntaxResult) GetErrorsOk

func (o *CheckOplSyntaxResult) GetErrorsOk() ([]ParseError, 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 (*CheckOplSyntaxResult) HasErrors

func (o *CheckOplSyntaxResult) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (CheckOplSyntaxResult) MarshalJSON

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

func (*CheckOplSyntaxResult) SetErrors

func (o *CheckOplSyntaxResult) SetErrors(v []ParseError)

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

type CheckPermissionResult

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

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

func NewCheckPermissionResult

func NewCheckPermissionResult(allowed bool) *CheckPermissionResult

NewCheckPermissionResult instantiates a new CheckPermissionResult 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 NewCheckPermissionResultWithDefaults

func NewCheckPermissionResultWithDefaults() *CheckPermissionResult

NewCheckPermissionResultWithDefaults instantiates a new CheckPermissionResult 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 (*CheckPermissionResult) GetAllowed

func (o *CheckPermissionResult) GetAllowed() bool

GetAllowed returns the Allowed field value

func (*CheckPermissionResult) GetAllowedOk

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

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

func (CheckPermissionResult) MarshalJSON

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

func (*CheckPermissionResult) SetAllowed

func (o *CheckPermissionResult) SetAllowed(v bool)

SetAllowed sets field value

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 CreateRelationshipBody

type CreateRelationshipBody 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"`
}

CreateRelationshipBody Create Relationship Request Body

func NewCreateRelationshipBody

func NewCreateRelationshipBody() *CreateRelationshipBody

NewCreateRelationshipBody instantiates a new CreateRelationshipBody 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 NewCreateRelationshipBodyWithDefaults

func NewCreateRelationshipBodyWithDefaults() *CreateRelationshipBody

NewCreateRelationshipBodyWithDefaults instantiates a new CreateRelationshipBody 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 (*CreateRelationshipBody) GetNamespace

func (o *CreateRelationshipBody) GetNamespace() string

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

func (*CreateRelationshipBody) GetNamespaceOk

func (o *CreateRelationshipBody) 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 (*CreateRelationshipBody) GetObject

func (o *CreateRelationshipBody) GetObject() string

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

func (*CreateRelationshipBody) GetObjectOk

func (o *CreateRelationshipBody) 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 (*CreateRelationshipBody) GetRelation

func (o *CreateRelationshipBody) GetRelation() string

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

func (*CreateRelationshipBody) GetRelationOk

func (o *CreateRelationshipBody) 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 (*CreateRelationshipBody) GetSubjectId

func (o *CreateRelationshipBody) GetSubjectId() string

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

func (*CreateRelationshipBody) GetSubjectIdOk

func (o *CreateRelationshipBody) 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 (*CreateRelationshipBody) GetSubjectSet

func (o *CreateRelationshipBody) GetSubjectSet() SubjectSet

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

func (*CreateRelationshipBody) GetSubjectSetOk

func (o *CreateRelationshipBody) 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 (*CreateRelationshipBody) HasNamespace

func (o *CreateRelationshipBody) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*CreateRelationshipBody) HasObject

func (o *CreateRelationshipBody) HasObject() bool

HasObject returns a boolean if a field has been set.

func (*CreateRelationshipBody) HasRelation

func (o *CreateRelationshipBody) HasRelation() bool

HasRelation returns a boolean if a field has been set.

func (*CreateRelationshipBody) HasSubjectId

func (o *CreateRelationshipBody) HasSubjectId() bool

HasSubjectId returns a boolean if a field has been set.

func (*CreateRelationshipBody) HasSubjectSet

func (o *CreateRelationshipBody) HasSubjectSet() bool

HasSubjectSet returns a boolean if a field has been set.

func (CreateRelationshipBody) MarshalJSON

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

func (*CreateRelationshipBody) SetNamespace

func (o *CreateRelationshipBody) SetNamespace(v string)

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

func (*CreateRelationshipBody) SetObject

func (o *CreateRelationshipBody) SetObject(v string)

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

func (*CreateRelationshipBody) SetRelation

func (o *CreateRelationshipBody) SetRelation(v string)

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

func (*CreateRelationshipBody) SetSubjectId

func (o *CreateRelationshipBody) SetSubjectId(v string)

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

func (*CreateRelationshipBody) SetSubjectSet

func (o *CreateRelationshipBody) SetSubjectSet(v SubjectSet)

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

type ErrorGeneric

type ErrorGeneric struct {
	Error GenericError `json:"error"`
}

ErrorGeneric The standard Ory JSON API error format.

func NewErrorGeneric

func NewErrorGeneric(error_ GenericError) *ErrorGeneric

NewErrorGeneric instantiates a new ErrorGeneric 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 NewErrorGenericWithDefaults

func NewErrorGenericWithDefaults() *ErrorGeneric

NewErrorGenericWithDefaults instantiates a new ErrorGeneric 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 (*ErrorGeneric) GetError

func (o *ErrorGeneric) GetError() GenericError

GetError returns the Error field value

func (*ErrorGeneric) GetErrorOk

func (o *ErrorGeneric) GetErrorOk() (*GenericError, bool)

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

func (ErrorGeneric) MarshalJSON

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

func (*ErrorGeneric) SetError

func (o *ErrorGeneric) SetError(v GenericError)

SetError sets field value

type ExpandedPermissionTree

type ExpandedPermissionTree struct {
	// The children of the node, possibly none.
	Children []ExpandedPermissionTree `json:"children,omitempty"`
	Tuple    *Relationship            `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"`
}

ExpandedPermissionTree struct for ExpandedPermissionTree

func NewExpandedPermissionTree

func NewExpandedPermissionTree(type_ string) *ExpandedPermissionTree

NewExpandedPermissionTree instantiates a new ExpandedPermissionTree 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 NewExpandedPermissionTreeWithDefaults

func NewExpandedPermissionTreeWithDefaults() *ExpandedPermissionTree

NewExpandedPermissionTreeWithDefaults instantiates a new ExpandedPermissionTree 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 (*ExpandedPermissionTree) GetChildren

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

func (*ExpandedPermissionTree) GetChildrenOk

func (o *ExpandedPermissionTree) GetChildrenOk() ([]ExpandedPermissionTree, 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 (*ExpandedPermissionTree) GetTuple

func (o *ExpandedPermissionTree) GetTuple() Relationship

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

func (*ExpandedPermissionTree) GetTupleOk

func (o *ExpandedPermissionTree) GetTupleOk() (*Relationship, 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 (*ExpandedPermissionTree) GetType

func (o *ExpandedPermissionTree) GetType() string

GetType returns the Type field value

func (*ExpandedPermissionTree) GetTypeOk

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

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

func (*ExpandedPermissionTree) HasChildren

func (o *ExpandedPermissionTree) HasChildren() bool

HasChildren returns a boolean if a field has been set.

func (*ExpandedPermissionTree) HasTuple

func (o *ExpandedPermissionTree) HasTuple() bool

HasTuple returns a boolean if a field has been set.

func (ExpandedPermissionTree) MarshalJSON

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

func (*ExpandedPermissionTree) SetChildren

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

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

func (*ExpandedPermissionTree) SetTuple

func (o *ExpandedPermissionTree) SetTuple(v Relationship)

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

func (*ExpandedPermissionTree) SetType

func (o *ExpandedPermissionTree) SetType(v string)

SetType sets field value

type GenericError

type GenericError struct {
	// The status code
	Code *int64 `json:"code,omitempty"`
	// Debug information  This field is often not exposed to protect against leaking sensitive information.
	Debug *string `json:"debug,omitempty"`
	// Further error details
	Details map[string]interface{} `json:"details,omitempty"`
	// The error ID  Useful when trying to identify various errors in application logic.
	Id *string `json:"id,omitempty"`
	// Error message  The error's message.
	Message string `json:"message"`
	// A human-readable reason for the error
	Reason *string `json:"reason,omitempty"`
	// The request ID  The request ID is often exposed internally in order to trace errors across service architectures. This is often a UUID.
	Request *string `json:"request,omitempty"`
	// The status description
	Status *string `json:"status,omitempty"`
}

GenericError struct for GenericError

func NewGenericError

func NewGenericError(message string) *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) GetDebug

func (o *GenericError) GetDebug() string

GetDebug returns the Debug field value if set, zero value otherwise.

func (*GenericError) GetDebugOk

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

GetDebugOk returns a tuple with the Debug 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) GetId

func (o *GenericError) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*GenericError) GetIdOk

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

GetIdOk returns a tuple with the Id 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

func (*GenericError) GetMessageOk

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

GetMessageOk returns a tuple with the Message field value 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) HasDebug

func (o *GenericError) HasDebug() bool

HasDebug 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) HasId

func (o *GenericError) HasId() bool

HasId 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) SetDebug

func (o *GenericError) SetDebug(v string)

SetDebug gets a reference to the given string and assigns it to the Debug 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) SetId

func (o *GenericError) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*GenericError) SetMessage

func (o *GenericError) SetMessage(v string)

SetMessage sets field value

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 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 Namespace

type Namespace struct {
	// Name of the namespace.
	Name *string `json:"name,omitempty"`
}

Namespace struct for Namespace

func NewNamespace

func NewNamespace() *Namespace

NewNamespace instantiates a new Namespace 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 NewNamespaceWithDefaults

func NewNamespaceWithDefaults() *Namespace

NewNamespaceWithDefaults instantiates a new Namespace 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 (*Namespace) GetName

func (o *Namespace) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Namespace) GetNameOk

func (o *Namespace) GetNameOk() (*string, bool)

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

func (*Namespace) HasName

func (o *Namespace) HasName() bool

HasName returns a boolean if a field has been set.

func (Namespace) MarshalJSON

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

func (*Namespace) SetName

func (o *Namespace) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

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 NullableCheckOplSyntaxResult

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

func NewNullableCheckOplSyntaxResult

func NewNullableCheckOplSyntaxResult(val *CheckOplSyntaxResult) *NullableCheckOplSyntaxResult

func (NullableCheckOplSyntaxResult) Get

func (NullableCheckOplSyntaxResult) IsSet

func (NullableCheckOplSyntaxResult) MarshalJSON

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

func (*NullableCheckOplSyntaxResult) Set

func (*NullableCheckOplSyntaxResult) UnmarshalJSON

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

func (*NullableCheckOplSyntaxResult) Unset

func (v *NullableCheckOplSyntaxResult) Unset()

type NullableCheckPermissionResult

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

func (NullableCheckPermissionResult) Get

func (NullableCheckPermissionResult) IsSet

func (NullableCheckPermissionResult) MarshalJSON

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

func (*NullableCheckPermissionResult) Set

func (*NullableCheckPermissionResult) UnmarshalJSON

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

func (*NullableCheckPermissionResult) Unset

func (v *NullableCheckPermissionResult) Unset()

type NullableCreateRelationshipBody

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

func (NullableCreateRelationshipBody) Get

func (NullableCreateRelationshipBody) IsSet

func (NullableCreateRelationshipBody) MarshalJSON

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

func (*NullableCreateRelationshipBody) Set

func (*NullableCreateRelationshipBody) UnmarshalJSON

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

func (*NullableCreateRelationshipBody) Unset

func (v *NullableCreateRelationshipBody) Unset()

type NullableErrorGeneric

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

func NewNullableErrorGeneric

func NewNullableErrorGeneric(val *ErrorGeneric) *NullableErrorGeneric

func (NullableErrorGeneric) Get

func (NullableErrorGeneric) IsSet

func (v NullableErrorGeneric) IsSet() bool

func (NullableErrorGeneric) MarshalJSON

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

func (*NullableErrorGeneric) Set

func (v *NullableErrorGeneric) Set(val *ErrorGeneric)

func (*NullableErrorGeneric) UnmarshalJSON

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

func (*NullableErrorGeneric) Unset

func (v *NullableErrorGeneric) Unset()

type NullableExpandedPermissionTree

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

func (NullableExpandedPermissionTree) Get

func (NullableExpandedPermissionTree) IsSet

func (NullableExpandedPermissionTree) MarshalJSON

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

func (*NullableExpandedPermissionTree) Set

func (*NullableExpandedPermissionTree) UnmarshalJSON

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

func (*NullableExpandedPermissionTree) Unset

func (v *NullableExpandedPermissionTree) 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 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 NullableNamespace

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

func NewNullableNamespace

func NewNullableNamespace(val *Namespace) *NullableNamespace

func (NullableNamespace) Get

func (v NullableNamespace) Get() *Namespace

func (NullableNamespace) IsSet

func (v NullableNamespace) IsSet() bool

func (NullableNamespace) MarshalJSON

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

func (*NullableNamespace) Set

func (v *NullableNamespace) Set(val *Namespace)

func (*NullableNamespace) UnmarshalJSON

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

func (*NullableNamespace) Unset

func (v *NullableNamespace) Unset()

type NullableParseError

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

func NewNullableParseError

func NewNullableParseError(val *ParseError) *NullableParseError

func (NullableParseError) Get

func (v NullableParseError) Get() *ParseError

func (NullableParseError) IsSet

func (v NullableParseError) IsSet() bool

func (NullableParseError) MarshalJSON

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

func (*NullableParseError) Set

func (v *NullableParseError) Set(val *ParseError)

func (*NullableParseError) UnmarshalJSON

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

func (*NullableParseError) Unset

func (v *NullableParseError) Unset()

type NullablePostCheckPermissionBody

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

func (NullablePostCheckPermissionBody) Get

func (NullablePostCheckPermissionBody) IsSet

func (NullablePostCheckPermissionBody) MarshalJSON

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

func (*NullablePostCheckPermissionBody) Set

func (*NullablePostCheckPermissionBody) UnmarshalJSON

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

func (*NullablePostCheckPermissionBody) Unset

type NullablePostCheckPermissionOrErrorBody

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

func (NullablePostCheckPermissionOrErrorBody) Get

func (NullablePostCheckPermissionOrErrorBody) IsSet

func (NullablePostCheckPermissionOrErrorBody) MarshalJSON

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

func (*NullablePostCheckPermissionOrErrorBody) Set

func (*NullablePostCheckPermissionOrErrorBody) UnmarshalJSON

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

func (*NullablePostCheckPermissionOrErrorBody) 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 NullableRelationship

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

func NewNullableRelationship

func NewNullableRelationship(val *Relationship) *NullableRelationship

func (NullableRelationship) Get

func (NullableRelationship) IsSet

func (v NullableRelationship) IsSet() bool

func (NullableRelationship) MarshalJSON

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

func (*NullableRelationship) Set

func (v *NullableRelationship) Set(val *Relationship)

func (*NullableRelationship) UnmarshalJSON

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

func (*NullableRelationship) Unset

func (v *NullableRelationship) Unset()

type NullableRelationshipNamespaces

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

func (NullableRelationshipNamespaces) Get

func (NullableRelationshipNamespaces) IsSet

func (NullableRelationshipNamespaces) MarshalJSON

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

func (*NullableRelationshipNamespaces) Set

func (*NullableRelationshipNamespaces) UnmarshalJSON

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

func (*NullableRelationshipNamespaces) Unset

func (v *NullableRelationshipNamespaces) Unset()

type NullableRelationshipPatch

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

func NewNullableRelationshipPatch

func NewNullableRelationshipPatch(val *RelationshipPatch) *NullableRelationshipPatch

func (NullableRelationshipPatch) Get

func (NullableRelationshipPatch) IsSet

func (v NullableRelationshipPatch) IsSet() bool

func (NullableRelationshipPatch) MarshalJSON

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

func (*NullableRelationshipPatch) Set

func (*NullableRelationshipPatch) UnmarshalJSON

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

func (*NullableRelationshipPatch) Unset

func (v *NullableRelationshipPatch) Unset()

type NullableRelationships

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

func NewNullableRelationships

func NewNullableRelationships(val *Relationships) *NullableRelationships

func (NullableRelationships) Get

func (NullableRelationships) IsSet

func (v NullableRelationships) IsSet() bool

func (NullableRelationships) MarshalJSON

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

func (*NullableRelationships) Set

func (v *NullableRelationships) Set(val *Relationships)

func (*NullableRelationships) UnmarshalJSON

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

func (*NullableRelationships) Unset

func (v *NullableRelationships) Unset()

type NullableSourcePosition

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

func NewNullableSourcePosition

func NewNullableSourcePosition(val *SourcePosition) *NullableSourcePosition

func (NullableSourcePosition) Get

func (NullableSourcePosition) IsSet

func (v NullableSourcePosition) IsSet() bool

func (NullableSourcePosition) MarshalJSON

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

func (*NullableSourcePosition) Set

func (*NullableSourcePosition) UnmarshalJSON

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

func (*NullableSourcePosition) Unset

func (v *NullableSourcePosition) 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 ParseError

type ParseError struct {
	End     *SourcePosition `json:"end,omitempty"`
	Message *string         `json:"message,omitempty"`
	Start   *SourcePosition `json:"start,omitempty"`
}

ParseError struct for ParseError

func NewParseError

func NewParseError() *ParseError

NewParseError instantiates a new ParseError 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 NewParseErrorWithDefaults

func NewParseErrorWithDefaults() *ParseError

NewParseErrorWithDefaults instantiates a new ParseError 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 (*ParseError) GetEnd

func (o *ParseError) GetEnd() SourcePosition

GetEnd returns the End field value if set, zero value otherwise.

func (*ParseError) GetEndOk

func (o *ParseError) GetEndOk() (*SourcePosition, bool)

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

func (*ParseError) GetMessage

func (o *ParseError) GetMessage() string

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

func (*ParseError) GetMessageOk

func (o *ParseError) 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 (*ParseError) GetStart

func (o *ParseError) GetStart() SourcePosition

GetStart returns the Start field value if set, zero value otherwise.

func (*ParseError) GetStartOk

func (o *ParseError) GetStartOk() (*SourcePosition, bool)

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

func (*ParseError) HasEnd

func (o *ParseError) HasEnd() bool

HasEnd returns a boolean if a field has been set.

func (*ParseError) HasMessage

func (o *ParseError) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (*ParseError) HasStart

func (o *ParseError) HasStart() bool

HasStart returns a boolean if a field has been set.

func (ParseError) MarshalJSON

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

func (*ParseError) SetEnd

func (o *ParseError) SetEnd(v SourcePosition)

SetEnd gets a reference to the given SourcePosition and assigns it to the End field.

func (*ParseError) SetMessage

func (o *ParseError) SetMessage(v string)

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

func (*ParseError) SetStart

func (o *ParseError) SetStart(v SourcePosition)

SetStart gets a reference to the given SourcePosition and assigns it to the Start field.

type PermissionApi

type PermissionApi interface {

	/*
	 * CheckPermission Check a permission
	 * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return PermissionApiApiCheckPermissionRequest
	 */
	CheckPermission(ctx context.Context) PermissionApiApiCheckPermissionRequest

	/*
	 * CheckPermissionExecute executes the request
	 * @return CheckPermissionResult
	 */
	CheckPermissionExecute(r PermissionApiApiCheckPermissionRequest) (*CheckPermissionResult, *http.Response, error)

	/*
	 * CheckPermissionOrError Check a permission
	 * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return PermissionApiApiCheckPermissionOrErrorRequest
	 */
	CheckPermissionOrError(ctx context.Context) PermissionApiApiCheckPermissionOrErrorRequest

	/*
	 * CheckPermissionOrErrorExecute executes the request
	 * @return CheckPermissionResult
	 */
	CheckPermissionOrErrorExecute(r PermissionApiApiCheckPermissionOrErrorRequest) (*CheckPermissionResult, *http.Response, error)

	/*
	 * ExpandPermissions Expand a Relationship into permissions.
	 * Use this endpoint to expand a relationship tuple into permissions.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return PermissionApiApiExpandPermissionsRequest
	 */
	ExpandPermissions(ctx context.Context) PermissionApiApiExpandPermissionsRequest

	/*
	 * ExpandPermissionsExecute executes the request
	 * @return ExpandedPermissionTree
	 */
	ExpandPermissionsExecute(r PermissionApiApiExpandPermissionsRequest) (*ExpandedPermissionTree, *http.Response, error)

	/*
	 * PostCheckPermission Check a permission
	 * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return PermissionApiApiPostCheckPermissionRequest
	 */
	PostCheckPermission(ctx context.Context) PermissionApiApiPostCheckPermissionRequest

	/*
	 * PostCheckPermissionExecute executes the request
	 * @return CheckPermissionResult
	 */
	PostCheckPermissionExecute(r PermissionApiApiPostCheckPermissionRequest) (*CheckPermissionResult, *http.Response, error)

	/*
	 * PostCheckPermissionOrError Check a permission
	 * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview).
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return PermissionApiApiPostCheckPermissionOrErrorRequest
	 */
	PostCheckPermissionOrError(ctx context.Context) PermissionApiApiPostCheckPermissionOrErrorRequest

	/*
	 * PostCheckPermissionOrErrorExecute executes the request
	 * @return CheckPermissionResult
	 */
	PostCheckPermissionOrErrorExecute(r PermissionApiApiPostCheckPermissionOrErrorRequest) (*CheckPermissionResult, *http.Response, error)
}

type PermissionApiApiCheckPermissionOrErrorRequest

type PermissionApiApiCheckPermissionOrErrorRequest struct {
	ApiService PermissionApi
	// contains filtered or unexported fields
}

func (PermissionApiApiCheckPermissionOrErrorRequest) Execute

func (PermissionApiApiCheckPermissionOrErrorRequest) MaxDepth

func (PermissionApiApiCheckPermissionOrErrorRequest) Namespace

func (PermissionApiApiCheckPermissionOrErrorRequest) Object

func (PermissionApiApiCheckPermissionOrErrorRequest) Relation

func (PermissionApiApiCheckPermissionOrErrorRequest) SubjectId

func (PermissionApiApiCheckPermissionOrErrorRequest) SubjectSetNamespace

func (PermissionApiApiCheckPermissionOrErrorRequest) SubjectSetObject

func (PermissionApiApiCheckPermissionOrErrorRequest) SubjectSetRelation

type PermissionApiApiCheckPermissionRequest

type PermissionApiApiCheckPermissionRequest struct {
	ApiService PermissionApi
	// contains filtered or unexported fields
}

func (PermissionApiApiCheckPermissionRequest) Execute

func (PermissionApiApiCheckPermissionRequest) MaxDepth

func (PermissionApiApiCheckPermissionRequest) Namespace

func (PermissionApiApiCheckPermissionRequest) Object

func (PermissionApiApiCheckPermissionRequest) Relation

func (PermissionApiApiCheckPermissionRequest) SubjectId

func (PermissionApiApiCheckPermissionRequest) SubjectSetNamespace

func (PermissionApiApiCheckPermissionRequest) SubjectSetObject

func (PermissionApiApiCheckPermissionRequest) SubjectSetRelation

type PermissionApiApiExpandPermissionsRequest

type PermissionApiApiExpandPermissionsRequest struct {
	ApiService PermissionApi
	// contains filtered or unexported fields
}

func (PermissionApiApiExpandPermissionsRequest) Execute

func (PermissionApiApiExpandPermissionsRequest) MaxDepth

func (PermissionApiApiExpandPermissionsRequest) Namespace

func (PermissionApiApiExpandPermissionsRequest) Object

func (PermissionApiApiExpandPermissionsRequest) Relation

type PermissionApiApiPostCheckPermissionOrErrorRequest

type PermissionApiApiPostCheckPermissionOrErrorRequest struct {
	ApiService PermissionApi
	// contains filtered or unexported fields
}

func (PermissionApiApiPostCheckPermissionOrErrorRequest) Execute

func (PermissionApiApiPostCheckPermissionOrErrorRequest) MaxDepth

func (PermissionApiApiPostCheckPermissionOrErrorRequest) PostCheckPermissionOrErrorBody

type PermissionApiApiPostCheckPermissionRequest

type PermissionApiApiPostCheckPermissionRequest struct {
	ApiService PermissionApi
	// contains filtered or unexported fields
}

func (PermissionApiApiPostCheckPermissionRequest) Execute

func (PermissionApiApiPostCheckPermissionRequest) MaxDepth

func (PermissionApiApiPostCheckPermissionRequest) PostCheckPermissionBody

type PermissionApiService

type PermissionApiService service

PermissionApiService PermissionApi service

func (*PermissionApiService) CheckPermission

* CheckPermission Check a permission * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return PermissionApiApiCheckPermissionRequest

func (*PermissionApiService) CheckPermissionExecute

* Execute executes the request * @return CheckPermissionResult

func (*PermissionApiService) CheckPermissionOrError

* CheckPermissionOrError Check a permission * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return PermissionApiApiCheckPermissionOrErrorRequest

func (*PermissionApiService) CheckPermissionOrErrorExecute

* Execute executes the request * @return CheckPermissionResult

func (*PermissionApiService) ExpandPermissions

* ExpandPermissions Expand a Relationship into permissions. * Use this endpoint to expand a relationship tuple into permissions. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return PermissionApiApiExpandPermissionsRequest

func (*PermissionApiService) ExpandPermissionsExecute

* Execute executes the request * @return ExpandedPermissionTree

func (*PermissionApiService) PostCheckPermission

* PostCheckPermission Check a permission * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return PermissionApiApiPostCheckPermissionRequest

func (*PermissionApiService) PostCheckPermissionExecute

* Execute executes the request * @return CheckPermissionResult

func (*PermissionApiService) PostCheckPermissionOrError

* PostCheckPermissionOrError Check a permission * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return PermissionApiApiPostCheckPermissionOrErrorRequest

func (*PermissionApiService) PostCheckPermissionOrErrorExecute

* Execute executes the request * @return CheckPermissionResult

type PostCheckPermissionBody

type PostCheckPermissionBody 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"`
}

PostCheckPermissionBody Check Permission using Post Request Body

func NewPostCheckPermissionBody

func NewPostCheckPermissionBody() *PostCheckPermissionBody

NewPostCheckPermissionBody instantiates a new PostCheckPermissionBody 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 NewPostCheckPermissionBodyWithDefaults

func NewPostCheckPermissionBodyWithDefaults() *PostCheckPermissionBody

NewPostCheckPermissionBodyWithDefaults instantiates a new PostCheckPermissionBody 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 (*PostCheckPermissionBody) GetNamespace

func (o *PostCheckPermissionBody) GetNamespace() string

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

func (*PostCheckPermissionBody) GetNamespaceOk

func (o *PostCheckPermissionBody) 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 (*PostCheckPermissionBody) GetObject

func (o *PostCheckPermissionBody) GetObject() string

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

func (*PostCheckPermissionBody) GetObjectOk

func (o *PostCheckPermissionBody) 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 (*PostCheckPermissionBody) GetRelation

func (o *PostCheckPermissionBody) GetRelation() string

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

func (*PostCheckPermissionBody) GetRelationOk

func (o *PostCheckPermissionBody) 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 (*PostCheckPermissionBody) GetSubjectId

func (o *PostCheckPermissionBody) GetSubjectId() string

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

func (*PostCheckPermissionBody) GetSubjectIdOk

func (o *PostCheckPermissionBody) 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 (*PostCheckPermissionBody) GetSubjectSet

func (o *PostCheckPermissionBody) GetSubjectSet() SubjectSet

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

func (*PostCheckPermissionBody) GetSubjectSetOk

func (o *PostCheckPermissionBody) 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 (*PostCheckPermissionBody) HasNamespace

func (o *PostCheckPermissionBody) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*PostCheckPermissionBody) HasObject

func (o *PostCheckPermissionBody) HasObject() bool

HasObject returns a boolean if a field has been set.

func (*PostCheckPermissionBody) HasRelation

func (o *PostCheckPermissionBody) HasRelation() bool

HasRelation returns a boolean if a field has been set.

func (*PostCheckPermissionBody) HasSubjectId

func (o *PostCheckPermissionBody) HasSubjectId() bool

HasSubjectId returns a boolean if a field has been set.

func (*PostCheckPermissionBody) HasSubjectSet

func (o *PostCheckPermissionBody) HasSubjectSet() bool

HasSubjectSet returns a boolean if a field has been set.

func (PostCheckPermissionBody) MarshalJSON

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

func (*PostCheckPermissionBody) SetNamespace

func (o *PostCheckPermissionBody) SetNamespace(v string)

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

func (*PostCheckPermissionBody) SetObject

func (o *PostCheckPermissionBody) SetObject(v string)

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

func (*PostCheckPermissionBody) SetRelation

func (o *PostCheckPermissionBody) SetRelation(v string)

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

func (*PostCheckPermissionBody) SetSubjectId

func (o *PostCheckPermissionBody) SetSubjectId(v string)

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

func (*PostCheckPermissionBody) SetSubjectSet

func (o *PostCheckPermissionBody) SetSubjectSet(v SubjectSet)

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

type PostCheckPermissionOrErrorBody

type PostCheckPermissionOrErrorBody 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"`
}

PostCheckPermissionOrErrorBody Post Check Permission Or Error Body

func NewPostCheckPermissionOrErrorBody

func NewPostCheckPermissionOrErrorBody() *PostCheckPermissionOrErrorBody

NewPostCheckPermissionOrErrorBody instantiates a new PostCheckPermissionOrErrorBody 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 NewPostCheckPermissionOrErrorBodyWithDefaults

func NewPostCheckPermissionOrErrorBodyWithDefaults() *PostCheckPermissionOrErrorBody

NewPostCheckPermissionOrErrorBodyWithDefaults instantiates a new PostCheckPermissionOrErrorBody 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 (*PostCheckPermissionOrErrorBody) GetNamespace

func (o *PostCheckPermissionOrErrorBody) GetNamespace() string

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

func (*PostCheckPermissionOrErrorBody) GetNamespaceOk

func (o *PostCheckPermissionOrErrorBody) 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 (*PostCheckPermissionOrErrorBody) GetObject

func (o *PostCheckPermissionOrErrorBody) GetObject() string

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

func (*PostCheckPermissionOrErrorBody) GetObjectOk

func (o *PostCheckPermissionOrErrorBody) 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 (*PostCheckPermissionOrErrorBody) GetRelation

func (o *PostCheckPermissionOrErrorBody) GetRelation() string

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

func (*PostCheckPermissionOrErrorBody) GetRelationOk

func (o *PostCheckPermissionOrErrorBody) 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 (*PostCheckPermissionOrErrorBody) GetSubjectId

func (o *PostCheckPermissionOrErrorBody) GetSubjectId() string

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

func (*PostCheckPermissionOrErrorBody) GetSubjectIdOk

func (o *PostCheckPermissionOrErrorBody) 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 (*PostCheckPermissionOrErrorBody) GetSubjectSet

func (o *PostCheckPermissionOrErrorBody) GetSubjectSet() SubjectSet

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

func (*PostCheckPermissionOrErrorBody) GetSubjectSetOk

func (o *PostCheckPermissionOrErrorBody) 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 (*PostCheckPermissionOrErrorBody) HasNamespace

func (o *PostCheckPermissionOrErrorBody) HasNamespace() bool

HasNamespace returns a boolean if a field has been set.

func (*PostCheckPermissionOrErrorBody) HasObject

func (o *PostCheckPermissionOrErrorBody) HasObject() bool

HasObject returns a boolean if a field has been set.

func (*PostCheckPermissionOrErrorBody) HasRelation

func (o *PostCheckPermissionOrErrorBody) HasRelation() bool

HasRelation returns a boolean if a field has been set.

func (*PostCheckPermissionOrErrorBody) HasSubjectId

func (o *PostCheckPermissionOrErrorBody) HasSubjectId() bool

HasSubjectId returns a boolean if a field has been set.

func (*PostCheckPermissionOrErrorBody) HasSubjectSet

func (o *PostCheckPermissionOrErrorBody) HasSubjectSet() bool

HasSubjectSet returns a boolean if a field has been set.

func (PostCheckPermissionOrErrorBody) MarshalJSON

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

func (*PostCheckPermissionOrErrorBody) SetNamespace

func (o *PostCheckPermissionOrErrorBody) SetNamespace(v string)

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

func (*PostCheckPermissionOrErrorBody) SetObject

func (o *PostCheckPermissionOrErrorBody) SetObject(v string)

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

func (*PostCheckPermissionOrErrorBody) SetRelation

func (o *PostCheckPermissionOrErrorBody) SetRelation(v string)

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

func (*PostCheckPermissionOrErrorBody) SetSubjectId

func (o *PostCheckPermissionOrErrorBody) SetSubjectId(v string)

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

func (*PostCheckPermissionOrErrorBody) SetSubjectSet

func (o *PostCheckPermissionOrErrorBody) SetSubjectSet(v SubjectSet)

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

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 Relation Query

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 Relationship

type Relationship 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"`
}

Relationship Relationship

func NewRelationship

func NewRelationship(namespace string, object string, relation string) *Relationship

NewRelationship instantiates a new Relationship 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 NewRelationshipWithDefaults

func NewRelationshipWithDefaults() *Relationship

NewRelationshipWithDefaults instantiates a new Relationship 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 (*Relationship) GetNamespace

func (o *Relationship) GetNamespace() string

GetNamespace returns the Namespace field value

func (*Relationship) GetNamespaceOk

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

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

func (*Relationship) GetObject

func (o *Relationship) GetObject() string

GetObject returns the Object field value

func (*Relationship) GetObjectOk

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

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

func (*Relationship) GetRelation

func (o *Relationship) GetRelation() string

GetRelation returns the Relation field value

func (*Relationship) GetRelationOk

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

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

func (*Relationship) GetSubjectId

func (o *Relationship) GetSubjectId() string

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

func (*Relationship) GetSubjectIdOk

func (o *Relationship) 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 (*Relationship) GetSubjectSet

func (o *Relationship) GetSubjectSet() SubjectSet

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

func (*Relationship) GetSubjectSetOk

func (o *Relationship) 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 (*Relationship) HasSubjectId

func (o *Relationship) HasSubjectId() bool

HasSubjectId returns a boolean if a field has been set.

func (*Relationship) HasSubjectSet

func (o *Relationship) HasSubjectSet() bool

HasSubjectSet returns a boolean if a field has been set.

func (Relationship) MarshalJSON

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

func (*Relationship) SetNamespace

func (o *Relationship) SetNamespace(v string)

SetNamespace sets field value

func (*Relationship) SetObject

func (o *Relationship) SetObject(v string)

SetObject sets field value

func (*Relationship) SetRelation

func (o *Relationship) SetRelation(v string)

SetRelation sets field value

func (*Relationship) SetSubjectId

func (o *Relationship) SetSubjectId(v string)

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

func (*Relationship) SetSubjectSet

func (o *Relationship) SetSubjectSet(v SubjectSet)

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

type RelationshipApi

type RelationshipApi interface {

	/*
	 * CheckOplSyntax Check the syntax of an OPL file
	 * The OPL file is expected in the body of the request.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return RelationshipApiApiCheckOplSyntaxRequest
	 */
	CheckOplSyntax(ctx context.Context) RelationshipApiApiCheckOplSyntaxRequest

	/*
	 * CheckOplSyntaxExecute executes the request
	 * @return CheckOplSyntaxResult
	 */
	CheckOplSyntaxExecute(r RelationshipApiApiCheckOplSyntaxRequest) (*CheckOplSyntaxResult, *http.Response, error)

	/*
	 * CreateRelationship Create a Relationship
	 * Use this endpoint to create a relationship.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return RelationshipApiApiCreateRelationshipRequest
	 */
	CreateRelationship(ctx context.Context) RelationshipApiApiCreateRelationshipRequest

	/*
	 * CreateRelationshipExecute executes the request
	 * @return Relationship
	 */
	CreateRelationshipExecute(r RelationshipApiApiCreateRelationshipRequest) (*Relationship, *http.Response, error)

	/*
	 * DeleteRelationships Delete Relationships
	 * Use this endpoint to delete relationships
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return RelationshipApiApiDeleteRelationshipsRequest
	 */
	DeleteRelationships(ctx context.Context) RelationshipApiApiDeleteRelationshipsRequest

	/*
	 * DeleteRelationshipsExecute executes the request
	 */
	DeleteRelationshipsExecute(r RelationshipApiApiDeleteRelationshipsRequest) (*http.Response, error)

	/*
	 * GetRelationships Query relationships
	 * Get all relationships 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 RelationshipApiApiGetRelationshipsRequest
	 */
	GetRelationships(ctx context.Context) RelationshipApiApiGetRelationshipsRequest

	/*
	 * GetRelationshipsExecute executes the request
	 * @return Relationships
	 */
	GetRelationshipsExecute(r RelationshipApiApiGetRelationshipsRequest) (*Relationships, *http.Response, error)

	/*
	 * ListRelationshipNamespaces Query namespaces
	 * Get all namespaces
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return RelationshipApiApiListRelationshipNamespacesRequest
	 */
	ListRelationshipNamespaces(ctx context.Context) RelationshipApiApiListRelationshipNamespacesRequest

	/*
	 * ListRelationshipNamespacesExecute executes the request
	 * @return RelationshipNamespaces
	 */
	ListRelationshipNamespacesExecute(r RelationshipApiApiListRelationshipNamespacesRequest) (*RelationshipNamespaces, *http.Response, error)

	/*
	 * PatchRelationships Patch Multiple Relationships
	 * Use this endpoint to patch one or more relationships.
	 * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return RelationshipApiApiPatchRelationshipsRequest
	 */
	PatchRelationships(ctx context.Context) RelationshipApiApiPatchRelationshipsRequest

	/*
	 * PatchRelationshipsExecute executes the request
	 */
	PatchRelationshipsExecute(r RelationshipApiApiPatchRelationshipsRequest) (*http.Response, error)
}

type RelationshipApiApiCheckOplSyntaxRequest

type RelationshipApiApiCheckOplSyntaxRequest struct {
	ApiService RelationshipApi
	// contains filtered or unexported fields
}

func (RelationshipApiApiCheckOplSyntaxRequest) Body

func (RelationshipApiApiCheckOplSyntaxRequest) Execute

type RelationshipApiApiCreateRelationshipRequest

type RelationshipApiApiCreateRelationshipRequest struct {
	ApiService RelationshipApi
	// contains filtered or unexported fields
}

func (RelationshipApiApiCreateRelationshipRequest) CreateRelationshipBody

func (RelationshipApiApiCreateRelationshipRequest) Execute

type RelationshipApiApiDeleteRelationshipsRequest

type RelationshipApiApiDeleteRelationshipsRequest struct {
	ApiService RelationshipApi
	// contains filtered or unexported fields
}

func (RelationshipApiApiDeleteRelationshipsRequest) Execute

func (RelationshipApiApiDeleteRelationshipsRequest) Namespace

func (RelationshipApiApiDeleteRelationshipsRequest) Object

func (RelationshipApiApiDeleteRelationshipsRequest) Relation

func (RelationshipApiApiDeleteRelationshipsRequest) SubjectId

func (RelationshipApiApiDeleteRelationshipsRequest) SubjectSetNamespace

func (RelationshipApiApiDeleteRelationshipsRequest) SubjectSetObject

func (RelationshipApiApiDeleteRelationshipsRequest) SubjectSetRelation

type RelationshipApiApiGetRelationshipsRequest

type RelationshipApiApiGetRelationshipsRequest struct {
	ApiService RelationshipApi
	// contains filtered or unexported fields
}

func (RelationshipApiApiGetRelationshipsRequest) Execute

func (RelationshipApiApiGetRelationshipsRequest) Namespace

func (RelationshipApiApiGetRelationshipsRequest) Object

func (RelationshipApiApiGetRelationshipsRequest) PageSize

func (RelationshipApiApiGetRelationshipsRequest) PageToken

func (RelationshipApiApiGetRelationshipsRequest) Relation

func (RelationshipApiApiGetRelationshipsRequest) SubjectId

func (RelationshipApiApiGetRelationshipsRequest) SubjectSetNamespace

func (RelationshipApiApiGetRelationshipsRequest) SubjectSetObject

func (RelationshipApiApiGetRelationshipsRequest) SubjectSetRelation

type RelationshipApiApiListRelationshipNamespacesRequest

type RelationshipApiApiListRelationshipNamespacesRequest struct {
	ApiService RelationshipApi
	// contains filtered or unexported fields
}

func (RelationshipApiApiListRelationshipNamespacesRequest) Execute

type RelationshipApiApiPatchRelationshipsRequest

type RelationshipApiApiPatchRelationshipsRequest struct {
	ApiService RelationshipApi
	// contains filtered or unexported fields
}

func (RelationshipApiApiPatchRelationshipsRequest) Execute

func (RelationshipApiApiPatchRelationshipsRequest) RelationshipPatch

type RelationshipApiService

type RelationshipApiService service

RelationshipApiService RelationshipApi service

func (*RelationshipApiService) CheckOplSyntax

* CheckOplSyntax Check the syntax of an OPL file * The OPL file is expected in the body of the request. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return RelationshipApiApiCheckOplSyntaxRequest

func (*RelationshipApiService) CheckOplSyntaxExecute

* Execute executes the request * @return CheckOplSyntaxResult

func (*RelationshipApiService) CreateRelationship

* CreateRelationship Create a Relationship * Use this endpoint to create a relationship. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return RelationshipApiApiCreateRelationshipRequest

func (*RelationshipApiService) CreateRelationshipExecute

* Execute executes the request * @return Relationship

func (*RelationshipApiService) DeleteRelationships

* DeleteRelationships Delete Relationships * Use this endpoint to delete relationships * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return RelationshipApiApiDeleteRelationshipsRequest

func (*RelationshipApiService) DeleteRelationshipsExecute

* Execute executes the request

func (*RelationshipApiService) GetRelationships

* GetRelationships Query relationships * Get all relationships 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 RelationshipApiApiGetRelationshipsRequest

func (*RelationshipApiService) GetRelationshipsExecute

* Execute executes the request * @return Relationships

func (*RelationshipApiService) ListRelationshipNamespaces

* ListRelationshipNamespaces Query namespaces * Get all namespaces * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return RelationshipApiApiListRelationshipNamespacesRequest

func (*RelationshipApiService) ListRelationshipNamespacesExecute

* Execute executes the request * @return RelationshipNamespaces

func (*RelationshipApiService) PatchRelationships

* PatchRelationships Patch Multiple Relationships * Use this endpoint to patch one or more relationships. * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return RelationshipApiApiPatchRelationshipsRequest

func (*RelationshipApiService) PatchRelationshipsExecute

* Execute executes the request

type RelationshipNamespaces

type RelationshipNamespaces struct {
	Namespaces []Namespace `json:"namespaces,omitempty"`
}

RelationshipNamespaces Relationship Namespace List

func NewRelationshipNamespaces

func NewRelationshipNamespaces() *RelationshipNamespaces

NewRelationshipNamespaces instantiates a new RelationshipNamespaces 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 NewRelationshipNamespacesWithDefaults

func NewRelationshipNamespacesWithDefaults() *RelationshipNamespaces

NewRelationshipNamespacesWithDefaults instantiates a new RelationshipNamespaces 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 (*RelationshipNamespaces) GetNamespaces

func (o *RelationshipNamespaces) GetNamespaces() []Namespace

GetNamespaces returns the Namespaces field value if set, zero value otherwise.

func (*RelationshipNamespaces) GetNamespacesOk

func (o *RelationshipNamespaces) GetNamespacesOk() ([]Namespace, bool)

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

func (*RelationshipNamespaces) HasNamespaces

func (o *RelationshipNamespaces) HasNamespaces() bool

HasNamespaces returns a boolean if a field has been set.

func (RelationshipNamespaces) MarshalJSON

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

func (*RelationshipNamespaces) SetNamespaces

func (o *RelationshipNamespaces) SetNamespaces(v []Namespace)

SetNamespaces gets a reference to the given []Namespace and assigns it to the Namespaces field.

type RelationshipPatch

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

RelationshipPatch Payload for patching a relationship

func NewRelationshipPatch

func NewRelationshipPatch() *RelationshipPatch

NewRelationshipPatch instantiates a new RelationshipPatch 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 NewRelationshipPatchWithDefaults

func NewRelationshipPatchWithDefaults() *RelationshipPatch

NewRelationshipPatchWithDefaults instantiates a new RelationshipPatch 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 (*RelationshipPatch) GetAction

func (o *RelationshipPatch) GetAction() string

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

func (*RelationshipPatch) GetActionOk

func (o *RelationshipPatch) 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 (*RelationshipPatch) GetRelationTuple

func (o *RelationshipPatch) GetRelationTuple() Relationship

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

func (*RelationshipPatch) GetRelationTupleOk

func (o *RelationshipPatch) GetRelationTupleOk() (*Relationship, 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 (*RelationshipPatch) HasAction

func (o *RelationshipPatch) HasAction() bool

HasAction returns a boolean if a field has been set.

func (*RelationshipPatch) HasRelationTuple

func (o *RelationshipPatch) HasRelationTuple() bool

HasRelationTuple returns a boolean if a field has been set.

func (RelationshipPatch) MarshalJSON

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

func (*RelationshipPatch) SetAction

func (o *RelationshipPatch) SetAction(v string)

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

func (*RelationshipPatch) SetRelationTuple

func (o *RelationshipPatch) SetRelationTuple(v Relationship)

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

type Relationships

type Relationships 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 []Relationship `json:"relation_tuples,omitempty"`
}

Relationships Paginated Relationship List

func NewRelationships

func NewRelationships() *Relationships

NewRelationships instantiates a new Relationships 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 NewRelationshipsWithDefaults

func NewRelationshipsWithDefaults() *Relationships

NewRelationshipsWithDefaults instantiates a new Relationships 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 (*Relationships) GetNextPageToken

func (o *Relationships) GetNextPageToken() string

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

func (*Relationships) GetNextPageTokenOk

func (o *Relationships) 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 (*Relationships) GetRelationTuples

func (o *Relationships) GetRelationTuples() []Relationship

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

func (*Relationships) GetRelationTuplesOk

func (o *Relationships) GetRelationTuplesOk() ([]Relationship, 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 (*Relationships) HasNextPageToken

func (o *Relationships) HasNextPageToken() bool

HasNextPageToken returns a boolean if a field has been set.

func (*Relationships) HasRelationTuples

func (o *Relationships) HasRelationTuples() bool

HasRelationTuples returns a boolean if a field has been set.

func (Relationships) MarshalJSON

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

func (*Relationships) SetNextPageToken

func (o *Relationships) SetNextPageToken(v string)

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

func (*Relationships) SetRelationTuples

func (o *Relationships) SetRelationTuples(v []Relationship)

SetRelationTuples gets a reference to the given []Relationship and assigns it to the RelationTuples 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 SourcePosition

type SourcePosition struct {
	Line   *int64 `json:"Line,omitempty"`
	Column *int64 `json:"column,omitempty"`
}

SourcePosition struct for SourcePosition

func NewSourcePosition

func NewSourcePosition() *SourcePosition

NewSourcePosition instantiates a new SourcePosition 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 NewSourcePositionWithDefaults

func NewSourcePositionWithDefaults() *SourcePosition

NewSourcePositionWithDefaults instantiates a new SourcePosition 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 (*SourcePosition) GetColumn

func (o *SourcePosition) GetColumn() int64

GetColumn returns the Column field value if set, zero value otherwise.

func (*SourcePosition) GetColumnOk

func (o *SourcePosition) GetColumnOk() (*int64, bool)

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

func (*SourcePosition) GetLine

func (o *SourcePosition) GetLine() int64

GetLine returns the Line field value if set, zero value otherwise.

func (*SourcePosition) GetLineOk

func (o *SourcePosition) GetLineOk() (*int64, bool)

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

func (*SourcePosition) HasColumn

func (o *SourcePosition) HasColumn() bool

HasColumn returns a boolean if a field has been set.

func (*SourcePosition) HasLine

func (o *SourcePosition) HasLine() bool

HasLine returns a boolean if a field has been set.

func (SourcePosition) MarshalJSON

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

func (*SourcePosition) SetColumn

func (o *SourcePosition) SetColumn(v int64)

SetColumn gets a reference to the given int64 and assigns it to the Column field.

func (*SourcePosition) SetLine

func (o *SourcePosition) SetLine(v int64)

SetLine gets a reference to the given int64 and assigns it to the Line field.

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.

Jump to

Keyboard shortcuts

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