directus_sdk 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,297 @@
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 "uri"
14
+
15
+ module DirectusSDK
16
+ class FilesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Creates file
24
+ #
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :data The file's Base64 content
27
+ # @option opts [Integer] :active The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted)
28
+ # @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
29
+ # @option opts [String] :title The file's title
30
+ # @option opts [String] :location Location of where the picture was taken, if any. Pulled from the IPTC location when available
31
+ # @option opts [String] :type The file's mime type
32
+ # @option opts [String] :tags A CSV of tags for this file. Pulled from the IPTC keywords when available
33
+ # @option opts [String] :caption The file's caption or description. Pulled from the IPTC description when available
34
+ # @return [nil]
35
+ def create_file(opts = {})
36
+ create_file_with_http_info(opts)
37
+ return nil
38
+ end
39
+
40
+ # Creates file
41
+ #
42
+ # @param [Hash] opts the optional parameters
43
+ # @option opts [String] :data The file's Base64 content
44
+ # @option opts [Integer] :active The file's status, default options are: 1 (active), 2 (inactive), 0 (deleted)
45
+ # @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
46
+ # @option opts [String] :title The file's title
47
+ # @option opts [String] :location Location of where the picture was taken, if any. Pulled from the IPTC location when available
48
+ # @option opts [String] :type The file's mime type
49
+ # @option opts [String] :tags A CSV of tags for this file. Pulled from the IPTC keywords when available
50
+ # @option opts [String] :caption The file's caption or description. Pulled from the IPTC description when available
51
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
52
+ def create_file_with_http_info(opts = {})
53
+ if @api_client.config.debugging
54
+ @api_client.config.logger.debug "Calling API: FilesApi.create_file ..."
55
+ end
56
+ # resource path
57
+ local_var_path = "/files"
58
+
59
+ # query parameters
60
+ query_params = {}
61
+
62
+ # header parameters
63
+ header_params = {}
64
+ # HTTP header 'Accept' (if needed)
65
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
66
+ # HTTP header 'Content-Type'
67
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
68
+
69
+ # form parameters
70
+ form_params = {}
71
+ form_params["data"] = opts[:'data'] if !opts[:'data'].nil?
72
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
73
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
74
+ form_params["title"] = opts[:'title'] if !opts[:'title'].nil?
75
+ form_params["location"] = opts[:'location'] if !opts[:'location'].nil?
76
+ form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
77
+ form_params["tags"] = opts[:'tags'] if !opts[:'tags'].nil?
78
+ form_params["caption"] = opts[:'caption'] if !opts[:'caption'].nil?
79
+
80
+ # http body (model)
81
+ post_body = nil
82
+ auth_names = ['api_key']
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names)
89
+ if @api_client.config.debugging
90
+ @api_client.config.logger.debug "API called: FilesApi#create_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+
95
+ # Returns specific file by id
96
+ #
97
+ # @param file_id ID of file to get
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [GetFile]
100
+ def get_file(file_id, opts = {})
101
+ data, _status_code, _headers = get_file_with_http_info(file_id, opts)
102
+ return data
103
+ end
104
+
105
+ # Returns specific file by id
106
+ #
107
+ # @param file_id ID of file to get
108
+ # @param [Hash] opts the optional parameters
109
+ # @return [Array<(GetFile, Fixnum, Hash)>] GetFile data, response status code and response headers
110
+ def get_file_with_http_info(file_id, opts = {})
111
+ if @api_client.config.debugging
112
+ @api_client.config.logger.debug "Calling API: FilesApi.get_file ..."
113
+ end
114
+ # verify the required parameter 'file_id' is set
115
+ if @api_client.config.client_side_validation && file_id.nil?
116
+ fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.get_file"
117
+ end
118
+ # resource path
119
+ local_var_path = "/files/{fileId}".sub('{' + 'fileId' + '}', file_id.to_s)
120
+
121
+ # query parameters
122
+ query_params = {}
123
+
124
+ # header parameters
125
+ header_params = {}
126
+ # HTTP header 'Accept' (if needed)
127
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
+
129
+ # form parameters
130
+ form_params = {}
131
+
132
+ # http body (model)
133
+ post_body = nil
134
+ auth_names = ['api_key']
135
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
136
+ :header_params => header_params,
137
+ :query_params => query_params,
138
+ :form_params => form_params,
139
+ :body => post_body,
140
+ :auth_names => auth_names,
141
+ :return_type => 'GetFile')
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: FilesApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # Returns files
149
+ #
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [GetFiles]
152
+ def get_files(opts = {})
153
+ data, _status_code, _headers = get_files_with_http_info(opts)
154
+ return data
155
+ end
156
+
157
+ # Returns files
158
+ #
159
+ # @param [Hash] opts the optional parameters
160
+ # @return [Array<(GetFiles, Fixnum, Hash)>] GetFiles data, response status code and response headers
161
+ def get_files_with_http_info(opts = {})
162
+ if @api_client.config.debugging
163
+ @api_client.config.logger.debug "Calling API: FilesApi.get_files ..."
164
+ end
165
+ # resource path
166
+ local_var_path = "/files"
167
+
168
+ # query parameters
169
+ query_params = {}
170
+
171
+ # header parameters
172
+ header_params = {}
173
+ # HTTP header 'Accept' (if needed)
174
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
175
+
176
+ # form parameters
177
+ form_params = {}
178
+
179
+ # http body (model)
180
+ post_body = nil
181
+ auth_names = ['api_key']
182
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
183
+ :header_params => header_params,
184
+ :query_params => query_params,
185
+ :form_params => form_params,
186
+ :body => post_body,
187
+ :auth_names => auth_names,
188
+ :return_type => 'GetFiles')
189
+ if @api_client.config.debugging
190
+ @api_client.config.logger.debug "API called: FilesApi#get_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
191
+ end
192
+ return data, status_code, headers
193
+ end
194
+
195
+ # Creates file
196
+ #
197
+ # @param file_id ID of file to get
198
+ # @param [Hash] opts the optional parameters
199
+ # @option opts [String] :data The file&#39;s Base64 content
200
+ # @option opts [Integer] :active The file&#39;s status, default options are: 1 (active), 2 (inactive), 0 (deleted)
201
+ # @option opts [String] :name The name used in the filesystem, including the extension, eg: \&quot;my-file.jpg\&quot;. This is generated by the system based on Global Settings
202
+ # @option opts [String] :title The file&#39;s title
203
+ # @option opts [String] :location Location of where the picture was taken, if any. Pulled from the IPTC location when available
204
+ # @option opts [String] :type The file&#39;s mime type
205
+ # @option opts [String] :tags A CSV of tags for this file. Pulled from the IPTC keywords when available
206
+ # @option opts [String] :caption The file&#39;s caption or description. Pulled from the IPTC description when available
207
+ # @option opts [String] :url File url relativity to Directus base url
208
+ # @option opts [Integer] :width File width
209
+ # @option opts [Integer] :height File height
210
+ # @option opts [Integer] :size File size in bytes
211
+ # @option opts [String] :embed_id ID of the embedded file. Ex Youtube ID
212
+ # @option opts [Integer] :user File owner (who uploaded the file)
213
+ # @option opts [String] :date_uploaded File uploaded date. TODO It should be an DateTime object
214
+ # @option opts [String] :storage_adapter Storage adapter used to upload the file
215
+ # @return [nil]
216
+ def update_file(file_id, opts = {})
217
+ update_file_with_http_info(file_id, opts)
218
+ return nil
219
+ end
220
+
221
+ # Creates file
222
+ #
223
+ # @param file_id ID of file to get
224
+ # @param [Hash] opts the optional parameters
225
+ # @option opts [String] :data The file&#39;s Base64 content
226
+ # @option opts [Integer] :active The file&#39;s status, default options are: 1 (active), 2 (inactive), 0 (deleted)
227
+ # @option opts [String] :name The name used in the filesystem, including the extension, eg: \&quot;my-file.jpg\&quot;. This is generated by the system based on Global Settings
228
+ # @option opts [String] :title The file&#39;s title
229
+ # @option opts [String] :location Location of where the picture was taken, if any. Pulled from the IPTC location when available
230
+ # @option opts [String] :type The file&#39;s mime type
231
+ # @option opts [String] :tags A CSV of tags for this file. Pulled from the IPTC keywords when available
232
+ # @option opts [String] :caption The file&#39;s caption or description. Pulled from the IPTC description when available
233
+ # @option opts [String] :url File url relativity to Directus base url
234
+ # @option opts [Integer] :width File width
235
+ # @option opts [Integer] :height File height
236
+ # @option opts [Integer] :size File size in bytes
237
+ # @option opts [String] :embed_id ID of the embedded file. Ex Youtube ID
238
+ # @option opts [Integer] :user File owner (who uploaded the file)
239
+ # @option opts [String] :date_uploaded File uploaded date. TODO It should be an DateTime object
240
+ # @option opts [String] :storage_adapter Storage adapter used to upload the file
241
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
242
+ def update_file_with_http_info(file_id, opts = {})
243
+ if @api_client.config.debugging
244
+ @api_client.config.logger.debug "Calling API: FilesApi.update_file ..."
245
+ end
246
+ # verify the required parameter 'file_id' is set
247
+ if @api_client.config.client_side_validation && file_id.nil?
248
+ fail ArgumentError, "Missing the required parameter 'file_id' when calling FilesApi.update_file"
249
+ end
250
+ # resource path
251
+ local_var_path = "/files/{fileId}".sub('{' + 'fileId' + '}', file_id.to_s)
252
+
253
+ # query parameters
254
+ query_params = {}
255
+
256
+ # header parameters
257
+ header_params = {}
258
+ # HTTP header 'Accept' (if needed)
259
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
260
+ # HTTP header 'Content-Type'
261
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
262
+
263
+ # form parameters
264
+ form_params = {}
265
+ form_params["data"] = opts[:'data'] if !opts[:'data'].nil?
266
+ form_params["active"] = opts[:'active'] if !opts[:'active'].nil?
267
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
268
+ form_params["title"] = opts[:'title'] if !opts[:'title'].nil?
269
+ form_params["location"] = opts[:'location'] if !opts[:'location'].nil?
270
+ form_params["type"] = opts[:'type'] if !opts[:'type'].nil?
271
+ form_params["tags"] = opts[:'tags'] if !opts[:'tags'].nil?
272
+ form_params["caption"] = opts[:'caption'] if !opts[:'caption'].nil?
273
+ form_params["url"] = opts[:'url'] if !opts[:'url'].nil?
274
+ form_params["width"] = opts[:'width'] if !opts[:'width'].nil?
275
+ form_params["height"] = opts[:'height'] if !opts[:'height'].nil?
276
+ form_params["size"] = opts[:'size'] if !opts[:'size'].nil?
277
+ form_params["embed_id"] = opts[:'embed_id'] if !opts[:'embed_id'].nil?
278
+ form_params["user"] = opts[:'user'] if !opts[:'user'].nil?
279
+ form_params["date_uploaded"] = opts[:'date_uploaded'] if !opts[:'date_uploaded'].nil?
280
+ form_params["storage_adapter"] = opts[:'storage_adapter'] if !opts[:'storage_adapter'].nil?
281
+
282
+ # http body (model)
283
+ post_body = nil
284
+ auth_names = ['api_key']
285
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
286
+ :header_params => header_params,
287
+ :query_params => query_params,
288
+ :form_params => form_params,
289
+ :body => post_body,
290
+ :auth_names => auth_names)
291
+ if @api_client.config.debugging
292
+ @api_client.config.logger.debug "API called: FilesApi#update_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
293
+ end
294
+ return data, status_code, headers
295
+ end
296
+ end
297
+ end
@@ -0,0 +1,469 @@
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 "uri"
14
+
15
+ module DirectusSDK
16
+ class GroupsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+
23
+ # Add a new group
24
+ #
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :name Name of group to add
27
+ # @return [nil]
28
+ def add_group(opts = {})
29
+ add_group_with_http_info(opts)
30
+ return nil
31
+ end
32
+
33
+ # Add a new group
34
+ #
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :name Name of group to add
37
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
38
+ def add_group_with_http_info(opts = {})
39
+ if @api_client.config.debugging
40
+ @api_client.config.logger.debug "Calling API: GroupsApi.add_group ..."
41
+ end
42
+ # resource path
43
+ local_var_path = "/groups"
44
+
45
+ # query parameters
46
+ query_params = {}
47
+
48
+ # header parameters
49
+ header_params = {}
50
+ # HTTP header 'Accept' (if needed)
51
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
52
+ # HTTP header 'Content-Type'
53
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
54
+
55
+ # form parameters
56
+ form_params = {}
57
+ form_params["name"] = opts[:'name'] if !opts[:'name'].nil?
58
+
59
+ # http body (model)
60
+ post_body = nil
61
+ auth_names = ['api_key']
62
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
63
+ :header_params => header_params,
64
+ :query_params => query_params,
65
+ :form_params => form_params,
66
+ :body => post_body,
67
+ :auth_names => auth_names)
68
+ if @api_client.config.debugging
69
+ @api_client.config.logger.debug "API called: GroupsApi#add_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
70
+ end
71
+ return data, status_code, headers
72
+ end
73
+
74
+ # Create new table privileges for the specified user group
75
+ #
76
+ # @param group_id ID of group to return
77
+ # @param [Hash] opts the optional parameters
78
+ # @option opts [Integer] :id Privilege&#39;s Unique Identification number
79
+ # @option opts [String] :table_name Name of table to add
80
+ # @option opts [Integer] :allow_add Permission to add/create entries in the table (See values below)
81
+ # @option opts [Integer] :allow_edit Permission to edit/update entries in the table (See values below)
82
+ # @option opts [Integer] :allow_delete Permission to delete/remove entries in the table (See values below)
83
+ # @option opts [Integer] :allow_view Permission to view/read entries in the table (See values below)
84
+ # @option opts [Integer] :allow_alter Permission to add/create entries in the table (See values below)
85
+ # @option opts [BOOLEAN] :nav_listed If the table should be visible in the sidebar for this user group
86
+ # @option opts [String] :read_field_blacklist A CSV of column names that the group can&#39;t view (read)
87
+ # @option opts [String] :write_field_blacklist A CSV of column names that the group can&#39;t edit (update)
88
+ # @option opts [String] :status_id State of the record that this permissions belongs to (Draft, Active or Soft Deleted)
89
+ # @return [nil]
90
+ def add_privilege(group_id, opts = {})
91
+ add_privilege_with_http_info(group_id, opts)
92
+ return nil
93
+ end
94
+
95
+ # Create new table privileges for the specified user group
96
+ #
97
+ # @param group_id ID of group to return
98
+ # @param [Hash] opts the optional parameters
99
+ # @option opts [Integer] :id Privilege&#39;s Unique Identification number
100
+ # @option opts [String] :table_name Name of table to add
101
+ # @option opts [Integer] :allow_add Permission to add/create entries in the table (See values below)
102
+ # @option opts [Integer] :allow_edit Permission to edit/update entries in the table (See values below)
103
+ # @option opts [Integer] :allow_delete Permission to delete/remove entries in the table (See values below)
104
+ # @option opts [Integer] :allow_view Permission to view/read entries in the table (See values below)
105
+ # @option opts [Integer] :allow_alter Permission to add/create entries in the table (See values below)
106
+ # @option opts [BOOLEAN] :nav_listed If the table should be visible in the sidebar for this user group
107
+ # @option opts [String] :read_field_blacklist A CSV of column names that the group can&#39;t view (read)
108
+ # @option opts [String] :write_field_blacklist A CSV of column names that the group can&#39;t edit (update)
109
+ # @option opts [String] :status_id State of the record that this permissions belongs to (Draft, Active or Soft Deleted)
110
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
111
+ def add_privilege_with_http_info(group_id, opts = {})
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "Calling API: GroupsApi.add_privilege ..."
114
+ end
115
+ # verify the required parameter 'group_id' is set
116
+ if @api_client.config.client_side_validation && group_id.nil?
117
+ fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.add_privilege"
118
+ end
119
+ # resource path
120
+ local_var_path = "/privileges/{groupId}".sub('{' + 'groupId' + '}', group_id.to_s)
121
+
122
+ # query parameters
123
+ query_params = {}
124
+
125
+ # header parameters
126
+ header_params = {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
129
+ # HTTP header 'Content-Type'
130
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
131
+
132
+ # form parameters
133
+ form_params = {}
134
+ form_params["id"] = opts[:'id'] if !opts[:'id'].nil?
135
+ form_params["table_name"] = opts[:'table_name'] if !opts[:'table_name'].nil?
136
+ form_params["allow_add"] = opts[:'allow_add'] if !opts[:'allow_add'].nil?
137
+ form_params["allow_edit"] = opts[:'allow_edit'] if !opts[:'allow_edit'].nil?
138
+ form_params["allow_delete"] = opts[:'allow_delete'] if !opts[:'allow_delete'].nil?
139
+ form_params["allow_view"] = opts[:'allow_view'] if !opts[:'allow_view'].nil?
140
+ form_params["allow_alter"] = opts[:'allow_alter'] if !opts[:'allow_alter'].nil?
141
+ form_params["nav_listed"] = opts[:'nav_listed'] if !opts[:'nav_listed'].nil?
142
+ form_params["read_field_blacklist"] = opts[:'read_field_blacklist'] if !opts[:'read_field_blacklist'].nil?
143
+ form_params["write_field_blacklist"] = opts[:'write_field_blacklist'] if !opts[:'write_field_blacklist'].nil?
144
+ form_params["status_id"] = opts[:'status_id'] if !opts[:'status_id'].nil?
145
+
146
+ # http body (model)
147
+ post_body = nil
148
+ auth_names = ['api_key']
149
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
150
+ :header_params => header_params,
151
+ :query_params => query_params,
152
+ :form_params => form_params,
153
+ :body => post_body,
154
+ :auth_names => auth_names)
155
+ if @api_client.config.debugging
156
+ @api_client.config.logger.debug "API called: GroupsApi#add_privilege\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
157
+ end
158
+ return data, status_code, headers
159
+ end
160
+
161
+ # Returns specific group
162
+ #
163
+ # @param group_id ID of group to return
164
+ # @param [Hash] opts the optional parameters
165
+ # @return [GetGroup]
166
+ def get_group(group_id, opts = {})
167
+ data, _status_code, _headers = get_group_with_http_info(group_id, opts)
168
+ return data
169
+ end
170
+
171
+ # Returns specific group
172
+ #
173
+ # @param group_id ID of group to return
174
+ # @param [Hash] opts the optional parameters
175
+ # @return [Array<(GetGroup, Fixnum, Hash)>] GetGroup data, response status code and response headers
176
+ def get_group_with_http_info(group_id, opts = {})
177
+ if @api_client.config.debugging
178
+ @api_client.config.logger.debug "Calling API: GroupsApi.get_group ..."
179
+ end
180
+ # verify the required parameter 'group_id' is set
181
+ if @api_client.config.client_side_validation && group_id.nil?
182
+ fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.get_group"
183
+ end
184
+ # resource path
185
+ local_var_path = "/groups/{groupId}".sub('{' + 'groupId' + '}', group_id.to_s)
186
+
187
+ # query parameters
188
+ query_params = {}
189
+
190
+ # header parameters
191
+ header_params = {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
194
+
195
+ # form parameters
196
+ form_params = {}
197
+
198
+ # http body (model)
199
+ post_body = nil
200
+ auth_names = ['api_key']
201
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
202
+ :header_params => header_params,
203
+ :query_params => query_params,
204
+ :form_params => form_params,
205
+ :body => post_body,
206
+ :auth_names => auth_names,
207
+ :return_type => 'GetGroup')
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: GroupsApi#get_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
214
+ # Returns groups
215
+ #
216
+ # @param [Hash] opts the optional parameters
217
+ # @return [GetGroups]
218
+ def get_groups(opts = {})
219
+ data, _status_code, _headers = get_groups_with_http_info(opts)
220
+ return data
221
+ end
222
+
223
+ # Returns groups
224
+ #
225
+ # @param [Hash] opts the optional parameters
226
+ # @return [Array<(GetGroups, Fixnum, Hash)>] GetGroups data, response status code and response headers
227
+ def get_groups_with_http_info(opts = {})
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug "Calling API: GroupsApi.get_groups ..."
230
+ end
231
+ # resource path
232
+ local_var_path = "/groups"
233
+
234
+ # query parameters
235
+ query_params = {}
236
+
237
+ # header parameters
238
+ header_params = {}
239
+ # HTTP header 'Accept' (if needed)
240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
241
+
242
+ # form parameters
243
+ form_params = {}
244
+
245
+ # http body (model)
246
+ post_body = nil
247
+ auth_names = ['api_key']
248
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
249
+ :header_params => header_params,
250
+ :query_params => query_params,
251
+ :form_params => form_params,
252
+ :body => post_body,
253
+ :auth_names => auth_names,
254
+ :return_type => 'GetGroups')
255
+ if @api_client.config.debugging
256
+ @api_client.config.logger.debug "API called: GroupsApi#get_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
257
+ end
258
+ return data, status_code, headers
259
+ end
260
+
261
+ # Returns group privileges
262
+ #
263
+ # @param group_id ID of group to return
264
+ # @param [Hash] opts the optional parameters
265
+ # @return [GetPrivileges]
266
+ def get_privileges(group_id, opts = {})
267
+ data, _status_code, _headers = get_privileges_with_http_info(group_id, opts)
268
+ return data
269
+ end
270
+
271
+ # Returns group privileges
272
+ #
273
+ # @param group_id ID of group to return
274
+ # @param [Hash] opts the optional parameters
275
+ # @return [Array<(GetPrivileges, Fixnum, Hash)>] GetPrivileges data, response status code and response headers
276
+ def get_privileges_with_http_info(group_id, opts = {})
277
+ if @api_client.config.debugging
278
+ @api_client.config.logger.debug "Calling API: GroupsApi.get_privileges ..."
279
+ end
280
+ # verify the required parameter 'group_id' is set
281
+ if @api_client.config.client_side_validation && group_id.nil?
282
+ fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.get_privileges"
283
+ end
284
+ # resource path
285
+ local_var_path = "/privileges/{groupId}".sub('{' + 'groupId' + '}', group_id.to_s)
286
+
287
+ # query parameters
288
+ query_params = {}
289
+
290
+ # header parameters
291
+ header_params = {}
292
+ # HTTP header 'Accept' (if needed)
293
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
294
+
295
+ # form parameters
296
+ form_params = {}
297
+
298
+ # http body (model)
299
+ post_body = nil
300
+ auth_names = ['api_key']
301
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
302
+ :header_params => header_params,
303
+ :query_params => query_params,
304
+ :form_params => form_params,
305
+ :body => post_body,
306
+ :auth_names => auth_names,
307
+ :return_type => 'GetPrivileges')
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug "API called: GroupsApi#get_privileges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
310
+ end
311
+ return data, status_code, headers
312
+ end
313
+
314
+ # Returns group privileges by tableName
315
+ #
316
+ # @param group_id ID of group to return
317
+ # @param table_name_or_privilege_id ID of privileges or Table Name to use
318
+ # @param [Hash] opts the optional parameters
319
+ # @return [GetPrivilegesForTable]
320
+ def get_privileges_for_table(group_id, table_name_or_privilege_id, opts = {})
321
+ data, _status_code, _headers = get_privileges_for_table_with_http_info(group_id, table_name_or_privilege_id, opts)
322
+ return data
323
+ end
324
+
325
+ # Returns group privileges by tableName
326
+ #
327
+ # @param group_id ID of group to return
328
+ # @param table_name_or_privilege_id ID of privileges or Table Name to use
329
+ # @param [Hash] opts the optional parameters
330
+ # @return [Array<(GetPrivilegesForTable, Fixnum, Hash)>] GetPrivilegesForTable data, response status code and response headers
331
+ def get_privileges_for_table_with_http_info(group_id, table_name_or_privilege_id, opts = {})
332
+ if @api_client.config.debugging
333
+ @api_client.config.logger.debug "Calling API: GroupsApi.get_privileges_for_table ..."
334
+ end
335
+ # verify the required parameter 'group_id' is set
336
+ if @api_client.config.client_side_validation && group_id.nil?
337
+ fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.get_privileges_for_table"
338
+ end
339
+ # verify the required parameter 'table_name_or_privilege_id' is set
340
+ if @api_client.config.client_side_validation && table_name_or_privilege_id.nil?
341
+ fail ArgumentError, "Missing the required parameter 'table_name_or_privilege_id' when calling GroupsApi.get_privileges_for_table"
342
+ end
343
+ # resource path
344
+ local_var_path = "/privileges/{groupId}/{tableNameOrPrivilegeId}".sub('{' + 'groupId' + '}', group_id.to_s).sub('{' + 'tableNameOrPrivilegeId' + '}', table_name_or_privilege_id.to_s)
345
+
346
+ # query parameters
347
+ query_params = {}
348
+
349
+ # header parameters
350
+ header_params = {}
351
+ # HTTP header 'Accept' (if needed)
352
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
353
+
354
+ # form parameters
355
+ form_params = {}
356
+
357
+ # http body (model)
358
+ post_body = nil
359
+ auth_names = ['api_key']
360
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
361
+ :header_params => header_params,
362
+ :query_params => query_params,
363
+ :form_params => form_params,
364
+ :body => post_body,
365
+ :auth_names => auth_names,
366
+ :return_type => 'GetPrivilegesForTable')
367
+ if @api_client.config.debugging
368
+ @api_client.config.logger.debug "API called: GroupsApi#get_privileges_for_table\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
369
+ end
370
+ return data, status_code, headers
371
+ end
372
+
373
+ # Update privileges by privilegeId
374
+ #
375
+ # @param group_id ID of group to return
376
+ # @param table_name_or_privilege_id ID of privileges or Table Name to use
377
+ # @param [Hash] opts the optional parameters
378
+ # @option opts [String] :privileges_id ubique privilege ID
379
+ # @option opts [String] :group_id2 ID of group to return
380
+ # @option opts [String] :table_name Name of table to add
381
+ # @option opts [Integer] :allow_add Permission to add/create entries in the table (See values below)
382
+ # @option opts [Integer] :allow_edit Permission to edit/update entries in the table (See values below)
383
+ # @option opts [Integer] :allow_delete Permission to delete/remove entries in the table (See values below)
384
+ # @option opts [Integer] :allow_view Permission to view/read entries in the table (See values below)
385
+ # @option opts [Integer] :allow_alter Permission to add/create entries in the table (See values below)
386
+ # @option opts [BOOLEAN] :nav_listed If the table should be visible in the sidebar for this user group
387
+ # @option opts [String] :read_field_blacklist A CSV of column names that the group can&#39;t view (read)
388
+ # @option opts [String] :write_field_blacklist A CSV of column names that the group can&#39;t edit (update)
389
+ # @option opts [String] :status_id State of the record that this permissions belongs to (Draft, Active or Soft Deleted)
390
+ # @return [nil]
391
+ def update_privileges(group_id, table_name_or_privilege_id, opts = {})
392
+ update_privileges_with_http_info(group_id, table_name_or_privilege_id, opts)
393
+ return nil
394
+ end
395
+
396
+ # Update privileges by privilegeId
397
+ #
398
+ # @param group_id ID of group to return
399
+ # @param table_name_or_privilege_id ID of privileges or Table Name to use
400
+ # @param [Hash] opts the optional parameters
401
+ # @option opts [String] :privileges_id ubique privilege ID
402
+ # @option opts [String] :group_id2 ID of group to return
403
+ # @option opts [String] :table_name Name of table to add
404
+ # @option opts [Integer] :allow_add Permission to add/create entries in the table (See values below)
405
+ # @option opts [Integer] :allow_edit Permission to edit/update entries in the table (See values below)
406
+ # @option opts [Integer] :allow_delete Permission to delete/remove entries in the table (See values below)
407
+ # @option opts [Integer] :allow_view Permission to view/read entries in the table (See values below)
408
+ # @option opts [Integer] :allow_alter Permission to add/create entries in the table (See values below)
409
+ # @option opts [BOOLEAN] :nav_listed If the table should be visible in the sidebar for this user group
410
+ # @option opts [String] :read_field_blacklist A CSV of column names that the group can&#39;t view (read)
411
+ # @option opts [String] :write_field_blacklist A CSV of column names that the group can&#39;t edit (update)
412
+ # @option opts [String] :status_id State of the record that this permissions belongs to (Draft, Active or Soft Deleted)
413
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
414
+ def update_privileges_with_http_info(group_id, table_name_or_privilege_id, opts = {})
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug "Calling API: GroupsApi.update_privileges ..."
417
+ end
418
+ # verify the required parameter 'group_id' is set
419
+ if @api_client.config.client_side_validation && group_id.nil?
420
+ fail ArgumentError, "Missing the required parameter 'group_id' when calling GroupsApi.update_privileges"
421
+ end
422
+ # verify the required parameter 'table_name_or_privilege_id' is set
423
+ if @api_client.config.client_side_validation && table_name_or_privilege_id.nil?
424
+ fail ArgumentError, "Missing the required parameter 'table_name_or_privilege_id' when calling GroupsApi.update_privileges"
425
+ end
426
+ # resource path
427
+ local_var_path = "/privileges/{groupId}/{tableNameOrPrivilegeId}".sub('{' + 'groupId' + '}', group_id.to_s).sub('{' + 'tableNameOrPrivilegeId' + '}', table_name_or_privilege_id.to_s)
428
+
429
+ # query parameters
430
+ query_params = {}
431
+
432
+ # header parameters
433
+ header_params = {}
434
+ # HTTP header 'Accept' (if needed)
435
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
436
+ # HTTP header 'Content-Type'
437
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
438
+
439
+ # form parameters
440
+ form_params = {}
441
+ form_params["privileges_id"] = opts[:'privileges_id'] if !opts[:'privileges_id'].nil?
442
+ form_params["group_id"] = opts[:'group_id2'] if !opts[:'group_id2'].nil?
443
+ form_params["table_name"] = opts[:'table_name'] if !opts[:'table_name'].nil?
444
+ form_params["allow_add"] = opts[:'allow_add'] if !opts[:'allow_add'].nil?
445
+ form_params["allow_edit"] = opts[:'allow_edit'] if !opts[:'allow_edit'].nil?
446
+ form_params["allow_delete"] = opts[:'allow_delete'] if !opts[:'allow_delete'].nil?
447
+ form_params["allow_view"] = opts[:'allow_view'] if !opts[:'allow_view'].nil?
448
+ form_params["allow_alter"] = opts[:'allow_alter'] if !opts[:'allow_alter'].nil?
449
+ form_params["nav_listed"] = opts[:'nav_listed'] if !opts[:'nav_listed'].nil?
450
+ form_params["read_field_blacklist"] = opts[:'read_field_blacklist'] if !opts[:'read_field_blacklist'].nil?
451
+ form_params["write_field_blacklist"] = opts[:'write_field_blacklist'] if !opts[:'write_field_blacklist'].nil?
452
+ form_params["status_id"] = opts[:'status_id'] if !opts[:'status_id'].nil?
453
+
454
+ # http body (model)
455
+ post_body = nil
456
+ auth_names = ['api_key']
457
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
458
+ :header_params => header_params,
459
+ :query_params => query_params,
460
+ :form_params => form_params,
461
+ :body => post_body,
462
+ :auth_names => auth_names)
463
+ if @api_client.config.debugging
464
+ @api_client.config.logger.debug "API called: GroupsApi#update_privileges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
465
+ end
466
+ return data, status_code, headers
467
+ end
468
+ end
469
+ end