memori-client 0.1.8 → 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/railtie.rb +12 -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/utils/rails.rb +0 -5
- data/lib/memori_client.rb +15 -42
- data/lib/tasks/memori_client.rake +8 -0
- metadata +19 -53
- 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,152 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:51 +0000
|
|
2
|
-
class MemoriClient::Backend::V2::MemoriList < MemoriClient::Backend::Resource
|
|
3
|
-
# `GET /api/v2/Memori/{strToken}`
|
|
4
|
-
#
|
|
5
|
-
# Gets a list of Memori objects owned by the currently logged in User.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# @param [string] strToken The login token. required
|
|
9
|
-
#
|
|
10
|
-
# `list_memori(strToken:)`
|
|
11
|
-
def self.list_memori(strToken:)
|
|
12
|
-
args = build_arguments(binding)
|
|
13
|
-
|
|
14
|
-
exec_http_request('get', '/api/v2/Memori/{strToken}', **args)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# `GET /api/v2/MemoriConfigs/{strToken}`
|
|
18
|
-
#
|
|
19
|
-
# Gets a list of all the Memori Configuration objects.
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
# @param [string] strToken The login token. required
|
|
23
|
-
#
|
|
24
|
-
# `list_memori_configs(strToken:)`
|
|
25
|
-
def self.list_memori_configs(strToken:)
|
|
26
|
-
args = build_arguments(binding)
|
|
27
|
-
|
|
28
|
-
exec_http_request('get', '/api/v2/MemoriConfigs/{strToken}', **args)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# `GET /api/v2/TenantMemoriCategories/{tenantName}`
|
|
32
|
-
#
|
|
33
|
-
# Gets a list of all the known Memori categories (or tags).
|
|
34
|
-
#
|
|
35
|
-
#
|
|
36
|
-
# @param [string] tenantName The name of Tenant. required
|
|
37
|
-
#
|
|
38
|
-
# `list_tenant_memori_categories(tenantName:)`
|
|
39
|
-
def self.list_tenant_memori_categories(tenantName:)
|
|
40
|
-
args = build_arguments(binding)
|
|
41
|
-
|
|
42
|
-
exec_http_request('get', '/api/v2/TenantMemoriCategories/{tenantName}', **args)
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# `GET /api/v2/TenantPublicMemori/{tenantName}`
|
|
46
|
-
#
|
|
47
|
-
# Gets a list of all the public Memori objects for a specific Tenant.
|
|
48
|
-
#
|
|
49
|
-
#
|
|
50
|
-
# @param [string] tenantName The name of Tenant. required
|
|
51
|
-
#
|
|
52
|
-
# `list_tenant_public_memori(tenantName:)`
|
|
53
|
-
def self.list_tenant_public_memori(tenantName:)
|
|
54
|
-
args = build_arguments(binding)
|
|
55
|
-
|
|
56
|
-
exec_http_request('get', '/api/v2/TenantPublicMemori/{tenantName}', **args)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
# `GET /api/v2/TenantMetaverseMemori/{tenantName}`
|
|
60
|
-
#
|
|
61
|
-
# Gets a list of all the Memori objects published on the Metaverse for a specific Tenant.
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
# @param [string] tenantName The name of Tenant. required
|
|
65
|
-
#
|
|
66
|
-
# `list_tenant_metaverse_memori(tenantName:)`
|
|
67
|
-
def self.list_tenant_metaverse_memori(tenantName:)
|
|
68
|
-
args = build_arguments(binding)
|
|
69
|
-
|
|
70
|
-
exec_http_request('get', '/api/v2/TenantMetaverseMemori/{tenantName}', **args)
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
# `GET /api/v2/PublicMemori/{strToken}`
|
|
74
|
-
#
|
|
75
|
-
# Gets a list of the public Memori objects for the currently logged in User.
|
|
76
|
-
#
|
|
77
|
-
#
|
|
78
|
-
# @param [string] strToken The login token. required
|
|
79
|
-
#
|
|
80
|
-
# `list_public_memori(strToken:)`
|
|
81
|
-
def self.list_public_memori(strToken:)
|
|
82
|
-
args = build_arguments(binding)
|
|
83
|
-
|
|
84
|
-
exec_http_request('get', '/api/v2/PublicMemori/{strToken}', **args)
|
|
85
|
-
end
|
|
86
|
-
|
|
87
|
-
# `GET /api/v2/SharedMemori/{strToken}`
|
|
88
|
-
#
|
|
89
|
-
# Gets a list of Memori objects shared with the currently logged in User.
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
# @param [string] strToken The login token. required
|
|
93
|
-
#
|
|
94
|
-
# `list_shared_memori(strToken:)`
|
|
95
|
-
def self.list_shared_memori(strToken:)
|
|
96
|
-
args = build_arguments(binding)
|
|
97
|
-
|
|
98
|
-
exec_http_request('get', '/api/v2/SharedMemori/{strToken}', **args)
|
|
99
|
-
end
|
|
100
|
-
|
|
101
|
-
# `GET /api/v2/UserMemori/{tenantName}/{userName}/{strToken}`
|
|
102
|
-
#
|
|
103
|
-
# Gets a list of Memori objects owned by the specified user.
|
|
104
|
-
#
|
|
105
|
-
#
|
|
106
|
-
# @param [string] tenantName The name of Tenant. required
|
|
107
|
-
#
|
|
108
|
-
# @param [string] userName The name of the User. required
|
|
109
|
-
#
|
|
110
|
-
# @param [string] strToken The optional login token. optional
|
|
111
|
-
#
|
|
112
|
-
# `list_user_memori_by_name(tenantName:, userName:, strToken: nil)`
|
|
113
|
-
def self.list_user_memori_by_name(tenantName:, userName:, strToken: nil)
|
|
114
|
-
args = build_arguments(binding)
|
|
115
|
-
|
|
116
|
-
exec_http_request('get', '/api/v2/UserMemori/{tenantName}/{userName}/{strToken}', **args)
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# `GET /api/v2/UserMemoriByID/{tenantName}/{strUserID}/{strToken}`
|
|
120
|
-
#
|
|
121
|
-
# Gets a list of Memori objects owned by the specified user.
|
|
122
|
-
#
|
|
123
|
-
#
|
|
124
|
-
# @param [string] tenantName The name of Tenant. required
|
|
125
|
-
#
|
|
126
|
-
# @param [string] strUserID The ID of the User object. required
|
|
127
|
-
#
|
|
128
|
-
# @param [string] strToken The optional login token. optional
|
|
129
|
-
#
|
|
130
|
-
# `list_user_memori_by_id(tenantName:, strUserID:, strToken: nil)`
|
|
131
|
-
def self.list_user_memori_by_id(tenantName:, strUserID:, strToken: nil)
|
|
132
|
-
args = build_arguments(binding)
|
|
133
|
-
|
|
134
|
-
exec_http_request('get', '/api/v2/UserMemoriByID/{tenantName}/{strUserID}/{strToken}', **args)
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
# `GET /api/v2/AllMemori/{strToken}`
|
|
138
|
-
#
|
|
139
|
-
# Gets a list of all Memori objects.
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
# @param [string] strToken The login token. required
|
|
143
|
-
#
|
|
144
|
-
# `list_all_memori(strToken:)`
|
|
145
|
-
def self.list_all_memori(strToken:)
|
|
146
|
-
args = build_arguments(binding)
|
|
147
|
-
|
|
148
|
-
exec_http_request('get', '/api/v2/AllMemori/{strToken}', **args)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
end
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:51 +0000
|
|
2
|
-
class MemoriClient::Backend::V2::Notification < MemoriClient::Backend::Resource
|
|
3
|
-
# `GET /api/v2/TenantNotifications/{tenantName}`
|
|
4
|
-
#
|
|
5
|
-
# Gets the Notification objects for a specific Tenant.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# @param [string] tenantName The name of the Tenant. required
|
|
9
|
-
#
|
|
10
|
-
# `get_tenant_notifications(tenantName:)`
|
|
11
|
-
def self.get_tenant_notifications(tenantName:)
|
|
12
|
-
args = build_arguments(binding)
|
|
13
|
-
|
|
14
|
-
exec_http_request('get', '/api/v2/TenantNotifications/{tenantName}', **args)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# `GET /api/v2/UserNotifications/{strToken}`
|
|
18
|
-
#
|
|
19
|
-
# Gets the Notification objects for the currently logged in user.
|
|
20
|
-
#
|
|
21
|
-
#
|
|
22
|
-
# @param [string] strToken The login token. required
|
|
23
|
-
#
|
|
24
|
-
# `get_user_notifications(strToken:)`
|
|
25
|
-
def self.get_user_notifications(strToken:)
|
|
26
|
-
args = build_arguments(binding)
|
|
27
|
-
|
|
28
|
-
exec_http_request('get', '/api/v2/UserNotifications/{strToken}', **args)
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
end
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:51 +0000
|
|
2
|
-
class MemoriClient::Backend::V2::Process < MemoriClient::Backend::Resource
|
|
3
|
-
# `GET /api/v2/Processes/{strToken}/{strType}`
|
|
4
|
-
#
|
|
5
|
-
# Gets a list of Process objects started by the currently logged in User.
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
# @param [string] strToken The login token. required
|
|
9
|
-
#
|
|
10
|
-
# @param [string] strType Optional filter for Process type. optional
|
|
11
|
-
#
|
|
12
|
-
# `list_processes(strToken:, strType: nil)`
|
|
13
|
-
def self.list_processes(strToken:, strType: nil)
|
|
14
|
-
args = build_arguments(binding)
|
|
15
|
-
|
|
16
|
-
exec_http_request('get', '/api/v2/Processes/{strToken}/{strType}', **args)
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# `GET /api/v2/MemoriProcesses/{strToken}/{strMemoriID}/{strType}`
|
|
20
|
-
#
|
|
21
|
-
# Gets a list of Process objects for the specified Memori.
|
|
22
|
-
#
|
|
23
|
-
#
|
|
24
|
-
# @param [string] strToken The login token. required
|
|
25
|
-
#
|
|
26
|
-
# @param [string] strMemoriID The ID of the Memori object. required
|
|
27
|
-
#
|
|
28
|
-
# @param [string] strType Optional filter for Process type. optional
|
|
29
|
-
#
|
|
30
|
-
# `list_memori_processes(strToken:, strMemoriID:, strType: nil)`
|
|
31
|
-
def self.list_memori_processes(strToken:, strMemoriID:, strType: nil)
|
|
32
|
-
args = build_arguments(binding)
|
|
33
|
-
|
|
34
|
-
exec_http_request('get', '/api/v2/MemoriProcesses/{strToken}/{strMemoriID}/{strType}', **args)
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
# `GET /api/v2/ProcessStatus/{strToken}/{strProcessID}`
|
|
38
|
-
#
|
|
39
|
-
# Gets the status of an Process object.
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
# @param [string] strToken The login token. required
|
|
43
|
-
#
|
|
44
|
-
# @param [string] strProcessID The Process object ID. required
|
|
45
|
-
#
|
|
46
|
-
# `get_process_status(strToken:, strProcessID:)`
|
|
47
|
-
def self.get_process_status(strToken:, strProcessID:)
|
|
48
|
-
args = build_arguments(binding)
|
|
49
|
-
|
|
50
|
-
exec_http_request('get', '/api/v2/ProcessStatus/{strToken}/{strProcessID}', **args)
|
|
51
|
-
end
|
|
52
|
-
|
|
53
|
-
# `POST /api/v2/StopProcess/{strToken}/{strProcessID}`
|
|
54
|
-
#
|
|
55
|
-
# Interrupts an ongoing Process object.
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
# @param [string] strToken The login token. required
|
|
59
|
-
#
|
|
60
|
-
# @param [string] strProcessID The Process object ID. required
|
|
61
|
-
#
|
|
62
|
-
# `stop_process(strToken:, strProcessID:)`
|
|
63
|
-
def self.stop_process(strToken:, strProcessID:)
|
|
64
|
-
args = build_arguments(binding)
|
|
65
|
-
|
|
66
|
-
exec_http_request('post', '/api/v2/StopProcess/{strToken}/{strProcessID}', **args)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
end
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
# Generated on 2025-01-27 20:29:51 +0000
|
|
2
|
-
class MemoriClient::Backend::V2::Tenant < MemoriClient::Backend::Resource
|
|
3
|
-
# `GET /api/v2/HealthCheck`
|
|
4
|
-
#
|
|
5
|
-
# No operation.
|
|
6
|
-
#
|
|
7
|
-
|
|
8
|
-
#
|
|
9
|
-
# `health_check()`
|
|
10
|
-
def self.health_check()
|
|
11
|
-
args = build_arguments(binding)
|
|
12
|
-
|
|
13
|
-
exec_http_request('get', '/api/v2/HealthCheck', **args)
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
# `GET /api/v2/Tenants/{strToken}`
|
|
17
|
-
#
|
|
18
|
-
# Gets the list of of all Tenant objects.
|
|
19
|
-
#
|
|
20
|
-
#
|
|
21
|
-
# @param [string] strToken The login token. required
|
|
22
|
-
#
|
|
23
|
-
# `list_tenants(strToken:)`
|
|
24
|
-
def self.list_tenants(strToken:)
|
|
25
|
-
args = build_arguments(binding)
|
|
26
|
-
|
|
27
|
-
exec_http_request('get', '/api/v2/Tenants/{strToken}', **args)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# `GET /api/v2/Tenant/{tenantName}`
|
|
31
|
-
#
|
|
32
|
-
# Gets the details of a Tenant object.
|
|
33
|
-
#
|
|
34
|
-
#
|
|
35
|
-
# @param [string] tenantName The name of the Tenant. required
|
|
36
|
-
#
|
|
37
|
-
# `get_tenant(tenantName:)`
|
|
38
|
-
def self.get_tenant(tenantName:)
|
|
39
|
-
args = build_arguments(binding)
|
|
40
|
-
|
|
41
|
-
exec_http_request('get', '/api/v2/Tenant/{tenantName}', **args)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
# `POST /api/v2/Tenant/{strToken}/{tenantName}`
|
|
45
|
-
#
|
|
46
|
-
# Duplicates a Tenant object.
|
|
47
|
-
#
|
|
48
|
-
#
|
|
49
|
-
# @param [string] strToken The login token. required
|
|
50
|
-
#
|
|
51
|
-
# @param [string] tenantName The name of the Tenant to duplicate. required
|
|
52
|
-
#
|
|
53
|
-
# @param [Hash] payload request payload. optional
|
|
54
|
-
#
|
|
55
|
-
# @param [String] payload.tenantID . optional
|
|
56
|
-
#
|
|
57
|
-
# @param [String] payload.name . optional
|
|
58
|
-
#
|
|
59
|
-
# @param [Array] payload.aliases . optional
|
|
60
|
-
#
|
|
61
|
-
# @param [String] payload.description . optional
|
|
62
|
-
#
|
|
63
|
-
# @param [String] payload.logoURL . optional
|
|
64
|
-
#
|
|
65
|
-
# @param [String] payload.adminEmail . optional
|
|
66
|
-
#
|
|
67
|
-
# @param [String] payload.theme . optional
|
|
68
|
-
#
|
|
69
|
-
# @param [String] payload.feedbackURL . optional
|
|
70
|
-
#
|
|
71
|
-
# @param [Integer] payload.adminCount . optional
|
|
72
|
-
#
|
|
73
|
-
# @param [Integer] payload.userCount . optional
|
|
74
|
-
#
|
|
75
|
-
# @param [Integer] payload.memoriCount . optional
|
|
76
|
-
#
|
|
77
|
-
# @param [Boolean] payload.disableRegistration . optional
|
|
78
|
-
#
|
|
79
|
-
# @param [Integer] payload.maxMemoriPerAdmin . optional
|
|
80
|
-
#
|
|
81
|
-
# @param [Integer] payload.maxMemoriPerUser . optional
|
|
82
|
-
#
|
|
83
|
-
# @param [Integer] payload.maxTotalMemori . optional
|
|
84
|
-
#
|
|
85
|
-
# @param [Integer] payload.maxAdmins . optional
|
|
86
|
-
#
|
|
87
|
-
# @param [Integer] payload.maxUsers . optional
|
|
88
|
-
#
|
|
89
|
-
# @param [Integer] payload.maxFreeSessions . optional
|
|
90
|
-
#
|
|
91
|
-
# @param [Integer] payload.maxFreeSessionsPerUser . optional
|
|
92
|
-
#
|
|
93
|
-
# @param [Number] payload.nonFreeSessionCost . optional
|
|
94
|
-
#
|
|
95
|
-
# @param [Integer] payload.maxCompletions . optional
|
|
96
|
-
#
|
|
97
|
-
# @param [Integer] payload.maxCompletionsPerUser . optional
|
|
98
|
-
#
|
|
99
|
-
# @param [Integer] payload.maxImportSize . optional
|
|
100
|
-
#
|
|
101
|
-
# @param [Integer] payload.maxImportSizePerUser . optional
|
|
102
|
-
#
|
|
103
|
-
# @param [Boolean] payload.paying . optional
|
|
104
|
-
#
|
|
105
|
-
# @param [Boolean] payload.enableUserMemoriCreation . optional
|
|
106
|
-
#
|
|
107
|
-
# @param [Boolean] payload.enableBoardOfExperts . optional
|
|
108
|
-
#
|
|
109
|
-
# @param [Boolean] payload.enableDCMIntegration . optional
|
|
110
|
-
#
|
|
111
|
-
# @param [Boolean] payload.enableBadges . optional
|
|
112
|
-
#
|
|
113
|
-
# @param [Boolean] payload.enableDeepThought . optional
|
|
114
|
-
#
|
|
115
|
-
# @param [Boolean] payload.enableVirtualSpaces . optional
|
|
116
|
-
#
|
|
117
|
-
# @param [Boolean] payload.billingDelegation . optional
|
|
118
|
-
#
|
|
119
|
-
# @param [String] payload.creationTimestamp . optional
|
|
120
|
-
#
|
|
121
|
-
# @param [String] payload.lastChangeTimestamp . optional
|
|
122
|
-
#
|
|
123
|
-
# `duplicate_tenant(strToken:, tenantName:, payload: {})`
|
|
124
|
-
def self.duplicate_tenant(strToken:, tenantName:, payload: {})
|
|
125
|
-
args = build_arguments(binding)
|
|
126
|
-
payload_keys = [
|
|
127
|
-
'adminCount',
|
|
128
|
-
'adminEmail',
|
|
129
|
-
'aliases',
|
|
130
|
-
'billingDelegation',
|
|
131
|
-
'creationTimestamp',
|
|
132
|
-
'description',
|
|
133
|
-
'disableRegistration',
|
|
134
|
-
'enableBadges',
|
|
135
|
-
'enableBoardOfExperts',
|
|
136
|
-
'enableDCMIntegration',
|
|
137
|
-
'enableDeepThought',
|
|
138
|
-
'enableUserMemoriCreation',
|
|
139
|
-
'enableVirtualSpaces',
|
|
140
|
-
'feedbackURL',
|
|
141
|
-
'lastChangeTimestamp',
|
|
142
|
-
'logoURL',
|
|
143
|
-
'maxAdmins',
|
|
144
|
-
'maxCompletions',
|
|
145
|
-
'maxCompletionsPerUser',
|
|
146
|
-
'maxFreeSessions',
|
|
147
|
-
'maxFreeSessionsPerUser',
|
|
148
|
-
'maxImportSize',
|
|
149
|
-
'maxImportSizePerUser',
|
|
150
|
-
'maxMemoriPerAdmin',
|
|
151
|
-
'maxMemoriPerUser',
|
|
152
|
-
'maxTotalMemori',
|
|
153
|
-
'maxUsers',
|
|
154
|
-
'memoriCount',
|
|
155
|
-
'name',
|
|
156
|
-
'nonFreeSessionCost',
|
|
157
|
-
'paying',
|
|
158
|
-
'tenantID',
|
|
159
|
-
'theme',
|
|
160
|
-
'userCount',
|
|
161
|
-
]
|
|
162
|
-
payload_required_keys = %w[]
|
|
163
|
-
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
|
164
|
-
|
|
165
|
-
exec_http_request('post', '/api/v2/Tenant/{strToken}/{tenantName}', **args)
|
|
166
|
-
end
|
|
167
|
-
|
|
168
|
-
# `PATCH /api/v2/Tenant/{strToken}/{tenantName}`
|
|
169
|
-
#
|
|
170
|
-
# Updates the details of a Tenant object.
|
|
171
|
-
#
|
|
172
|
-
#
|
|
173
|
-
# @param [string] strToken The login token. required
|
|
174
|
-
#
|
|
175
|
-
# @param [string] tenantName The name of the Tenant to update. required
|
|
176
|
-
#
|
|
177
|
-
# @param [Hash] payload request payload. optional
|
|
178
|
-
#
|
|
179
|
-
# @param [String] payload.tenantID . optional
|
|
180
|
-
#
|
|
181
|
-
# @param [String] payload.name . optional
|
|
182
|
-
#
|
|
183
|
-
# @param [Array] payload.aliases . optional
|
|
184
|
-
#
|
|
185
|
-
# @param [String] payload.description . optional
|
|
186
|
-
#
|
|
187
|
-
# @param [String] payload.logoURL . optional
|
|
188
|
-
#
|
|
189
|
-
# @param [String] payload.adminEmail . optional
|
|
190
|
-
#
|
|
191
|
-
# @param [String] payload.theme . optional
|
|
192
|
-
#
|
|
193
|
-
# @param [String] payload.feedbackURL . optional
|
|
194
|
-
#
|
|
195
|
-
# @param [Integer] payload.adminCount . optional
|
|
196
|
-
#
|
|
197
|
-
# @param [Integer] payload.userCount . optional
|
|
198
|
-
#
|
|
199
|
-
# @param [Integer] payload.memoriCount . optional
|
|
200
|
-
#
|
|
201
|
-
# @param [Boolean] payload.disableRegistration . optional
|
|
202
|
-
#
|
|
203
|
-
# @param [Integer] payload.maxMemoriPerAdmin . optional
|
|
204
|
-
#
|
|
205
|
-
# @param [Integer] payload.maxMemoriPerUser . optional
|
|
206
|
-
#
|
|
207
|
-
# @param [Integer] payload.maxTotalMemori . optional
|
|
208
|
-
#
|
|
209
|
-
# @param [Integer] payload.maxAdmins . optional
|
|
210
|
-
#
|
|
211
|
-
# @param [Integer] payload.maxUsers . optional
|
|
212
|
-
#
|
|
213
|
-
# @param [Integer] payload.maxFreeSessions . optional
|
|
214
|
-
#
|
|
215
|
-
# @param [Integer] payload.maxFreeSessionsPerUser . optional
|
|
216
|
-
#
|
|
217
|
-
# @param [Number] payload.nonFreeSessionCost . optional
|
|
218
|
-
#
|
|
219
|
-
# @param [Integer] payload.maxCompletions . optional
|
|
220
|
-
#
|
|
221
|
-
# @param [Integer] payload.maxCompletionsPerUser . optional
|
|
222
|
-
#
|
|
223
|
-
# @param [Integer] payload.maxImportSize . optional
|
|
224
|
-
#
|
|
225
|
-
# @param [Integer] payload.maxImportSizePerUser . optional
|
|
226
|
-
#
|
|
227
|
-
# @param [Boolean] payload.paying . optional
|
|
228
|
-
#
|
|
229
|
-
# @param [Boolean] payload.enableUserMemoriCreation . optional
|
|
230
|
-
#
|
|
231
|
-
# @param [Boolean] payload.enableBoardOfExperts . optional
|
|
232
|
-
#
|
|
233
|
-
# @param [Boolean] payload.enableDCMIntegration . optional
|
|
234
|
-
#
|
|
235
|
-
# @param [Boolean] payload.enableBadges . optional
|
|
236
|
-
#
|
|
237
|
-
# @param [Boolean] payload.enableDeepThought . optional
|
|
238
|
-
#
|
|
239
|
-
# @param [Boolean] payload.enableVirtualSpaces . optional
|
|
240
|
-
#
|
|
241
|
-
# @param [Boolean] payload.billingDelegation . optional
|
|
242
|
-
#
|
|
243
|
-
# @param [String] payload.creationTimestamp . optional
|
|
244
|
-
#
|
|
245
|
-
# @param [String] payload.lastChangeTimestamp . optional
|
|
246
|
-
#
|
|
247
|
-
# `update_tenant(strToken:, tenantName:, payload: {})`
|
|
248
|
-
def self.update_tenant(strToken:, tenantName:, payload: {})
|
|
249
|
-
args = build_arguments(binding)
|
|
250
|
-
payload_keys = [
|
|
251
|
-
'adminCount',
|
|
252
|
-
'adminEmail',
|
|
253
|
-
'aliases',
|
|
254
|
-
'billingDelegation',
|
|
255
|
-
'creationTimestamp',
|
|
256
|
-
'description',
|
|
257
|
-
'disableRegistration',
|
|
258
|
-
'enableBadges',
|
|
259
|
-
'enableBoardOfExperts',
|
|
260
|
-
'enableDCMIntegration',
|
|
261
|
-
'enableDeepThought',
|
|
262
|
-
'enableUserMemoriCreation',
|
|
263
|
-
'enableVirtualSpaces',
|
|
264
|
-
'feedbackURL',
|
|
265
|
-
'lastChangeTimestamp',
|
|
266
|
-
'logoURL',
|
|
267
|
-
'maxAdmins',
|
|
268
|
-
'maxCompletions',
|
|
269
|
-
'maxCompletionsPerUser',
|
|
270
|
-
'maxFreeSessions',
|
|
271
|
-
'maxFreeSessionsPerUser',
|
|
272
|
-
'maxImportSize',
|
|
273
|
-
'maxImportSizePerUser',
|
|
274
|
-
'maxMemoriPerAdmin',
|
|
275
|
-
'maxMemoriPerUser',
|
|
276
|
-
'maxTotalMemori',
|
|
277
|
-
'maxUsers',
|
|
278
|
-
'memoriCount',
|
|
279
|
-
'name',
|
|
280
|
-
'nonFreeSessionCost',
|
|
281
|
-
'paying',
|
|
282
|
-
'tenantID',
|
|
283
|
-
'theme',
|
|
284
|
-
'userCount',
|
|
285
|
-
]
|
|
286
|
-
payload_required_keys = %w[]
|
|
287
|
-
validate_payload!(args[:payload], keys: payload_keys, required: payload_required_keys)
|
|
288
|
-
|
|
289
|
-
exec_http_request('patch', '/api/v2/Tenant/{strToken}/{tenantName}', **args)
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
end
|