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.
- checksums.yaml +4 -4
- data/backend_overrides.jsonc +4 -0
- data/engine_overrides.jsonc +3 -0
- data/lib/memori_client/client.rb +49 -0
- data/lib/memori_client/client_factory.rb +105 -0
- data/lib/memori_client/engine/hmac_helper.rb +1 -1
- data/lib/memori_client/http_client.rb +4 -17
- data/lib/memori_client/operation.rb +132 -0
- data/lib/memori_client/proxy/client.rb +115 -0
- data/lib/memori_client/resource.rb +174 -26
- data/lib/memori_client/resource_proxy.rb +25 -0
- data/lib/memori_client/response.rb +48 -0
- data/lib/memori_client/swagger/get_module_and_method.rb +44 -0
- data/lib/memori_client/swagger/process_specification.rb +127 -0
- data/lib/memori_client/swagger/schema_store.rb +26 -0
- data/lib/memori_client.rb +14 -42
- data/lib/tasks/memori_client.rake +0 -7
- metadata +17 -90
- data/doc/MemoriClient::Backend::V1::Asset.md +0 -117
- data/doc/MemoriClient::Backend::V2::ActionLog.md +0 -37
- data/doc/MemoriClient::Backend::V2::Analysis.md +0 -39
- data/doc/MemoriClient::Backend::V2::Asset.md +0 -102
- data/doc/MemoriClient::Backend::V2::Badge.md +0 -64
- data/doc/MemoriClient::Backend::V2::CompletionConfig.md +0 -115
- data/doc/MemoriClient::Backend::V2::ConsumptionLog.md +0 -57
- data/doc/MemoriClient::Backend::V2::ImportExport.md +0 -180
- data/doc/MemoriClient::Backend::V2::Integration.md +0 -117
- data/doc/MemoriClient::Backend::V2::Invitation.md +0 -179
- data/doc/MemoriClient::Backend::V2::Memori.md +0 -394
- data/doc/MemoriClient::Backend::V2::MemoriList.md +0 -147
- data/doc/MemoriClient::Backend::V2::Notification.md +0 -31
- data/doc/MemoriClient::Backend::V2::Process.md +0 -64
- data/doc/MemoriClient::Backend::V2::Tenant.md +0 -142
- data/doc/MemoriClient::Backend::V2::User.md +0 -647
- data/doc/MemoriClient::Engine::V2::ChatLog.md +0 -82
- data/doc/MemoriClient::Engine::V2::ContextVar.md +0 -46
- data/doc/MemoriClient::Engine::V2::CorrelationPair.md +0 -72
- data/doc/MemoriClient::Engine::V2::CustomDictionary.md +0 -108
- data/doc/MemoriClient::Engine::V2::Dialog.md +0 -152
- data/doc/MemoriClient::Engine::V2::EventLog.md +0 -85
- data/doc/MemoriClient::Engine::V2::ExpertReference.md +0 -116
- data/doc/MemoriClient::Engine::V2::Function.md +0 -140
- data/doc/MemoriClient::Engine::V2::Intent.md +0 -225
- data/doc/MemoriClient::Engine::V2::LocalizationKey.md +0 -105
- data/doc/MemoriClient::Engine::V2::Medium.md +0 -118
- data/doc/MemoriClient::Engine::V2::Memory.md +0 -244
- data/doc/MemoriClient::Engine::V2::NLP.md +0 -100
- data/doc/MemoriClient::Engine::V2::Person.md +0 -114
- data/doc/MemoriClient::Engine::V2::Search.md +0 -151
- data/doc/MemoriClient::Engine::V2::Session.md +0 -55
- data/doc/MemoriClient::Engine::V2::Stat.md +0 -18
- data/doc/MemoriClient::Engine::V2::Topic.md +0 -80
- data/doc/MemoriClient::Engine::V2::UnansweredQuestion.md +0 -75
- data/doc/MemoriClient::Engine::V2::User.md +0 -140
- data/doc/MemoriClient::Engine::V2::WebHook.md +0 -67
- data/lib/memori_client/backend/resource.rb +0 -39
- data/lib/memori_client/backend/resources.rb +0 -16
- data/lib/memori_client/backend/v1/asset.rb +0 -120
- data/lib/memori_client/backend/v2/action_log.rb +0 -44
- data/lib/memori_client/backend/v2/analysis.rb +0 -54
- data/lib/memori_client/backend/v2/asset.rb +0 -130
- data/lib/memori_client/backend/v2/badge.rb +0 -77
- data/lib/memori_client/backend/v2/completion_config.rb +0 -202
- data/lib/memori_client/backend/v2/consumption_log.rb +0 -70
- data/lib/memori_client/backend/v2/import_export.rb +0 -327
- data/lib/memori_client/backend/v2/integration.rb +0 -180
- data/lib/memori_client/backend/v2/invitation.rb +0 -252
- data/lib/memori_client/backend/v2/memori.rb +0 -954
- data/lib/memori_client/backend/v2/memori_list.rb +0 -152
- data/lib/memori_client/backend/v2/notification.rb +0 -32
- data/lib/memori_client/backend/v2/process.rb +0 -70
- data/lib/memori_client/backend/v2/tenant.rb +0 -293
- data/lib/memori_client/backend/v2/user.rb +0 -1520
- data/lib/memori_client/configuration.rb +0 -20
- data/lib/memori_client/engine/resource.rb +0 -13
- data/lib/memori_client/engine/resources.rb +0 -21
- data/lib/memori_client/engine/v2/chat_log.rb +0 -92
- data/lib/memori_client/engine/v2/completion_log.rb +0 -17
- data/lib/memori_client/engine/v2/context_var.rb +0 -48
- data/lib/memori_client/engine/v2/correlation_pair.rb +0 -99
- data/lib/memori_client/engine/v2/custom_dictionary.rb +0 -152
- data/lib/memori_client/engine/v2/dialog.rb +0 -223
- data/lib/memori_client/engine/v2/event_log.rb +0 -98
- data/lib/memori_client/engine/v2/expert_reference.rb +0 -176
- data/lib/memori_client/engine/v2/function.rb +0 -220
- data/lib/memori_client/engine/v2/intent.rb +0 -336
- data/lib/memori_client/engine/v2/localization_key.rb +0 -144
- data/lib/memori_client/engine/v2/medium.rb +0 -178
- data/lib/memori_client/engine/v2/memori.rb +0 -329
- data/lib/memori_client/engine/v2/memory.rb +0 -477
- data/lib/memori_client/engine/v2/nlp.rb +0 -137
- data/lib/memori_client/engine/v2/person.rb +0 -170
- data/lib/memori_client/engine/v2/private/memori.rb +0 -17
- data/lib/memori_client/engine/v2/private/memori_block.rb +0 -24
- data/lib/memori_client/engine/v2/prompted_question.rb +0 -121
- data/lib/memori_client/engine/v2/search.rb +0 -318
- data/lib/memori_client/engine/v2/session.rb +0 -80
- data/lib/memori_client/engine/v2/stat.rb +0 -20
- data/lib/memori_client/engine/v2/topic.rb +0 -88
- data/lib/memori_client/engine/v2/unanswered_question.rb +0 -108
- data/lib/memori_client/engine/v2/user.rb +0 -152
- data/lib/memori_client/engine/v2/web_hook.rb +0 -128
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:52 +0000
|
|
2
|
-
class MemoriClient::Engine::V2::EventLog < MemoriClient::Engine::Resource
|
|
3
|
-
# `GET /memori/v2/EventLogs/{strSessionID}/{strDateFrom}/{strDateTo}`
|
|
4
|
-
#
|
|
5
|
-
# Gets the Event Log objects for the Memori of the current session in a specific date interval.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# @param [string] strSessionID The session ID. required
|
|
9
|
-
#
|
|
10
|
-
# @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
11
|
-
#
|
|
12
|
-
# @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
13
|
-
#
|
|
14
|
-
# `list_memori_event_logs(strSessionID:, strDateFrom: nil, strDateTo: nil)`
|
|
15
|
-
def self.list_memori_event_logs(strSessionID:, strDateFrom: nil, strDateTo: nil)
|
|
16
|
-
args = build_arguments(binding)
|
|
17
|
-
|
|
18
|
-
exec_http_request('get', '/memori/v2/EventLogs/{strSessionID}/{strDateFrom}/{strDateTo}', **args)
|
|
19
|
-
end
|
|
20
|
-
|
|
21
|
-
# `GET /memori/v2/MemoryEventLogs/{strSessionID}/{strMemoryID}/{strDateFrom}/{strDateTo}`
|
|
22
|
-
#
|
|
23
|
-
# Gets the Event Log objects for a specific Memory object in a specific date interval.
|
|
24
|
-
#
|
|
25
|
-
#
|
|
26
|
-
# @param [string] strSessionID The session ID. required
|
|
27
|
-
#
|
|
28
|
-
# @param [string] strMemoryID The Memory object ID. required
|
|
29
|
-
#
|
|
30
|
-
# @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
31
|
-
#
|
|
32
|
-
# @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
33
|
-
#
|
|
34
|
-
# `list_memory_event_logs(strSessionID:, strMemoryID:, strDateFrom: nil, strDateTo: nil)`
|
|
35
|
-
def self.list_memory_event_logs(strSessionID:, strMemoryID:, strDateFrom: nil, strDateTo: nil)
|
|
36
|
-
args = build_arguments(binding)
|
|
37
|
-
|
|
38
|
-
exec_http_request('get', '/memori/v2/MemoryEventLogs/{strSessionID}/{strMemoryID}/{strDateFrom}/{strDateTo}', **args)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# `GET /memori/v2/IntentEventLogs/{strSessionID}/{strIntentID}/{strDateFrom}/{strDateTo}`
|
|
42
|
-
#
|
|
43
|
-
# Gets the Event Log objects for a specific Intent object in a specific date interval.
|
|
44
|
-
#
|
|
45
|
-
#
|
|
46
|
-
# @param [string] strSessionID The session ID. required
|
|
47
|
-
#
|
|
48
|
-
# @param [string] strIntentID The Intent object ID. required
|
|
49
|
-
#
|
|
50
|
-
# @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
51
|
-
#
|
|
52
|
-
# @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
53
|
-
#
|
|
54
|
-
# `list_intent_event_logs(strSessionID:, strIntentID:, strDateFrom: nil, strDateTo: nil)`
|
|
55
|
-
def self.list_intent_event_logs(strSessionID:, strIntentID:, strDateFrom: nil, strDateTo: nil)
|
|
56
|
-
args = build_arguments(binding)
|
|
57
|
-
|
|
58
|
-
exec_http_request('get', '/memori/v2/IntentEventLogs/{strSessionID}/{strIntentID}/{strDateFrom}/{strDateTo}', **args)
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
# `GET /memori/v2/SessionEventLogs/{strSessionID}/{strEventLogSessionID}`
|
|
62
|
-
#
|
|
63
|
-
# Gets the Event Log objects for the Memori of the current session recorded during a specific other session.
|
|
64
|
-
#
|
|
65
|
-
#
|
|
66
|
-
# @param [string] strSessionID The session ID. required
|
|
67
|
-
#
|
|
68
|
-
# @param [string] strEventLogSessionID The session ID for which Event Log objects are being searched. required
|
|
69
|
-
#
|
|
70
|
-
# `list_session_event_logs(strSessionID:, strEventLogSessionID:)`
|
|
71
|
-
def self.list_session_event_logs(strSessionID:, strEventLogSessionID:)
|
|
72
|
-
args = build_arguments(binding)
|
|
73
|
-
|
|
74
|
-
exec_http_request('get', '/memori/v2/SessionEventLogs/{strSessionID}/{strEventLogSessionID}', **args)
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# `GET /memori/v2/UserEventLogs/{strSessionID}/{strUserID}/{strDateFrom}/{strDateTo}`
|
|
78
|
-
#
|
|
79
|
-
# Gets the Event Log objects for the Memori of the current session created by a specific User.
|
|
80
|
-
#
|
|
81
|
-
#
|
|
82
|
-
# @param [string] strSessionID The session ID. required
|
|
83
|
-
#
|
|
84
|
-
# @param [string] strUserID The user ID for which Event Log objects are being searched. required
|
|
85
|
-
#
|
|
86
|
-
# @param [string] strDateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
87
|
-
#
|
|
88
|
-
# @param [string] strDateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional
|
|
89
|
-
#
|
|
90
|
-
# `list_user_event_logs(strSessionID:, strUserID:, strDateFrom: nil, strDateTo: nil)`
|
|
91
|
-
def self.list_user_event_logs(strSessionID:, strUserID:, strDateFrom: nil, strDateTo: nil)
|
|
92
|
-
args = build_arguments(binding)
|
|
93
|
-
|
|
94
|
-
exec_http_request('get', '/memori/v2/UserEventLogs/{strSessionID}/{strUserID}/{strDateFrom}/{strDateTo}', **args)
|
|
95
|
-
end
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
end
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:52 +0000
|
|
2
|
-
class MemoriClient::Engine::V2::ExpertReference < MemoriClient::Engine::Resource
|
|
3
|
-
# `GET /memori/v2/ExpertReferences/{strSessionID}`
|
|
4
|
-
#
|
|
5
|
-
# Lists all Expert Reference objects.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# @param [string] strSessionID The session ID. required
|
|
9
|
-
#
|
|
10
|
-
# `list_expert_references(strSessionID:)`
|
|
11
|
-
def self.list_expert_references(strSessionID:)
|
|
12
|
-
args = build_arguments(binding)
|
|
13
|
-
|
|
14
|
-
exec_http_request('get', '/memori/v2/ExpertReferences/{strSessionID}', **args)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# `GET /memori/v2/ExpertReferences/{strSessionID}/{from}/{howMany}`
|
|
18
|
-
#
|
|
19
|
-
# Lists Expert Reference 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 Expert Reference object to list. required
|
|
25
|
-
#
|
|
26
|
-
# @param [integer] howMany The number of the Expert Reference objects to list. required
|
|
27
|
-
#
|
|
28
|
-
# `list_expert_references_paginated(strSessionID:, from:, howMany:)`
|
|
29
|
-
def self.list_expert_references_paginated(strSessionID:, from:, howMany:)
|
|
30
|
-
args = build_arguments(binding)
|
|
31
|
-
|
|
32
|
-
exec_http_request('get', '/memori/v2/ExpertReferences/{strSessionID}/{from}/{howMany}', **args)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# `GET /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}`
|
|
36
|
-
#
|
|
37
|
-
# Gets the details of an Expert Reference object.
|
|
38
|
-
#
|
|
39
|
-
#
|
|
40
|
-
# @param [string] strSessionID The session ID. required
|
|
41
|
-
#
|
|
42
|
-
# @param [string] strExpertReferenceID The Expert Reference object ID. required
|
|
43
|
-
#
|
|
44
|
-
# `get_expert_reference(strSessionID:, strExpertReferenceID:)`
|
|
45
|
-
def self.get_expert_reference(strSessionID:, strExpertReferenceID:)
|
|
46
|
-
args = build_arguments(binding)
|
|
47
|
-
|
|
48
|
-
exec_http_request('get', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
# `PATCH /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}`
|
|
52
|
-
#
|
|
53
|
-
# Updates an existing Expert Reference object.
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
# @param [string] strSessionID The session ID. required
|
|
57
|
-
#
|
|
58
|
-
# @param [string] strExpertReferenceID The Expert Reference object ID. required
|
|
59
|
-
#
|
|
60
|
-
# @param [Hash] payload request payload. optional
|
|
61
|
-
#
|
|
62
|
-
# @param [String] payload.expertID . optional
|
|
63
|
-
#
|
|
64
|
-
# @param [String] payload.name . optional
|
|
65
|
-
#
|
|
66
|
-
# @param [String] payload.description . optional
|
|
67
|
-
#
|
|
68
|
-
# @param [Boolean] payload.default . optional
|
|
69
|
-
#
|
|
70
|
-
# @param [String] payload.expertMemoriID . optional
|
|
71
|
-
#
|
|
72
|
-
# @param [String] payload.expertPassword . optional
|
|
73
|
-
#
|
|
74
|
-
# @param [String] payload.expertBaseURL . 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_expert_reference(strSessionID:, strExpertReferenceID:, payload: {})`
|
|
85
|
-
def self.update_expert_reference(strSessionID:, strExpertReferenceID:, payload: {})
|
|
86
|
-
args = build_arguments(binding)
|
|
87
|
-
payload_keys = [
|
|
88
|
-
'creationSessionID',
|
|
89
|
-
'creationTimestamp',
|
|
90
|
-
'default',
|
|
91
|
-
'description',
|
|
92
|
-
'expertBaseURL',
|
|
93
|
-
'expertID',
|
|
94
|
-
'expertMemoriID',
|
|
95
|
-
'expertPassword',
|
|
96
|
-
'lastChangeSessionID',
|
|
97
|
-
'lastChangeTimestamp',
|
|
98
|
-
'name',
|
|
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/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
# `DELETE /memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}`
|
|
107
|
-
#
|
|
108
|
-
# Removes an existing Expert Reference object.
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
# @param [string] strSessionID The session ID. required
|
|
112
|
-
#
|
|
113
|
-
# @param [string] strExpertReferenceID The Expert Reference object ID. required
|
|
114
|
-
#
|
|
115
|
-
# `remove_expert_reference(strSessionID:, strExpertReferenceID:)`
|
|
116
|
-
def self.remove_expert_reference(strSessionID:, strExpertReferenceID:)
|
|
117
|
-
args = build_arguments(binding)
|
|
118
|
-
|
|
119
|
-
exec_http_request('delete', '/memori/v2/ExpertReference/{strSessionID}/{strExpertReferenceID}', **args)
|
|
120
|
-
end
|
|
121
|
-
|
|
122
|
-
# `POST /memori/v2/ExpertReference/{strSessionID}`
|
|
123
|
-
#
|
|
124
|
-
# Adds a new Expert Reference object.
|
|
125
|
-
#
|
|
126
|
-
#
|
|
127
|
-
# @param [string] strSessionID The session ID. required
|
|
128
|
-
#
|
|
129
|
-
# @param [Hash] payload request payload. optional
|
|
130
|
-
#
|
|
131
|
-
# @param [String] payload.expertID . optional
|
|
132
|
-
#
|
|
133
|
-
# @param [String] payload.name . optional
|
|
134
|
-
#
|
|
135
|
-
# @param [String] payload.description . optional
|
|
136
|
-
#
|
|
137
|
-
# @param [Boolean] payload.default . optional
|
|
138
|
-
#
|
|
139
|
-
# @param [String] payload.expertMemoriID . optional
|
|
140
|
-
#
|
|
141
|
-
# @param [String] payload.expertPassword . optional
|
|
142
|
-
#
|
|
143
|
-
# @param [String] payload.expertBaseURL . 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_expert_reference(strSessionID:, payload: {})`
|
|
154
|
-
def self.add_expert_reference(strSessionID:, payload: {})
|
|
155
|
-
args = build_arguments(binding)
|
|
156
|
-
payload_keys = [
|
|
157
|
-
'creationSessionID',
|
|
158
|
-
'creationTimestamp',
|
|
159
|
-
'default',
|
|
160
|
-
'description',
|
|
161
|
-
'expertBaseURL',
|
|
162
|
-
'expertID',
|
|
163
|
-
'expertMemoriID',
|
|
164
|
-
'expertPassword',
|
|
165
|
-
'lastChangeSessionID',
|
|
166
|
-
'lastChangeTimestamp',
|
|
167
|
-
'name',
|
|
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/ExpertReference/{strSessionID}', **args)
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
end
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:52 +0000
|
|
2
|
-
class MemoriClient::Engine::V2::Function < MemoriClient::Engine::Resource
|
|
3
|
-
# `GET /memori/v2/MacroFunctions/{strSessionID}`
|
|
4
|
-
#
|
|
5
|
-
# Lists all Macro Function objects.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# @param [string] strSessionID The session ID. required
|
|
9
|
-
#
|
|
10
|
-
# `list_macro_functions(strSessionID:)`
|
|
11
|
-
def self.list_macro_functions(strSessionID:)
|
|
12
|
-
args = build_arguments(binding)
|
|
13
|
-
|
|
14
|
-
exec_http_request('get', '/memori/v2/MacroFunctions/{strSessionID}', **args)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# `GET /memori/v2/Functions/{strSessionID}`
|
|
18
|
-
#
|
|
19
|
-
# Lists all Function objects.
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
# @param [string] strSessionID The session ID. required
|
|
23
|
-
#
|
|
24
|
-
# `list_functions(strSessionID:)`
|
|
25
|
-
def self.list_functions(strSessionID:)
|
|
26
|
-
args = build_arguments(binding)
|
|
27
|
-
|
|
28
|
-
exec_http_request('get', '/memori/v2/Functions/{strSessionID}', **args)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# `GET /memori/v2/Functions/{strSessionID}/{from}/{howMany}`
|
|
32
|
-
#
|
|
33
|
-
# Lists Function objects with pagination.
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
# @param [string] strSessionID The session ID. required
|
|
37
|
-
#
|
|
38
|
-
# @param [integer] from The 0-based index of the first Function object to list. required
|
|
39
|
-
#
|
|
40
|
-
# @param [integer] howMany The number of the Function objects to list. required
|
|
41
|
-
#
|
|
42
|
-
# `list_functions_paginated(strSessionID:, from:, howMany:)`
|
|
43
|
-
def self.list_functions_paginated(strSessionID:, from:, howMany:)
|
|
44
|
-
args = build_arguments(binding)
|
|
45
|
-
|
|
46
|
-
exec_http_request('get', '/memori/v2/Functions/{strSessionID}/{from}/{howMany}', **args)
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
# `GET /memori/v2/Function/{strSessionID}/{strFunctionID}`
|
|
50
|
-
#
|
|
51
|
-
# Gets the details of a Function object.
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
# @param [string] strSessionID The session ID. required
|
|
55
|
-
#
|
|
56
|
-
# @param [string] strFunctionID The Function object ID. required
|
|
57
|
-
#
|
|
58
|
-
# `get_function(strSessionID:, strFunctionID:)`
|
|
59
|
-
def self.get_function(strSessionID:, strFunctionID:)
|
|
60
|
-
args = build_arguments(binding)
|
|
61
|
-
|
|
62
|
-
exec_http_request('get', '/memori/v2/Function/{strSessionID}/{strFunctionID}', **args)
|
|
63
|
-
end
|
|
64
|
-
|
|
65
|
-
# `PATCH /memori/v2/Function/{strSessionID}/{strFunctionID}`
|
|
66
|
-
#
|
|
67
|
-
# Updates an existing Function object.
|
|
68
|
-
#
|
|
69
|
-
#
|
|
70
|
-
# @param [string] strSessionID The session ID. required
|
|
71
|
-
#
|
|
72
|
-
# @param [string] strFunctionID The Function object ID. required
|
|
73
|
-
#
|
|
74
|
-
# @param [Hash] payload request payload. optional
|
|
75
|
-
#
|
|
76
|
-
# @param [String] payload.functionID . optional
|
|
77
|
-
#
|
|
78
|
-
# @param [String] payload.functionType . optional
|
|
79
|
-
#
|
|
80
|
-
# @param [String] payload.name . optional
|
|
81
|
-
#
|
|
82
|
-
# @param [String] payload.description . optional
|
|
83
|
-
#
|
|
84
|
-
# @param [Array] payload.parameters . optional
|
|
85
|
-
#
|
|
86
|
-
# @param [String] payload.webHook . optional
|
|
87
|
-
#
|
|
88
|
-
# @param [String] payload.httpMethod . optional
|
|
89
|
-
#
|
|
90
|
-
# @param [Object] payload.httpHeaders . optional
|
|
91
|
-
#
|
|
92
|
-
# @param [String] payload.httpQueryStringTemplate . optional
|
|
93
|
-
#
|
|
94
|
-
# @param [String] payload.httpBodyTemplate . optional
|
|
95
|
-
#
|
|
96
|
-
# @param [String] payload.httpBodyContentType . optional
|
|
97
|
-
#
|
|
98
|
-
# @param [Array] payload.sendExtensionHeaders . optional
|
|
99
|
-
#
|
|
100
|
-
# @param [String] payload.creationTimestamp . optional
|
|
101
|
-
#
|
|
102
|
-
# @param [String] payload.creationSessionID . optional
|
|
103
|
-
#
|
|
104
|
-
# @param [String] payload.lastChangeTimestamp . optional
|
|
105
|
-
#
|
|
106
|
-
# @param [String] payload.lastChangeSessionID . optional
|
|
107
|
-
#
|
|
108
|
-
# `update_function(strSessionID:, strFunctionID:, payload: {})`
|
|
109
|
-
def self.update_function(strSessionID:, strFunctionID:, payload: {})
|
|
110
|
-
args = build_arguments(binding)
|
|
111
|
-
payload_keys = [
|
|
112
|
-
'creationSessionID',
|
|
113
|
-
'creationTimestamp',
|
|
114
|
-
'description',
|
|
115
|
-
'functionID',
|
|
116
|
-
'functionType',
|
|
117
|
-
'httpBodyContentType',
|
|
118
|
-
'httpBodyTemplate',
|
|
119
|
-
'httpHeaders',
|
|
120
|
-
'httpMethod',
|
|
121
|
-
'httpQueryStringTemplate',
|
|
122
|
-
'lastChangeSessionID',
|
|
123
|
-
'lastChangeTimestamp',
|
|
124
|
-
'name',
|
|
125
|
-
'parameters',
|
|
126
|
-
'sendExtensionHeaders',
|
|
127
|
-
'webHook',
|
|
128
|
-
]
|
|
129
|
-
payload_required_keys = %w[]
|
|
130
|
-
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
|
131
|
-
|
|
132
|
-
exec_http_request('patch', '/memori/v2/Function/{strSessionID}/{strFunctionID}', **args)
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# `DELETE /memori/v2/Function/{strSessionID}/{strFunctionID}`
|
|
136
|
-
#
|
|
137
|
-
# Removes an existing Function object.
|
|
138
|
-
#
|
|
139
|
-
#
|
|
140
|
-
# @param [string] strSessionID The session ID. required
|
|
141
|
-
#
|
|
142
|
-
# @param [string] strFunctionID The Function object ID. required
|
|
143
|
-
#
|
|
144
|
-
# `remove_function(strSessionID:, strFunctionID:)`
|
|
145
|
-
def self.remove_function(strSessionID:, strFunctionID:)
|
|
146
|
-
args = build_arguments(binding)
|
|
147
|
-
|
|
148
|
-
exec_http_request('delete', '/memori/v2/Function/{strSessionID}/{strFunctionID}', **args)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
# `POST /memori/v2/Function/{strSessionID}`
|
|
152
|
-
#
|
|
153
|
-
# Adds a new Function object.
|
|
154
|
-
#
|
|
155
|
-
#
|
|
156
|
-
# @param [string] strSessionID The session ID. required
|
|
157
|
-
#
|
|
158
|
-
# @param [Hash] payload request payload. optional
|
|
159
|
-
#
|
|
160
|
-
# @param [String] payload.functionID . optional
|
|
161
|
-
#
|
|
162
|
-
# @param [String] payload.functionType . optional
|
|
163
|
-
#
|
|
164
|
-
# @param [String] payload.name . optional
|
|
165
|
-
#
|
|
166
|
-
# @param [String] payload.description . optional
|
|
167
|
-
#
|
|
168
|
-
# @param [Array] payload.parameters . optional
|
|
169
|
-
#
|
|
170
|
-
# @param [String] payload.webHook . optional
|
|
171
|
-
#
|
|
172
|
-
# @param [String] payload.httpMethod . optional
|
|
173
|
-
#
|
|
174
|
-
# @param [Object] payload.httpHeaders . optional
|
|
175
|
-
#
|
|
176
|
-
# @param [String] payload.httpQueryStringTemplate . optional
|
|
177
|
-
#
|
|
178
|
-
# @param [String] payload.httpBodyTemplate . optional
|
|
179
|
-
#
|
|
180
|
-
# @param [String] payload.httpBodyContentType . optional
|
|
181
|
-
#
|
|
182
|
-
# @param [Array] payload.sendExtensionHeaders . optional
|
|
183
|
-
#
|
|
184
|
-
# @param [String] payload.creationTimestamp . optional
|
|
185
|
-
#
|
|
186
|
-
# @param [String] payload.creationSessionID . optional
|
|
187
|
-
#
|
|
188
|
-
# @param [String] payload.lastChangeTimestamp . optional
|
|
189
|
-
#
|
|
190
|
-
# @param [String] payload.lastChangeSessionID . optional
|
|
191
|
-
#
|
|
192
|
-
# `add_function(strSessionID:, payload: {})`
|
|
193
|
-
def self.add_function(strSessionID:, payload: {})
|
|
194
|
-
args = build_arguments(binding)
|
|
195
|
-
payload_keys = [
|
|
196
|
-
'creationSessionID',
|
|
197
|
-
'creationTimestamp',
|
|
198
|
-
'description',
|
|
199
|
-
'functionID',
|
|
200
|
-
'functionType',
|
|
201
|
-
'httpBodyContentType',
|
|
202
|
-
'httpBodyTemplate',
|
|
203
|
-
'httpHeaders',
|
|
204
|
-
'httpMethod',
|
|
205
|
-
'httpQueryStringTemplate',
|
|
206
|
-
'lastChangeSessionID',
|
|
207
|
-
'lastChangeTimestamp',
|
|
208
|
-
'name',
|
|
209
|
-
'parameters',
|
|
210
|
-
'sendExtensionHeaders',
|
|
211
|
-
'webHook',
|
|
212
|
-
]
|
|
213
|
-
payload_required_keys = %w[]
|
|
214
|
-
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
|
215
|
-
|
|
216
|
-
exec_http_request('post', '/memori/v2/Function/{strSessionID}', **args)
|
|
217
|
-
end
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
end
|