memori-client 0.1.1 → 0.1.6
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.
- checksums.yaml +4 -4
- data/lib/memori_client/backend/resources.rb +3 -0
- data/lib/memori_client/backend/v1/asset.rb +51 -25
- data/lib/memori_client/backend/v2/action_log.rb +19 -7
- data/lib/memori_client/backend/v2/analysis.rb +54 -0
- data/lib/memori_client/backend/v2/asset.rb +79 -23
- data/lib/memori_client/backend/v2/badge.rb +34 -17
- data/lib/memori_client/backend/v2/completion_config.rb +202 -0
- data/lib/memori_client/backend/v2/consumption_log.rb +31 -10
- data/lib/memori_client/backend/v2/import_export.rb +244 -80
- data/lib/memori_client/backend/v2/integration.rb +95 -47
- data/lib/memori_client/backend/v2/invitation.rb +127 -61
- data/lib/memori_client/backend/v2/memori.rb +652 -313
- data/lib/memori_client/backend/v2/memori_list.rb +65 -31
- data/lib/memori_client/backend/v2/notification.rb +13 -7
- data/lib/memori_client/backend/v2/process.rb +70 -0
- data/lib/memori_client/backend/v2/tenant.rb +192 -102
- data/lib/memori_client/backend/v2/user.rb +1058 -547
- data/lib/memori_client/configuration.rb +5 -0
- data/lib/memori_client/engine/hmac_helper.rb +186 -0
- data/lib/memori_client/engine/resource.rb +5 -31
- data/lib/memori_client/engine/resources.rb +2 -3
- data/lib/memori_client/engine/v2/chat_log.rb +51 -13
- data/lib/memori_client/engine/v2/context_var.rb +20 -10
- data/lib/memori_client/engine/v2/correlation_pair.rb +48 -23
- data/lib/memori_client/engine/v2/custom_dictionary.rb +74 -35
- data/lib/memori_client/engine/v2/dialog.rb +107 -57
- data/lib/memori_client/engine/v2/event_log.rb +54 -13
- data/lib/memori_client/engine/v2/expert_reference.rb +92 -45
- data/lib/memori_client/engine/v2/function.rb +220 -0
- data/lib/memori_client/engine/v2/intent.rb +175 -85
- data/lib/memori_client/engine/v2/localization_key.rb +72 -36
- data/lib/memori_client/engine/v2/medium.rb +92 -43
- data/lib/memori_client/engine/v2/memory.rb +341 -89
- data/lib/memori_client/engine/v2/nlp.rb +65 -128
- data/lib/memori_client/engine/v2/person.rb +88 -43
- data/lib/memori_client/engine/v2/private/memori.rb +17 -0
- data/lib/memori_client/engine/v2/private/memori_block.rb +24 -0
- data/lib/memori_client/engine/v2/search.rb +240 -52
- data/lib/memori_client/engine/v2/session.rb +41 -22
- data/lib/memori_client/engine/v2/stat.rb +8 -40
- data/lib/memori_client/engine/v2/topic.rb +88 -0
- data/lib/memori_client/engine/v2/unanswered_question.rb +54 -26
- data/lib/memori_client/engine/v2/user.rb +114 -14
- data/lib/memori_client/engine/v2/web_hook.rb +80 -34
- data/lib/memori_client/http_client.rb +8 -1
- data/lib/memori_client/resource.rb +3 -2
- data/lib/memori_client.rb +6 -0
- metadata +10 -2
@@ -1,59 +1,87 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 20:29:52 +0000
|
2
2
|
class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
|
3
|
-
# GET /memori/v2/Intents/{strSessionID}
|
3
|
+
# `GET /memori/v2/Intents/{strSessionID}`
|
4
|
+
#
|
4
5
|
# Lists all Intent objects.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] strSessionID The session ID. required
|
7
|
-
#
|
9
|
+
#
|
10
|
+
# `list_intents(strSessionID:)`
|
8
11
|
def self.list_intents(strSessionID:)
|
9
12
|
args = build_arguments(binding)
|
10
13
|
|
11
14
|
exec_http_request('get', '/memori/v2/Intents/{strSessionID}', **args)
|
12
15
|
end
|
13
16
|
|
14
|
-
# GET /memori/v2/Intents/{strSessionID}/{from}/{howMany}
|
17
|
+
# `GET /memori/v2/Intents/{strSessionID}/{from}/{howMany}`
|
18
|
+
#
|
15
19
|
# Lists Intent objects with pagination.
|
16
|
-
#
|
20
|
+
#
|
21
|
+
#
|
17
22
|
# @param [string] strSessionID The session ID. required
|
23
|
+
#
|
18
24
|
# @param [integer] from The 0-based index of the first Intent object to list. required
|
25
|
+
#
|
19
26
|
# @param [integer] howMany The number of the Intent objects to list. required
|
20
|
-
#
|
27
|
+
#
|
28
|
+
# `list_intents_paginated(strSessionID:, from:, howMany:)`
|
21
29
|
def self.list_intents_paginated(strSessionID:, from:, howMany:)
|
22
30
|
args = build_arguments(binding)
|
23
31
|
|
24
32
|
exec_http_request('get', '/memori/v2/Intents/{strSessionID}/{from}/{howMany}', **args)
|
25
33
|
end
|
26
34
|
|
27
|
-
# GET /memori/v2/Intent/{strSessionID}/{strIntentID}
|
35
|
+
# `GET /memori/v2/Intent/{strSessionID}/{strIntentID}`
|
36
|
+
#
|
28
37
|
# Gets the details of an Intent object.
|
29
|
-
#
|
38
|
+
#
|
39
|
+
#
|
30
40
|
# @param [string] strSessionID The session ID. required
|
41
|
+
#
|
31
42
|
# @param [string] strIntentID The Intent object ID. required
|
32
|
-
#
|
43
|
+
#
|
44
|
+
# `get_intent(strSessionID:, strIntentID:)`
|
33
45
|
def self.get_intent(strSessionID:, strIntentID:)
|
34
46
|
args = build_arguments(binding)
|
35
47
|
|
36
48
|
exec_http_request('get', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
|
37
49
|
end
|
38
50
|
|
39
|
-
# PATCH /memori/v2/Intent/{strSessionID}/{strIntentID}
|
51
|
+
# `PATCH /memori/v2/Intent/{strSessionID}/{strIntentID}`
|
52
|
+
#
|
40
53
|
# Updates an existing Intent object.
|
41
|
-
#
|
54
|
+
#
|
55
|
+
#
|
42
56
|
# @param [string] strSessionID The session ID. required
|
57
|
+
#
|
43
58
|
# @param [string] strIntentID The Intent object ID. required
|
44
|
-
#
|
45
|
-
# @param [
|
46
|
-
#
|
47
|
-
# @param [
|
48
|
-
#
|
49
|
-
# @param [
|
50
|
-
#
|
51
|
-
# @param [
|
52
|
-
#
|
53
|
-
# @param [
|
54
|
-
#
|
55
|
-
# @param [
|
56
|
-
#
|
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: {})`
|
57
85
|
def self.update_intent(strSessionID:, strIntentID:, payload: {})
|
58
86
|
args = build_arguments(binding)
|
59
87
|
payload_keys = [
|
@@ -69,41 +97,60 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
|
|
69
97
|
'validityMinutes',
|
70
98
|
'webHook',
|
71
99
|
]
|
72
|
-
payload_required_keys = %w[
|
100
|
+
payload_required_keys = %w[]
|
73
101
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
74
102
|
|
75
103
|
exec_http_request('patch', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
|
76
104
|
end
|
77
105
|
|
78
|
-
# DELETE /memori/v2/Intent/{strSessionID}/{strIntentID}
|
106
|
+
# `DELETE /memori/v2/Intent/{strSessionID}/{strIntentID}`
|
107
|
+
#
|
79
108
|
# Removes an existing Intent object.
|
80
|
-
#
|
109
|
+
#
|
110
|
+
#
|
81
111
|
# @param [string] strSessionID The session ID. required
|
112
|
+
#
|
82
113
|
# @param [string] strIntentID The Intent object ID. required
|
83
|
-
#
|
114
|
+
#
|
115
|
+
# `remove_intent(strSessionID:, strIntentID:)`
|
84
116
|
def self.remove_intent(strSessionID:, strIntentID:)
|
85
117
|
args = build_arguments(binding)
|
86
118
|
|
87
119
|
exec_http_request('delete', '/memori/v2/Intent/{strSessionID}/{strIntentID}', **args)
|
88
120
|
end
|
89
121
|
|
90
|
-
# POST /memori/v2/Intent/{strSessionID}
|
122
|
+
# `POST /memori/v2/Intent/{strSessionID}`
|
123
|
+
#
|
91
124
|
# Adds a new Intent object.
|
92
|
-
#
|
125
|
+
#
|
126
|
+
#
|
93
127
|
# @param [string] strSessionID The session ID. required
|
94
|
-
#
|
95
|
-
# @param [
|
96
|
-
#
|
97
|
-
# @param [
|
98
|
-
#
|
99
|
-
# @param [
|
100
|
-
#
|
101
|
-
# @param [
|
102
|
-
#
|
103
|
-
# @param [
|
104
|
-
#
|
105
|
-
# @param [
|
106
|
-
#
|
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: {})`
|
107
154
|
def self.add_intent(strSessionID:, payload: {})
|
108
155
|
args = build_arguments(binding)
|
109
156
|
payload_keys = [
|
@@ -119,64 +166,90 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
|
|
119
166
|
'validityMinutes',
|
120
167
|
'webHook',
|
121
168
|
]
|
122
|
-
payload_required_keys = %w[
|
169
|
+
payload_required_keys = %w[]
|
123
170
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
124
171
|
|
125
172
|
exec_http_request('post', '/memori/v2/Intent/{strSessionID}', **args)
|
126
173
|
end
|
127
174
|
|
128
|
-
# GET /memori/v2/IntentSlots/{strSessionID}
|
175
|
+
# `GET /memori/v2/IntentSlots/{strSessionID}`
|
176
|
+
#
|
129
177
|
# Lists all Intent Slot objects.
|
130
|
-
#
|
178
|
+
#
|
179
|
+
#
|
131
180
|
# @param [string] strSessionID The session ID. required
|
132
|
-
#
|
181
|
+
#
|
182
|
+
# `list_intent_slots(strSessionID:)`
|
133
183
|
def self.list_intent_slots(strSessionID:)
|
134
184
|
args = build_arguments(binding)
|
135
185
|
|
136
186
|
exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}', **args)
|
137
187
|
end
|
138
188
|
|
139
|
-
# GET /memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}
|
189
|
+
# `GET /memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}`
|
190
|
+
#
|
140
191
|
# Lists Intent Slot objects with pagination.
|
141
|
-
#
|
192
|
+
#
|
193
|
+
#
|
142
194
|
# @param [string] strSessionID The session ID. required
|
195
|
+
#
|
143
196
|
# @param [integer] from The 0-based index of the first Intent Slot object to list. required
|
197
|
+
#
|
144
198
|
# @param [integer] howMany The number of the Intent Slot objects to list. required
|
145
|
-
#
|
199
|
+
#
|
200
|
+
# `list_intent_slots_paginated(strSessionID:, from:, howMany:)`
|
146
201
|
def self.list_intent_slots_paginated(strSessionID:, from:, howMany:)
|
147
202
|
args = build_arguments(binding)
|
148
203
|
|
149
204
|
exec_http_request('get', '/memori/v2/IntentSlots/{strSessionID}/{from}/{howMany}', **args)
|
150
205
|
end
|
151
206
|
|
152
|
-
# GET /memori/v2/IntentSlot/{strSessionID}/{strSlotID}
|
207
|
+
# `GET /memori/v2/IntentSlot/{strSessionID}/{strSlotID}`
|
208
|
+
#
|
153
209
|
# Gets the details of an Intent Slot object.
|
154
|
-
#
|
210
|
+
#
|
211
|
+
#
|
155
212
|
# @param [string] strSessionID The session ID. required
|
213
|
+
#
|
156
214
|
# @param [string] strSlotID The Intent Slot object ID. required
|
157
|
-
#
|
215
|
+
#
|
216
|
+
# `get_intent_slot(strSessionID:, strSlotID:)`
|
158
217
|
def self.get_intent_slot(strSessionID:, strSlotID:)
|
159
218
|
args = build_arguments(binding)
|
160
219
|
|
161
220
|
exec_http_request('get', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
|
162
221
|
end
|
163
222
|
|
164
|
-
# PATCH /memori/v2/IntentSlot/{strSessionID}/{strSlotID}
|
223
|
+
# `PATCH /memori/v2/IntentSlot/{strSessionID}/{strSlotID}`
|
224
|
+
#
|
165
225
|
# Updates an existing Intent Slot object.
|
166
|
-
#
|
226
|
+
#
|
227
|
+
#
|
167
228
|
# @param [string] strSessionID The session ID. required
|
229
|
+
#
|
168
230
|
# @param [string] strSlotID The Intent Slot object ID. required
|
169
|
-
#
|
170
|
-
# @param [
|
171
|
-
#
|
172
|
-
# @param [
|
173
|
-
#
|
174
|
-
# @param [
|
175
|
-
#
|
176
|
-
# @param [
|
177
|
-
#
|
178
|
-
# @param [
|
179
|
-
#
|
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: {})`
|
180
253
|
def self.update_intent_slot(strSessionID:, strSlotID:, payload: {})
|
181
254
|
args = build_arguments(binding)
|
182
255
|
payload_keys = [
|
@@ -190,39 +263,56 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
|
|
190
263
|
'values',
|
191
264
|
'webHook',
|
192
265
|
]
|
193
|
-
payload_required_keys = %w[
|
266
|
+
payload_required_keys = %w[]
|
194
267
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
195
268
|
|
196
269
|
exec_http_request('patch', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
|
197
270
|
end
|
198
271
|
|
199
|
-
# DELETE /memori/v2/IntentSlot/{strSessionID}/{strSlotID}
|
272
|
+
# `DELETE /memori/v2/IntentSlot/{strSessionID}/{strSlotID}`
|
273
|
+
#
|
200
274
|
# Removes an existing Intent Slot object.
|
201
|
-
#
|
275
|
+
#
|
276
|
+
#
|
202
277
|
# @param [string] strSessionID The session ID. required
|
278
|
+
#
|
203
279
|
# @param [string] strSlotID The Intent Slot object ID. required
|
204
|
-
#
|
280
|
+
#
|
281
|
+
# `remove_intent_slot(strSessionID:, strSlotID:)`
|
205
282
|
def self.remove_intent_slot(strSessionID:, strSlotID:)
|
206
283
|
args = build_arguments(binding)
|
207
284
|
|
208
285
|
exec_http_request('delete', '/memori/v2/IntentSlot/{strSessionID}/{strSlotID}', **args)
|
209
286
|
end
|
210
287
|
|
211
|
-
# POST /memori/v2/IntentSlot/{strSessionID}
|
288
|
+
# `POST /memori/v2/IntentSlot/{strSessionID}`
|
289
|
+
#
|
212
290
|
# Adds a new Intent Slot object.
|
213
|
-
#
|
291
|
+
#
|
292
|
+
#
|
214
293
|
# @param [string] strSessionID The session ID. required
|
215
|
-
#
|
216
|
-
# @param [
|
217
|
-
#
|
218
|
-
# @param [
|
219
|
-
#
|
220
|
-
# @param [
|
221
|
-
#
|
222
|
-
# @param [
|
223
|
-
#
|
224
|
-
# @param [
|
225
|
-
#
|
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: {})`
|
226
316
|
def self.add_intent_slot(strSessionID:, payload: {})
|
227
317
|
args = build_arguments(binding)
|
228
318
|
payload_keys = [
|
@@ -236,7 +326,7 @@ class MemoriClient::Engine::V2::Intent < MemoriClient::Engine::Resource
|
|
236
326
|
'values',
|
237
327
|
'webHook',
|
238
328
|
]
|
239
|
-
payload_required_keys = %w[
|
329
|
+
payload_required_keys = %w[]
|
240
330
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
241
331
|
|
242
332
|
exec_http_request('post', '/memori/v2/IntentSlot/{strSessionID}', **args)
|
@@ -1,65 +1,91 @@
|
|
1
|
-
# Generated on
|
1
|
+
# Generated on 2025-01-27 20:29:52 +0000
|
2
2
|
class MemoriClient::Engine::V2::LocalizationKey < MemoriClient::Engine::Resource
|
3
|
-
# GET /memori/v2/LocalizationKeys/{strSessionID}
|
3
|
+
# `GET /memori/v2/LocalizationKeys/{strSessionID}`
|
4
|
+
#
|
4
5
|
# Lists all Localization Keys.
|
5
|
-
#
|
6
|
+
#
|
7
|
+
#
|
6
8
|
# @param [string] strSessionID The session ID. required
|
7
|
-
#
|
9
|
+
#
|
10
|
+
# `list_localization_keys(strSessionID:)`
|
8
11
|
def self.list_localization_keys(strSessionID:)
|
9
12
|
args = build_arguments(binding)
|
10
13
|
|
11
14
|
exec_http_request('get', '/memori/v2/LocalizationKeys/{strSessionID}', **args)
|
12
15
|
end
|
13
16
|
|
14
|
-
# GET /memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}
|
17
|
+
# `GET /memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}`
|
18
|
+
#
|
15
19
|
# Lists Localization Keys with pagination.
|
16
|
-
#
|
20
|
+
#
|
21
|
+
#
|
17
22
|
# @param [string] strSessionID The session ID. required
|
23
|
+
#
|
18
24
|
# @param [integer] from The 0-based index of the first Localization Key to list. required
|
25
|
+
#
|
19
26
|
# @param [integer] howMany The number of the Localization Keys to list. required
|
20
|
-
#
|
27
|
+
#
|
28
|
+
# `list_localization_keys_paginated(strSessionID:, from:, howMany:)`
|
21
29
|
def self.list_localization_keys_paginated(strSessionID:, from:, howMany:)
|
22
30
|
args = build_arguments(binding)
|
23
31
|
|
24
32
|
exec_http_request('get', '/memori/v2/LocalizationKeys/{strSessionID}/{from}/{howMany}', **args)
|
25
33
|
end
|
26
34
|
|
27
|
-
# GET /memori/v2/LocalizationKey/{strSessionID}/{strKey}
|
35
|
+
# `GET /memori/v2/LocalizationKey/{strSessionID}/{strKey}`
|
36
|
+
#
|
28
37
|
# Get an existing Localization Key.
|
29
|
-
#
|
38
|
+
#
|
39
|
+
#
|
30
40
|
# @param [string] strSessionID The session ID. required
|
41
|
+
#
|
31
42
|
# @param [string] strKey The key of the Localization Key. required
|
32
|
-
#
|
43
|
+
#
|
44
|
+
# `get_localization_key(strSessionID:, strKey:)`
|
33
45
|
def self.get_localization_key(strSessionID:, strKey:)
|
34
46
|
args = build_arguments(binding)
|
35
47
|
|
36
48
|
exec_http_request('get', '/memori/v2/LocalizationKey/{strSessionID}/{strKey}', **args)
|
37
49
|
end
|
38
50
|
|
39
|
-
# DELETE /memori/v2/LocalizationKey/{strSessionID}/{strKey}
|
51
|
+
# `DELETE /memori/v2/LocalizationKey/{strSessionID}/{strKey}`
|
52
|
+
#
|
40
53
|
# Removes an existing Localization Key.
|
41
|
-
#
|
54
|
+
#
|
55
|
+
#
|
42
56
|
# @param [string] strSessionID The session ID. required
|
57
|
+
#
|
43
58
|
# @param [string] strKey The key of the Localization Key. required
|
44
|
-
#
|
59
|
+
#
|
60
|
+
# `remove_localization_key(strSessionID:, strKey:)`
|
45
61
|
def self.remove_localization_key(strSessionID:, strKey:)
|
46
62
|
args = build_arguments(binding)
|
47
63
|
|
48
64
|
exec_http_request('delete', '/memori/v2/LocalizationKey/{strSessionID}/{strKey}', **args)
|
49
65
|
end
|
50
66
|
|
51
|
-
# POST /memori/v2/LocalizationKey/{strSessionID}
|
52
|
-
#
|
53
|
-
#
|
67
|
+
# `POST /memori/v2/LocalizationKey/{strSessionID}`
|
68
|
+
#
|
69
|
+
# Add a new Localization Key.
|
70
|
+
#
|
71
|
+
#
|
54
72
|
# @param [string] strSessionID The session ID. required
|
55
|
-
#
|
56
|
-
# @param [
|
57
|
-
#
|
58
|
-
# @param [
|
59
|
-
#
|
60
|
-
# @param [
|
61
|
-
#
|
62
|
-
#
|
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: {})`
|
63
89
|
def self.add_localization_key(strSessionID:, payload: {})
|
64
90
|
args = build_arguments(binding)
|
65
91
|
payload_keys = [
|
@@ -70,24 +96,34 @@ class MemoriClient::Engine::V2::LocalizationKey < MemoriClient::Engine::Resource
|
|
70
96
|
'lastChangeTimestamp',
|
71
97
|
'value',
|
72
98
|
]
|
73
|
-
payload_required_keys = %w[
|
99
|
+
payload_required_keys = %w[]
|
74
100
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
75
101
|
|
76
102
|
exec_http_request('post', '/memori/v2/LocalizationKey/{strSessionID}', **args)
|
77
103
|
end
|
78
104
|
|
79
|
-
# PATCH /memori/v2/LocalizationKey/{strSessionID}
|
105
|
+
# `PATCH /memori/v2/LocalizationKey/{strSessionID}`
|
106
|
+
#
|
80
107
|
# Updates an existing Localization Key.
|
81
|
-
#
|
108
|
+
#
|
109
|
+
#
|
82
110
|
# @param [string] strSessionID The session ID. required
|
83
|
-
#
|
84
|
-
# @param [
|
85
|
-
#
|
86
|
-
# @param [
|
87
|
-
#
|
88
|
-
# @param [
|
89
|
-
#
|
90
|
-
#
|
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: {})`
|
91
127
|
def self.update_localization_key(strSessionID:, payload: {})
|
92
128
|
args = build_arguments(binding)
|
93
129
|
payload_keys = [
|
@@ -98,7 +134,7 @@ class MemoriClient::Engine::V2::LocalizationKey < MemoriClient::Engine::Resource
|
|
98
134
|
'lastChangeTimestamp',
|
99
135
|
'value',
|
100
136
|
]
|
101
|
-
payload_required_keys = %w[
|
137
|
+
payload_required_keys = %w[]
|
102
138
|
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
103
139
|
|
104
140
|
exec_http_request('patch', '/memori/v2/LocalizationKey/{strSessionID}', **args)
|