ory-keto-client 0.5.4.alpha1 → 0.6.0.alpha6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +22 -31
  4. data/docs/AddOryAccessControlPolicyRoleMembersBody.md +8 -7
  5. data/docs/AuthorizationResult.md +8 -7
  6. data/docs/EnginesApi.md +319 -129
  7. data/docs/ExpandTree.md +22 -0
  8. data/docs/GetCheckResponse.md +18 -0
  9. data/docs/GetRelationTuplesResponse.md +20 -0
  10. data/docs/HealthApi.md +50 -15
  11. data/docs/HealthNotReadyStatus.md +8 -7
  12. data/docs/HealthStatus.md +8 -7
  13. data/docs/InlineResponse400.md +28 -0
  14. data/docs/InlineResponse500.md +18 -17
  15. data/docs/InternalRelationTuple.md +24 -0
  16. data/docs/OryAccessControlPolicy.md +20 -19
  17. data/docs/OryAccessControlPolicyAllowedInput.md +14 -13
  18. data/docs/OryAccessControlPolicyRole.md +10 -9
  19. data/docs/PatchDelta.md +20 -0
  20. data/docs/ReadApi.md +297 -0
  21. data/docs/Version.md +8 -7
  22. data/docs/VersionApi.md +26 -9
  23. data/docs/WriteApi.md +212 -0
  24. data/lib/ory-keto-client.rb +10 -9
  25. data/lib/ory-keto-client/api/engines_api.rb +46 -35
  26. data/lib/ory-keto-client/api/health_api.rb +10 -8
  27. data/lib/ory-keto-client/api/read_api.rb +324 -0
  28. data/lib/ory-keto-client/api/version_api.rb +6 -5
  29. data/lib/ory-keto-client/api/write_api.rb +225 -0
  30. data/lib/ory-keto-client/api_client.rb +51 -47
  31. data/lib/ory-keto-client/api_error.rb +2 -2
  32. data/lib/ory-keto-client/configuration.rb +40 -11
  33. data/lib/ory-keto-client/models/add_ory_access_control_policy_role_members_body.rb +20 -8
  34. data/lib/ory-keto-client/models/authorization_result.rb +20 -8
  35. data/lib/ory-keto-client/models/expand_tree.rb +282 -0
  36. data/lib/ory-keto-client/models/get_check_response.rb +225 -0
  37. data/lib/ory-keto-client/models/get_relation_tuples_response.rb +230 -0
  38. data/lib/ory-keto-client/models/health_not_ready_status.rb +20 -8
  39. data/lib/ory-keto-client/models/health_status.rb +20 -8
  40. data/lib/ory-keto-client/models/inline_response400.rb +265 -0
  41. data/lib/ory-keto-client/models/inline_response500.rb +21 -9
  42. data/lib/ory-keto-client/models/internal_relation_tuple.rb +268 -0
  43. data/lib/ory-keto-client/models/ory_access_control_policy.rb +22 -12
  44. data/lib/ory-keto-client/models/ory_access_control_policy_allowed_input.rb +22 -12
  45. data/lib/ory-keto-client/models/ory_access_control_policy_role.rb +20 -8
  46. data/lib/ory-keto-client/models/patch_delta.rb +227 -0
  47. data/lib/ory-keto-client/models/version.rb +20 -8
  48. data/lib/ory-keto-client/version.rb +3 -3
  49. data/ory-keto-client.gemspec +4 -5
  50. data/spec/api/read_api_spec.rb +94 -0
  51. data/spec/api/write_api_spec.rb +74 -0
  52. data/spec/api_client_spec.rb +4 -4
  53. data/spec/configuration_spec.rb +3 -3
  54. data/spec/models/expand_tree_spec.rb +50 -0
  55. data/spec/models/get_check_response_spec.rb +34 -0
  56. data/spec/models/get_relation_tuples_response_spec.rb +40 -0
  57. data/spec/models/inline_response400_spec.rb +64 -0
  58. data/spec/models/internal_relation_tuple_spec.rb +52 -0
  59. data/spec/models/patch_delta_spec.rb +40 -0
  60. data/spec/spec_helper.rb +3 -3
  61. metadata +92 -80
@@ -0,0 +1,20 @@
1
+ # OryHydraClient::PatchDelta
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **action** | **String** | | [optional] |
8
+ | **relation_tuple** | [**InternalRelationTuple**](InternalRelationTuple.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ory-keto-client'
14
+
15
+ instance = OryHydraClient::PatchDelta.new(
16
+ action: null,
17
+ relation_tuple: null
18
+ )
19
+ ```
20
+
data/docs/ReadApi.md ADDED
@@ -0,0 +1,297 @@
1
+ # OryHydraClient::ReadApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_check**](ReadApi.md#get_check) | **GET** /check | Check a relation tuple |
8
+ | [**get_expand**](ReadApi.md#get_expand) | **GET** /expand | Expand a Relation Tuple |
9
+ | [**get_relation_tuples**](ReadApi.md#get_relation_tuples) | **GET** /relation-tuples | Query relation tuples |
10
+ | [**post_check**](ReadApi.md#post_check) | **POST** /check | Check a relation tuple |
11
+
12
+
13
+ ## get_check
14
+
15
+ > <GetCheckResponse> get_check(namespace, object, relation, opts)
16
+
17
+ Check a relation tuple
18
+
19
+ To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'ory-keto-client'
26
+
27
+ api_instance = OryHydraClient::ReadApi.new
28
+ namespace = 'namespace_example' # String | Namespace of the Relation Tuple
29
+ object = 'object_example' # String | Object of the Relation Tuple
30
+ relation = 'relation_example' # String | Relation of the Relation Tuple
31
+ opts = {
32
+ subject: 'subject_example' # String | Subject of the Relation Tuple The subject follows the subject string encoding format.
33
+ }
34
+
35
+ begin
36
+ # Check a relation tuple
37
+ result = api_instance.get_check(namespace, object, relation, opts)
38
+ p result
39
+ rescue OryHydraClient::ApiError => e
40
+ puts "Error when calling ReadApi->get_check: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the get_check_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<GetCheckResponse>, Integer, Hash)> get_check_with_http_info(namespace, object, relation, opts)
49
+
50
+ ```ruby
51
+ begin
52
+ # Check a relation tuple
53
+ data, status_code, headers = api_instance.get_check_with_http_info(namespace, object, relation, opts)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <GetCheckResponse>
57
+ rescue OryHydraClient::ApiError => e
58
+ puts "Error when calling ReadApi->get_check_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **namespace** | **String** | Namespace of the Relation Tuple | |
67
+ | **object** | **String** | Object of the Relation Tuple | |
68
+ | **relation** | **String** | Relation of the Relation Tuple | |
69
+ | **subject** | **String** | Subject of the Relation Tuple The subject follows the subject string encoding format. | [optional] |
70
+
71
+ ### Return type
72
+
73
+ [**GetCheckResponse**](GetCheckResponse.md)
74
+
75
+ ### Authorization
76
+
77
+ No authorization required
78
+
79
+ ### HTTP request headers
80
+
81
+ - **Content-Type**: Not defined
82
+ - **Accept**: application/json
83
+
84
+
85
+ ## get_expand
86
+
87
+ > <ExpandTree> get_expand(namespace, object, relation, opts)
88
+
89
+ Expand a Relation Tuple
90
+
91
+ Use this endpoint to expand a relation tuple.
92
+
93
+ ### Examples
94
+
95
+ ```ruby
96
+ require 'time'
97
+ require 'ory-keto-client'
98
+
99
+ api_instance = OryHydraClient::ReadApi.new
100
+ namespace = 'namespace_example' # String | Namespace of the Relation Tuple
101
+ object = 'object_example' # String | Object of the Relation Tuple
102
+ relation = 'relation_example' # String | Relation of the Relation Tuple
103
+ opts = {
104
+ max_depth: 789 # Integer |
105
+ }
106
+
107
+ begin
108
+ # Expand a Relation Tuple
109
+ result = api_instance.get_expand(namespace, object, relation, opts)
110
+ p result
111
+ rescue OryHydraClient::ApiError => e
112
+ puts "Error when calling ReadApi->get_expand: #{e}"
113
+ end
114
+ ```
115
+
116
+ #### Using the get_expand_with_http_info variant
117
+
118
+ This returns an Array which contains the response data, status code and headers.
119
+
120
+ > <Array(<ExpandTree>, Integer, Hash)> get_expand_with_http_info(namespace, object, relation, opts)
121
+
122
+ ```ruby
123
+ begin
124
+ # Expand a Relation Tuple
125
+ data, status_code, headers = api_instance.get_expand_with_http_info(namespace, object, relation, opts)
126
+ p status_code # => 2xx
127
+ p headers # => { ... }
128
+ p data # => <ExpandTree>
129
+ rescue OryHydraClient::ApiError => e
130
+ puts "Error when calling ReadApi->get_expand_with_http_info: #{e}"
131
+ end
132
+ ```
133
+
134
+ ### Parameters
135
+
136
+ | Name | Type | Description | Notes |
137
+ | ---- | ---- | ----------- | ----- |
138
+ | **namespace** | **String** | Namespace of the Relation Tuple | |
139
+ | **object** | **String** | Object of the Relation Tuple | |
140
+ | **relation** | **String** | Relation of the Relation Tuple | |
141
+ | **max_depth** | **Integer** | | [optional] |
142
+
143
+ ### Return type
144
+
145
+ [**ExpandTree**](ExpandTree.md)
146
+
147
+ ### Authorization
148
+
149
+ No authorization required
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## get_relation_tuples
158
+
159
+ > <GetRelationTuplesResponse> get_relation_tuples(namespace, opts)
160
+
161
+ Query relation tuples
162
+
163
+ Get all relation tuples that match the query. Only the namespace field is required.
164
+
165
+ ### Examples
166
+
167
+ ```ruby
168
+ require 'time'
169
+ require 'ory-keto-client'
170
+
171
+ api_instance = OryHydraClient::ReadApi.new
172
+ namespace = 'namespace_example' # String |
173
+ opts = {
174
+ object: 'object_example', # String |
175
+ relation: 'relation_example', # String |
176
+ subject: 'subject_example', # String |
177
+ page_token: 'page_token_example', # String |
178
+ page_size: 789 # Integer |
179
+ }
180
+
181
+ begin
182
+ # Query relation tuples
183
+ result = api_instance.get_relation_tuples(namespace, opts)
184
+ p result
185
+ rescue OryHydraClient::ApiError => e
186
+ puts "Error when calling ReadApi->get_relation_tuples: #{e}"
187
+ end
188
+ ```
189
+
190
+ #### Using the get_relation_tuples_with_http_info variant
191
+
192
+ This returns an Array which contains the response data, status code and headers.
193
+
194
+ > <Array(<GetRelationTuplesResponse>, Integer, Hash)> get_relation_tuples_with_http_info(namespace, opts)
195
+
196
+ ```ruby
197
+ begin
198
+ # Query relation tuples
199
+ data, status_code, headers = api_instance.get_relation_tuples_with_http_info(namespace, opts)
200
+ p status_code # => 2xx
201
+ p headers # => { ... }
202
+ p data # => <GetRelationTuplesResponse>
203
+ rescue OryHydraClient::ApiError => e
204
+ puts "Error when calling ReadApi->get_relation_tuples_with_http_info: #{e}"
205
+ end
206
+ ```
207
+
208
+ ### Parameters
209
+
210
+ | Name | Type | Description | Notes |
211
+ | ---- | ---- | ----------- | ----- |
212
+ | **namespace** | **String** | | |
213
+ | **object** | **String** | | [optional] |
214
+ | **relation** | **String** | | [optional] |
215
+ | **subject** | **String** | | [optional] |
216
+ | **page_token** | **String** | | [optional] |
217
+ | **page_size** | **Integer** | | [optional] |
218
+
219
+ ### Return type
220
+
221
+ [**GetRelationTuplesResponse**](GetRelationTuplesResponse.md)
222
+
223
+ ### Authorization
224
+
225
+ No authorization required
226
+
227
+ ### HTTP request headers
228
+
229
+ - **Content-Type**: Not defined
230
+ - **Accept**: application/json
231
+
232
+
233
+ ## post_check
234
+
235
+ > <GetCheckResponse> post_check(opts)
236
+
237
+ Check a relation tuple
238
+
239
+ To learn how relation tuples and the check works, head over to [the documentation](../concepts/relation-tuples.mdx).
240
+
241
+ ### Examples
242
+
243
+ ```ruby
244
+ require 'time'
245
+ require 'ory-keto-client'
246
+
247
+ api_instance = OryHydraClient::ReadApi.new
248
+ opts = {
249
+ payload: OryHydraClient::InternalRelationTuple.new({namespace: 'namespace_example', object: 'object_example', relation: 'relation_example', subject: 'subject_example'}) # InternalRelationTuple |
250
+ }
251
+
252
+ begin
253
+ # Check a relation tuple
254
+ result = api_instance.post_check(opts)
255
+ p result
256
+ rescue OryHydraClient::ApiError => e
257
+ puts "Error when calling ReadApi->post_check: #{e}"
258
+ end
259
+ ```
260
+
261
+ #### Using the post_check_with_http_info variant
262
+
263
+ This returns an Array which contains the response data, status code and headers.
264
+
265
+ > <Array(<GetCheckResponse>, Integer, Hash)> post_check_with_http_info(opts)
266
+
267
+ ```ruby
268
+ begin
269
+ # Check a relation tuple
270
+ data, status_code, headers = api_instance.post_check_with_http_info(opts)
271
+ p status_code # => 2xx
272
+ p headers # => { ... }
273
+ p data # => <GetCheckResponse>
274
+ rescue OryHydraClient::ApiError => e
275
+ puts "Error when calling ReadApi->post_check_with_http_info: #{e}"
276
+ end
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+ | Name | Type | Description | Notes |
282
+ | ---- | ---- | ----------- | ----- |
283
+ | **payload** | [**InternalRelationTuple**](InternalRelationTuple.md) | | [optional] |
284
+
285
+ ### Return type
286
+
287
+ [**GetCheckResponse**](GetCheckResponse.md)
288
+
289
+ ### Authorization
290
+
291
+ No authorization required
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: application/json
296
+ - **Accept**: application/json
297
+
data/docs/Version.md CHANGED
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **version** | **String** | Version is the service&#39;s version. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **version** | **String** | Version is the service&#39;s version. | [optional] |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'OryHydraClient'
12
+ require 'ory-keto-client'
13
13
 
14
- instance = OryHydraClient::Version.new(version: null)
14
+ instance = OryHydraClient::Version.new(
15
+ version: null
16
+ )
15
17
  ```
16
18
 
17
-
data/docs/VersionApi.md CHANGED
@@ -2,34 +2,51 @@
2
2
 
3
3
  All URIs are relative to *http://localhost*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_version**](VersionApi.md#get_version) | **GET** /version | Get service version
8
-
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_version**](VersionApi.md#get_version) | **GET** /version | Get service version |
9
8
 
10
9
 
11
10
  ## get_version
12
11
 
13
- > Version get_version
12
+ > <Version> get_version
14
13
 
15
14
  Get service version
16
15
 
17
16
  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.
18
17
 
19
- ### Example
18
+ ### Examples
20
19
 
21
20
  ```ruby
22
- # load the gem
21
+ require 'time'
23
22
  require 'ory-keto-client'
24
23
 
25
24
  api_instance = OryHydraClient::VersionApi.new
26
25
 
27
26
  begin
28
- #Get service version
27
+ # Get service version
29
28
  result = api_instance.get_version
30
29
  p result
31
30
  rescue OryHydraClient::ApiError => e
32
- puts "Exception when calling VersionApi->get_version: #{e}"
31
+ puts "Error when calling VersionApi->get_version: #{e}"
32
+ end
33
+ ```
34
+
35
+ #### Using the get_version_with_http_info variant
36
+
37
+ This returns an Array which contains the response data, status code and headers.
38
+
39
+ > <Array(<Version>, Integer, Hash)> get_version_with_http_info
40
+
41
+ ```ruby
42
+ begin
43
+ # Get service version
44
+ data, status_code, headers = api_instance.get_version_with_http_info
45
+ p status_code # => 2xx
46
+ p headers # => { ... }
47
+ p data # => <Version>
48
+ rescue OryHydraClient::ApiError => e
49
+ puts "Error when calling VersionApi->get_version_with_http_info: #{e}"
33
50
  end
34
51
  ```
35
52
 
data/docs/WriteApi.md ADDED
@@ -0,0 +1,212 @@
1
+ # OryHydraClient::WriteApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_relation_tuple**](WriteApi.md#create_relation_tuple) | **PUT** /relation-tuples | Create a Relation Tuple |
8
+ | [**delete_relation_tuple**](WriteApi.md#delete_relation_tuple) | **DELETE** /relation-tuples | Delete a Relation Tuple |
9
+ | [**patch_relation_tuples**](WriteApi.md#patch_relation_tuples) | **PATCH** /relation-tuples | Patch Multiple Relation Tuples |
10
+
11
+
12
+ ## create_relation_tuple
13
+
14
+ > <InternalRelationTuple> create_relation_tuple(opts)
15
+
16
+ Create a Relation Tuple
17
+
18
+ Use this endpoint to create a relation tuple.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'ory-keto-client'
25
+
26
+ api_instance = OryHydraClient::WriteApi.new
27
+ opts = {
28
+ payload: OryHydraClient::InternalRelationTuple.new({namespace: 'namespace_example', object: 'object_example', relation: 'relation_example', subject: 'subject_example'}) # InternalRelationTuple |
29
+ }
30
+
31
+ begin
32
+ # Create a Relation Tuple
33
+ result = api_instance.create_relation_tuple(opts)
34
+ p result
35
+ rescue OryHydraClient::ApiError => e
36
+ puts "Error when calling WriteApi->create_relation_tuple: #{e}"
37
+ end
38
+ ```
39
+
40
+ #### Using the create_relation_tuple_with_http_info variant
41
+
42
+ This returns an Array which contains the response data, status code and headers.
43
+
44
+ > <Array(<InternalRelationTuple>, Integer, Hash)> create_relation_tuple_with_http_info(opts)
45
+
46
+ ```ruby
47
+ begin
48
+ # Create a Relation Tuple
49
+ data, status_code, headers = api_instance.create_relation_tuple_with_http_info(opts)
50
+ p status_code # => 2xx
51
+ p headers # => { ... }
52
+ p data # => <InternalRelationTuple>
53
+ rescue OryHydraClient::ApiError => e
54
+ puts "Error when calling WriteApi->create_relation_tuple_with_http_info: #{e}"
55
+ end
56
+ ```
57
+
58
+ ### Parameters
59
+
60
+ | Name | Type | Description | Notes |
61
+ | ---- | ---- | ----------- | ----- |
62
+ | **payload** | [**InternalRelationTuple**](InternalRelationTuple.md) | | [optional] |
63
+
64
+ ### Return type
65
+
66
+ [**InternalRelationTuple**](InternalRelationTuple.md)
67
+
68
+ ### Authorization
69
+
70
+ No authorization required
71
+
72
+ ### HTTP request headers
73
+
74
+ - **Content-Type**: application/json
75
+ - **Accept**: application/json
76
+
77
+
78
+ ## delete_relation_tuple
79
+
80
+ > delete_relation_tuple(namespace, object, relation, opts)
81
+
82
+ Delete a Relation Tuple
83
+
84
+ Use this endpoint to delete a relation tuple.
85
+
86
+ ### Examples
87
+
88
+ ```ruby
89
+ require 'time'
90
+ require 'ory-keto-client'
91
+
92
+ api_instance = OryHydraClient::WriteApi.new
93
+ namespace = 'namespace_example' # String | Namespace of the Relation Tuple
94
+ object = 'object_example' # String | Object of the Relation Tuple
95
+ relation = 'relation_example' # String | Relation of the Relation Tuple
96
+ opts = {
97
+ subject: 'subject_example' # String | Subject of the Relation Tuple The subject follows the subject string encoding format.
98
+ }
99
+
100
+ begin
101
+ # Delete a Relation Tuple
102
+ api_instance.delete_relation_tuple(namespace, object, relation, opts)
103
+ rescue OryHydraClient::ApiError => e
104
+ puts "Error when calling WriteApi->delete_relation_tuple: #{e}"
105
+ end
106
+ ```
107
+
108
+ #### Using the delete_relation_tuple_with_http_info variant
109
+
110
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
111
+
112
+ > <Array(nil, Integer, Hash)> delete_relation_tuple_with_http_info(namespace, object, relation, opts)
113
+
114
+ ```ruby
115
+ begin
116
+ # Delete a Relation Tuple
117
+ data, status_code, headers = api_instance.delete_relation_tuple_with_http_info(namespace, object, relation, opts)
118
+ p status_code # => 2xx
119
+ p headers # => { ... }
120
+ p data # => nil
121
+ rescue OryHydraClient::ApiError => e
122
+ puts "Error when calling WriteApi->delete_relation_tuple_with_http_info: #{e}"
123
+ end
124
+ ```
125
+
126
+ ### Parameters
127
+
128
+ | Name | Type | Description | Notes |
129
+ | ---- | ---- | ----------- | ----- |
130
+ | **namespace** | **String** | Namespace of the Relation Tuple | |
131
+ | **object** | **String** | Object of the Relation Tuple | |
132
+ | **relation** | **String** | Relation of the Relation Tuple | |
133
+ | **subject** | **String** | Subject of the Relation Tuple The subject follows the subject string encoding format. | [optional] |
134
+
135
+ ### Return type
136
+
137
+ nil (empty response body)
138
+
139
+ ### Authorization
140
+
141
+ No authorization required
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: Not defined
146
+ - **Accept**: application/json
147
+
148
+
149
+ ## patch_relation_tuples
150
+
151
+ > patch_relation_tuples(opts)
152
+
153
+ Patch Multiple Relation Tuples
154
+
155
+ Use this endpoint to patch one or more relation tuples.
156
+
157
+ ### Examples
158
+
159
+ ```ruby
160
+ require 'time'
161
+ require 'ory-keto-client'
162
+
163
+ api_instance = OryHydraClient::WriteApi.new
164
+ opts = {
165
+ payload: [OryHydraClient::PatchDelta.new] # Array<PatchDelta> |
166
+ }
167
+
168
+ begin
169
+ # Patch Multiple Relation Tuples
170
+ api_instance.patch_relation_tuples(opts)
171
+ rescue OryHydraClient::ApiError => e
172
+ puts "Error when calling WriteApi->patch_relation_tuples: #{e}"
173
+ end
174
+ ```
175
+
176
+ #### Using the patch_relation_tuples_with_http_info variant
177
+
178
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
179
+
180
+ > <Array(nil, Integer, Hash)> patch_relation_tuples_with_http_info(opts)
181
+
182
+ ```ruby
183
+ begin
184
+ # Patch Multiple Relation Tuples
185
+ data, status_code, headers = api_instance.patch_relation_tuples_with_http_info(opts)
186
+ p status_code # => 2xx
187
+ p headers # => { ... }
188
+ p data # => nil
189
+ rescue OryHydraClient::ApiError => e
190
+ puts "Error when calling WriteApi->patch_relation_tuples_with_http_info: #{e}"
191
+ end
192
+ ```
193
+
194
+ ### Parameters
195
+
196
+ | Name | Type | Description | Notes |
197
+ | ---- | ---- | ----------- | ----- |
198
+ | **payload** | [**Array&lt;PatchDelta&gt;**](PatchDelta.md) | | [optional] |
199
+
200
+ ### Return type
201
+
202
+ nil (empty response body)
203
+
204
+ ### Authorization
205
+
206
+ No authorization required
207
+
208
+ ### HTTP request headers
209
+
210
+ - **Content-Type**: application/json
211
+ - **Accept**: application/json
212
+