tca_client 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +862 -0
  4. data/Rakefile +8 -0
  5. data/docs/AddGroupAttachmentRequest.md +8 -0
  6. data/docs/AddGroupAttachmentResponse.md +7 -0
  7. data/docs/AggregateGroup.md +12 -0
  8. data/docs/AuthorMetadataOverride.md +8 -0
  9. data/docs/EULAApi.md +241 -0
  10. data/docs/Error.md +8 -0
  11. data/docs/Eula.md +9 -0
  12. data/docs/EulaAcceptListItem.md +10 -0
  13. data/docs/EulaAcceptRequest.md +10 -0
  14. data/docs/EulaVersion.md +11 -0
  15. data/docs/FeaturesApi.md +61 -0
  16. data/docs/FeaturesEnabled.md +10 -0
  17. data/docs/FeaturesGenerationSettings.md +8 -0
  18. data/docs/FeaturesSimilarity.md +9 -0
  19. data/docs/FeaturesSimilarityViewSettings.md +19 -0
  20. data/docs/FeaturesTenant.md +7 -0
  21. data/docs/FeaturesViewerModes.md +8 -0
  22. data/docs/Group.md +9 -0
  23. data/docs/GroupAttachmentResponse.md +10 -0
  24. data/docs/GroupContext.md +9 -0
  25. data/docs/GroupsApi.md +472 -0
  26. data/docs/IndexApi.md +119 -0
  27. data/docs/IndexStateSettings.md +7 -0
  28. data/docs/IndexingSettings.md +7 -0
  29. data/docs/InlineResponse200.md +7 -0
  30. data/docs/PdfStatusResponse.md +7 -0
  31. data/docs/RateLimitError.md +8 -0
  32. data/docs/RequestPdfResponse.md +7 -0
  33. data/docs/Sidebar.md +7 -0
  34. data/docs/SimilarityApi.md +351 -0
  35. data/docs/SimilarityGenerationSettings.md +10 -0
  36. data/docs/SimilarityMetadata.md +16 -0
  37. data/docs/SimilarityMetadataTopMatches.md +13 -0
  38. data/docs/SimilarityPutRequest.md +9 -0
  39. data/docs/SimilarityScoreData.md +10 -0
  40. data/docs/SimilaritySettings.md +9 -0
  41. data/docs/SimilaritySettingsModes.md +8 -0
  42. data/docs/SimilaritySettingsViewSettings.md +7 -0
  43. data/docs/SimilarityViewSettings.md +19 -0
  44. data/docs/SimilarityViewerUrlResponse.md +7 -0
  45. data/docs/SimilarityViewerUrlSettings.md +14 -0
  46. data/docs/SimpleSubmissionResponse.md +6 -0
  47. data/docs/Submission.md +6 -0
  48. data/docs/SubmissionApi.md +296 -0
  49. data/docs/SubmissionBase.md +15 -0
  50. data/docs/SubmissionBaseMetadata.md +12 -0
  51. data/docs/SubmissionSizeError.md +8 -0
  52. data/docs/SuccessMessage.md +7 -0
  53. data/docs/Users.md +10 -0
  54. data/docs/ViewerPermissions.md +11 -0
  55. data/docs/Webhook.md +10 -0
  56. data/docs/WebhookApi.md +286 -0
  57. data/docs/WebhookBase.md +10 -0
  58. data/docs/WebhookPathRequest.md +8 -0
  59. data/docs/WebhookWithSecret.md +10 -0
  60. data/git_push.sh +55 -0
  61. data/lib/tca_client/api/eula_api.rb +312 -0
  62. data/lib/tca_client/api/features_api.rb +82 -0
  63. data/lib/tca_client/api/groups_api.rb +627 -0
  64. data/lib/tca_client/api/index_api.rb +156 -0
  65. data/lib/tca_client/api/similarity_api.rb +456 -0
  66. data/lib/tca_client/api/submission_api.rb +387 -0
  67. data/lib/tca_client/api/webhook_api.rb +364 -0
  68. data/lib/tca_client/api_client.rb +388 -0
  69. data/lib/tca_client/api_error.rb +57 -0
  70. data/lib/tca_client/configuration.rb +205 -0
  71. data/lib/tca_client/models/add_group_attachment_request.rb +220 -0
  72. data/lib/tca_client/models/add_group_attachment_response.rb +208 -0
  73. data/lib/tca_client/models/aggregate_group.rb +299 -0
  74. data/lib/tca_client/models/author_metadata_override.rb +217 -0
  75. data/lib/tca_client/models/error.rb +218 -0
  76. data/lib/tca_client/models/eula.rb +228 -0
  77. data/lib/tca_client/models/eula_accept_list_item.rb +237 -0
  78. data/lib/tca_client/models/eula_accept_request.rb +237 -0
  79. data/lib/tca_client/models/eula_version.rb +272 -0
  80. data/lib/tca_client/models/features_enabled.rb +257 -0
  81. data/lib/tca_client/models/features_generation_settings.rb +240 -0
  82. data/lib/tca_client/models/features_similarity.rb +224 -0
  83. data/lib/tca_client/models/features_similarity_view_settings.rb +327 -0
  84. data/lib/tca_client/models/features_tenant.rb +207 -0
  85. data/lib/tca_client/models/features_viewer_modes.rb +215 -0
  86. data/lib/tca_client/models/group.rb +259 -0
  87. data/lib/tca_client/models/group_attachment_response.rb +272 -0
  88. data/lib/tca_client/models/group_context.rb +227 -0
  89. data/lib/tca_client/models/index_state_settings.rb +207 -0
  90. data/lib/tca_client/models/indexing_settings.rb +207 -0
  91. data/lib/tca_client/models/inline_response_200.rb +208 -0
  92. data/lib/tca_client/models/pdf_status_response.rb +241 -0
  93. data/lib/tca_client/models/rate_limit_error.rb +221 -0
  94. data/lib/tca_client/models/request_pdf_response.rb +207 -0
  95. data/lib/tca_client/models/sidebar.rb +241 -0
  96. data/lib/tca_client/models/similarity_generation_settings.rb +280 -0
  97. data/lib/tca_client/models/similarity_metadata.rb +340 -0
  98. data/lib/tca_client/models/similarity_metadata_top_matches.rb +267 -0
  99. data/lib/tca_client/models/similarity_put_request.rb +229 -0
  100. data/lib/tca_client/models/similarity_score_data.rb +245 -0
  101. data/lib/tca_client/models/similarity_settings.rb +259 -0
  102. data/lib/tca_client/models/similarity_settings_modes.rb +217 -0
  103. data/lib/tca_client/models/similarity_settings_view_settings.rb +207 -0
  104. data/lib/tca_client/models/similarity_view_settings.rb +327 -0
  105. data/lib/tca_client/models/similarity_viewer_url_response.rb +207 -0
  106. data/lib/tca_client/models/similarity_viewer_url_settings.rb +306 -0
  107. data/lib/tca_client/models/simple_submission_response.rb +197 -0
  108. data/lib/tca_client/models/submission.rb +197 -0
  109. data/lib/tca_client/models/submission_base.rb +332 -0
  110. data/lib/tca_client/models/submission_base_metadata.rb +256 -0
  111. data/lib/tca_client/models/submission_size_error.rb +221 -0
  112. data/lib/tca_client/models/success_message.rb +208 -0
  113. data/lib/tca_client/models/users.rb +234 -0
  114. data/lib/tca_client/models/viewer_permissions.rb +247 -0
  115. data/lib/tca_client/models/webhook.rb +271 -0
  116. data/lib/tca_client/models/webhook_base.rb +271 -0
  117. data/lib/tca_client/models/webhook_path_request.rb +246 -0
  118. data/lib/tca_client/models/webhook_with_secret.rb +271 -0
  119. data/lib/tca_client/version.rb +14 -0
  120. data/lib/tca_client.rb +93 -0
  121. data/spec/api/eula_api_spec.rb +90 -0
  122. data/spec/api/features_api_spec.rb +46 -0
  123. data/spec/api/groups_api_spec.rb +147 -0
  124. data/spec/api/index_api_spec.rb +60 -0
  125. data/spec/api/similarity_api_spec.rb +116 -0
  126. data/spec/api/submission_api_spec.rb +103 -0
  127. data/spec/api/webhook_api_spec.rb +99 -0
  128. data/spec/api_client_spec.rb +225 -0
  129. data/spec/base_object_spec.rb +109 -0
  130. data/spec/configuration_spec.rb +41 -0
  131. data/spec/models/add_group_attachment_request_spec.rb +46 -0
  132. data/spec/models/add_group_attachment_response_spec.rb +40 -0
  133. data/spec/models/aggregate_group_spec.rb +78 -0
  134. data/spec/models/author_metadata_override_spec.rb +46 -0
  135. data/spec/models/error_spec.rb +46 -0
  136. data/spec/models/eula_accept_list_item_spec.rb +58 -0
  137. data/spec/models/eula_accept_request_spec.rb +58 -0
  138. data/spec/models/eula_spec.rb +52 -0
  139. data/spec/models/eula_version_spec.rb +68 -0
  140. data/spec/models/features_enabled_spec.rb +62 -0
  141. data/spec/models/features_generation_settings_spec.rb +50 -0
  142. data/spec/models/features_similarity_spec.rb +52 -0
  143. data/spec/models/features_similarity_view_settings_spec.rb +112 -0
  144. data/spec/models/features_tenant_spec.rb +40 -0
  145. data/spec/models/features_viewer_modes_spec.rb +46 -0
  146. data/spec/models/group_attachment_response_spec.rb +62 -0
  147. data/spec/models/group_context_spec.rb +52 -0
  148. data/spec/models/group_spec.rb +56 -0
  149. data/spec/models/index_state_settings_spec.rb +40 -0
  150. data/spec/models/indexing_settings_spec.rb +40 -0
  151. data/spec/models/inline_response_200_spec.rb +40 -0
  152. data/spec/models/pdf_status_response_spec.rb +44 -0
  153. data/spec/models/rate_limit_error_spec.rb +46 -0
  154. data/spec/models/request_pdf_response_spec.rb +40 -0
  155. data/spec/models/sidebar_spec.rb +44 -0
  156. data/spec/models/similarity_generation_settings_spec.rb +66 -0
  157. data/spec/models/similarity_metadata_spec.rb +94 -0
  158. data/spec/models/similarity_metadata_top_matches_spec.rb +76 -0
  159. data/spec/models/similarity_put_request_spec.rb +52 -0
  160. data/spec/models/similarity_score_data_spec.rb +58 -0
  161. data/spec/models/similarity_settings_modes_spec.rb +46 -0
  162. data/spec/models/similarity_settings_spec.rb +56 -0
  163. data/spec/models/similarity_settings_view_settings_spec.rb +40 -0
  164. data/spec/models/similarity_view_settings_spec.rb +112 -0
  165. data/spec/models/similarity_viewer_url_response_spec.rb +40 -0
  166. data/spec/models/similarity_viewer_url_settings_spec.rb +86 -0
  167. data/spec/models/simple_submission_response_spec.rb +34 -0
  168. data/spec/models/submission_base_metadata_spec.rb +70 -0
  169. data/spec/models/submission_base_spec.rb +96 -0
  170. data/spec/models/submission_size_error_spec.rb +46 -0
  171. data/spec/models/submission_spec.rb +34 -0
  172. data/spec/models/success_message_spec.rb +40 -0
  173. data/spec/models/users_spec.rb +58 -0
  174. data/spec/models/viewer_permissions_spec.rb +64 -0
  175. data/spec/models/webhook_base_spec.rb +62 -0
  176. data/spec/models/webhook_path_request_spec.rb +50 -0
  177. data/spec/models/webhook_spec.rb +62 -0
  178. data/spec/models/webhook_with_secret_spec.rb +62 -0
  179. data/spec/spec_helper.rb +110 -0
  180. data/tca_client.gemspec +38 -0
  181. metadata +365 -0
