tca_client 1.0.0

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 (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,351 @@
1
+ # TCAClient::SimilarityApi
2
+
3
+ All URIs are relative to *https://{tenantName}.{hostName}/api/v1*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**download_similarity_report_pdf**](SimilarityApi.md#download_similarity_report_pdf) | **GET** /submissions/{id}/similarity/pdf/{pdf_id} | GET download pdf
8
+ [**get_similarity_report_pdf_status**](SimilarityApi.md#get_similarity_report_pdf_status) | **GET** /submissions/{id}/similarity/pdf/{pdf_id}/status | GET pdf download status
9
+ [**get_similarity_report_results**](SimilarityApi.md#get_similarity_report_results) | **GET** /submissions/{id}/similarity | Get Similarity Report Results
10
+ [**get_similarity_report_url**](SimilarityApi.md#get_similarity_report_url) | **POST** /submissions/{id}/viewer-url | Returns a URL to access Cloud Viewer
11
+ [**request_similarity_report**](SimilarityApi.md#request_similarity_report) | **PUT** /submissions/{id}/similarity | Request Similarity Report generation
12
+ [**request_similarity_report_pdf**](SimilarityApi.md#request_similarity_report_pdf) | **POST** /submissions/{id}/similarity/pdf | Request Pdf download and returns the Pdf Id
13
+
14
+ # **download_similarity_report_pdf**
15
+ > String download_similarity_report_pdf(x_turnitin_integration_name, x_turnitin_integration_version, id, pdf_id)
16
+
17
+ GET download pdf
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'tca_client'
23
+ # setup authorization
24
+ TCAClient.configure do |config|
25
+ # Configure API key authorization: api_key
26
+ config.api_key['Authorization'] = 'YOUR API KEY'
27
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
28
+ #config.api_key_prefix['Authorization'] = 'Bearer'
29
+ end
30
+
31
+ api_instance = TCAClient::SimilarityApi.new
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
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
35
+ pdf_id = 'pdf_id_example' # String | The Pdf ID (returned upon a successful POST to /submissions/{submission_id}/similarity/pdf)
36
+
37
+
38
+ begin
39
+ #GET download pdf
40
+ result = api_instance.download_similarity_report_pdf(x_turnitin_integration_name, x_turnitin_integration_version, id, pdf_id)
41
+ p result
42
+ rescue TCAClient::ApiError => e
43
+ puts "Exception when calling SimilarityApi->download_similarity_report_pdf: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
52
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
53
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
54
+ **pdf_id** | **String**| The Pdf ID (returned upon a successful POST to /submissions/{submission_id}/similarity/pdf) |
55
+
56
+ ### Return type
57
+
58
+ **String**
59
+
60
+ ### Authorization
61
+
62
+ [api_key](../README.md#api_key)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: Not defined
67
+ - **Accept**: application/pdf, application/json
68
+
69
+
70
+
71
+ # **get_similarity_report_pdf_status**
72
+ > PdfStatusResponse get_similarity_report_pdf_status(x_turnitin_integration_name, x_turnitin_integration_version, id, pdf_id)
73
+
74
+ GET pdf download status
75
+
76
+ ### Example
77
+ ```ruby
78
+ # load the gem
79
+ require 'tca_client'
80
+ # setup authorization
81
+ TCAClient.configure do |config|
82
+ # Configure API key authorization: api_key
83
+ config.api_key['Authorization'] = 'YOUR API KEY'
84
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
85
+ #config.api_key_prefix['Authorization'] = 'Bearer'
86
+ end
87
+
88
+ api_instance = TCAClient::SimilarityApi.new
89
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
90
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
91
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
92
+ pdf_id = 'pdf_id_example' # String | The Pdf ID (returned upon a successful POST to /submissions/{submission_id}/similarity/pdf)
93
+
94
+
95
+ begin
96
+ #GET pdf download status
97
+ result = api_instance.get_similarity_report_pdf_status(x_turnitin_integration_name, x_turnitin_integration_version, id, pdf_id)
98
+ p result
99
+ rescue TCAClient::ApiError => e
100
+ puts "Exception when calling SimilarityApi->get_similarity_report_pdf_status: #{e}"
101
+ end
102
+ ```
103
+
104
+ ### Parameters
105
+
106
+ Name | Type | Description | Notes
107
+ ------------- | ------------- | ------------- | -------------
108
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
109
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
110
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
111
+ **pdf_id** | **String**| The Pdf ID (returned upon a successful POST to /submissions/{submission_id}/similarity/pdf) |
112
+
113
+ ### Return type
114
+
115
+ [**PdfStatusResponse**](PdfStatusResponse.md)
116
+
117
+ ### Authorization
118
+
119
+ [api_key](../README.md#api_key)
120
+
121
+ ### HTTP request headers
122
+
123
+ - **Content-Type**: Not defined
124
+ - **Accept**: application/json
125
+
126
+
127
+
128
+ # **get_similarity_report_results**
129
+ > SimilarityMetadata get_similarity_report_results(x_turnitin_integration_name, x_turnitin_integration_version, id)
130
+
131
+ Get Similarity Report Results
132
+
133
+ ### Example
134
+ ```ruby
135
+ # load the gem
136
+ require 'tca_client'
137
+ # setup authorization
138
+ TCAClient.configure do |config|
139
+ # Configure API key authorization: api_key
140
+ config.api_key['Authorization'] = 'YOUR API KEY'
141
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
142
+ #config.api_key_prefix['Authorization'] = 'Bearer'
143
+ end
144
+
145
+ api_instance = TCAClient::SimilarityApi.new
146
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
147
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
148
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
149
+
150
+
151
+ begin
152
+ #Get Similarity Report Results
153
+ result = api_instance.get_similarity_report_results(x_turnitin_integration_name, x_turnitin_integration_version, id)
154
+ p result
155
+ rescue TCAClient::ApiError => e
156
+ puts "Exception when calling SimilarityApi->get_similarity_report_results: #{e}"
157
+ end
158
+ ```
159
+
160
+ ### Parameters
161
+
162
+ Name | Type | Description | Notes
163
+ ------------- | ------------- | ------------- | -------------
164
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
165
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
166
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
167
+
168
+ ### Return type
169
+
170
+ [**SimilarityMetadata**](SimilarityMetadata.md)
171
+
172
+ ### Authorization
173
+
174
+ [api_key](../README.md#api_key)
175
+
176
+ ### HTTP request headers
177
+
178
+ - **Content-Type**: Not defined
179
+ - **Accept**: application/json
180
+
181
+
182
+
183
+ # **get_similarity_report_url**
184
+ > SimilarityViewerUrlResponse get_similarity_report_url(bodyx_turnitin_integration_namex_turnitin_integration_versionid)
185
+
186
+ Returns a URL to access Cloud Viewer
187
+
188
+ ### Example
189
+ ```ruby
190
+ # load the gem
191
+ require 'tca_client'
192
+ # setup authorization
193
+ TCAClient.configure do |config|
194
+ # Configure API key authorization: api_key
195
+ config.api_key['Authorization'] = 'YOUR API KEY'
196
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
+ #config.api_key_prefix['Authorization'] = 'Bearer'
198
+ end
199
+
200
+ api_instance = TCAClient::SimilarityApi.new
201
+ body = TCAClient::SimilarityViewerUrlSettings.new # SimilarityViewerUrlSettings |
202
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
203
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
204
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
205
+
206
+
207
+ begin
208
+ #Returns a URL to access Cloud Viewer
209
+ result = api_instance.get_similarity_report_url(bodyx_turnitin_integration_namex_turnitin_integration_versionid)
210
+ p result
211
+ rescue TCAClient::ApiError => e
212
+ puts "Exception when calling SimilarityApi->get_similarity_report_url: #{e}"
213
+ end
214
+ ```
215
+
216
+ ### Parameters
217
+
218
+ Name | Type | Description | Notes
219
+ ------------- | ------------- | ------------- | -------------
220
+ **body** | [**SimilarityViewerUrlSettings**](SimilarityViewerUrlSettings.md)| |
221
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
222
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
223
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
224
+
225
+ ### Return type
226
+
227
+ [**SimilarityViewerUrlResponse**](SimilarityViewerUrlResponse.md)
228
+
229
+ ### Authorization
230
+
231
+ [api_key](../README.md#api_key)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: application/json
236
+ - **Accept**: application/json
237
+
238
+
239
+
240
+ # **request_similarity_report**
241
+ > SuccessMessage request_similarity_report(bodyx_turnitin_integration_namex_turnitin_integration_versionid)
242
+
243
+ Request Similarity Report generation
244
+
245
+ ### Example
246
+ ```ruby
247
+ # load the gem
248
+ require 'tca_client'
249
+ # setup authorization
250
+ TCAClient.configure do |config|
251
+ # Configure API key authorization: api_key
252
+ config.api_key['Authorization'] = 'YOUR API KEY'
253
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
254
+ #config.api_key_prefix['Authorization'] = 'Bearer'
255
+ end
256
+
257
+ api_instance = TCAClient::SimilarityApi.new
258
+ body = TCAClient::SimilarityPutRequest.new # SimilarityPutRequest |
259
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
260
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
261
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
262
+
263
+
264
+ begin
265
+ #Request Similarity Report generation
266
+ result = api_instance.request_similarity_report(bodyx_turnitin_integration_namex_turnitin_integration_versionid)
267
+ p result
268
+ rescue TCAClient::ApiError => e
269
+ puts "Exception when calling SimilarityApi->request_similarity_report: #{e}"
270
+ end
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ Name | Type | Description | Notes
276
+ ------------- | ------------- | ------------- | -------------
277
+ **body** | [**SimilarityPutRequest**](SimilarityPutRequest.md)| |
278
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
279
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
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**: application/json
293
+ - **Accept**: application/json
294
+
295
+
296
+
297
+ # **request_similarity_report_pdf**
298
+ > RequestPdfResponse request_similarity_report_pdf(x_turnitin_integration_name, x_turnitin_integration_version, id)
299
+
300
+ Request Pdf download and returns the Pdf Id
301
+
302
+ ### Example
303
+ ```ruby
304
+ # load the gem
305
+ require 'tca_client'
306
+ # setup authorization
307
+ TCAClient.configure do |config|
308
+ # Configure API key authorization: api_key
309
+ config.api_key['Authorization'] = 'YOUR API KEY'
310
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
311
+ #config.api_key_prefix['Authorization'] = 'Bearer'
312
+ end
313
+
314
+ api_instance = TCAClient::SimilarityApi.new
315
+ x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
316
+ x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
317
+ id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
318
+
319
+
320
+ begin
321
+ #Request Pdf download and returns the Pdf Id
322
+ result = api_instance.request_similarity_report_pdf(x_turnitin_integration_name, x_turnitin_integration_version, id)
323
+ p result
324
+ rescue TCAClient::ApiError => e
325
+ puts "Exception when calling SimilarityApi->request_similarity_report_pdf: #{e}"
326
+ end
327
+ ```
328
+
329
+ ### Parameters
330
+
331
+ Name | Type | Description | Notes
332
+ ------------- | ------------- | ------------- | -------------
333
+ **x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
334
+ **x_turnitin_integration_version** | **String**| the version of the integration platform being used |
335
+ **id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
336
+
337
+ ### Return type
338
+
339
+ [**RequestPdfResponse**](RequestPdfResponse.md)
340
+
341
+ ### Authorization
342
+
343
+ [api_key](../README.md#api_key)
344
+
345
+ ### HTTP request headers
346
+
347
+ - **Content-Type**: Not defined
348
+ - **Accept**: application/json
349
+
350
+
351
+
@@ -0,0 +1,10 @@
1
+ # TCAClient::SimilarityGenerationSettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **search_repositories** | **Array<String>** | List of repositories to search |
7
+ **submission_auto_excludes** | **Array<String>** | List of submission IDs to exclude from report | [optional]
8
+ **auto_exclude_self_matching_scope** | **String** | self matching submissions to exclude from report | [optional]
9
+ **priority** | **BOOLEAN** | Priority level of report generation | [optional]
10
+
@@ -0,0 +1,16 @@
1
+ # TCAClient::SimilarityMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **overall_match_percentage** | **Integer** | Represents the percentage match against all sources |
7
+ **internet_match_percentage** | **Integer** | Represents the percentage match against internet | [optional]
8
+ **publication_match_percentage** | **Integer** | Represents the percentage match against all publications | [optional]
9
+ **submitted_works_match_percentage** | **Integer** | Represents the percentage match against all submitted works | [optional]
10
+ **submission_id** | **String** | |
11
+ **status** | **String** | possible values PENDING, COMPLETE |
12
+ **time_generated** | **String** | Time the report finished generating. If not set the report has not finished generating |
13
+ **time_requested** | **String** | Time the report was requested |
14
+ **top_matches** | [**Array<SimilarityMetadataTopMatches>**](SimilarityMetadataTopMatches.md) | Top matches |
15
+ **top_source_largest_matched_word_count** | **Integer** | Largest individual matched word count, 0 if there isn't a match to this submission. |
16
+
@@ -0,0 +1,13 @@
1
+ # TCAClient::SimilarityMetadataTopMatches
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | Source name | [optional]
7
+ **percentage** | [**BigDecimal**](BigDecimal.md) | Match percentage | [optional]
8
+ **submission_id** | **String** | Matching submission id | [optional]
9
+ **source_type** | **String** | Matching submission source type (INTERNET, PUBLICATION, SUBMITTED_WORK) | [optional]
10
+ **matched_word_count_total** | [**BigDecimal**](BigDecimal.md) | number of matching words | [optional]
11
+ **submitted_date** | **String** | date match was submitted | [optional]
12
+ **institution_name** | **String** | intitution name for matched SUBMITTED_WORK types | [optional]
13
+
@@ -0,0 +1,9 @@
1
+ # TCAClient::SimilarityPutRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **indexing_settings** | [**IndexingSettings**](IndexingSettings.md) | | [optional]
7
+ **generation_settings** | [**SimilarityGenerationSettings**](SimilarityGenerationSettings.md) | |
8
+ **view_settings** | [**SimilarityViewSettings**](SimilarityViewSettings.md) | | [optional]
9
+
@@ -0,0 +1,10 @@
1
+ # TCAClient::SimilarityScoreData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **overall_match_percentage** | **Integer** | Represents the percentage match against all sources |
7
+ **internet_match_percentage** | **Integer** | Represents the percentage match against internet | [optional]
8
+ **publication_match_percentage** | **Integer** | Represents the percentage match against all publications | [optional]
9
+ **submitted_works_match_percentage** | **Integer** | Represents the percentage match against all submitted works | [optional]
10
+
@@ -0,0 +1,9 @@
1
+ # TCAClient::SimilaritySettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **default_mode** | **String** | default similarity mode when viewing a report; set to either match_overview or all_sources | [optional]
7
+ **modes** | [**SimilaritySettingsModes**](SimilaritySettingsModes.md) | | [optional]
8
+ **view_settings** | [**SimilaritySettingsViewSettings**](SimilaritySettingsViewSettings.md) | | [optional]
9
+
@@ -0,0 +1,8 @@
1
+ # TCAClient::SimilaritySettingsModes
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **match_overview** | **BOOLEAN** | Used to enable use of the match overview mode in the viewer | [optional]
7
+ **all_sources** | **BOOLEAN** | Used to enable use of the all sources mode in the viewer | [optional]
8
+
@@ -0,0 +1,7 @@
1
+ # TCAClient::SimilaritySettingsViewSettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **save_changes** | **BOOLEAN** | Used to enable save changes in the Viewer and trigger SIMILARITY_UPDATED webhook callback | [optional]
7
+
@@ -0,0 +1,19 @@
1
+ # TCAClient::SimilarityViewSettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **exclude_quotes** | **BOOLEAN** | If set to true, text in quotes will not count as similar content | [optional]
7
+ **exclude_bibliography** | **BOOLEAN** | If set to true, text in a bibliography section will not count as similar content | [optional]
8
+ **exclude_citations** | **BOOLEAN** | If set to true, text in citations will not count as similar content | [optional]
9
+ **exclude_abstract** | **BOOLEAN** | If set to true, text in the abstract section of the submission will not count as similar content | [optional]
10
+ **exclude_methods** | **BOOLEAN** | If set to true, text in the method section of the submission will not count as similar content | [optional]
11
+ **exclude_small_matches** | **Integer** | If set, similarity matches that match less than the specified amount of words will not count as similar content | [optional]
12
+ **exclude_internet** | **BOOLEAN** | If set to true, text matched to the internet collection will not count as similar content | [optional]
13
+ **exclude_publications** | **BOOLEAN** | If set to true, text matched to the publications collection will not count as similar content | [optional]
14
+ **exclude_crossref** | **BOOLEAN** | If set to true, text matched to the Crossref collection will not count as similar content | [optional]
15
+ **exclude_crossref_posted_content** | **BOOLEAN** | If set to true, text matched to the Crossref Posted Content collection will not count as similar content | [optional]
16
+ **exclude_submitted_works** | **BOOLEAN** | If set to true, text matched to the submitted works collection will not count as similar content calculated as if submitted work was not part of the paper | [optional]
17
+ **exclude_custom_sections** | **BOOLEAN** | If set to true, text matched to the custom sections defined in the admin settings will not count as similar content calculated as if section was not part of the paper | [optional]
18
+ **exclude_preprints** | **BOOLEAN** | If set to true, it will exclude preprints. A preprint is a version of a scholarly or scientific paper that precedes formal peer review and publication in a peer-reviewed scholarly or scientific journal. | [optional]
19
+
@@ -0,0 +1,7 @@
1
+ # TCAClient::SimilarityViewerUrlResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **viewer_url** | **String** | URL to be used to access Cloud Viewer visualization of similarity report matches | [optional]
7
+
@@ -0,0 +1,14 @@
1
+ # TCAClient::SimilarityViewerUrlSettings
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **author_metadata_override** | [**AuthorMetadataOverride**](AuthorMetadataOverride.md) | | [optional]
7
+ **viewer_user_id** | **String** | viewer's user ID | [optional]
8
+ **locale** | **String** | two character locale language setting (e.g. 'en' or 'de') or full value | [optional]
9
+ **viewer_default_permission_set** | **String** | Default viewer permission set, accepts INSTRUCTOR, LEARNER, EDITOR, USER, APPLICANT, ADMINISTRATOR, UNDEFINED | [optional]
10
+ **viewer_permissions** | [**ViewerPermissions**](ViewerPermissions.md) | | [optional]
11
+ **eula** | [**Eula**](Eula.md) | | [optional]
12
+ **sidebar** | [**Sidebar**](Sidebar.md) | | [optional]
13
+ **similarity** | [**SimilaritySettings**](SimilaritySettings.md) | | [optional]
14
+
@@ -0,0 +1,6 @@
1
+ # TCAClient::SimpleSubmissionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
@@ -0,0 +1,6 @@
1
+ # TCAClient::Submission
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+