# ory-keto-client OryKetoClient - the Ruby gem for the ORY Keto Ory Keto is a cloud native access control server providing best-practice patterns (RBAC, ABAC, ACL, AWS IAM Policies, Kubernetes Roles, ...) via REST APIs. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: v0.7.0-alpha.0 - Package version: v0.7.0-alpha.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://www.ory.sh](https://www.ory.sh) ## Installation ### Build a gem To build the Ruby code into a gem: ```shell gem build ory-keto-client.gemspec ``` Then either install the gem locally: ```shell gem install ./ory-keto-client-v0.7.0-alpha.0.gem ``` (for development, run `gem install --dev ./ory-keto-client-v0.7.0-alpha.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: gem 'ory-keto-client', '~> v0.7.0-alpha.0' ### Install from Git If the Ruby gem is hosted at a git repository: https://github.com/ory/sdk, then add the following in the Gemfile: gem 'ory-keto-client', :git => 'https://github.com/ory/sdk.git' ### Include the Ruby code directly Include the Ruby code directly using `-I` as follows: ```shell ruby -Ilib script.rb ``` ## Getting Started Please follow the [installation](#installation) procedure and then run the following code: ```ruby # Load the gem require 'ory-keto-client' api_instance = OryKetoClient::HealthApi.new begin #Check alive status result = api_instance.is_instance_alive p result rescue OryKetoClient::ApiError => e puts "Exception when calling HealthApi->is_instance_alive: #{e}" end ``` ## Documentation for API Endpoints All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *OryKetoClient::HealthApi* | [**is_instance_alive**](docs/HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status *OryKetoClient::HealthApi* | [**is_instance_ready**](docs/HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status *OryKetoClient::ReadApi* | [**get_check**](docs/ReadApi.md#get_check) | **GET** /check | Check a relation tuple *OryKetoClient::ReadApi* | [**get_expand**](docs/ReadApi.md#get_expand) | **GET** /expand | Expand a Relation Tuple *OryKetoClient::ReadApi* | [**get_relation_tuples**](docs/ReadApi.md#get_relation_tuples) | **GET** /relation-tuples | Query relation tuples *OryKetoClient::ReadApi* | [**post_check**](docs/ReadApi.md#post_check) | **POST** /check | Check a relation tuple *OryKetoClient::VersionApi* | [**get_version**](docs/VersionApi.md#get_version) | **GET** /version | Get service version *OryKetoClient::WriteApi* | [**create_relation_tuple**](docs/WriteApi.md#create_relation_tuple) | **PUT** /relation-tuples | Create a Relation Tuple *OryKetoClient::WriteApi* | [**delete_relation_tuple**](docs/WriteApi.md#delete_relation_tuple) | **DELETE** /relation-tuples | Delete a Relation Tuple *OryKetoClient::WriteApi* | [**patch_relation_tuples**](docs/WriteApi.md#patch_relation_tuples) | **PATCH** /relation-tuples | Patch Multiple Relation Tuples ## Documentation for Models - [OryKetoClient::ExpandTree](docs/ExpandTree.md) - [OryKetoClient::GetCheckResponse](docs/GetCheckResponse.md) - [OryKetoClient::GetRelationTuplesResponse](docs/GetRelationTuplesResponse.md) - [OryKetoClient::HealthNotReadyStatus](docs/HealthNotReadyStatus.md) - [OryKetoClient::HealthStatus](docs/HealthStatus.md) - [OryKetoClient::InlineResponse400](docs/InlineResponse400.md) - [OryKetoClient::InternalRelationTuple](docs/InternalRelationTuple.md) - [OryKetoClient::PatchDelta](docs/PatchDelta.md) - [OryKetoClient::RelationQuery](docs/RelationQuery.md) - [OryKetoClient::SubjectSet](docs/SubjectSet.md) - [OryKetoClient::Version](docs/Version.md) ## Documentation for Authorization All endpoints do not require authorization.