@@ -0,0 +1,296 @@
1
+ # TCAClient::SubmissionApi
2
+
3
+ All URIs are relative to *https://{tenantName}.{hostName}/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create_submission**](SubmissionApi.md#create_submission) | **POST** /submissions | Create a new Submission
8
+ [**delete_submission**](SubmissionApi.md#delete_submission) | **DELETE** /submissions/{id} | Deletes a submission and associated similarity report.
9
+ [**get_submiddion_details**](SubmissionApi.md#get_submiddion_details) | **GET** /submissions/{id} | Get Submission Details
10
+ [**recover_submission**](SubmissionApi.md#recover_submission) | **PUT** /submissions/{id}/recover | Recover a soft deleted submission
11
+ [**upload_submitted_file**](SubmissionApi.md#upload_submitted_file) | **PUT** /submissions/{id}/original | Upload Submitted File
12
+
13
+ # **create_submission**
14
+ > SimpleSubmissionResponse create_submission(bodyx_turnitin_integration_namex_turnitin_integration_version)
15
+
16
+ Create a new Submission
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'tca_client'
22
+ # setup authorization
23
+ TCAClient.configure do |config|
24
+ # Configure API key authorization: api_key
25
+ config.api_key['Authorization'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Authorization'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = TCAClient::SubmissionApi.new
31
+ body = TCAClient::SubmissionBase.new # SubmissionBase |
32
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
33
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
34
+
35
+
36
+ begin
37
+ #Create a new Submission
38
+ result = api_instance.create_submission(bodyx_turnitin_integration_namex_turnitin_integration_version)
39
+ p result
40
+ rescue TCAClient::ApiError => e
41
+ puts "Exception when calling SubmissionApi->create_submission: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **body** | [**SubmissionBase**](SubmissionBase.md)| |
50
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
51
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
52
+
53
+ ### Return type
54
+
55
+ [**SimpleSubmissionResponse**](SimpleSubmissionResponse.md)
56
+
57
+ ### Authorization
58
+
59
+ [api_key](../README.md#api_key)
60
+
61
+ ### HTTP request headers
62
+
63
+ - **Content-Type**: application/json
64
+ - **Accept**: application/json
65
+
66
+
67
+
68
+ # **delete_submission**
69
+ > SuccessMessage delete_submission(x_turnitin_integration_name, x_turnitin_integration_version, id, opts)
70
+
71
+ Deletes a submission and associated similarity report.
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'tca_client'
77
+ # setup authorization
78
+ TCAClient.configure do |config|
79
+ # Configure API key authorization: api_key
80
+ config.api_key['Authorization'] = 'YOUR API KEY'
81
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
82
+ #config.api_key_prefix['Authorization'] = 'Bearer'
83
+ end
84
+
85
+ api_instance = TCAClient::SubmissionApi.new
86
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
87
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
88
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
89
+ opts = {
90
+ hard: 'false' # String | Accepts true or false indicating either hard or soft delete. A soft delete removes the associated submission report/index and changes the saved submission state to DELETED. A hard deletion completely removes the submission information from Panda and TCA and removes the associated report/index, which can not be recovered.
91
+ }
92
+
93
+ begin
94
+ #Deletes a submission and associated similarity report.
95
+ result = api_instance.delete_submission(x_turnitin_integration_name, x_turnitin_integration_version, id, opts)
96
+ p result
97
+ rescue TCAClient::ApiError => e
98
+ puts "Exception when calling SubmissionApi->delete_submission: #{e}"
99
+ end
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
107
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
108
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
109
+ **hard** | **String**| Accepts true or false indicating either hard or soft delete. A soft delete removes the associated submission report/index and changes the saved submission state to DELETED. A hard deletion completely removes the submission information from Panda and TCA and removes the associated report/index, which can not be recovered. | [optional] [default to false]
110
+
111
+ ### Return type
112
+
113
+ [**SuccessMessage**](SuccessMessage.md)
114
+
115
+ ### Authorization
116
+
117
+ [api_key](../README.md#api_key)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: Not defined
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **get_submiddion_details**
127
+ > Submission get_submiddion_details(x_turnitin_integration_name, x_turnitin_integration_version, id)
128
+
129
+ Get Submission Details
130
+
131
+ ### Example
132
+ ```ruby
133
+ # load the gem
134
+ require 'tca_client'
135
+ # setup authorization
136
+ TCAClient.configure do |config|
137
+ # Configure API key authorization: api_key
138
+ config.api_key['Authorization'] = 'YOUR API KEY'
139
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
140
+ #config.api_key_prefix['Authorization'] = 'Bearer'
141
+ end
142
+
143
+ api_instance = TCAClient::SubmissionApi.new
144
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
145
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
146
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
147
+
148
+
149
+ begin
150
+ #Get Submission Details
151
+ result = api_instance.get_submiddion_details(x_turnitin_integration_name, x_turnitin_integration_version, id)
152
+ p result
153
+ rescue TCAClient::ApiError => e
154
+ puts "Exception when calling SubmissionApi->get_submiddion_details: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ Name | Type | Description | Notes
161
+ ------------- | ------------- | ------------- | -------------
162
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
163
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
164
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
165
+
166
+ ### Return type
167
+
168
+ [**Submission**](Submission.md)
169
+
170
+ ### Authorization
171
+
172
+ [api_key](../README.md#api_key)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+
181
+ # **recover_submission**
182
+ > SimpleSubmissionResponse recover_submission(x_turnitin_integration_name, x_turnitin_integration_version, id)
183
+
184
+ Recover a soft deleted submission
185
+
186
+ ### Example
187
+ ```ruby
188
+ # load the gem
189
+ require 'tca_client'
190
+ # setup authorization
191
+ TCAClient.configure do |config|
192
+ # Configure API key authorization: api_key
193
+ config.api_key['Authorization'] = 'YOUR API KEY'
194
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
195
+ #config.api_key_prefix['Authorization'] = 'Bearer'
196
+ end
197
+
198
+ api_instance = TCAClient::SubmissionApi.new
199
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
200
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
201
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
202
+
203
+
204
+ begin
205
+ #Recover a soft deleted submission
206
+ result = api_instance.recover_submission(x_turnitin_integration_name, x_turnitin_integration_version, id)
207
+ p result
208
+ rescue TCAClient::ApiError => e
209
+ puts "Exception when calling SubmissionApi->recover_submission: #{e}"
210
+ end
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ Name | Type | Description | Notes
216
+ ------------- | ------------- | ------------- | -------------
217
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
218
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
219
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
220
+
221
+ ### Return type
222
+
223
+ [**SimpleSubmissionResponse**](SimpleSubmissionResponse.md)
224
+
225
+ ### Authorization
226
+
227
+ [api_key](../README.md#api_key)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: application/json
233
+
234
+
235
+
236
+ # **upload_submitted_file**
237
+ > SuccessMessage upload_submitted_file(bodyx_turnitin_integration_namex_turnitin_integration_versioncontent_typecontent_dispositionid)
238
+
239
+ Upload Submitted File
240
+
241
+ ### Example
242
+ ```ruby
243
+ # load the gem
244
+ require 'tca_client'
245
+ # setup authorization
246
+ TCAClient.configure do |config|
247
+ # Configure API key authorization: api_key
248
+ config.api_key['Authorization'] = 'YOUR API KEY'
249
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
250
+ #config.api_key_prefix['Authorization'] = 'Bearer'
251
+ end
252
+
253
+ api_instance = TCAClient::SubmissionApi.new
254
+ body = nil # Object | the user's submitted file
255
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
256
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
257
+ content_type = 'content_type_example' # String | *Must be 'binary/octet-stream'
258
+ content_disposition = 'content_disposition_example' # String | *must include the \"filename\" parameter, e.g. `inline; filename=\"MyFile.docx\"`. To support UTF-8 filenames, you must URL encode the header
259
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
260
+
261
+
262
+ begin
263
+ #Upload Submitted File
264
+ result = api_instance.upload_submitted_file(bodyx_turnitin_integration_namex_turnitin_integration_versioncontent_typecontent_dispositionid)
265
+ p result
266
+ rescue TCAClient::ApiError => e
267
+ puts "Exception when calling SubmissionApi->upload_submitted_file: #{e}"
268
+ end
269
+ ```
270
+
271
+ ### Parameters
272
+
273
+ Name | Type | Description | Notes
274
+ ------------- | ------------- | ------------- | -------------
275
+ **body** | [**Object**](Object.md)| the user's submitted file |
276
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
277
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
278
+ **content_type** | **String**| *Must be 'binary/octet-stream' |
279
+ **content_disposition** | **String**| *must include the \"filename\" parameter, e.g. `inline; filename=\"MyFile.docx\"`. To support UTF-8 filenames, you must URL encode the header |
280
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
281
+
282
+ ### Return type
283
+
284
+ [**SuccessMessage**](SuccessMessage.md)
285
+
286
+ ### Authorization
287
+
288
+ [api_key](../README.md#api_key)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: binary/octet-stream
293
+ - **Accept**: application/json
294
+
295
+
296
+
@@ -0,0 +1,15 @@
1
+ # TCAClient::SubmissionBase
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | [****](.md) | Submission id, optional field | [optional]
7
+ **owner** | **String** | ID of the owning user | [optional]
8
+ **owner_default_permission_set** | **String** | Default viewer permission set, accepts INSTRUCTOR, LEARNER, EDITOR, USER, APPLICANT, ADMINISTRATOR, UNDEFINED | [optional]
9
+ **title** | **String** | the title of the submission | [optional]
10
+ **submitter** | **String** | (optional) ID of the submitting user, if different from the owning user | [optional]
11
+ **submitter_default_permission_set** | **String** | Default submitter permission set, accepts INSTRUCTOR, LEARNER, EDITOR, USER, APPLICANT, ADMINISTRATOR, UNDEFINED | [optional]
12
+ **eula** | [**Eula**](Eula.md) | | [optional]
13
+ **metadata** | [**SubmissionBaseMetadata**](SubmissionBaseMetadata.md) | | [optional]
14
+ **extract_text_only** | **BOOLEAN** | (optional) indicates if the submission should be treated as a text only submission. A text only submission cannot generate full reports or be viewed in the viewer, but can use the index only endpoint to be indexed | [optional]
15
+
@@ -0,0 +1,12 @@
1
+ # TCAClient::SubmissionBaseMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **submitter** | [**Users**](Users.md) | | [optional]
7
+ **owners** | [**Array<Users>**](Users.md) | | [optional]
8
+ **group** | [**Group**](Group.md) | | [optional]
9
+ **group_context** | [**GroupContext**](GroupContext.md) | | [optional]
10
+ **original_submitted_time** | **DateTime** | Optional original submision date | [optional]
11
+ **custom** | **String** | custom metadata | [optional]
12
+
@@ -0,0 +1,8 @@
1
+ # TCAClient::SubmissionSizeError
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | an HTTP Response JobStatus Code | [optional]
7
+ **message** | **String** | A message explaining what happened | [optional]
8
+
@@ -0,0 +1,7 @@
1
+ # TCAClient::SuccessMessage
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **message** | **String** | message indicating a successful PUT request | [optional]
7
+
data/docs/Users.md ADDED
@@ -0,0 +1,10 @@
1
+ # TCAClient::Users
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | (required) | [optional]
7
+ **family_name** | **String** | | [optional]
8
+ **given_name** | **String** | | [optional]
9
+ **email** | **String** | | [optional]
10
+
@@ -0,0 +1,11 @@
1
+ # TCAClient::ViewerPermissions
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **may_view_submission_full_source** | **BOOLEAN** | Optional individual permission which override the default permission set. | [optional]
7
+ **may_view_match_submission_info** | **BOOLEAN** | Optional individual permission which override the default permission set. | [optional]
8
+ **may_view_flags_panel** | **BOOLEAN** | Optional individual permission which override the default permission set | [optional]
9
+ **may_view_document_details_panel** | **BOOLEAN** | Optional individual permission which override the default permission set | [optional]
10
+ **may_view_sections_exclusion_panel** | **BOOLEAN** | Optional individual permission which override the default permission set | [optional]
11
+
data/docs/Webhook.md ADDED
@@ -0,0 +1,10 @@
1
+ # TCAClient::Webhook
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **description** | **String** | a human readable description of the webhook | [optional]
7
+ **url** | **String** | the URL to callback with events, this must be https unless (allow_insecure is true) |
8
+ **allow_insecure** | **BOOLEAN** | if using an non https url, this must be set to true | [optional]
9
+ **event_types** | **Array<String>** | an array of the types of callbacks that will be sent to this webhook |
10
+
@@ -0,0 +1,286 @@
1
+ # TCAClient::WebhookApi
2
+
3
+ All URIs are relative to *https://{tenantName}.{hostName}/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_webhook**](WebhookApi.md#delete_webhook) | **DELETE** /webhooks/{id} | Delete Webhook endpoint
8
+ [**get_webhook**](WebhookApi.md#get_webhook) | **GET** /webhooks/{id} | Get Webhook endpoint info
9
+ [**update_webhook**](WebhookApi.md#update_webhook) | **PATCH** /webhooks/{id} | Update Webhook endpoint info
10
+ [**webhooks_get**](WebhookApi.md#webhooks_get) | **GET** /webhooks | List registered Webhook endpoints
11
+ [**webhooks_post**](WebhookApi.md#webhooks_post) | **POST** /webhooks | Register a Webhook endpoint
12
+
13
+ # **delete_webhook**
14
+ > delete_webhook(x_turnitin_integration_name, x_turnitin_integration_version, id)
15
+
16
+ Delete Webhook endpoint
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'tca_client'
22
+ # setup authorization
23
+ TCAClient.configure do |config|
24
+ # Configure API key authorization: api_key
25
+ config.api_key['Authorization'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Authorization'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = TCAClient::WebhookApi.new
31
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
32
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
33
+ id = 'id_example' # String |
34
+
35
+
36
+ begin
37
+ #Delete Webhook endpoint
38
+ api_instance.delete_webhook(x_turnitin_integration_name, x_turnitin_integration_version, id)
39
+ rescue TCAClient::ApiError => e
40
+ puts "Exception when calling WebhookApi->delete_webhook: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
49
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
50
+ **id** | **String**| |
51
+
52
+ ### Return type
53
+
54
+ nil (empty response body)
55
+
56
+ ### Authorization
57
+
58
+ [api_key](../README.md#api_key)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: Not defined
63
+ - **Accept**: application/json
64
+
65
+
66
+
67
+ # **get_webhook**
68
+ > Webhook get_webhook(x_turnitin_integration_name, x_turnitin_integration_version, id)
69
+
70
+ Get Webhook endpoint info
71
+
72
+ ### Example
73
+ ```ruby
74
+ # load the gem
75
+ require 'tca_client'
76
+ # setup authorization
77
+ TCAClient.configure do |config|
78
+ # Configure API key authorization: api_key
79
+ config.api_key['Authorization'] = 'YOUR API KEY'
80
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
81
+ #config.api_key_prefix['Authorization'] = 'Bearer'
82
+ end
83
+
84
+ api_instance = TCAClient::WebhookApi.new
85
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
86
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
87
+ id = 'id_example' # String |
88
+
89
+
90
+ begin
91
+ #Get Webhook endpoint info
92
+ result = api_instance.get_webhook(x_turnitin_integration_name, x_turnitin_integration_version, id)
93
+ p result
94
+ rescue TCAClient::ApiError => e
95
+ puts "Exception when calling WebhookApi->get_webhook: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
104
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
105
+ **id** | **String**| |
106
+
107
+ ### Return type
108
+
109
+ [**Webhook**](Webhook.md)
110
+
111
+ ### Authorization
112
+
113
+ [api_key](../README.md#api_key)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: Not defined
118
+ - **Accept**: application/json
119
+
120
+
121
+
122
+ # **update_webhook**
123
+ > Webhook update_webhook(bodyx_turnitin_integration_namex_turnitin_integration_versionid)
124
+
125
+ Update Webhook endpoint info
126
+
127
+ ### Example
128
+ ```ruby
129
+ # load the gem
130
+ require 'tca_client'
131
+ # setup authorization
132
+ TCAClient.configure do |config|
133
+ # Configure API key authorization: api_key
134
+ config.api_key['Authorization'] = 'YOUR API KEY'
135
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
136
+ #config.api_key_prefix['Authorization'] = 'Bearer'
137
+ end
138
+
139
+ api_instance = TCAClient::WebhookApi.new
140
+ body = TCAClient::WebhookPathRequest.new # WebhookPathRequest |
141
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
142
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
143
+ id = 'id_example' # String |
144
+
145
+
146
+ begin
147
+ #Update Webhook endpoint info
148
+ result = api_instance.update_webhook(bodyx_turnitin_integration_namex_turnitin_integration_versionid)
149
+ p result
150
+ rescue TCAClient::ApiError => e
151
+ puts "Exception when calling WebhookApi->update_webhook: #{e}"
152
+ end
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ Name | Type | Description | Notes
158
+ ------------- | ------------- | ------------- | -------------
159
+ **body** | [**WebhookPathRequest**](WebhookPathRequest.md)| |
160
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
161
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
162
+ **id** | **String**| |
163
+
164
+ ### Return type
165
+
166
+ [**Webhook**](Webhook.md)
167
+
168
+ ### Authorization
169
+
170
+ [api_key](../README.md#api_key)
171
+
172
+ ### HTTP request headers
173
+
174
+ - **Content-Type**: application/json
175
+ - **Accept**: application/json
176
+
177
+
178
+
179
+ # **webhooks_get**
180
+ > Array<Webhook> webhooks_get(x_turnitin_integration_name, x_turnitin_integration_version)
181
+
182
+ List registered Webhook endpoints
183
+
184
+ ### Example
185
+ ```ruby
186
+ # load the gem
187
+ require 'tca_client'
188
+ # setup authorization
189
+ TCAClient.configure do |config|
190
+ # Configure API key authorization: api_key
191
+ config.api_key['Authorization'] = 'YOUR API KEY'
192
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
193
+ #config.api_key_prefix['Authorization'] = 'Bearer'
194
+ end
195
+
196
+ api_instance = TCAClient::WebhookApi.new
197
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
198
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
199
+
200
+
201
+ begin
202
+ #List registered Webhook endpoints
203
+ result = api_instance.webhooks_get(x_turnitin_integration_name, x_turnitin_integration_version)
204
+ p result
205
+ rescue TCAClient::ApiError => e
206
+ puts "Exception when calling WebhookApi->webhooks_get: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ Name | Type | Description | Notes
213
+ ------------- | ------------- | ------------- | -------------
214
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
215
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
216
+
217
+ ### Return type
218
+
219
+ [**Array<Webhook>**](Webhook.md)
220
+
221
+ ### Authorization
222
+
223
+ [api_key](../README.md#api_key)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: Not defined
228
+ - **Accept**: application/json
229
+
230
+
231
+
232
+ # **webhooks_post**
233
+ > Webhook webhooks_post(bodyx_turnitin_integration_namex_turnitin_integration_version)
234
+
235
+ Register a Webhook endpoint
236
+
237
+ ### Example
238
+ ```ruby
239
+ # load the gem
240
+ require 'tca_client'
241
+ # setup authorization
242
+ TCAClient.configure do |config|
243
+ # Configure API key authorization: api_key
244
+ config.api_key['Authorization'] = 'YOUR API KEY'
245
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
246
+ #config.api_key_prefix['Authorization'] = 'Bearer'
247
+ end
248
+
249
+ api_instance = TCAClient::WebhookApi.new
250
+ body = TCAClient::WebhookWithSecret.new # WebhookWithSecret |
251
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
252
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
253
+
254
+
255
+ begin
256
+ #Register a Webhook endpoint
257
+ result = api_instance.webhooks_post(bodyx_turnitin_integration_namex_turnitin_integration_version)
258
+ p result
259
+ rescue TCAClient::ApiError => e
260
+ puts "Exception when calling WebhookApi->webhooks_post: #{e}"
261
+ end
262
+ ```
263
+
264
+ ### Parameters
265
+
266
+ Name | Type | Description | Notes
267
+ ------------- | ------------- | ------------- | -------------
268
+ **body** | [**WebhookWithSecret**](WebhookWithSecret.md)| |
269
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
270
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
271
+
272
+ ### Return type
273
+
274
+ [**Webhook**](Webhook.md)
275
+
276
+ ### Authorization
277
+
278
+ [api_key](../README.md#api_key)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: application/json
283
+ - **Accept**: application/json
284
+
285
+
286
+
@@ -0,0 +1,10 @@
1
+ # TCAClient::WebhookBase
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **description** | **String** | a human readable description of the webhook | [optional]
7
+ **url** | **String** | the URL to callback with events, this must be https unless (allow_insecure is true) |
8
+ **allow_insecure** | **BOOLEAN** | if using an non https url, this must be set to true | [optional]
9
+ **event_types** | **Array<String>** | an array of the types of callbacks that will be sent to this webhook |
10
+
@@ -0,0 +1,8 @@
1
+ # TCAClient::WebhookPathRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **description** | **String** | a human readable description of the webhook | [optional]
7
+ **event_types** | **Array<String>** | an array of the types of callbacks that will be sent to this webhook |
8
+