ory-oathkeeper-client 0.38.4.beta1 → 0.38.12.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/docs/ApiApi.md +292 -37
- data/docs/CreateRuleCreated.md +8 -7
- data/docs/CreateRuleForbidden.md +8 -7
- data/docs/CreateRuleForbiddenBody.md +18 -17
- data/docs/CreateRuleInternalServerError.md +8 -7
- data/docs/CreateRuleInternalServerErrorBody.md +18 -17
- data/docs/CreateRuleUnauthorized.md +8 -7
- data/docs/CreateRuleUnauthorizedBody.md +18 -17
- data/docs/DecisionsForbidden.md +8 -7
- data/docs/DecisionsForbiddenBody.md +18 -17
- data/docs/DecisionsInternalServerError.md +8 -7
- data/docs/DecisionsInternalServerErrorBody.md +18 -17
- data/docs/DecisionsNotFound.md +8 -7
- data/docs/DecisionsNotFoundBody.md +18 -17
- data/docs/DecisionsUnauthorized.md +8 -7
- data/docs/DecisionsUnauthorizedBody.md +18 -17
- data/docs/DeleteRuleForbidden.md +8 -7
- data/docs/DeleteRuleForbiddenBody.md +18 -17
- data/docs/DeleteRuleInternalServerError.md +8 -7
- data/docs/DeleteRuleInternalServerErrorBody.md +18 -17
- data/docs/DeleteRuleNotFound.md +8 -7
- data/docs/DeleteRuleNotFoundBody.md +18 -17
- data/docs/DeleteRuleUnauthorized.md +8 -7
- data/docs/DeleteRuleUnauthorizedBody.md +18 -17
- data/docs/GetRuleForbidden.md +8 -7
- data/docs/GetRuleForbiddenBody.md +18 -17
- data/docs/GetRuleInternalServerError.md +8 -7
- data/docs/GetRuleInternalServerErrorBody.md +18 -17
- data/docs/GetRuleNotFound.md +8 -7
- data/docs/GetRuleNotFoundBody.md +18 -17
- data/docs/GetRuleOK.md +8 -7
- data/docs/GetRuleUnauthorized.md +8 -7
- data/docs/GetRuleUnauthorizedBody.md +18 -17
- data/docs/GetWellKnownForbidden.md +8 -7
- data/docs/GetWellKnownForbiddenBody.md +18 -17
- data/docs/GetWellKnownJSONWebKeysInternalServerError.md +8 -7
- data/docs/GetWellKnownJSONWebKeysInternalServerErrorBody.md +18 -17
- data/docs/GetWellKnownJSONWebKeysOK.md +8 -7
- data/docs/GetWellKnownOK.md +8 -7
- data/docs/GetWellKnownUnauthorized.md +8 -7
- data/docs/GetWellKnownUnauthorizedBody.md +18 -17
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/InlineResponse500.md +18 -17
- data/docs/IsInstanceAliveInternalServerError.md +8 -7
- data/docs/IsInstanceAliveInternalServerErrorBody.md +18 -17
- data/docs/IsInstanceAliveOK.md +8 -7
- data/docs/JsonWebKey.md +40 -39
- data/docs/JsonWebKeySet.md +8 -7
- data/docs/JudgeForbidden.md +8 -7
- data/docs/JudgeForbiddenBody.md +18 -17
- data/docs/JudgeInternalServerError.md +8 -7
- data/docs/JudgeInternalServerErrorBody.md +18 -17
- data/docs/JudgeNotFound.md +8 -7
- data/docs/JudgeNotFoundBody.md +18 -17
- data/docs/JudgeUnauthorized.md +8 -7
- data/docs/JudgeUnauthorizedBody.md +18 -17
- data/docs/ListRulesForbidden.md +8 -7
- data/docs/ListRulesForbiddenBody.md +18 -17
- data/docs/ListRulesInternalServerError.md +8 -7
- data/docs/ListRulesInternalServerErrorBody.md +18 -17
- data/docs/ListRulesOK.md +8 -7
- data/docs/ListRulesUnauthorized.md +8 -7
- data/docs/ListRulesUnauthorizedBody.md +18 -17
- data/docs/Rule.md +20 -19
- data/docs/RuleHandler.md +10 -9
- data/docs/RuleMatch.md +10 -9
- data/docs/SwaggerCreateRuleParameters.md +8 -7
- data/docs/SwaggerGetRuleParameters.md +8 -7
- data/docs/SwaggerHealthStatus.md +8 -7
- data/docs/SwaggerJSONWebKey.md +40 -39
- data/docs/SwaggerJSONWebKeySet.md +8 -7
- data/docs/SwaggerListRulesParameters.md +10 -9
- data/docs/SwaggerNotReadyStatus.md +8 -7
- data/docs/SwaggerRule.md +20 -19
- data/docs/SwaggerRuleHandler.md +10 -9
- data/docs/SwaggerRuleMatch.md +10 -9
- data/docs/SwaggerRuleResponse.md +8 -7
- data/docs/SwaggerRulesResponse.md +8 -7
- data/docs/SwaggerUpdateRuleParameters.md +10 -9
- data/docs/SwaggerVersion.md +8 -7
- data/docs/UpdateRuleForbidden.md +8 -7
- data/docs/UpdateRuleForbiddenBody.md +18 -17
- data/docs/UpdateRuleInternalServerError.md +8 -7
- data/docs/UpdateRuleInternalServerErrorBody.md +18 -17
- data/docs/UpdateRuleNotFound.md +8 -7
- data/docs/UpdateRuleNotFoundBody.md +18 -17
- data/docs/UpdateRuleOK.md +8 -7
- data/docs/UpdateRuleUnauthorized.md +8 -7
- data/docs/UpdateRuleUnauthorizedBody.md +18 -17
- data/docs/Upstream.md +12 -11
- data/docs/Version.md +8 -7
- data/lib/ory-oathkeeper-client.rb +2 -4
- data/lib/ory-oathkeeper-client/api/api_api.rb +189 -14
- data/lib/ory-oathkeeper-client/api/health_api.rb +1 -1
- data/lib/ory-oathkeeper-client/api/version_api.rb +1 -1
- data/lib/ory-oathkeeper-client/api_client.rb +51 -49
- data/lib/ory-oathkeeper-client/api_error.rb +2 -2
- data/lib/ory-oathkeeper-client/configuration.rb +40 -11
- data/lib/ory-oathkeeper-client/models/create_rule_created.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/create_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/decisions_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/delete_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_rule_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/get_well_known_json_web_keys_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/get_well_known_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/health_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/inline_response500.rb +20 -8
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/is_instance_alive_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/is_instance_alive_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/json_web_key.rb +20 -8
- data/lib/ory-oathkeeper-client/models/json_web_key_set.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/judge_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/judge_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/list_rules_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/list_rules_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/rule.rb +20 -8
- data/lib/ory-oathkeeper-client/models/rule_handler.rb +20 -8
- data/lib/ory-oathkeeper-client/models/rule_match.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_create_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_get_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_health_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_json_web_key_set.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_list_rules_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_not_ready_status.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_handler.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_match.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rule_response.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_rules_response.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_update_rule_parameters.rb +20 -8
- data/lib/ory-oathkeeper-client/models/swagger_version.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_forbidden_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_internal_server_error_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_not_found.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_not_found_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/update_rule_ok.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized.rb +20 -8
- data/lib/ory-oathkeeper-client/models/update_rule_unauthorized_body.rb +21 -9
- data/lib/ory-oathkeeper-client/models/upstream.rb +20 -8
- data/lib/ory-oathkeeper-client/models/version.rb +20 -8
- data/lib/ory-oathkeeper-client/version.rb +3 -3
- data/ory-oathkeeper-client.gemspec +4 -5
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +78 -98
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef4136e014b85115b5a31de4eea591e09bce5d42821ae09a2728975d5ea09cd9
|
4
|
+
data.tar.gz: 014b6b59236586029100d597659e62fcd7023ad97bd985c62736f41f6a43477d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 759892daa04f78dd611a8ee42170b44a1d3d543528a184ce4999c3a2a1738ff02892867541d2082430939ae5e3267e7b9d3e3118a2bcce57cc8cd05a1f34ae69
|
7
|
+
data.tar.gz: b6fc3bcf3ccdf3ccbe2c92642241fbcb23b46b7463d28fcbbc373bf1660f16a28ec2aa1eeb71638fb19ec9b8b9603dfccaadcb2b1c77b3ce736b65ef65eb2e77
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ ORY Oathkeeper is a reverse proxy that checks the HTTP Authorization for validit
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: v0.38.
|
10
|
-
- Package version: v0.38.
|
9
|
+
- API version: v0.38.12-beta.1
|
10
|
+
- Package version: v0.38.12-beta.1
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://www.ory.am](https://www.ory.am)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ory-oathkeeper-client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ory-oathkeeper-client-v0.38.
|
27
|
+
gem install ./ory-oathkeeper-client-v0.38.12-beta.1.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ory-oathkeeper-client-v0.38.
|
30
|
+
(for development, run `gem install --dev ./ory-oathkeeper-client-v0.38.12-beta.1.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ory-oathkeeper-client', '~> v0.38.
|
36
|
+
gem 'ory-oathkeeper-client', '~> v0.38.12-beta.1'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -76,11 +76,11 @@ Class | Method | HTTP request | Description
|
|
76
76
|
------------ | ------------- | ------------- | -------------
|
77
77
|
*OryHydraClient::ApiApi* | [**decisions**](docs/ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API
|
78
78
|
*OryHydraClient::ApiApi* | [**get_rule**](docs/ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule
|
79
|
+
*OryHydraClient::ApiApi* | [**get_version**](docs/ApiApi.md#get_version) | **GET** /version | Get service version
|
79
80
|
*OryHydraClient::ApiApi* | [**get_well_known_json_web_keys**](docs/ApiApi.md#get_well_known_json_web_keys) | **GET** /.well-known/jwks.json | Lists cryptographic keys
|
81
|
+
*OryHydraClient::ApiApi* | [**is_instance_alive**](docs/ApiApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
|
82
|
+
*OryHydraClient::ApiApi* | [**is_instance_ready**](docs/ApiApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
|
80
83
|
*OryHydraClient::ApiApi* | [**list_rules**](docs/ApiApi.md#list_rules) | **GET** /rules | List all rules
|
81
|
-
*OryHydraClient::HealthApi* | [**is_instance_alive**](docs/HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
|
82
|
-
*OryHydraClient::HealthApi* | [**is_instance_ready**](docs/HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
|
83
|
-
*OryHydraClient::VersionApi* | [**get_version**](docs/VersionApi.md#get_version) | **GET** /version | Get service version
|
84
84
|
|
85
85
|
|
86
86
|
## Documentation for Models
|
data/docs/ApiApi.md
CHANGED
@@ -2,13 +2,15 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**decisions**](ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API
|
8
|
-
[**get_rule**](ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule
|
9
|
-
[**
|
10
|
-
[**
|
11
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**decisions**](ApiApi.md#decisions) | **GET** /decisions | Access Control Decision API |
|
8
|
+
| [**get_rule**](ApiApi.md#get_rule) | **GET** /rules/{id} | Retrieve a rule |
|
9
|
+
| [**get_version**](ApiApi.md#get_version) | **GET** /version | Get service version |
|
10
|
+
| [**get_well_known_json_web_keys**](ApiApi.md#get_well_known_json_web_keys) | **GET** /.well-known/jwks.json | Lists cryptographic keys |
|
11
|
+
| [**is_instance_alive**](ApiApi.md#is_instance_alive) | **GET** /health/alive | Check alive status |
|
12
|
+
| [**is_instance_ready**](ApiApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status |
|
13
|
+
| [**list_rules**](ApiApi.md#list_rules) | **GET** /rules | List all rules |
|
12
14
|
|
13
15
|
|
14
16
|
## decisions
|
@@ -19,19 +21,37 @@ Access Control Decision API
|
|
19
21
|
|
20
22
|
> This endpoint works with all HTTP Methods (GET, POST, PUT, ...) and matches every path prefixed with /decision. This endpoint mirrors the proxy capability of ORY Oathkeeper's proxy functionality but instead of forwarding the request to the upstream server, returns 200 (request should be allowed), 401 (unauthorized), or 403 (forbidden) status codes. This endpoint can be used to integrate with other API Proxies like Ambassador, Kong, Envoy, and many more.
|
21
23
|
|
22
|
-
###
|
24
|
+
### Examples
|
23
25
|
|
24
26
|
```ruby
|
25
|
-
|
27
|
+
require 'time'
|
26
28
|
require 'ory-oathkeeper-client'
|
27
29
|
|
28
30
|
api_instance = OryHydraClient::ApiApi.new
|
29
31
|
|
30
32
|
begin
|
31
|
-
#Access Control Decision API
|
33
|
+
# Access Control Decision API
|
32
34
|
api_instance.decisions
|
33
35
|
rescue OryHydraClient::ApiError => e
|
34
|
-
puts "
|
36
|
+
puts "Error when calling ApiApi->decisions: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the decisions_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
43
|
+
|
44
|
+
> <Array(nil, Integer, Hash)> decisions_with_http_info
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
# Access Control Decision API
|
49
|
+
data, status_code, headers = api_instance.decisions_with_http_info
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => nil
|
53
|
+
rescue OryHydraClient::ApiError => e
|
54
|
+
puts "Error when calling ApiApi->decisions_with_http_info: #{e}"
|
35
55
|
end
|
36
56
|
```
|
37
57
|
|
@@ -55,36 +75,53 @@ No authorization required
|
|
55
75
|
|
56
76
|
## get_rule
|
57
77
|
|
58
|
-
> Rule get_rule(id)
|
78
|
+
> <Rule> get_rule(id)
|
59
79
|
|
60
80
|
Retrieve a rule
|
61
81
|
|
62
82
|
Use this method to retrieve a rule from the storage. If it does not exist you will receive a 404 error.
|
63
83
|
|
64
|
-
###
|
84
|
+
### Examples
|
65
85
|
|
66
86
|
```ruby
|
67
|
-
|
87
|
+
require 'time'
|
68
88
|
require 'ory-oathkeeper-client'
|
69
89
|
|
70
90
|
api_instance = OryHydraClient::ApiApi.new
|
71
91
|
id = 'id_example' # String |
|
72
92
|
|
73
93
|
begin
|
74
|
-
#Retrieve a rule
|
94
|
+
# Retrieve a rule
|
75
95
|
result = api_instance.get_rule(id)
|
76
96
|
p result
|
77
97
|
rescue OryHydraClient::ApiError => e
|
78
|
-
puts "
|
98
|
+
puts "Error when calling ApiApi->get_rule: #{e}"
|
79
99
|
end
|
80
100
|
```
|
81
101
|
|
82
|
-
|
102
|
+
#### Using the get_rule_with_http_info variant
|
83
103
|
|
104
|
+
This returns an Array which contains the response data, status code and headers.
|
84
105
|
|
85
|
-
|
86
|
-
|
87
|
-
|
106
|
+
> <Array(<Rule>, Integer, Hash)> get_rule_with_http_info(id)
|
107
|
+
|
108
|
+
```ruby
|
109
|
+
begin
|
110
|
+
# Retrieve a rule
|
111
|
+
data, status_code, headers = api_instance.get_rule_with_http_info(id)
|
112
|
+
p status_code # => 2xx
|
113
|
+
p headers # => { ... }
|
114
|
+
p data # => <Rule>
|
115
|
+
rescue OryHydraClient::ApiError => e
|
116
|
+
puts "Error when calling ApiApi->get_rule_with_http_info: #{e}"
|
117
|
+
end
|
118
|
+
```
|
119
|
+
|
120
|
+
### Parameters
|
121
|
+
|
122
|
+
| Name | Type | Description | Notes |
|
123
|
+
| ---- | ---- | ----------- | ----- |
|
124
|
+
| **id** | **String** | | |
|
88
125
|
|
89
126
|
### Return type
|
90
127
|
|
@@ -100,28 +137,107 @@ No authorization required
|
|
100
137
|
- **Accept**: application/json
|
101
138
|
|
102
139
|
|
140
|
+
## get_version
|
141
|
+
|
142
|
+
> <Version> get_version
|
143
|
+
|
144
|
+
Get service version
|
145
|
+
|
146
|
+
This endpoint returns the service version typically notated using semantic versioning. 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.
|
147
|
+
|
148
|
+
### Examples
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
require 'time'
|
152
|
+
require 'ory-oathkeeper-client'
|
153
|
+
|
154
|
+
api_instance = OryHydraClient::ApiApi.new
|
155
|
+
|
156
|
+
begin
|
157
|
+
# Get service version
|
158
|
+
result = api_instance.get_version
|
159
|
+
p result
|
160
|
+
rescue OryHydraClient::ApiError => e
|
161
|
+
puts "Error when calling ApiApi->get_version: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
#### Using the get_version_with_http_info variant
|
166
|
+
|
167
|
+
This returns an Array which contains the response data, status code and headers.
|
168
|
+
|
169
|
+
> <Array(<Version>, Integer, Hash)> get_version_with_http_info
|
170
|
+
|
171
|
+
```ruby
|
172
|
+
begin
|
173
|
+
# Get service version
|
174
|
+
data, status_code, headers = api_instance.get_version_with_http_info
|
175
|
+
p status_code # => 2xx
|
176
|
+
p headers # => { ... }
|
177
|
+
p data # => <Version>
|
178
|
+
rescue OryHydraClient::ApiError => e
|
179
|
+
puts "Error when calling ApiApi->get_version_with_http_info: #{e}"
|
180
|
+
end
|
181
|
+
```
|
182
|
+
|
183
|
+
### Parameters
|
184
|
+
|
185
|
+
This endpoint does not need any parameter.
|
186
|
+
|
187
|
+
### Return type
|
188
|
+
|
189
|
+
[**Version**](Version.md)
|
190
|
+
|
191
|
+
### Authorization
|
192
|
+
|
193
|
+
No authorization required
|
194
|
+
|
195
|
+
### HTTP request headers
|
196
|
+
|
197
|
+
- **Content-Type**: Not defined
|
198
|
+
- **Accept**: application/json
|
199
|
+
|
200
|
+
|
103
201
|
## get_well_known_json_web_keys
|
104
202
|
|
105
|
-
> JsonWebKeySet get_well_known_json_web_keys
|
203
|
+
> <JsonWebKeySet> get_well_known_json_web_keys
|
106
204
|
|
107
205
|
Lists cryptographic keys
|
108
206
|
|
109
207
|
This endpoint returns cryptographic keys that are required to, for example, verify signatures of ID Tokens.
|
110
208
|
|
111
|
-
###
|
209
|
+
### Examples
|
112
210
|
|
113
211
|
```ruby
|
114
|
-
|
212
|
+
require 'time'
|
115
213
|
require 'ory-oathkeeper-client'
|
116
214
|
|
117
215
|
api_instance = OryHydraClient::ApiApi.new
|
118
216
|
|
119
217
|
begin
|
120
|
-
#Lists cryptographic keys
|
218
|
+
# Lists cryptographic keys
|
121
219
|
result = api_instance.get_well_known_json_web_keys
|
122
220
|
p result
|
123
221
|
rescue OryHydraClient::ApiError => e
|
124
|
-
puts "
|
222
|
+
puts "Error when calling ApiApi->get_well_known_json_web_keys: #{e}"
|
223
|
+
end
|
224
|
+
```
|
225
|
+
|
226
|
+
#### Using the get_well_known_json_web_keys_with_http_info variant
|
227
|
+
|
228
|
+
This returns an Array which contains the response data, status code and headers.
|
229
|
+
|
230
|
+
> <Array(<JsonWebKeySet>, Integer, Hash)> get_well_known_json_web_keys_with_http_info
|
231
|
+
|
232
|
+
```ruby
|
233
|
+
begin
|
234
|
+
# Lists cryptographic keys
|
235
|
+
data, status_code, headers = api_instance.get_well_known_json_web_keys_with_http_info
|
236
|
+
p status_code # => 2xx
|
237
|
+
p headers # => { ... }
|
238
|
+
p data # => <JsonWebKeySet>
|
239
|
+
rescue OryHydraClient::ApiError => e
|
240
|
+
puts "Error when calling ApiApi->get_well_known_json_web_keys_with_http_info: #{e}"
|
125
241
|
end
|
126
242
|
```
|
127
243
|
|
@@ -143,42 +259,181 @@ No authorization required
|
|
143
259
|
- **Accept**: application/json
|
144
260
|
|
145
261
|
|
262
|
+
## is_instance_alive
|
263
|
+
|
264
|
+
> <HealthStatus> is_instance_alive
|
265
|
+
|
266
|
+
Check alive status
|
267
|
+
|
268
|
+
This endpoint returns a 200 status code when the HTTP server is up running. 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.
|
269
|
+
|
270
|
+
### Examples
|
271
|
+
|
272
|
+
```ruby
|
273
|
+
require 'time'
|
274
|
+
require 'ory-oathkeeper-client'
|
275
|
+
|
276
|
+
api_instance = OryHydraClient::ApiApi.new
|
277
|
+
|
278
|
+
begin
|
279
|
+
# Check alive status
|
280
|
+
result = api_instance.is_instance_alive
|
281
|
+
p result
|
282
|
+
rescue OryHydraClient::ApiError => e
|
283
|
+
puts "Error when calling ApiApi->is_instance_alive: #{e}"
|
284
|
+
end
|
285
|
+
```
|
286
|
+
|
287
|
+
#### Using the is_instance_alive_with_http_info variant
|
288
|
+
|
289
|
+
This returns an Array which contains the response data, status code and headers.
|
290
|
+
|
291
|
+
> <Array(<HealthStatus>, Integer, Hash)> is_instance_alive_with_http_info
|
292
|
+
|
293
|
+
```ruby
|
294
|
+
begin
|
295
|
+
# Check alive status
|
296
|
+
data, status_code, headers = api_instance.is_instance_alive_with_http_info
|
297
|
+
p status_code # => 2xx
|
298
|
+
p headers # => { ... }
|
299
|
+
p data # => <HealthStatus>
|
300
|
+
rescue OryHydraClient::ApiError => e
|
301
|
+
puts "Error when calling ApiApi->is_instance_alive_with_http_info: #{e}"
|
302
|
+
end
|
303
|
+
```
|
304
|
+
|
305
|
+
### Parameters
|
306
|
+
|
307
|
+
This endpoint does not need any parameter.
|
308
|
+
|
309
|
+
### Return type
|
310
|
+
|
311
|
+
[**HealthStatus**](HealthStatus.md)
|
312
|
+
|
313
|
+
### Authorization
|
314
|
+
|
315
|
+
No authorization required
|
316
|
+
|
317
|
+
### HTTP request headers
|
318
|
+
|
319
|
+
- **Content-Type**: Not defined
|
320
|
+
- **Accept**: application/json
|
321
|
+
|
322
|
+
|
323
|
+
## is_instance_ready
|
324
|
+
|
325
|
+
> <HealthStatus> is_instance_ready
|
326
|
+
|
327
|
+
Check readiness status
|
328
|
+
|
329
|
+
This endpoint returns a 200 status code when the HTTP server 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 this service, the health status will never refer to the cluster state, only to a single instance.
|
330
|
+
|
331
|
+
### Examples
|
332
|
+
|
333
|
+
```ruby
|
334
|
+
require 'time'
|
335
|
+
require 'ory-oathkeeper-client'
|
336
|
+
|
337
|
+
api_instance = OryHydraClient::ApiApi.new
|
338
|
+
|
339
|
+
begin
|
340
|
+
# Check readiness status
|
341
|
+
result = api_instance.is_instance_ready
|
342
|
+
p result
|
343
|
+
rescue OryHydraClient::ApiError => e
|
344
|
+
puts "Error when calling ApiApi->is_instance_ready: #{e}"
|
345
|
+
end
|
346
|
+
```
|
347
|
+
|
348
|
+
#### Using the is_instance_ready_with_http_info variant
|
349
|
+
|
350
|
+
This returns an Array which contains the response data, status code and headers.
|
351
|
+
|
352
|
+
> <Array(<HealthStatus>, Integer, Hash)> is_instance_ready_with_http_info
|
353
|
+
|
354
|
+
```ruby
|
355
|
+
begin
|
356
|
+
# Check readiness status
|
357
|
+
data, status_code, headers = api_instance.is_instance_ready_with_http_info
|
358
|
+
p status_code # => 2xx
|
359
|
+
p headers # => { ... }
|
360
|
+
p data # => <HealthStatus>
|
361
|
+
rescue OryHydraClient::ApiError => e
|
362
|
+
puts "Error when calling ApiApi->is_instance_ready_with_http_info: #{e}"
|
363
|
+
end
|
364
|
+
```
|
365
|
+
|
366
|
+
### Parameters
|
367
|
+
|
368
|
+
This endpoint does not need any parameter.
|
369
|
+
|
370
|
+
### Return type
|
371
|
+
|
372
|
+
[**HealthStatus**](HealthStatus.md)
|
373
|
+
|
374
|
+
### Authorization
|
375
|
+
|
376
|
+
No authorization required
|
377
|
+
|
378
|
+
### HTTP request headers
|
379
|
+
|
380
|
+
- **Content-Type**: Not defined
|
381
|
+
- **Accept**: application/json
|
382
|
+
|
383
|
+
|
146
384
|
## list_rules
|
147
385
|
|
148
|
-
> Array
|
386
|
+
> <Array<Rule>> list_rules(opts)
|
149
387
|
|
150
388
|
List all rules
|
151
389
|
|
152
390
|
This method returns an array of all rules that are stored in the backend. This is useful if you want to get a full view of what rules you have currently in place.
|
153
391
|
|
154
|
-
###
|
392
|
+
### Examples
|
155
393
|
|
156
394
|
```ruby
|
157
|
-
|
395
|
+
require 'time'
|
158
396
|
require 'ory-oathkeeper-client'
|
159
397
|
|
160
398
|
api_instance = OryHydraClient::ApiApi.new
|
161
399
|
opts = {
|
162
|
-
limit:
|
163
|
-
offset:
|
400
|
+
limit: 789, # Integer | The maximum amount of rules returned.
|
401
|
+
offset: 789 # Integer | The offset from where to start looking.
|
164
402
|
}
|
165
403
|
|
166
404
|
begin
|
167
|
-
#List all rules
|
405
|
+
# List all rules
|
168
406
|
result = api_instance.list_rules(opts)
|
169
407
|
p result
|
170
408
|
rescue OryHydraClient::ApiError => e
|
171
|
-
puts "
|
409
|
+
puts "Error when calling ApiApi->list_rules: #{e}"
|
172
410
|
end
|
173
411
|
```
|
174
412
|
|
175
|
-
|
413
|
+
#### Using the list_rules_with_http_info variant
|
414
|
+
|
415
|
+
This returns an Array which contains the response data, status code and headers.
|
416
|
+
|
417
|
+
> <Array(<Array<Rule>>, Integer, Hash)> list_rules_with_http_info(opts)
|
418
|
+
|
419
|
+
```ruby
|
420
|
+
begin
|
421
|
+
# List all rules
|
422
|
+
data, status_code, headers = api_instance.list_rules_with_http_info(opts)
|
423
|
+
p status_code # => 2xx
|
424
|
+
p headers # => { ... }
|
425
|
+
p data # => <Array<Rule>>
|
426
|
+
rescue OryHydraClient::ApiError => e
|
427
|
+
puts "Error when calling ApiApi->list_rules_with_http_info: #{e}"
|
428
|
+
end
|
429
|
+
```
|
176
430
|
|
431
|
+
### Parameters
|
177
432
|
|
178
|
-
Name | Type | Description
|
179
|
-
|
180
|
-
**limit** | **Integer
|
181
|
-
**offset** | **Integer
|
433
|
+
| Name | Type | Description | Notes |
|
434
|
+
| ---- | ---- | ----------- | ----- |
|
435
|
+
| **limit** | **Integer** | The maximum amount of rules returned. | [optional] |
|
436
|
+
| **offset** | **Integer** | The offset from where to start looking. | [optional] |
|
182
437
|
|
183
438
|
### Return type
|
184
439
|
|