directus_sdk 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +185 -0
  4. data/Rakefile +8 -0
  5. data/directus_sdk.gemspec +46 -0
  6. data/docs/ActivityApi.md +59 -0
  7. data/docs/BookmarksApi.md +290 -0
  8. data/docs/FilesApi.md +277 -0
  9. data/docs/GetActivity.md +9 -0
  10. data/docs/GetActivityData.md +16 -0
  11. data/docs/GetActivityMeta.md +10 -0
  12. data/docs/GetBookmark.md +9 -0
  13. data/docs/GetBookmarks.md +9 -0
  14. data/docs/GetBookmarksData.md +14 -0
  15. data/docs/GetBookmarksMeta.md +14 -0
  16. data/docs/GetFile.md +9 -0
  17. data/docs/GetFiles.md +9 -0
  18. data/docs/GetFilesData.md +24 -0
  19. data/docs/GetGroup.md +9 -0
  20. data/docs/GetGroups.md +9 -0
  21. data/docs/GetGroupsData.md +9 -0
  22. data/docs/GetGroupsDataData.md +16 -0
  23. data/docs/GetGroupsDataMeta.md +11 -0
  24. data/docs/GetMessage.md +9 -0
  25. data/docs/GetMessages.md +9 -0
  26. data/docs/GetMessagesData.md +18 -0
  27. data/docs/GetMessagesMeta.md +13 -0
  28. data/docs/GetMessagesResponses.md +8 -0
  29. data/docs/GetPreferences.md +9 -0
  30. data/docs/GetPreferencesData.md +16 -0
  31. data/docs/GetPrivileges.md +9 -0
  32. data/docs/GetPrivilegesData.md +19 -0
  33. data/docs/GetPrivilegesForTable.md +9 -0
  34. data/docs/GetSettings.md +9 -0
  35. data/docs/GetSettingsData.md +9 -0
  36. data/docs/GetSettingsDataFiles.md +13 -0
  37. data/docs/GetSettingsDataGlobal.md +13 -0
  38. data/docs/GetSettingsFor.md +9 -0
  39. data/docs/GetSettingsForMeta.md +10 -0
  40. data/docs/GetTable.md +9 -0
  41. data/docs/GetTableColumn.md +9 -0
  42. data/docs/GetTableColumnData.md +23 -0
  43. data/docs/GetTableColumns.md +9 -0
  44. data/docs/GetTableColumnsData.md +27 -0
  45. data/docs/GetTableData.md +29 -0
  46. data/docs/GetTableRow.md +9 -0
  47. data/docs/GetTableRows.md +9 -0
  48. data/docs/GetTableRowsData.md +9 -0
  49. data/docs/GetTableRowsMeta.md +14 -0
  50. data/docs/GetTables.md +9 -0
  51. data/docs/GetTablesData.md +8 -0
  52. data/docs/GetTablesMeta.md +9 -0
  53. data/docs/GroupsApi.md +455 -0
  54. data/docs/MessagesApi.md +116 -0
  55. data/docs/PreferencesApi.md +135 -0
  56. data/docs/SettingsApi.md +175 -0
  57. data/docs/TablesApi.md +873 -0
  58. data/docs/UtilsApi.md +126 -0
  59. data/git_push.sh +55 -0
  60. data/lib/directus_sdk.rb +92 -0
  61. data/lib/directus_sdk/api/activity_api.rb +70 -0
  62. data/lib/directus_sdk/api/bookmarks_api.rb +288 -0
  63. data/lib/directus_sdk/api/files_api.rb +297 -0
  64. data/lib/directus_sdk/api/groups_api.rb +469 -0
  65. data/lib/directus_sdk/api/messages_api.rb +123 -0
  66. data/lib/directus_sdk/api/preferences_api.rb +151 -0
  67. data/lib/directus_sdk/api/settings_api.rb +183 -0
  68. data/lib/directus_sdk/api/tables_api.rb +890 -0
  69. data/lib/directus_sdk/api/utils_api.rb +134 -0
  70. data/lib/directus_sdk/api_client.rb +389 -0
  71. data/lib/directus_sdk/api_error.rb +38 -0
  72. data/lib/directus_sdk/configuration.rb +209 -0
  73. data/lib/directus_sdk/models/get_activity.rb +199 -0
  74. data/lib/directus_sdk/models/get_activity_data.rb +260 -0
  75. data/lib/directus_sdk/models/get_activity_meta.rb +206 -0
  76. data/lib/directus_sdk/models/get_bookmark.rb +197 -0
  77. data/lib/directus_sdk/models/get_bookmarks.rb +199 -0
  78. data/lib/directus_sdk/models/get_bookmarks_data.rb +242 -0
  79. data/lib/directus_sdk/models/get_bookmarks_meta.rb +252 -0
  80. data/lib/directus_sdk/models/get_file.rb +197 -0
  81. data/lib/directus_sdk/models/get_files.rb +199 -0
  82. data/lib/directus_sdk/models/get_files_data.rb +332 -0
  83. data/lib/directus_sdk/models/get_group.rb +197 -0
  84. data/lib/directus_sdk/models/get_groups.rb +197 -0
  85. data/lib/directus_sdk/models/get_groups_data.rb +199 -0
  86. data/lib/directus_sdk/models/get_groups_data_data.rb +260 -0
  87. data/lib/directus_sdk/models/get_groups_data_meta.rb +215 -0
  88. data/lib/directus_sdk/models/get_message.rb +197 -0
  89. data/lib/directus_sdk/models/get_messages.rb +199 -0
  90. data/lib/directus_sdk/models/get_messages_data.rb +278 -0
  91. data/lib/directus_sdk/models/get_messages_meta.rb +233 -0
  92. data/lib/directus_sdk/models/get_messages_responses.rb +190 -0
  93. data/lib/directus_sdk/models/get_preferences.rb +197 -0
  94. data/lib/directus_sdk/models/get_preferences_data.rb +260 -0
  95. data/lib/directus_sdk/models/get_privileges.rb +199 -0
  96. data/lib/directus_sdk/models/get_privileges_data.rb +287 -0
  97. data/lib/directus_sdk/models/get_privileges_for_table.rb +197 -0
  98. data/lib/directus_sdk/models/get_settings.rb +197 -0
  99. data/lib/directus_sdk/models/get_settings_data.rb +197 -0
  100. data/lib/directus_sdk/models/get_settings_data_files.rb +233 -0
  101. data/lib/directus_sdk/models/get_settings_data_global.rb +233 -0
  102. data/lib/directus_sdk/models/get_settings_for.rb +197 -0
  103. data/lib/directus_sdk/models/get_settings_for_meta.rb +206 -0
  104. data/lib/directus_sdk/models/get_table.rb +197 -0
  105. data/lib/directus_sdk/models/get_table_column.rb +197 -0
  106. data/lib/directus_sdk/models/get_table_column_data.rb +325 -0
  107. data/lib/directus_sdk/models/get_table_columns.rb +199 -0
  108. data/lib/directus_sdk/models/get_table_columns_data.rb +363 -0
  109. data/lib/directus_sdk/models/get_table_data.rb +379 -0
  110. data/lib/directus_sdk/models/get_table_row.rb +197 -0
  111. data/lib/directus_sdk/models/get_table_rows.rb +199 -0
  112. data/lib/directus_sdk/models/get_table_rows_data.rb +197 -0
  113. data/lib/directus_sdk/models/get_table_rows_meta.rb +242 -0
  114. data/lib/directus_sdk/models/get_tables.rb +199 -0
  115. data/lib/directus_sdk/models/get_tables_data.rb +188 -0
  116. data/lib/directus_sdk/models/get_tables_meta.rb +197 -0
  117. data/lib/directus_sdk/version.rb +15 -0
  118. data/spec/api/activity_api_spec.rb +46 -0
  119. data/spec/api/bookmarks_api_spec.rb +98 -0
  120. data/spec/api/files_api_spec.rb +105 -0
  121. data/spec/api/groups_api_spec.rb +143 -0
  122. data/spec/api/messages_api_spec.rb +58 -0
  123. data/spec/api/preferences_api_spec.rb +65 -0
  124. data/spec/api/settings_api_spec.rb +71 -0
  125. data/spec/api/tables_api_spec.rb +236 -0
  126. data/spec/api/utils_api_spec.rb +61 -0
  127. data/spec/api_client_spec.rb +226 -0
  128. data/spec/configuration_spec.rb +42 -0
  129. data/spec/models/get_activity_data_spec.rb +90 -0
  130. data/spec/models/get_activity_meta_spec.rb +54 -0
  131. data/spec/models/get_activity_spec.rb +48 -0
  132. data/spec/models/get_bookmark_spec.rb +48 -0
  133. data/spec/models/get_bookmarks_data_spec.rb +78 -0
  134. data/spec/models/get_bookmarks_meta_spec.rb +78 -0
  135. data/spec/models/get_bookmarks_spec.rb +48 -0
  136. data/spec/models/get_file_spec.rb +48 -0
  137. data/spec/models/get_files_data_spec.rb +138 -0
  138. data/spec/models/get_files_spec.rb +48 -0
  139. data/spec/models/get_group_spec.rb +48 -0
  140. data/spec/models/get_groups_data_data_spec.rb +90 -0
  141. data/spec/models/get_groups_data_meta_spec.rb +60 -0
  142. data/spec/models/get_groups_data_spec.rb +48 -0
  143. data/spec/models/get_groups_spec.rb +48 -0
  144. data/spec/models/get_message_spec.rb +48 -0
  145. data/spec/models/get_messages_data_spec.rb +102 -0
  146. data/spec/models/get_messages_meta_spec.rb +72 -0
  147. data/spec/models/get_messages_responses_spec.rb +42 -0
  148. data/spec/models/get_messages_spec.rb +48 -0
  149. data/spec/models/get_preferences_data_spec.rb +90 -0
  150. data/spec/models/get_preferences_spec.rb +48 -0
  151. data/spec/models/get_privileges_data_spec.rb +108 -0
  152. data/spec/models/get_privileges_for_table_spec.rb +48 -0
  153. data/spec/models/get_privileges_spec.rb +48 -0
  154. data/spec/models/get_settings_data_files_spec.rb +72 -0
  155. data/spec/models/get_settings_data_global_spec.rb +72 -0
  156. data/spec/models/get_settings_data_spec.rb +48 -0
  157. data/spec/models/get_settings_for_meta_spec.rb +54 -0
  158. data/spec/models/get_settings_for_spec.rb +48 -0
  159. data/spec/models/get_settings_spec.rb +48 -0
  160. data/spec/models/get_table_column_data_spec.rb +132 -0
  161. data/spec/models/get_table_column_spec.rb +48 -0
  162. data/spec/models/get_table_columns_data_spec.rb +156 -0
  163. data/spec/models/get_table_columns_spec.rb +48 -0
  164. data/spec/models/get_table_data_spec.rb +168 -0
  165. data/spec/models/get_table_row_spec.rb +48 -0
  166. data/spec/models/get_table_rows_data_spec.rb +48 -0
  167. data/spec/models/get_table_rows_meta_spec.rb +78 -0
  168. data/spec/models/get_table_rows_spec.rb +48 -0
  169. data/spec/models/get_table_spec.rb +48 -0
  170. data/spec/models/get_tables_data_spec.rb +42 -0
  171. data/spec/models/get_tables_meta_spec.rb +48 -0
  172. data/spec/models/get_tables_spec.rb +48 -0
  173. data/spec/spec_helper.rb +111 -0
  174. metadata +451 -0
