tca_client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +862 -0
- data/Rakefile +8 -0
- data/docs/AddGroupAttachmentRequest.md +8 -0
- data/docs/AddGroupAttachmentResponse.md +7 -0
- data/docs/AggregateGroup.md +12 -0
- data/docs/AuthorMetadataOverride.md +8 -0
- data/docs/EULAApi.md +241 -0
- data/docs/Error.md +8 -0
- data/docs/Eula.md +9 -0
- data/docs/EulaAcceptListItem.md +10 -0
- data/docs/EulaAcceptRequest.md +10 -0
- data/docs/EulaVersion.md +11 -0
- data/docs/FeaturesApi.md +61 -0
- data/docs/FeaturesEnabled.md +10 -0
- data/docs/FeaturesGenerationSettings.md +8 -0
- data/docs/FeaturesSimilarity.md +9 -0
- data/docs/FeaturesSimilarityViewSettings.md +19 -0
- data/docs/FeaturesTenant.md +7 -0
- data/docs/FeaturesViewerModes.md +8 -0
- data/docs/Group.md +9 -0
- data/docs/GroupAttachmentResponse.md +10 -0
- data/docs/GroupContext.md +9 -0
- data/docs/GroupsApi.md +472 -0
- data/docs/IndexApi.md +119 -0
- data/docs/IndexStateSettings.md +7 -0
- data/docs/IndexingSettings.md +7 -0
- data/docs/InlineResponse200.md +7 -0
- data/docs/PdfStatusResponse.md +7 -0
- data/docs/RateLimitError.md +8 -0
- data/docs/RequestPdfResponse.md +7 -0
- data/docs/Sidebar.md +7 -0
- data/docs/SimilarityApi.md +351 -0
- data/docs/SimilarityGenerationSettings.md +10 -0
- data/docs/SimilarityMetadata.md +16 -0
- data/docs/SimilarityMetadataTopMatches.md +13 -0
- data/docs/SimilarityPutRequest.md +9 -0
- data/docs/SimilarityScoreData.md +10 -0
- data/docs/SimilaritySettings.md +9 -0
- data/docs/SimilaritySettingsModes.md +8 -0
- data/docs/SimilaritySettingsViewSettings.md +7 -0
- data/docs/SimilarityViewSettings.md +19 -0
- data/docs/SimilarityViewerUrlResponse.md +7 -0
- data/docs/SimilarityViewerUrlSettings.md +14 -0
- data/docs/SimpleSubmissionResponse.md +6 -0
- data/docs/Submission.md +6 -0
- data/docs/SubmissionApi.md +296 -0
- data/docs/SubmissionBase.md +15 -0
- data/docs/SubmissionBaseMetadata.md +12 -0
- data/docs/SubmissionSizeError.md +8 -0
- data/docs/SuccessMessage.md +7 -0
- data/docs/Users.md +10 -0
- data/docs/ViewerPermissions.md +11 -0
- data/docs/Webhook.md +10 -0
- data/docs/WebhookApi.md +286 -0
- data/docs/WebhookBase.md +10 -0
- data/docs/WebhookPathRequest.md +8 -0
- data/docs/WebhookWithSecret.md +10 -0
- data/git_push.sh +55 -0
- data/lib/tca_client/api/eula_api.rb +312 -0
- data/lib/tca_client/api/features_api.rb +82 -0
- data/lib/tca_client/api/groups_api.rb +627 -0
- data/lib/tca_client/api/index_api.rb +156 -0
- data/lib/tca_client/api/similarity_api.rb +456 -0
- data/lib/tca_client/api/submission_api.rb +387 -0
- data/lib/tca_client/api/webhook_api.rb +364 -0
- data/lib/tca_client/api_client.rb +388 -0
- data/lib/tca_client/api_error.rb +57 -0
- data/lib/tca_client/configuration.rb +205 -0
- data/lib/tca_client/models/add_group_attachment_request.rb +220 -0
- data/lib/tca_client/models/add_group_attachment_response.rb +208 -0
- data/lib/tca_client/models/aggregate_group.rb +299 -0
- data/lib/tca_client/models/author_metadata_override.rb +217 -0
- data/lib/tca_client/models/error.rb +218 -0
- data/lib/tca_client/models/eula.rb +228 -0
- data/lib/tca_client/models/eula_accept_list_item.rb +237 -0
- data/lib/tca_client/models/eula_accept_request.rb +237 -0
- data/lib/tca_client/models/eula_version.rb +272 -0
- data/lib/tca_client/models/features_enabled.rb +257 -0
- data/lib/tca_client/models/features_generation_settings.rb +240 -0
- data/lib/tca_client/models/features_similarity.rb +224 -0
- data/lib/tca_client/models/features_similarity_view_settings.rb +327 -0
- data/lib/tca_client/models/features_tenant.rb +207 -0
- data/lib/tca_client/models/features_viewer_modes.rb +215 -0
- data/lib/tca_client/models/group.rb +259 -0
- data/lib/tca_client/models/group_attachment_response.rb +272 -0
- data/lib/tca_client/models/group_context.rb +227 -0
- data/lib/tca_client/models/index_state_settings.rb +207 -0
- data/lib/tca_client/models/indexing_settings.rb +207 -0
- data/lib/tca_client/models/inline_response_200.rb +208 -0
- data/lib/tca_client/models/pdf_status_response.rb +241 -0
- data/lib/tca_client/models/rate_limit_error.rb +221 -0
- data/lib/tca_client/models/request_pdf_response.rb +207 -0
- data/lib/tca_client/models/sidebar.rb +241 -0
- data/lib/tca_client/models/similarity_generation_settings.rb +280 -0
- data/lib/tca_client/models/similarity_metadata.rb +340 -0
- data/lib/tca_client/models/similarity_metadata_top_matches.rb +267 -0
- data/lib/tca_client/models/similarity_put_request.rb +229 -0
- data/lib/tca_client/models/similarity_score_data.rb +245 -0
- data/lib/tca_client/models/similarity_settings.rb +259 -0
- data/lib/tca_client/models/similarity_settings_modes.rb +217 -0
- data/lib/tca_client/models/similarity_settings_view_settings.rb +207 -0
- data/lib/tca_client/models/similarity_view_settings.rb +327 -0
- data/lib/tca_client/models/similarity_viewer_url_response.rb +207 -0
- data/lib/tca_client/models/similarity_viewer_url_settings.rb +306 -0
- data/lib/tca_client/models/simple_submission_response.rb +197 -0
- data/lib/tca_client/models/submission.rb +197 -0
- data/lib/tca_client/models/submission_base.rb +332 -0
- data/lib/tca_client/models/submission_base_metadata.rb +256 -0
- data/lib/tca_client/models/submission_size_error.rb +221 -0
- data/lib/tca_client/models/success_message.rb +208 -0
- data/lib/tca_client/models/users.rb +234 -0
- data/lib/tca_client/models/viewer_permissions.rb +247 -0
- data/lib/tca_client/models/webhook.rb +271 -0
- data/lib/tca_client/models/webhook_base.rb +271 -0
- data/lib/tca_client/models/webhook_path_request.rb +246 -0
- data/lib/tca_client/models/webhook_with_secret.rb +271 -0
- data/lib/tca_client/version.rb +14 -0
- data/lib/tca_client.rb +93 -0
- data/spec/api/eula_api_spec.rb +90 -0
- data/spec/api/features_api_spec.rb +46 -0
- data/spec/api/groups_api_spec.rb +147 -0
- data/spec/api/index_api_spec.rb +60 -0
- data/spec/api/similarity_api_spec.rb +116 -0
- data/spec/api/submission_api_spec.rb +103 -0
- data/spec/api/webhook_api_spec.rb +99 -0
- data/spec/api_client_spec.rb +225 -0
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +41 -0
- data/spec/models/add_group_attachment_request_spec.rb +46 -0
- data/spec/models/add_group_attachment_response_spec.rb +40 -0
- data/spec/models/aggregate_group_spec.rb +78 -0
- data/spec/models/author_metadata_override_spec.rb +46 -0
- data/spec/models/error_spec.rb +46 -0
- data/spec/models/eula_accept_list_item_spec.rb +58 -0
- data/spec/models/eula_accept_request_spec.rb +58 -0
- data/spec/models/eula_spec.rb +52 -0
- data/spec/models/eula_version_spec.rb +68 -0
- data/spec/models/features_enabled_spec.rb +62 -0
- data/spec/models/features_generation_settings_spec.rb +50 -0
- data/spec/models/features_similarity_spec.rb +52 -0
- data/spec/models/features_similarity_view_settings_spec.rb +112 -0
- data/spec/models/features_tenant_spec.rb +40 -0
- data/spec/models/features_viewer_modes_spec.rb +46 -0
- data/spec/models/group_attachment_response_spec.rb +62 -0
- data/spec/models/group_context_spec.rb +52 -0
- data/spec/models/group_spec.rb +56 -0
- data/spec/models/index_state_settings_spec.rb +40 -0
- data/spec/models/indexing_settings_spec.rb +40 -0
- data/spec/models/inline_response_200_spec.rb +40 -0
- data/spec/models/pdf_status_response_spec.rb +44 -0
- data/spec/models/rate_limit_error_spec.rb +46 -0
- data/spec/models/request_pdf_response_spec.rb +40 -0
- data/spec/models/sidebar_spec.rb +44 -0
- data/spec/models/similarity_generation_settings_spec.rb +66 -0
- data/spec/models/similarity_metadata_spec.rb +94 -0
- data/spec/models/similarity_metadata_top_matches_spec.rb +76 -0
- data/spec/models/similarity_put_request_spec.rb +52 -0
- data/spec/models/similarity_score_data_spec.rb +58 -0
- data/spec/models/similarity_settings_modes_spec.rb +46 -0
- data/spec/models/similarity_settings_spec.rb +56 -0
- data/spec/models/similarity_settings_view_settings_spec.rb +40 -0
- data/spec/models/similarity_view_settings_spec.rb +112 -0
- data/spec/models/similarity_viewer_url_response_spec.rb +40 -0
- data/spec/models/similarity_viewer_url_settings_spec.rb +86 -0
- data/spec/models/simple_submission_response_spec.rb +34 -0
- data/spec/models/submission_base_metadata_spec.rb +70 -0
- data/spec/models/submission_base_spec.rb +96 -0
- data/spec/models/submission_size_error_spec.rb +46 -0
- data/spec/models/submission_spec.rb +34 -0
- data/spec/models/success_message_spec.rb +40 -0
- data/spec/models/users_spec.rb +58 -0
- data/spec/models/viewer_permissions_spec.rb +64 -0
- data/spec/models/webhook_base_spec.rb +62 -0
- data/spec/models/webhook_path_request_spec.rb +50 -0
- data/spec/models/webhook_spec.rb +62 -0
- data/spec/models/webhook_with_secret_spec.rb +62 -0
- data/spec/spec_helper.rb +110 -0
- data/tca_client.gemspec +38 -0
- metadata +365 -0
data/docs/GroupsApi.md
ADDED
@@ -0,0 +1,472 @@
|
|
1
|
+
# TCAClient::GroupsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://{tenantName}.{hostName}/api/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**add_group_attachment**](GroupsApi.md#add_group_attachment) | **POST** /groups/{group_id}/attachments | Add attachment to a group. will create a group if it does not exist.
|
8
|
+
[**delete_group_attachment**](GroupsApi.md#delete_group_attachment) | **DELETE** /groups/{group_id}/attachments/{attach_id} | Hard delete group attachment
|
9
|
+
[**get_group**](GroupsApi.md#get_group) | **GET** /groups/{group_id} | Get group, group context and group context owners info
|
10
|
+
[**get_group_attachment**](GroupsApi.md#get_group_attachment) | **GET** /groups/{group_id}/attachments/{attach_id} | Get group attachment
|
11
|
+
[**get_group_attachments**](GroupsApi.md#get_group_attachments) | **GET** /groups/{group_id}/attachments | Get all attachments
|
12
|
+
[**groups_group_id_put**](GroupsApi.md#groups_group_id_put) | **PUT** /groups/{group_id} | upsert group, group context and group context owners info
|
13
|
+
[**update_group_attachment**](GroupsApi.md#update_group_attachment) | **PATCH** /groups/{group_id}/attachments/{attach_id} | Patch a group attachment
|
14
|
+
[**upload_group_attachment**](GroupsApi.md#upload_group_attachment) | **PUT** /groups/{group_id}/attachments/{attach_id}/original | Upload Submitted File
|
15
|
+
|
16
|
+
# **add_group_attachment**
|
17
|
+
> AddGroupAttachmentResponse add_group_attachment(bodyx_turnitin_integration_namex_turnitin_integration_versiongroup_id)
|
18
|
+
|
19
|
+
Add attachment to a group. will create a group if it does not exist.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'tca_client'
|
25
|
+
# setup authorization
|
26
|
+
TCAClient.configure do |config|
|
27
|
+
# Configure API key authorization: api_key
|
28
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = TCAClient::GroupsApi.new
|
34
|
+
body = TCAClient::AddGroupAttachmentRequest.new # AddGroupAttachmentRequest |
|
35
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
36
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
37
|
+
group_id = 'group_id_example' # String | group_id
|
38
|
+
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Add attachment to a group. will create a group if it does not exist.
|
42
|
+
result = api_instance.add_group_attachment(bodyx_turnitin_integration_namex_turnitin_integration_versiongroup_id)
|
43
|
+
p result
|
44
|
+
rescue TCAClient::ApiError => e
|
45
|
+
puts "Exception when calling GroupsApi->add_group_attachment: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
Name | Type | Description | Notes
|
52
|
+
------------- | ------------- | ------------- | -------------
|
53
|
+
**body** | [**AddGroupAttachmentRequest**](AddGroupAttachmentRequest.md)| |
|
54
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
55
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
56
|
+
**group_id** | **String**| group_id |
|
57
|
+
|
58
|
+
### Return type
|
59
|
+
|
60
|
+
[**AddGroupAttachmentResponse**](AddGroupAttachmentResponse.md)
|
61
|
+
|
62
|
+
### Authorization
|
63
|
+
|
64
|
+
[api_key](../README.md#api_key)
|
65
|
+
|
66
|
+
### HTTP request headers
|
67
|
+
|
68
|
+
- **Content-Type**: application/json
|
69
|
+
- **Accept**: application/json
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
# **delete_group_attachment**
|
74
|
+
> delete_group_attachment(x_turnitin_integration_name, x_turnitin_integration_version, group_id, attach_id)
|
75
|
+
|
76
|
+
Hard delete group attachment
|
77
|
+
|
78
|
+
### Example
|
79
|
+
```ruby
|
80
|
+
# load the gem
|
81
|
+
require 'tca_client'
|
82
|
+
# setup authorization
|
83
|
+
TCAClient.configure do |config|
|
84
|
+
# Configure API key authorization: api_key
|
85
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
86
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
87
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
88
|
+
end
|
89
|
+
|
90
|
+
api_instance = TCAClient::GroupsApi.new
|
91
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
92
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
93
|
+
group_id = 'group_id_example' # String | group_id
|
94
|
+
attach_id = 'attach_id_example' # String | The attachment ID (returned from a successful group attachment request)
|
95
|
+
|
96
|
+
|
97
|
+
begin
|
98
|
+
#Hard delete group attachment
|
99
|
+
api_instance.delete_group_attachment(x_turnitin_integration_name, x_turnitin_integration_version, group_id, attach_id)
|
100
|
+
rescue TCAClient::ApiError => e
|
101
|
+
puts "Exception when calling GroupsApi->delete_group_attachment: #{e}"
|
102
|
+
end
|
103
|
+
```
|
104
|
+
|
105
|
+
### Parameters
|
106
|
+
|
107
|
+
Name | Type | Description | Notes
|
108
|
+
------------- | ------------- | ------------- | -------------
|
109
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
110
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
111
|
+
**group_id** | **String**| group_id |
|
112
|
+
**attach_id** | **String**| The attachment ID (returned from a successful group attachment request) |
|
113
|
+
|
114
|
+
### Return type
|
115
|
+
|
116
|
+
nil (empty response body)
|
117
|
+
|
118
|
+
### Authorization
|
119
|
+
|
120
|
+
[api_key](../README.md#api_key)
|
121
|
+
|
122
|
+
### HTTP request headers
|
123
|
+
|
124
|
+
- **Content-Type**: Not defined
|
125
|
+
- **Accept**: application/json
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
# **get_group**
|
130
|
+
> AggregateGroup get_group(x_turnitin_integration_name, x_turnitin_integration_version, group_id)
|
131
|
+
|
132
|
+
Get group, group context and group context owners info
|
133
|
+
|
134
|
+
### Example
|
135
|
+
```ruby
|
136
|
+
# load the gem
|
137
|
+
require 'tca_client'
|
138
|
+
# setup authorization
|
139
|
+
TCAClient.configure do |config|
|
140
|
+
# Configure API key authorization: api_key
|
141
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
142
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
143
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
144
|
+
end
|
145
|
+
|
146
|
+
api_instance = TCAClient::GroupsApi.new
|
147
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
148
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
149
|
+
group_id = 'group_id_example' # String | group_id
|
150
|
+
|
151
|
+
|
152
|
+
begin
|
153
|
+
#Get group, group context and group context owners info
|
154
|
+
result = api_instance.get_group(x_turnitin_integration_name, x_turnitin_integration_version, group_id)
|
155
|
+
p result
|
156
|
+
rescue TCAClient::ApiError => e
|
157
|
+
puts "Exception when calling GroupsApi->get_group: #{e}"
|
158
|
+
end
|
159
|
+
```
|
160
|
+
|
161
|
+
### Parameters
|
162
|
+
|
163
|
+
Name | Type | Description | Notes
|
164
|
+
------------- | ------------- | ------------- | -------------
|
165
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
166
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
167
|
+
**group_id** | **String**| group_id |
|
168
|
+
|
169
|
+
### Return type
|
170
|
+
|
171
|
+
[**AggregateGroup**](AggregateGroup.md)
|
172
|
+
|
173
|
+
### Authorization
|
174
|
+
|
175
|
+
[api_key](../README.md#api_key)
|
176
|
+
|
177
|
+
### HTTP request headers
|
178
|
+
|
179
|
+
- **Content-Type**: Not defined
|
180
|
+
- **Accept**: application/json
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
# **get_group_attachment**
|
185
|
+
> GroupAttachmentResponse get_group_attachment(x_turnitin_integration_name, x_turnitin_integration_version, group_id, attach_id)
|
186
|
+
|
187
|
+
Get group attachment
|
188
|
+
|
189
|
+
### Example
|
190
|
+
```ruby
|
191
|
+
# load the gem
|
192
|
+
require 'tca_client'
|
193
|
+
# setup authorization
|
194
|
+
TCAClient.configure do |config|
|
195
|
+
# Configure API key authorization: api_key
|
196
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
197
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
198
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
199
|
+
end
|
200
|
+
|
201
|
+
api_instance = TCAClient::GroupsApi.new
|
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
|
+
group_id = 'group_id_example' # String | group_id
|
205
|
+
attach_id = 'attach_id_example' # String | The attachment ID (returned from a successful group attachment request)
|
206
|
+
|
207
|
+
|
208
|
+
begin
|
209
|
+
#Get group attachment
|
210
|
+
result = api_instance.get_group_attachment(x_turnitin_integration_name, x_turnitin_integration_version, group_id, attach_id)
|
211
|
+
p result
|
212
|
+
rescue TCAClient::ApiError => e
|
213
|
+
puts "Exception when calling GroupsApi->get_group_attachment: #{e}"
|
214
|
+
end
|
215
|
+
```
|
216
|
+
|
217
|
+
### Parameters
|
218
|
+
|
219
|
+
Name | Type | Description | Notes
|
220
|
+
------------- | ------------- | ------------- | -------------
|
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
|
+
**group_id** | **String**| group_id |
|
224
|
+
**attach_id** | **String**| The attachment ID (returned from a successful group attachment request) |
|
225
|
+
|
226
|
+
### Return type
|
227
|
+
|
228
|
+
[**GroupAttachmentResponse**](GroupAttachmentResponse.md)
|
229
|
+
|
230
|
+
### Authorization
|
231
|
+
|
232
|
+
[api_key](../README.md#api_key)
|
233
|
+
|
234
|
+
### HTTP request headers
|
235
|
+
|
236
|
+
- **Content-Type**: Not defined
|
237
|
+
- **Accept**: application/json
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
# **get_group_attachments**
|
242
|
+
> InlineResponse200 get_group_attachments(x_turnitin_integration_name, x_turnitin_integration_version, group_id)
|
243
|
+
|
244
|
+
Get all attachments
|
245
|
+
|
246
|
+
### Example
|
247
|
+
```ruby
|
248
|
+
# load the gem
|
249
|
+
require 'tca_client'
|
250
|
+
# setup authorization
|
251
|
+
TCAClient.configure do |config|
|
252
|
+
# Configure API key authorization: api_key
|
253
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
254
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
255
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
256
|
+
end
|
257
|
+
|
258
|
+
api_instance = TCAClient::GroupsApi.new
|
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
|
+
group_id = 'group_id_example' # String | group_id
|
262
|
+
|
263
|
+
|
264
|
+
begin
|
265
|
+
#Get all attachments
|
266
|
+
result = api_instance.get_group_attachments(x_turnitin_integration_name, x_turnitin_integration_version, group_id)
|
267
|
+
p result
|
268
|
+
rescue TCAClient::ApiError => e
|
269
|
+
puts "Exception when calling GroupsApi->get_group_attachments: #{e}"
|
270
|
+
end
|
271
|
+
```
|
272
|
+
|
273
|
+
### Parameters
|
274
|
+
|
275
|
+
Name | Type | Description | Notes
|
276
|
+
------------- | ------------- | ------------- | -------------
|
277
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
278
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
279
|
+
**group_id** | **String**| group_id |
|
280
|
+
|
281
|
+
### Return type
|
282
|
+
|
283
|
+
[**InlineResponse200**](InlineResponse200.md)
|
284
|
+
|
285
|
+
### Authorization
|
286
|
+
|
287
|
+
[api_key](../README.md#api_key)
|
288
|
+
|
289
|
+
### HTTP request headers
|
290
|
+
|
291
|
+
- **Content-Type**: Not defined
|
292
|
+
- **Accept**: application/json
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
# **groups_group_id_put**
|
297
|
+
> AggregateGroup groups_group_id_put(bodyx_turnitin_integration_namex_turnitin_integration_versiongroup_id)
|
298
|
+
|
299
|
+
upsert group, group context and group context owners info
|
300
|
+
|
301
|
+
### Example
|
302
|
+
```ruby
|
303
|
+
# load the gem
|
304
|
+
require 'tca_client'
|
305
|
+
# setup authorization
|
306
|
+
TCAClient.configure do |config|
|
307
|
+
# Configure API key authorization: api_key
|
308
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
309
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
310
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
311
|
+
end
|
312
|
+
|
313
|
+
api_instance = TCAClient::GroupsApi.new
|
314
|
+
body = TCAClient::AggregateGroup.new # AggregateGroup |
|
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
|
+
group_id = 'group_id_example' # String | group_id
|
318
|
+
|
319
|
+
|
320
|
+
begin
|
321
|
+
#upsert group, group context and group context owners info
|
322
|
+
result = api_instance.groups_group_id_put(bodyx_turnitin_integration_namex_turnitin_integration_versiongroup_id)
|
323
|
+
p result
|
324
|
+
rescue TCAClient::ApiError => e
|
325
|
+
puts "Exception when calling GroupsApi->groups_group_id_put: #{e}"
|
326
|
+
end
|
327
|
+
```
|
328
|
+
|
329
|
+
### Parameters
|
330
|
+
|
331
|
+
Name | Type | Description | Notes
|
332
|
+
------------- | ------------- | ------------- | -------------
|
333
|
+
**body** | [**AggregateGroup**](AggregateGroup.md)| |
|
334
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
335
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
336
|
+
**group_id** | **String**| group_id |
|
337
|
+
|
338
|
+
### Return type
|
339
|
+
|
340
|
+
[**AggregateGroup**](AggregateGroup.md)
|
341
|
+
|
342
|
+
### Authorization
|
343
|
+
|
344
|
+
[api_key](../README.md#api_key)
|
345
|
+
|
346
|
+
### HTTP request headers
|
347
|
+
|
348
|
+
- **Content-Type**: application/json
|
349
|
+
- **Accept**: application/json
|
350
|
+
|
351
|
+
|
352
|
+
|
353
|
+
# **update_group_attachment**
|
354
|
+
> GroupAttachmentResponse update_group_attachment(bodyx_turnitin_integration_namex_turnitin_integration_versiongroup_idattach_id)
|
355
|
+
|
356
|
+
Patch a group attachment
|
357
|
+
|
358
|
+
### Example
|
359
|
+
```ruby
|
360
|
+
# load the gem
|
361
|
+
require 'tca_client'
|
362
|
+
# setup authorization
|
363
|
+
TCAClient.configure do |config|
|
364
|
+
# Configure API key authorization: api_key
|
365
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
366
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
367
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
368
|
+
end
|
369
|
+
|
370
|
+
api_instance = TCAClient::GroupsApi.new
|
371
|
+
body = TCAClient::AddGroupAttachmentRequest.new # AddGroupAttachmentRequest |
|
372
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
373
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
374
|
+
group_id = 'group_id_example' # String | group_id
|
375
|
+
attach_id = 'attach_id_example' # String | The attachment ID (returned from a successful group attachment request)
|
376
|
+
|
377
|
+
|
378
|
+
begin
|
379
|
+
#Patch a group attachment
|
380
|
+
result = api_instance.update_group_attachment(bodyx_turnitin_integration_namex_turnitin_integration_versiongroup_idattach_id)
|
381
|
+
p result
|
382
|
+
rescue TCAClient::ApiError => e
|
383
|
+
puts "Exception when calling GroupsApi->update_group_attachment: #{e}"
|
384
|
+
end
|
385
|
+
```
|
386
|
+
|
387
|
+
### Parameters
|
388
|
+
|
389
|
+
Name | Type | Description | Notes
|
390
|
+
------------- | ------------- | ------------- | -------------
|
391
|
+
**body** | [**AddGroupAttachmentRequest**](AddGroupAttachmentRequest.md)| |
|
392
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
393
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
394
|
+
**group_id** | **String**| group_id |
|
395
|
+
**attach_id** | **String**| The attachment ID (returned from a successful group attachment request) |
|
396
|
+
|
397
|
+
### Return type
|
398
|
+
|
399
|
+
[**GroupAttachmentResponse**](GroupAttachmentResponse.md)
|
400
|
+
|
401
|
+
### Authorization
|
402
|
+
|
403
|
+
[api_key](../README.md#api_key)
|
404
|
+
|
405
|
+
### HTTP request headers
|
406
|
+
|
407
|
+
- **Content-Type**: application/json
|
408
|
+
- **Accept**: application/json
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
# **upload_group_attachment**
|
413
|
+
> SuccessMessage upload_group_attachment(bodyx_turnitin_integration_namex_turnitin_integration_versioncontent_dispositiongroup_idattach_id)
|
414
|
+
|
415
|
+
Upload Submitted File
|
416
|
+
|
417
|
+
### Example
|
418
|
+
```ruby
|
419
|
+
# load the gem
|
420
|
+
require 'tca_client'
|
421
|
+
# setup authorization
|
422
|
+
TCAClient.configure do |config|
|
423
|
+
# Configure API key authorization: api_key
|
424
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
425
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
426
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
427
|
+
end
|
428
|
+
|
429
|
+
api_instance = TCAClient::GroupsApi.new
|
430
|
+
body = nil # Object | the attachment file
|
431
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
432
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
433
|
+
content_disposition = 'content_disposition_example' # String | *must include the \"filename\" parameter, e.g. `inline; filename=\"MyFile.docx\"`
|
434
|
+
group_id = 'group_id_example' # String | The Group ID (required to already exist)
|
435
|
+
attach_id = 'attach_id_example' # String | The attachment ID (returned from a successful group attachment request)
|
436
|
+
|
437
|
+
|
438
|
+
begin
|
439
|
+
#Upload Submitted File
|
440
|
+
result = api_instance.upload_group_attachment(bodyx_turnitin_integration_namex_turnitin_integration_versioncontent_dispositiongroup_idattach_id)
|
441
|
+
p result
|
442
|
+
rescue TCAClient::ApiError => e
|
443
|
+
puts "Exception when calling GroupsApi->upload_group_attachment: #{e}"
|
444
|
+
end
|
445
|
+
```
|
446
|
+
|
447
|
+
### Parameters
|
448
|
+
|
449
|
+
Name | Type | Description | Notes
|
450
|
+
------------- | ------------- | ------------- | -------------
|
451
|
+
**body** | [**Object**](Object.md)| the attachment file |
|
452
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
453
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
454
|
+
**content_disposition** | **String**| *must include the \"filename\" parameter, e.g. `inline; filename=\"MyFile.docx\"` |
|
455
|
+
**group_id** | **String**| The Group ID (required to already exist) |
|
456
|
+
**attach_id** | **String**| The attachment ID (returned from a successful group attachment request) |
|
457
|
+
|
458
|
+
### Return type
|
459
|
+
|
460
|
+
[**SuccessMessage**](SuccessMessage.md)
|
461
|
+
|
462
|
+
### Authorization
|
463
|
+
|
464
|
+
[api_key](../README.md#api_key)
|
465
|
+
|
466
|
+
### HTTP request headers
|
467
|
+
|
468
|
+
- **Content-Type**: binary/octet-stream
|
469
|
+
- **Accept**: application/json
|
470
|
+
|
471
|
+
|
472
|
+
|
data/docs/IndexApi.md
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
# TCAClient::IndexApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://{tenantName}.{hostName}/api/v1*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_index_status**](IndexApi.md#get_index_status) | **GET** /submissions/{id}/index | Return index state of submission
|
8
|
+
[**index_submission**](IndexApi.md#index_submission) | **PUT** /submissions/{id}/index | Index and return index state of submission
|
9
|
+
|
10
|
+
# **get_index_status**
|
11
|
+
> IndexStateSettings get_index_status(x_turnitin_integration_name, x_turnitin_integration_version, id)
|
12
|
+
|
13
|
+
Return index state of submission
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'tca_client'
|
19
|
+
# setup authorization
|
20
|
+
TCAClient.configure do |config|
|
21
|
+
# Configure API key authorization: api_key
|
22
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
23
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
24
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
25
|
+
end
|
26
|
+
|
27
|
+
api_instance = TCAClient::IndexApi.new
|
28
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
29
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
30
|
+
id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
|
31
|
+
|
32
|
+
|
33
|
+
begin
|
34
|
+
#Return index state of submission
|
35
|
+
result = api_instance.get_index_status(x_turnitin_integration_name, x_turnitin_integration_version, id)
|
36
|
+
p result
|
37
|
+
rescue TCAClient::ApiError => e
|
38
|
+
puts "Exception when calling IndexApi->get_index_status: #{e}"
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
### Parameters
|
43
|
+
|
44
|
+
Name | Type | Description | Notes
|
45
|
+
------------- | ------------- | ------------- | -------------
|
46
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
47
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
48
|
+
**id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
|
49
|
+
|
50
|
+
### Return type
|
51
|
+
|
52
|
+
[**IndexStateSettings**](IndexStateSettings.md)
|
53
|
+
|
54
|
+
### Authorization
|
55
|
+
|
56
|
+
[api_key](../README.md#api_key)
|
57
|
+
|
58
|
+
### HTTP request headers
|
59
|
+
|
60
|
+
- **Content-Type**: Not defined
|
61
|
+
- **Accept**: application/json
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
# **index_submission**
|
66
|
+
> IndexStateSettings index_submission(x_turnitin_integration_name, x_turnitin_integration_version, id)
|
67
|
+
|
68
|
+
Index and return index state of submission
|
69
|
+
|
70
|
+
### Example
|
71
|
+
```ruby
|
72
|
+
# load the gem
|
73
|
+
require 'tca_client'
|
74
|
+
# setup authorization
|
75
|
+
TCAClient.configure do |config|
|
76
|
+
# Configure API key authorization: api_key
|
77
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
78
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
79
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
80
|
+
end
|
81
|
+
|
82
|
+
api_instance = TCAClient::IndexApi.new
|
83
|
+
x_turnitin_integration_name = 'x_turnitin_integration_name_example' # String | a human readable string representing the type of integration being used
|
84
|
+
x_turnitin_integration_version = 'x_turnitin_integration_version_example' # String | the version of the integration platform being used
|
85
|
+
id = 'id_example' # String | The Submission ID (returned upon a successful POST to /submissions)
|
86
|
+
|
87
|
+
|
88
|
+
begin
|
89
|
+
#Index and return index state of submission
|
90
|
+
result = api_instance.index_submission(x_turnitin_integration_name, x_turnitin_integration_version, id)
|
91
|
+
p result
|
92
|
+
rescue TCAClient::ApiError => e
|
93
|
+
puts "Exception when calling IndexApi->index_submission: #{e}"
|
94
|
+
end
|
95
|
+
```
|
96
|
+
|
97
|
+
### Parameters
|
98
|
+
|
99
|
+
Name | Type | Description | Notes
|
100
|
+
------------- | ------------- | ------------- | -------------
|
101
|
+
**x_turnitin_integration_name** | **String**| a human readable string representing the type of integration being used |
|
102
|
+
**x_turnitin_integration_version** | **String**| the version of the integration platform being used |
|
103
|
+
**id** | **String**| The Submission ID (returned upon a successful POST to /submissions) |
|
104
|
+
|
105
|
+
### Return type
|
106
|
+
|
107
|
+
[**IndexStateSettings**](IndexStateSettings.md)
|
108
|
+
|
109
|
+
### Authorization
|
110
|
+
|
111
|
+
[api_key](../README.md#api_key)
|
112
|
+
|
113
|
+
### HTTP request headers
|
114
|
+
|
115
|
+
- **Content-Type**: Not defined
|
116
|
+
- **Accept**: application/json
|
117
|
+
|
118
|
+
|
119
|
+
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# TCAClient::IndexingSettings
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**add_to_index** | **BOOLEAN** | If set, the submission will be added to all valid node groups for future matching | [optional]
|
7
|
+
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# TCAClient::RateLimitError
|
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
|
+
|
data/docs/Sidebar.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# TCAClient::Sidebar
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**default_mode** | **String** | The default mode shown in the sidebar panel. The selected mode must be enabled in the tenant's license, request parameter, as well as the viewer's permission. The default mode is similarity. | [optional]
|
7
|
+
|