memori-client 0.1.9 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. checksums.yaml +4 -4
  2. data/backend_overrides.jsonc +4 -0
  3. data/engine_overrides.jsonc +3 -0
  4. data/lib/memori_client/client.rb +49 -0
  5. data/lib/memori_client/client_factory.rb +105 -0
  6. data/lib/memori_client/engine/hmac_helper.rb +1 -1
  7. data/lib/memori_client/http_client.rb +4 -17
  8. data/lib/memori_client/operation.rb +132 -0
  9. data/lib/memori_client/proxy/client.rb +115 -0
  10. data/lib/memori_client/resource.rb +174 -26
  11. data/lib/memori_client/resource_proxy.rb +25 -0
  12. data/lib/memori_client/response.rb +48 -0
  13. data/lib/memori_client/swagger/get_module_and_method.rb +44 -0
  14. data/lib/memori_client/swagger/process_specification.rb +127 -0
  15. data/lib/memori_client/swagger/schema_store.rb +26 -0
  16. data/lib/memori_client.rb +14 -42
  17. data/lib/tasks/memori_client.rake +0 -7
  18. metadata +17 -90
  19. data/doc/MemoriClient::Backend::V1::Asset.md +0 -117
  20. data/doc/MemoriClient::Backend::V2::ActionLog.md +0 -37
  21. data/doc/MemoriClient::Backend::V2::Analysis.md +0 -39
  22. data/doc/MemoriClient::Backend::V2::Asset.md +0 -102
  23. data/doc/MemoriClient::Backend::V2::Badge.md +0 -64
  24. data/doc/MemoriClient::Backend::V2::CompletionConfig.md +0 -115
  25. data/doc/MemoriClient::Backend::V2::ConsumptionLog.md +0 -57
  26. data/doc/MemoriClient::Backend::V2::ImportExport.md +0 -180
  27. data/doc/MemoriClient::Backend::V2::Integration.md +0 -117
  28. data/doc/MemoriClient::Backend::V2::Invitation.md +0 -179
  29. data/doc/MemoriClient::Backend::V2::Memori.md +0 -394
  30. data/doc/MemoriClient::Backend::V2::MemoriList.md +0 -147
  31. data/doc/MemoriClient::Backend::V2::Notification.md +0 -31
  32. data/doc/MemoriClient::Backend::V2::Process.md +0 -64
  33. data/doc/MemoriClient::Backend::V2::Tenant.md +0 -142
  34. data/doc/MemoriClient::Backend::V2::User.md +0 -647
  35. data/doc/MemoriClient::Engine::V2::ChatLog.md +0 -82
  36. data/doc/MemoriClient::Engine::V2::ContextVar.md +0 -46
  37. data/doc/MemoriClient::Engine::V2::CorrelationPair.md +0 -72
  38. data/doc/MemoriClient::Engine::V2::CustomDictionary.md +0 -108
  39. data/doc/MemoriClient::Engine::V2::Dialog.md +0 -152
  40. data/doc/MemoriClient::Engine::V2::EventLog.md +0 -85
  41. data/doc/MemoriClient::Engine::V2::ExpertReference.md +0 -116
  42. data/doc/MemoriClient::Engine::V2::Function.md +0 -140
  43. data/doc/MemoriClient::Engine::V2::Intent.md +0 -225
  44. data/doc/MemoriClient::Engine::V2::LocalizationKey.md +0 -105
  45. data/doc/MemoriClient::Engine::V2::Medium.md +0 -118
  46. data/doc/MemoriClient::Engine::V2::Memory.md +0 -244
  47. data/doc/MemoriClient::Engine::V2::NLP.md +0 -100
  48. data/doc/MemoriClient::Engine::V2::Person.md +0 -114
  49. data/doc/MemoriClient::Engine::V2::Search.md +0 -151
  50. data/doc/MemoriClient::Engine::V2::Session.md +0 -55
  51. data/doc/MemoriClient::Engine::V2::Stat.md +0 -18
  52. data/doc/MemoriClient::Engine::V2::Topic.md +0 -80
  53. data/doc/MemoriClient::Engine::V2::UnansweredQuestion.md +0 -75
  54. data/doc/MemoriClient::Engine::V2::User.md +0 -140
  55. data/doc/MemoriClient::Engine::V2::WebHook.md +0 -67
  56. data/lib/memori_client/backend/resource.rb +0 -39
  57. data/lib/memori_client/backend/resources.rb +0 -16
  58. data/lib/memori_client/backend/v1/asset.rb +0 -120
  59. data/lib/memori_client/backend/v2/action_log.rb +0 -44
  60. data/lib/memori_client/backend/v2/analysis.rb +0 -54
  61. data/lib/memori_client/backend/v2/asset.rb +0 -130
  62. data/lib/memori_client/backend/v2/badge.rb +0 -77
  63. data/lib/memori_client/backend/v2/completion_config.rb +0 -202
  64. data/lib/memori_client/backend/v2/consumption_log.rb +0 -70
  65. data/lib/memori_client/backend/v2/import_export.rb +0 -327
  66. data/lib/memori_client/backend/v2/integration.rb +0 -180
  67. data/lib/memori_client/backend/v2/invitation.rb +0 -252
  68. data/lib/memori_client/backend/v2/memori.rb +0 -954
  69. data/lib/memori_client/backend/v2/memori_list.rb +0 -152
  70. data/lib/memori_client/backend/v2/notification.rb +0 -32
  71. data/lib/memori_client/backend/v2/process.rb +0 -70
  72. data/lib/memori_client/backend/v2/tenant.rb +0 -293
  73. data/lib/memori_client/backend/v2/user.rb +0 -1520
  74. data/lib/memori_client/configuration.rb +0 -20
  75. data/lib/memori_client/engine/resource.rb +0 -13
  76. data/lib/memori_client/engine/resources.rb +0 -21
  77. data/lib/memori_client/engine/v2/chat_log.rb +0 -92
  78. data/lib/memori_client/engine/v2/completion_log.rb +0 -17
  79. data/lib/memori_client/engine/v2/context_var.rb +0 -48
  80. data/lib/memori_client/engine/v2/correlation_pair.rb +0 -99
  81. data/lib/memori_client/engine/v2/custom_dictionary.rb +0 -152
  82. data/lib/memori_client/engine/v2/dialog.rb +0 -223
  83. data/lib/memori_client/engine/v2/event_log.rb +0 -98
  84. data/lib/memori_client/engine/v2/expert_reference.rb +0 -176
  85. data/lib/memori_client/engine/v2/function.rb +0 -220
  86. data/lib/memori_client/engine/v2/intent.rb +0 -336
  87. data/lib/memori_client/engine/v2/localization_key.rb +0 -144
  88. data/lib/memori_client/engine/v2/medium.rb +0 -178
  89. data/lib/memori_client/engine/v2/memori.rb +0 -329
  90. data/lib/memori_client/engine/v2/memory.rb +0 -477
  91. data/lib/memori_client/engine/v2/nlp.rb +0 -137
  92. data/lib/memori_client/engine/v2/person.rb +0 -170
  93. data/lib/memori_client/engine/v2/private/memori.rb +0 -17
  94. data/lib/memori_client/engine/v2/private/memori_block.rb +0 -24
  95. data/lib/memori_client/engine/v2/prompted_question.rb +0 -121
  96. data/lib/memori_client/engine/v2/search.rb +0 -318
  97. data/lib/memori_client/engine/v2/session.rb +0 -80
  98. data/lib/memori_client/engine/v2/stat.rb +0 -20
  99. data/lib/memori_client/engine/v2/topic.rb +0 -88
  100. data/lib/memori_client/engine/v2/unanswered_question.rb +0 -108
  101. data/lib/memori_client/engine/v2/user.rb +0 -152
  102. data/lib/memori_client/engine/v2/web_hook.rb +0 -128
@@ -1,336 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/Intents/{strSessionID}`
4
- #
5
- # Lists all Intent objects.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # `list_intents(strSessionID:)`
11
- def self.list_intents(strSessionID:)
12
- args = build_arguments(binding)
13
-
14
- exec_http_request('get', '/memori/v2/Intents/{strSessionID}', **args)
15
- end
16
-
17
- # `GET /memori/v2/Intents/{strSessionID}/{from}/{howMany}`
18
- #
19
- # Lists Intent objects with pagination.
20
- #
21
- #
22
- # @param [string] strSessionID The session ID. required
23
- #
24
- # @param [integer] from The 0-based index of the first Intent object to list. required
25
- #
26
- # @param [integer] howMany The number of the Intent objects to list. required
27
- #
28
- # `list_intents_paginated(strSessionID:, from:, howMany:)`
29
- def self.list_intents_paginated(strSessionID:, from:, howMany:)
30
- args = build_arguments(binding)
31
-
32
- exec_http_request('get', '/memori/v2/Intents/{strSessionID}/{from}/{howMany}', **args)
33
- end
34
-
35
- # `GET /memori/v2/Intent/{strSessionID}/{strIntentID}`
36
- #
37
- # Gets the details of an Intent object.
38
- #
39
- #
40
- # @param [string] strSessionID The session ID. required
41
- #
42
- # @param [string] strIntentID The Intent object ID. required
43
- #
44
- # `get_intent(strSessionID:, strIntentID:)`
45
- def self.get_intent(strSessionID:, strIntentID:)
46
- args = build_arguments(binding)
47
-
48
- exec_http_request('get', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
49
- end
50
-
51
- # `PATCH /memori/v2/Intent/{strSessionID}/{strIntentID}`
52
- #
53
- # Updates an existing Intent object.
54
- #
55
- #
56
- # @param [string] strSessionID The session ID. required
57
- #
58
- # @param [string] strIntentID The Intent object ID. required
59
- #
60
- # @param [Hash] payload request payload. optional
61
- #
62
- # @param [String] payload.intentID . optional
63
- #
64
- # @param [String] payload.intentType . optional
65
- #
66
- # @param [String] payload.name . optional
67
- #
68
- # @param [Array] payload.utterances . optional
69
- #
70
- # @param [Boolean] payload.timeoutIntent . optional
71
- #
72
- # @param [String] payload.webHook . optional
73
- #
74
- # @param [Number] payload.validityMinutes . optional
75
- #
76
- # @param [String] payload.creationTimestamp . optional
77
- #
78
- # @param [String] payload.creationSessionID . optional
79
- #
80
- # @param [String] payload.lastChangeTimestamp . optional
81
- #
82
- # @param [String] payload.lastChangeSessionID . optional
83
- #
84
- # `update_intent(strSessionID:, strIntentID:, payload: {})`
85
- def self.update_intent(strSessionID:, strIntentID:, payload: {})
86
- args = build_arguments(binding)
87
- payload_keys = [
88
- 'creationSessionID',
89
- 'creationTimestamp',
90
- 'intentID',
91
- 'intentType',
92
- 'lastChangeSessionID',
93
- 'lastChangeTimestamp',
94
- 'name',
95
- 'timeoutIntent',
96
- 'utterances',
97
- 'validityMinutes',
98
- 'webHook',
99
- ]
100
- payload_required_keys = %w[]
101
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
102
-
103
- exec_http_request('patch', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
104
- end
105
-
106
- # `DELETE /memori/v2/Intent/{strSessionID}/{strIntentID}`
107
- #
108
- # Removes an existing Intent object.
109
- #
110
- #
111
- # @param [string] strSessionID The session ID. required
112
- #
113
- # @param [string] strIntentID The Intent object ID. required
114
- #
115
- # `remove_intent(strSessionID:, strIntentID:)`
116
- def self.remove_intent(strSessionID:, strIntentID:)
117
- args = build_arguments(binding)
118
-
119
- exec_http_request('delete', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
120
- end
121
-
122
- # `POST /memori/v2/Intent/{strSessionID}`
123
- #
124
- # Adds a new Intent object.
125
- #
126
- #
127
- # @param [string] strSessionID The session ID. required
128
- #
129
- # @param [Hash] payload request payload. optional
130
- #
131
- # @param [String] payload.intentID . optional
132
- #
133
- # @param [String] payload.intentType . optional
134
- #
135
- # @param [String] payload.name . optional
136
- #
137
- # @param [Array] payload.utterances . optional
138
- #
139
- # @param [Boolean] payload.timeoutIntent . optional
140
- #
141
- # @param [String] payload.webHook . optional
142
- #
143
- # @param [Number] payload.validityMinutes . optional
144
- #
145
- # @param [String] payload.creationTimestamp . optional
146
- #
147
- # @param [String] payload.creationSessionID . optional
148
- #
149
- # @param [String] payload.lastChangeTimestamp . optional
150
- #
151
- # @param [String] payload.lastChangeSessionID . optional
152
- #
153
- # `add_intent(strSessionID:, payload: {})`
154
- def self.add_intent(strSessionID:, payload: {})
155
- args = build_arguments(binding)
156
- payload_keys = [
157
- 'creationSessionID',
158
- 'creationTimestamp',
159
- 'intentID',
160
- 'intentType',
161
- 'lastChangeSessionID',
162
- 'lastChangeTimestamp',
163
- 'name',
164
- 'timeoutIntent',
165
- 'utterances',
166
- 'validityMinutes',
167
- 'webHook',
168
- ]
169
- payload_required_keys = %w[]
170
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
171
-
172
- exec_http_request('post', '/memori/v2/Intent/{strSessionID}', **args)
173
- end
174
-
175
- # `GET /memori/v2/IntentSlots/{strSessionID}`
176
- #
177
- # Lists all Intent Slot objects.
178
- #
179
- #
180
- # @param [string] strSessionID The session ID. required
181
- #
182
- # `list_intent_slots(strSessionID:)`
183
- def self.list_intent_slots(strSessionID:)
184
- args = build_arguments(binding)
185
-
186
- exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}', **args)
187
- end
188
-
189
- # `GET /memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}`
190
- #
191
- # Lists Intent Slot objects with pagination.
192
- #
193
- #
194
- # @param [string] strSessionID The session ID. required
195
- #
196
- # @param [integer] from The 0-based index of the first Intent Slot object to list. required
197
- #
198
- # @param [integer] howMany The number of the Intent Slot objects to list. required
199
- #
200
- # `list_intent_slots_paginated(strSessionID:, from:, howMany:)`
201
- def self.list_intent_slots_paginated(strSessionID:, from:, howMany:)
202
- args = build_arguments(binding)
203
-
204
- exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}', **args)
205
- end
206
-
207
- # `GET /memori/v2/IntentSlot/{strSessionID}/{strSlotID}`
208
- #
209
- # Gets the details of an Intent Slot object.
210
- #
211
- #
212
- # @param [string] strSessionID The session ID. required
213
- #
214
- # @param [string] strSlotID The Intent Slot object ID. required
215
- #
216
- # `get_intent_slot(strSessionID:, strSlotID:)`
217
- def self.get_intent_slot(strSessionID:, strSlotID:)
218
- args = build_arguments(binding)
219
-
220
- exec_http_request('get', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
221
- end
222
-
223
- # `PATCH /memori/v2/IntentSlot/{strSessionID}/{strSlotID}`
224
- #
225
- # Updates an existing Intent Slot object.
226
- #
227
- #
228
- # @param [string] strSessionID The session ID. required
229
- #
230
- # @param [string] strSlotID The Intent Slot object ID. required
231
- #
232
- # @param [Hash] payload request payload. optional
233
- #
234
- # @param [String] payload.intentSlotID . optional
235
- #
236
- # @param [String] payload.name . optional
237
- #
238
- # @param [Array] payload.values . optional
239
- #
240
- # @param [String] payload.webHook . optional
241
- #
242
- # @param [Number] payload.validityMinutes . optional
243
- #
244
- # @param [String] payload.creationTimestamp . optional
245
- #
246
- # @param [String] payload.creationSessionID . optional
247
- #
248
- # @param [String] payload.lastChangeTimestamp . optional
249
- #
250
- # @param [String] payload.lastChangeSessionID . optional
251
- #
252
- # `update_intent_slot(strSessionID:, strSlotID:, payload: {})`
253
- def self.update_intent_slot(strSessionID:, strSlotID:, payload: {})
254
- args = build_arguments(binding)
255
- payload_keys = [
256
- 'creationSessionID',
257
- 'creationTimestamp',
258
- 'intentSlotID',
259
- 'lastChangeSessionID',
260
- 'lastChangeTimestamp',
261
- 'name',
262
- 'validityMinutes',
263
- 'values',
264
- 'webHook',
265
- ]
266
- payload_required_keys = %w[]
267
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
268
-
269
- exec_http_request('patch', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
270
- end
271
-
272
- # `DELETE /memori/v2/IntentSlot/{strSessionID}/{strSlotID}`
273
- #
274
- # Removes an existing Intent Slot object.
275
- #
276
- #
277
- # @param [string] strSessionID The session ID. required
278
- #
279
- # @param [string] strSlotID The Intent Slot object ID. required
280
- #
281
- # `remove_intent_slot(strSessionID:, strSlotID:)`
282
- def self.remove_intent_slot(strSessionID:, strSlotID:)
283
- args = build_arguments(binding)
284
-
285
- exec_http_request('delete', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
286
- end
287
-
288
- # `POST /memori/v2/IntentSlot/{strSessionID}`
289
- #
290
- # Adds a new Intent Slot object.
291
- #
292
- #
293
- # @param [string] strSessionID The session ID. required
294
- #
295
- # @param [Hash] payload request payload. optional
296
- #
297
- # @param [String] payload.intentSlotID . optional
298
- #
299
- # @param [String] payload.name . optional
300
- #
301
- # @param [Array] payload.values . optional
302
- #
303
- # @param [String] payload.webHook . optional
304
- #
305
- # @param [Number] payload.validityMinutes . optional
306
- #
307
- # @param [String] payload.creationTimestamp . optional
308
- #
309
- # @param [String] payload.creationSessionID . optional
310
- #
311
- # @param [String] payload.lastChangeTimestamp . optional
312
- #
313
- # @param [String] payload.lastChangeSessionID . optional
314
- #
315
- # `add_intent_slot(strSessionID:, payload: {})`
316
- def self.add_intent_slot(strSessionID:, payload: {})
317
- args = build_arguments(binding)
318
- payload_keys = [
319
- 'creationSessionID',
320
- 'creationTimestamp',
321
- 'intentSlotID',
322
- 'lastChangeSessionID',
323
- 'lastChangeTimestamp',
324
- 'name',
325
- 'validityMinutes',
326
- 'values',
327
- 'webHook',
328
- ]
329
- payload_required_keys = %w[]
330
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
331
-
332
- exec_http_request('post', '/memori/v2/IntentSlot/{strSessionID}', **args)
333
- end
334
-
335
-
336
- end
@@ -1,144 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::LocalizationKey < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/LocalizationKeys/{strSessionID}`
4
- #
5
- # Lists all Localization Keys.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # `list_localization_keys(strSessionID:)`
11
- def self.list_localization_keys(strSessionID:)
12
- args = build_arguments(binding)
13
-
14
- exec_http_request('get', '/memori/v2/LocalizationKeys/{strSessionID}', **args)
15
- end
16
-
17
- # `GET /memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}`
18
- #
19
- # Lists Localization Keys with pagination.
20
- #
21
- #
22
- # @param [string] strSessionID The session ID. required
23
- #
24
- # @param [integer] from The 0-based index of the first Localization Key to list. required
25
- #
26
- # @param [integer] howMany The number of the Localization Keys to list. required
27
- #
28
- # `list_localization_keys_paginated(strSessionID:, from:, howMany:)`
29
- def self.list_localization_keys_paginated(strSessionID:, from:, howMany:)
30
- args = build_arguments(binding)
31
-
32
- exec_http_request('get', '/memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}', **args)
33
- end
34
-
35
- # `GET /memori/v2/LocalizationKey/{strSessionID}/{strKey}`
36
- #
37
- # Get an existing Localization Key.
38
- #
39
- #
40
- # @param [string] strSessionID The session ID. required
41
- #
42
- # @param [string] strKey The key of the Localization Key. required
43
- #
44
- # `get_localization_key(strSessionID:, strKey:)`
45
- def self.get_localization_key(strSessionID:, strKey:)
46
- args = build_arguments(binding)
47
-
48
- exec_http_request('get', '/memori/v2/LocalizationKey/{strSessionID}/{strKey}', **args)
49
- end
50
-
51
- # `DELETE /memori/v2/LocalizationKey/{strSessionID}/{strKey}`
52
- #
53
- # Removes an existing Localization Key.
54
- #
55
- #
56
- # @param [string] strSessionID The session ID. required
57
- #
58
- # @param [string] strKey The key of the Localization Key. required
59
- #
60
- # `remove_localization_key(strSessionID:, strKey:)`
61
- def self.remove_localization_key(strSessionID:, strKey:)
62
- args = build_arguments(binding)
63
-
64
- exec_http_request('delete', '/memori/v2/LocalizationKey/{strSessionID}/{strKey}', **args)
65
- end
66
-
67
- # `POST /memori/v2/LocalizationKey/{strSessionID}`
68
- #
69
- # Add a new Localization Key.
70
- #
71
- #
72
- # @param [string] strSessionID The session ID. required
73
- #
74
- # @param [Hash] payload request payload. optional
75
- #
76
- # @param [String] payload.key . optional
77
- #
78
- # @param [String] payload.value . optional
79
- #
80
- # @param [String] payload.creationTimestamp . optional
81
- #
82
- # @param [String] payload.creationSessionID . optional
83
- #
84
- # @param [String] payload.lastChangeTimestamp . optional
85
- #
86
- # @param [String] payload.lastChangeSessionID . optional
87
- #
88
- # `add_localization_key(strSessionID:, payload: {})`
89
- def self.add_localization_key(strSessionID:, payload: {})
90
- args = build_arguments(binding)
91
- payload_keys = [
92
- 'creationSessionID',
93
- 'creationTimestamp',
94
- 'key',
95
- 'lastChangeSessionID',
96
- 'lastChangeTimestamp',
97
- 'value',
98
- ]
99
- payload_required_keys = %w[]
100
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
101
-
102
- exec_http_request('post', '/memori/v2/LocalizationKey/{strSessionID}', **args)
103
- end
104
-
105
- # `PATCH /memori/v2/LocalizationKey/{strSessionID}`
106
- #
107
- # Updates an existing Localization Key.
108
- #
109
- #
110
- # @param [string] strSessionID The session ID. required
111
- #
112
- # @param [Hash] payload request payload. optional
113
- #
114
- # @param [String] payload.key . optional
115
- #
116
- # @param [String] payload.value . optional
117
- #
118
- # @param [String] payload.creationTimestamp . optional
119
- #
120
- # @param [String] payload.creationSessionID . optional
121
- #
122
- # @param [String] payload.lastChangeTimestamp . optional
123
- #
124
- # @param [String] payload.lastChangeSessionID . optional
125
- #
126
- # `update_localization_key(strSessionID:, payload: {})`
127
- def self.update_localization_key(strSessionID:, payload: {})
128
- args = build_arguments(binding)
129
- payload_keys = [
130
- 'creationSessionID',
131
- 'creationTimestamp',
132
- 'key',
133
- 'lastChangeSessionID',
134
- 'lastChangeTimestamp',
135
- 'value',
136
- ]
137
- payload_required_keys = %w[]
138
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
139
-
140
- exec_http_request('patch', '/memori/v2/LocalizationKey/{strSessionID}', **args)
141
- end
142
-
143
-
144
- end
@@ -1,178 +0,0 @@
1
- # Generated on 2025-01-27 20:29:52 +0000
2
- class MemoriClient::Engine::V2::Medium < MemoriClient::Engine::Resource
3
- # `GET /memori/v2/Media/{strSessionID}/{strMemoryID}`
4
- #
5
- # Lists all Medium objects of a Memory.
6
- #
7
- #
8
- # @param [string] strSessionID The session ID. required
9
- #
10
- # @param [string] strMemoryID The Memory object ID. required
11
- #
12
- # `list_media(strSessionID:, strMemoryID:)`
13
- def self.list_media(strSessionID:, strMemoryID:)
14
- args = build_arguments(binding)
15
-
16
- exec_http_request('get', '/memori/v2/Media/{strSessionID}/{strMemoryID}', **args)
17
- end
18
-
19
- # `DELETE /memori/v2/Media/{strSessionID}/{strMemoryID}`
20
- #
21
- # Removes all Medium objects from a Memory.
22
- #
23
- #
24
- # @param [string] strSessionID The session ID. required
25
- #
26
- # @param [string] strMemoryID The Memory object ID. required
27
- #
28
- # `remove_media(strSessionID:, strMemoryID:)`
29
- def self.remove_media(strSessionID:, strMemoryID:)
30
- args = build_arguments(binding)
31
-
32
- exec_http_request('delete', '/memori/v2/Media/{strSessionID}/{strMemoryID}', **args)
33
- end
34
-
35
- # `GET /memori/v2/Medium/{strSessionID}/{strMemoryID}/{strMediumID}`
36
- #
37
- # Gets the details of a Medium object of a Memory.
38
- #
39
- #
40
- # @param [string] strSessionID The session ID. required
41
- #
42
- # @param [string] strMemoryID The Memory object ID. required
43
- #
44
- # @param [string] strMediumID The Medium object ID. required
45
- #
46
- # `get_medium(strSessionID:, strMemoryID:, strMediumID:)`
47
- def self.get_medium(strSessionID:, strMemoryID:, strMediumID:)
48
- args = build_arguments(binding)
49
-
50
- exec_http_request('get', '/memori/v2/Medium/{strSessionID}/{strMemoryID}/{strMediumID}', **args)
51
- end
52
-
53
- # `PATCH /memori/v2/Medium/{strSessionID}/{strMemoryID}/{strMediumID}`
54
- #
55
- # Updates an existing Medium object of a Memory.
56
- #
57
- #
58
- # @param [string] strSessionID The session ID. required
59
- #
60
- # @param [string] strMemoryID The Memory object ID. required
61
- #
62
- # @param [string] strMediumID The Medium object ID. required
63
- #
64
- # @param [Hash] payload request payload. optional
65
- #
66
- # @param [String] payload.mediumID . optional
67
- #
68
- # @param [String] payload.url . optional
69
- #
70
- # @param [String] payload.content . optional
71
- #
72
- # @param [String] payload.mimeType . optional
73
- #
74
- # @param [String] payload.title . optional
75
- #
76
- # @param [Object] payload.properties . optional
77
- #
78
- # @param [String] payload.creationTimestamp . optional
79
- #
80
- # @param [String] payload.creationSessionID . optional
81
- #
82
- # @param [String] payload.lastChangeTimestamp . optional
83
- #
84
- # @param [String] payload.lastChangeSessionID . optional
85
- #
86
- # `update_media(strSessionID:, strMemoryID:, strMediumID:, payload: {})`
87
- def self.update_media(strSessionID:, strMemoryID:, strMediumID:, payload: {})
88
- args = build_arguments(binding)
89
- payload_keys = [
90
- 'content',
91
- 'creationSessionID',
92
- 'creationTimestamp',
93
- 'lastChangeSessionID',
94
- 'lastChangeTimestamp',
95
- 'mediumID',
96
- 'mimeType',
97
- 'properties',
98
- 'title',
99
- 'url',
100
- ]
101
- payload_required_keys = %w[]
102
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
103
-
104
- exec_http_request('patch', '/memori/v2/Medium/{strSessionID}/{strMemoryID}/{strMediumID}', **args)
105
- end
106
-
107
- # `DELETE /memori/v2/Medium/{strSessionID}/{strMemoryID}/{strMediumID}`
108
- #
109
- # Removes an existing Medium object from a Memory.
110
- #
111
- #
112
- # @param [string] strSessionID The session ID. required
113
- #
114
- # @param [string] strMemoryID The Memory object ID. required
115
- #
116
- # @param [string] strMediumID The Medium object ID. required
117
- #
118
- # `remove_medium(strSessionID:, strMemoryID:, strMediumID:)`
119
- def self.remove_medium(strSessionID:, strMemoryID:, strMediumID:)
120
- args = build_arguments(binding)
121
-
122
- exec_http_request('delete', '/memori/v2/Medium/{strSessionID}/{strMemoryID}/{strMediumID}', **args)
123
- end
124
-
125
- # `POST /memori/v2/Medium/{strSessionID}/{strMemoryID}`
126
- #
127
- # Adds a new Medium object to a Memory.
128
- #
129
- #
130
- # @param [string] strSessionID The session ID. required
131
- #
132
- # @param [string] strMemoryID The Memory object ID. required
133
- #
134
- # @param [Hash] payload request payload. optional
135
- #
136
- # @param [String] payload.mediumID . optional
137
- #
138
- # @param [String] payload.url . optional
139
- #
140
- # @param [String] payload.content . optional
141
- #
142
- # @param [String] payload.mimeType . optional
143
- #
144
- # @param [String] payload.title . optional
145
- #
146
- # @param [Object] payload.properties . optional
147
- #
148
- # @param [String] payload.creationTimestamp . optional
149
- #
150
- # @param [String] payload.creationSessionID . optional
151
- #
152
- # @param [String] payload.lastChangeTimestamp . optional
153
- #
154
- # @param [String] payload.lastChangeSessionID . optional
155
- #
156
- # `add_media(strSessionID:, strMemoryID:, payload: {})`
157
- def self.add_media(strSessionID:, strMemoryID:, payload: {})
158
- args = build_arguments(binding)
159
- payload_keys = [
160
- 'content',
161
- 'creationSessionID',
162
- 'creationTimestamp',
163
- 'lastChangeSessionID',
164
- 'lastChangeTimestamp',
165
- 'mediumID',
166
- 'mimeType',
167
- 'properties',
168
- 'title',
169
- 'url',
170
- ]
171
- payload_required_keys = %w[]
172
- validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
173
-
174
- exec_http_request('post', '/memori/v2/Medium/{strSessionID}/{strMemoryID}', **args)
175
- end
176
-
177
-
178
- end