@@ -0,0 +1,15 @@
1
+ =begin
2
+ #directus.io
3
+
4
+ #API for directus.io
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ module DirectusSDK
14
+ VERSION = "1.1.1"
15
+ end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #directus.io
3
+
4
+ #API for directus.io
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DirectusSDK::ActivityApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ActivityApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DirectusSDK::ActivityApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ActivityApi' do
30
+ it 'should create an instance of ActivityApi' do
31
+ expect(@instance).to be_instance_of(DirectusSDK::ActivityApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_activity
36
+ # Returns activity
37
+ #
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [GetActivity]
40
+ describe 'get_activity test' do
41
+ it "should work" do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,98 @@
1
+ =begin
2
+ #directus.io
3
+
4
+ #API for directus.io
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DirectusSDK::BookmarksApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'BookmarksApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DirectusSDK::BookmarksApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BookmarksApi' do
30
+ it 'should create an instance of BookmarksApi' do
31
+ expect(@instance).to be_instance_of(DirectusSDK::BookmarksApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_bookmark
36
+ # Create a column in a given table
37
+ #
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :user [Directus user id] This assigns the bookmark to a specific user (there's a ticket to allow for \"global\" bookmarks using NULL) (Only using local connection)
40
+ # @option opts [String] :title The text to display in the navigation menu
41
+ # @option opts [String] :url The path to navigate to when clicked, relative to the Directus root
42
+ # @option opts [String] :icon_class Deprecated
43
+ # @option opts [String] :active Deprecated
44
+ # @option opts [String] :section [\"search\" or \"other\"] Which nav section to show the link within. User generated bookmarks use \"search\", while all system links go within \"other\"
45
+ # @return [nil]
46
+ describe 'add_bookmark test' do
47
+ it "should work" do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ # unit tests for delete_bookmark
53
+ # Deletes specific bookmark
54
+ #
55
+ # @param bookmark_id ID of table to return rows from
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [nil]
58
+ describe 'delete_bookmark test' do
59
+ it "should work" do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ # unit tests for get_bookmark
65
+ # Returns specific bookmark
66
+ #
67
+ # @param bookmark_id ID of table to return rows from
68
+ # @param [Hash] opts the optional parameters
69
+ # @return [GetBookmark]
70
+ describe 'get_bookmark test' do
71
+ it "should work" do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ # unit tests for get_bookmarks
77
+ # Returns bookmarks
78
+ #
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [GetBookmarks]
81
+ describe 'get_bookmarks test' do
82
+ it "should work" do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for get_bookmarks_self
88
+ # Returns bookmarks of current user
89
+ #
90
+ # @param [Hash] opts the optional parameters
91
+ # @return [GetBookmarks]
92
+ describe 'get_bookmarks_self test' do
93
+ it "should work" do
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ end
@@ -0,0 +1,105 @@
1
+ =begin
2
+ #directus.io
3
+
4
+ #API for directus.io
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DirectusSDK::FilesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'FilesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DirectusSDK::FilesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of FilesApi' do
30
+ it 'should create an instance of FilesApi' do
31
+ expect(@instance).to be_instance_of(DirectusSDK::FilesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_file
36
+ # Creates file
37
+ #
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :data The file's Base64 content
40
+ # @option opts [Integer] :active The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted)
41
+ # @option opts [String] :name The name used in the filesystem, including the extension, eg: \"my-file.jpg\". This is generated by the system based on Global Settings
42
+ # @option opts [String] :title The file's title
43
+ # @option opts [String] :location Location of where the picture was taken, if any. Pulled from the IPTC location when available
44
+ # @option opts [String] :type The file's mime type
45
+ # @option opts [String] :tags A CSV of tags for this file. Pulled from the IPTC keywords when available
46
+ # @option opts [String] :caption The file's caption or description. Pulled from the IPTC description when available
47
+ # @return [nil]
48
+ describe 'create_file test' do
49
+ it "should work" do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ # unit tests for get_file
55
+ # Returns specific file by id
56
+ #
57
+ # @param file_id ID of file to get
58
+ # @param [Hash] opts the optional parameters
59
+ # @return [GetFile]
60
+ describe 'get_file test' do
61
+ it "should work" do
62
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
+ end
64
+ end
65
+
66
+ # unit tests for get_files
67
+ # Returns files
68
+ #
69
+ # @param [Hash] opts the optional parameters
70
+ # @return [GetFiles]
71
+ describe 'get_files test' do
72
+ it "should work" do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ # unit tests for update_file
78
+ # Creates file
79
+ #
80
+ # @param file_id ID of file to get
81
+ # @param [Hash] opts the optional parameters
82
+ # @option opts [String] :data The file's Base64 content
83
+ # @option opts [Integer] :active The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted)
84
+ # @option opts [String] :name The name used in the filesystem, including the extension, eg: \"my-file.jpg\". This is generated by the system based on Global Settings
85
+ # @option opts [String] :title The file's title
86
+ # @option opts [String] :location Location of where the picture was taken, if any. Pulled from the IPTC location when available
87
+ # @option opts [String] :type The file's mime type
88
+ # @option opts [String] :tags A CSV of tags for this file. Pulled from the IPTC keywords when available
89
+ # @option opts [String] :caption The file's caption or description. Pulled from the IPTC description when available
90
+ # @option opts [String] :url File url relativity to Directus base url
91
+ # @option opts [Integer] :width File width
92
+ # @option opts [Integer] :height File height
93
+ # @option opts [Integer] :size File size in bytes
94
+ # @option opts [String] :embed_id ID of the embedded file. Ex Youtube ID
95
+ # @option opts [Integer] :user File owner (who uploaded the file)
96
+ # @option opts [String] :date_uploaded File uploaded date. TODO It should be an DateTime object
97
+ # @option opts [String] :storage_adapter Storage adapter used to upload the file
98
+ # @return [nil]
99
+ describe 'update_file test' do
100
+ it "should work" do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ end
@@ -0,0 +1,143 @@
1
+ =begin
2
+ #directus.io
3
+
4
+ #API for directus.io
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DirectusSDK::GroupsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'GroupsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DirectusSDK::GroupsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GroupsApi' do
30
+ it 'should create an instance of GroupsApi' do
31
+ expect(@instance).to be_instance_of(DirectusSDK::GroupsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_group
36
+ # Add a new group
37
+ #
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :name Name of group to add
40
+ # @return [nil]
41
+ describe 'add_group test' do
42
+ it "should work" do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for add_privilege
48
+ # Create new table privileges for the specified user group
49
+ #
50
+ # @param group_id ID of group to return
51
+ # @param [Hash] opts the optional parameters
52
+ # @option opts [Integer] :id Privilege's Unique Identification number
53
+ # @option opts [String] :table_name Name of table to add
54
+ # @option opts [Integer] :allow_add Permission to add/create entries in the table (See values below)
55
+ # @option opts [Integer] :allow_edit Permission to edit/update entries in the table (See values below)
56
+ # @option opts [Integer] :allow_delete Permission to delete/remove entries in the table (See values below)
57
+ # @option opts [Integer] :allow_view Permission to view/read entries in the table (See values below)
58
+ # @option opts [Integer] :allow_alter Permission to add/create entries in the table (See values below)
59
+ # @option opts [BOOLEAN] :nav_listed If the table should be visible in the sidebar for this user group
60
+ # @option opts [String] :read_field_blacklist A CSV of column names that the group can't view (read)
61
+ # @option opts [String] :write_field_blacklist A CSV of column names that the group can't edit (update)
62
+ # @option opts [String] :status_id State of the record that this permissions belongs to (Draft, Active or Soft Deleted)
63
+ # @return [nil]
64
+ describe 'add_privilege test' do
65
+ it "should work" do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for get_group
71
+ # Returns specific group
72
+ #
73
+ # @param group_id ID of group to return
74
+ # @param [Hash] opts the optional parameters
75
+ # @return [GetGroup]
76
+ describe 'get_group test' do
77
+ it "should work" do
78
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
79
+ end
80
+ end
81
+
82
+ # unit tests for get_groups
83
+ # Returns groups
84
+ #
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [GetGroups]
87
+ describe 'get_groups test' do
88
+ it "should work" do
89
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
90
+ end
91
+ end
92
+
93
+ # unit tests for get_privileges
94
+ # Returns group privileges
95
+ #
96
+ # @param group_id ID of group to return
97
+ # @param [Hash] opts the optional parameters
98
+ # @return [GetPrivileges]
99
+ describe 'get_privileges test' do
100
+ it "should work" do
101
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
102
+ end
103
+ end
104
+
105
+ # unit tests for get_privileges_for_table
106
+ # Returns group privileges by tableName
107
+ #
108
+ # @param group_id ID of group to return
109
+ # @param table_name_or_privilege_id ID of privileges or Table Name to use
110
+ # @param [Hash] opts the optional parameters
111
+ # @return [GetPrivilegesForTable]
112
+ describe 'get_privileges_for_table test' do
113
+ it "should work" do
114
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
115
+ end
116
+ end
117
+
118
+ # unit tests for update_privileges
119
+ # Update privileges by privilegeId
120
+ #
121
+ # @param group_id ID of group to return
122
+ # @param table_name_or_privilege_id ID of privileges or Table Name to use
123
+ # @param [Hash] opts the optional parameters
124
+ # @option opts [String] :privileges_id ubique privilege ID
125
+ # @option opts [String] :group_id2 ID of group to return
126
+ # @option opts [String] :table_name Name of table to add
127
+ # @option opts [Integer] :allow_add Permission to add/create entries in the table (See values below)
128
+ # @option opts [Integer] :allow_edit Permission to edit/update entries in the table (See values below)
129
+ # @option opts [Integer] :allow_delete Permission to delete/remove entries in the table (See values below)
130
+ # @option opts [Integer] :allow_view Permission to view/read entries in the table (See values below)
131
+ # @option opts [Integer] :allow_alter Permission to add/create entries in the table (See values below)
132
+ # @option opts [BOOLEAN] :nav_listed If the table should be visible in the sidebar for this user group
133
+ # @option opts [String] :read_field_blacklist A CSV of column names that the group can't view (read)
134
+ # @option opts [String] :write_field_blacklist A CSV of column names that the group can't edit (update)
135
+ # @option opts [String] :status_id State of the record that this permissions belongs to (Draft, Active or Soft Deleted)
136
+ # @return [nil]
137
+ describe 'update_privileges test' do
138
+ it "should work" do
139
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
+ end
141
+ end
142
+
143
+ end
@@ -0,0 +1,58 @@
1
+ =begin
2
+ #directus.io
3
+
4
+ #API for directus.io
5
+
6
+ OpenAPI spec version: 1.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.0-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DirectusSDK::MessagesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'MessagesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DirectusSDK::MessagesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of MessagesApi' do
30
+ it 'should create an instance of MessagesApi' do
31
+ expect(@instance).to be_instance_of(DirectusSDK::MessagesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_message
36
+ # Returns specific message
37
+ #
38
+ # @param message_id ID of message to return
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [GetMessage]
41
+ describe 'get_message test' do
42
+ it "should work" do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for get_messages
48
+ # Returns messages
49
+ #
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [GetMessages]
52
+ describe 'get_messages test' do
53
+ it "should work" do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ end