ddr_client 2.0.0.d9f2bd2b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +168 -0
  4. data/Rakefile +8 -0
  5. data/ddr_client.gemspec +46 -0
  6. data/docs/BatchObjectsApi.md +125 -0
  7. data/docs/BatchesApi.md +305 -0
  8. data/docs/DdrAPIBatchEntity.md +24 -0
  9. data/docs/DdrAPIBatchEntityLogfile.md +11 -0
  10. data/docs/DdrAPIBatchObjectAttributeEntity.md +16 -0
  11. data/docs/DdrAPIBatchObjectDatastreamEntity.md +17 -0
  12. data/docs/DdrAPIBatchObjectEntity.md +26 -0
  13. data/docs/DdrAPIBatchObjectMessageEntity.md +13 -0
  14. data/docs/DdrAPIBatchObjectRelationshipEntity.md +15 -0
  15. data/docs/DdrAPIBatchObjectRoleEntity.md +15 -0
  16. data/docs/DdrAPIEventEntity.md +17 -0
  17. data/docs/DdrAPIFileEntity.md +11 -0
  18. data/docs/DdrAPIGroupEntity.md +10 -0
  19. data/docs/DdrAPIGroupMemberEntity.md +10 -0
  20. data/docs/DdrAPILinkEntity.md +9 -0
  21. data/docs/DdrAPIResourceEntity.md +17 -0
  22. data/docs/DdrAPIResourceEntityFiles.md +17 -0
  23. data/docs/DdrAPIResourceEntityMetadata.md +62 -0
  24. data/docs/DdrAPIResourceEntityRelated.md +11 -0
  25. data/docs/DdrAPIRoleEntity.md +10 -0
  26. data/docs/DdrAPITechnicalMetadataEntity.md +24 -0
  27. data/docs/DdrAPIUserEntity.md +19 -0
  28. data/docs/EventsApi.md +131 -0
  29. data/docs/GroupsApi.md +63 -0
  30. data/docs/IndexApi.md +161 -0
  31. data/docs/PatchResources.md +11 -0
  32. data/docs/PatchResourcesMetadata.md +62 -0
  33. data/docs/PatchResourcesRelated.md +11 -0
  34. data/docs/PatchResourcesRoles.md +10 -0
  35. data/docs/PostResources.md +12 -0
  36. data/docs/QueuesApi.md +102 -0
  37. data/docs/ReportsApi.md +177 -0
  38. data/docs/ResourcesApi.md +1003 -0
  39. data/docs/SchemaApi.md +128 -0
  40. data/docs/UsersApi.md +131 -0
  41. data/git_push.sh +55 -0
  42. data/lib/ddr_client/api/batch_objects_api.rb +138 -0
  43. data/lib/ddr_client/api/batches_api.rb +306 -0
  44. data/lib/ddr_client/api/events_api.rb +147 -0
  45. data/lib/ddr_client/api/groups_api.rb +70 -0
  46. data/lib/ddr_client/api/index_api.rb +164 -0
  47. data/lib/ddr_client/api/queues_api.rb +109 -0
  48. data/lib/ddr_client/api/reports_api.rb +179 -0
  49. data/lib/ddr_client/api/resources_api.rb +1098 -0
  50. data/lib/ddr_client/api/schema_api.rb +152 -0
  51. data/lib/ddr_client/api/users_api.rb +141 -0
  52. data/lib/ddr_client/api_client.rb +391 -0
  53. data/lib/ddr_client/api_error.rb +38 -0
  54. data/lib/ddr_client/configuration.rb +209 -0
  55. data/lib/ddr_client/models/ddr_api_batch_entity.rb +333 -0
  56. data/lib/ddr_client/models/ddr_api_batch_entity_logfile.rb +211 -0
  57. data/lib/ddr_client/models/ddr_api_batch_object_attribute_entity.rb +256 -0
  58. data/lib/ddr_client/models/ddr_api_batch_object_datastream_entity.rb +265 -0
  59. data/lib/ddr_client/models/ddr_api_batch_object_entity.rb +349 -0
  60. data/lib/ddr_client/models/ddr_api_batch_object_message_entity.rb +230 -0
  61. data/lib/ddr_client/models/ddr_api_batch_object_relationship_entity.rb +247 -0
  62. data/lib/ddr_client/models/ddr_api_batch_object_role_entity.rb +247 -0
  63. data/lib/ddr_client/models/ddr_api_event_entity.rb +325 -0
  64. data/lib/ddr_client/models/ddr_api_file_entity.rb +215 -0
  65. data/lib/ddr_client/models/ddr_api_group_entity.rb +203 -0
  66. data/lib/ddr_client/models/ddr_api_group_member_entity.rb +202 -0
  67. data/lib/ddr_client/models/ddr_api_link_entity.rb +193 -0
  68. data/lib/ddr_client/models/ddr_api_resource_entity.rb +310 -0
  69. data/lib/ddr_client/models/ddr_api_resource_entity_files.rb +276 -0
  70. data/lib/ddr_client/models/ddr_api_resource_entity_metadata.rb +874 -0
  71. data/lib/ddr_client/models/ddr_api_resource_entity_related.rb +216 -0
  72. data/lib/ddr_client/models/ddr_api_role_entity.rb +251 -0
  73. data/lib/ddr_client/models/ddr_api_technical_metadata_entity.rb +329 -0
  74. data/lib/ddr_client/models/ddr_api_user_entity.rb +296 -0
  75. data/lib/ddr_client/models/patch_resources.rb +221 -0
  76. data/lib/ddr_client/models/patch_resources_metadata.rb +726 -0
  77. data/lib/ddr_client/models/patch_resources_related.rb +216 -0
  78. data/lib/ddr_client/models/patch_resources_roles.rb +220 -0
  79. data/lib/ddr_client/models/post_resources.rb +265 -0
  80. data/lib/ddr_client/version.rb +15 -0
  81. data/lib/ddr_client.rb +74 -0
  82. data/spec/api/batch_objects_api_spec.rb +61 -0
  83. data/spec/api/batches_api_spec.rb +100 -0
  84. data/spec/api/events_api_spec.rb +64 -0
  85. data/spec/api/groups_api_spec.rb +46 -0
  86. data/spec/api/index_api_spec.rb +67 -0
  87. data/spec/api/queues_api_spec.rb +55 -0
  88. data/spec/api/reports_api_spec.rb +70 -0
  89. data/spec/api/resources_api_spec.rb +271 -0
  90. data/spec/api/schema_api_spec.rb +65 -0
  91. data/spec/api/users_api_spec.rb +64 -0
  92. data/spec/api_client_spec.rb +243 -0
  93. data/spec/configuration_spec.rb +42 -0
  94. data/spec/models/ddr_api_batch_entity_logfile_spec.rb +59 -0
  95. data/spec/models/ddr_api_batch_entity_spec.rb +137 -0
  96. data/spec/models/ddr_api_batch_object_attribute_entity_spec.rb +89 -0
  97. data/spec/models/ddr_api_batch_object_datastream_entity_spec.rb +95 -0
  98. data/spec/models/ddr_api_batch_object_entity_spec.rb +149 -0
  99. data/spec/models/ddr_api_batch_object_message_entity_spec.rb +71 -0
  100. data/spec/models/ddr_api_batch_object_relationship_entity_spec.rb +83 -0
  101. data/spec/models/ddr_api_batch_object_role_entity_spec.rb +83 -0
  102. data/spec/models/ddr_api_event_entity_spec.rb +103 -0
  103. data/spec/models/ddr_api_file_entity_spec.rb +59 -0
  104. data/spec/models/ddr_api_group_entity_spec.rb +53 -0
  105. data/spec/models/ddr_api_group_member_entity_spec.rb +53 -0
  106. data/spec/models/ddr_api_link_entity_spec.rb +47 -0
  107. data/spec/models/ddr_api_resource_entity_files_spec.rb +95 -0
  108. data/spec/models/ddr_api_resource_entity_metadata_spec.rb +389 -0
  109. data/spec/models/ddr_api_resource_entity_related_spec.rb +59 -0
  110. data/spec/models/ddr_api_resource_entity_spec.rb +99 -0
  111. data/spec/models/ddr_api_role_entity_spec.rb +61 -0
  112. data/spec/models/ddr_api_technical_metadata_entity_spec.rb +137 -0
  113. data/spec/models/ddr_api_user_entity_spec.rb +107 -0
  114. data/spec/models/patch_resources_metadata_spec.rb +365 -0
  115. data/spec/models/patch_resources_related_spec.rb +59 -0
  116. data/spec/models/patch_resources_roles_spec.rb +53 -0
  117. data/spec/models/patch_resources_spec.rb +59 -0
  118. data/spec/models/post_resources_spec.rb +69 -0
  119. data/spec/spec_helper.rb +111 -0
  120. metadata +399 -0
@@ -0,0 +1,1003 @@
1
+ # DdrClient::ResourcesApi
2
+
3
+ All URIs are relative to *https://example.org/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_resources**](ResourcesApi.md#get_resources) | **GET** /resources |
8
+ [**get_resources_by_role**](ResourcesApi.md#get_resources_by_role) | **GET** /resources/by_role |
9
+ [**get_resources_id**](ResourcesApi.md#get_resources_id) | **GET** /resources/{id} |
10
+ [**get_resources_id_attachments**](ResourcesApi.md#get_resources_id_attachments) | **GET** /resources/{id}/attachments |
11
+ [**get_resources_id_batches**](ResourcesApi.md#get_resources_id_batches) | **GET** /resources/{id}/batches |
12
+ [**get_resources_id_children**](ResourcesApi.md#get_resources_id_children) | **GET** /resources/{id}/children |
13
+ [**get_resources_id_download**](ResourcesApi.md#get_resources_id_download) | **GET** /resources/{id}/download |
14
+ [**get_resources_id_files_slug**](ResourcesApi.md#get_resources_id_files_slug) | **GET** /resources/{id}/files/{slug} |
15
+ [**get_resources_id_fixity**](ResourcesApi.md#get_resources_id_fixity) | **GET** /resources/{id}/fixity | Perform a fixity check on the resource
16
+ [**get_resources_id_members**](ResourcesApi.md#get_resources_id_members) | **GET** /resources/{id}/members | Get members of a Collection
17
+ [**get_resources_id_permanent_id**](ResourcesApi.md#get_resources_id_permanent_id) | **GET** /resources/{id}/permanent_id |
18
+ [**get_resources_id_permissions**](ResourcesApi.md#get_resources_id_permissions) | **GET** /resources/{id}/permissions |
19
+ [**get_resources_id_targets**](ResourcesApi.md#get_resources_id_targets) | **GET** /resources/{id}/targets |
20
+ [**get_resources_id_technical_metadata**](ResourcesApi.md#get_resources_id_technical_metadata) | **GET** /resources/{id}/technical_metadata |
21
+ [**patch_resources_id**](ResourcesApi.md#patch_resources_id) | **PATCH** /resources/{id} |
22
+ [**post_resources**](ResourcesApi.md#post_resources) | **POST** /resources |
23
+
24
+
25
+ # **get_resources**
26
+ > Array<DdrAPIResourceEntity> get_resources(opts)
27
+
28
+
29
+
30
+ Filter resources
31
+
32
+ ### Example
33
+ ```ruby
34
+ # load the gem
35
+ require 'ddr_client'
36
+ # setup authorization
37
+ DdrClient.configure do |config|
38
+ # Configure API key authorization: oauth
39
+ config.api_key['Authorization'] = 'YOUR API KEY'
40
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
41
+ #config.api_key_prefix['Authorization'] = 'Bearer'
42
+ end
43
+
44
+ api_instance = DdrClient::ResourcesApi.new
45
+
46
+ opts = {
47
+ admin_set: 'admin_set_example', # String | Limit to selected admin set
48
+ original_filename: 'original_filename_example', # String | Match by original file name
49
+ sha1: ['sha1_example'], # Array<String> | Match by original file SHA1 digest
50
+ model: ['model_example'], # Array<String> | Limit to selected model type(s)
51
+ workflow_state: 'workflow_state_example', # String | Filter by workflow state
52
+ modified_before: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Limit results to resources created or modified before a date/time
53
+ modified_since: DateTime.parse('2013-10-20T19:20:30+01:00'), # DateTime | Limit results to resources created or modified since a date/time
54
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
55
+ exclude_fields: ['exclude_fields_example'], # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
56
+ csv_fields: ['csv_fields_example'], # Array<String> | CSV only: Include additional columns
57
+ file_fields: ['file_fields_example'], # Array<String> | CSV only: Include file columns (row values: 'present', 'absent', or 'n/a')
58
+ remove_empty_columns: false, # BOOLEAN | CSV only: Remove empty columns from CSV output table
59
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
60
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
61
+ }
62
+
63
+ begin
64
+ result = api_instance.get_resources(opts)
65
+ p result
66
+ rescue DdrClient::ApiError => e
67
+ puts "Exception when calling ResourcesApi->get_resources: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ Name | Type | Description | Notes
74
+ ------------- | ------------- | ------------- | -------------
75
+ **admin_set** | **String**| Limit to selected admin set | [optional]
76
+ **original_filename** | **String**| Match by original file name | [optional]
77
+ **sha1** | [**Array&lt;String&gt;**](String.md)| Match by original file SHA1 digest | [optional]
78
+ **model** | [**Array&lt;String&gt;**](String.md)| Limit to selected model type(s) | [optional]
79
+ **workflow_state** | **String**| Filter by workflow state | [optional]
80
+ **modified_before** | **DateTime**| Limit results to resources created or modified before a date/time | [optional]
81
+ **modified_since** | **DateTime**| Limit results to resources created or modified since a date/time | [optional]
82
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
83
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
84
+ **csv_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include additional columns | [optional]
85
+ **file_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include file columns (row values: &#39;present&#39;, &#39;absent&#39;, or &#39;n/a&#39;) | [optional]
86
+ **remove_empty_columns** | **BOOLEAN**| CSV only: Remove empty columns from CSV output table | [optional] [default to false]
87
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
88
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
89
+
90
+ ### Return type
91
+
92
+ [**Array&lt;DdrAPIResourceEntity&gt;**](DdrAPIResourceEntity.md)
93
+
94
+ ### Authorization
95
+
96
+ [oauth](../README.md#oauth)
97
+
98
+ ### HTTP request headers
99
+
100
+ - **Content-Type**: Not defined
101
+ - **Accept**: application/json, text/csv
102
+
103
+
104
+
105
+ # **get_resources_by_role**
106
+ > Array&lt;DdrAPIResourceEntity&gt; get_resources_by_role(opts)
107
+
108
+
109
+
110
+ Find resources by role
111
+
112
+ ### Example
113
+ ```ruby
114
+ # load the gem
115
+ require 'ddr_client'
116
+ # setup authorization
117
+ DdrClient.configure do |config|
118
+ # Configure API key authorization: oauth
119
+ config.api_key['Authorization'] = 'YOUR API KEY'
120
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
121
+ #config.api_key_prefix['Authorization'] = 'Bearer'
122
+ end
123
+
124
+ api_instance = DdrClient::ResourcesApi.new
125
+
126
+ opts = {
127
+ agent: 'agent_example', # String | Person or group to whom access is granted
128
+ role_type: 'role_type_example', # String | Type of access granted
129
+ scope: 'scope_example', # String | Scope of the access granted
130
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
131
+ exclude_fields: ['exclude_fields_example'], # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
132
+ csv_fields: ['csv_fields_example'], # Array<String> | CSV only: Include additional columns
133
+ file_fields: ['file_fields_example'], # Array<String> | CSV only: Include file columns (row values: 'present', 'absent', or 'n/a')
134
+ remove_empty_columns: false, # BOOLEAN | CSV only: Remove empty columns from CSV output table
135
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
136
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
137
+ }
138
+
139
+ begin
140
+ result = api_instance.get_resources_by_role(opts)
141
+ p result
142
+ rescue DdrClient::ApiError => e
143
+ puts "Exception when calling ResourcesApi->get_resources_by_role: #{e}"
144
+ end
145
+ ```
146
+
147
+ ### Parameters
148
+
149
+ Name | Type | Description | Notes
150
+ ------------- | ------------- | ------------- | -------------
151
+ **agent** | **String**| Person or group to whom access is granted | [optional]
152
+ **role_type** | **String**| Type of access granted | [optional]
153
+ **scope** | **String**| Scope of the access granted | [optional]
154
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
155
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
156
+ **csv_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include additional columns | [optional]
157
+ **file_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include file columns (row values: &#39;present&#39;, &#39;absent&#39;, or &#39;n/a&#39;) | [optional]
158
+ **remove_empty_columns** | **BOOLEAN**| CSV only: Remove empty columns from CSV output table | [optional] [default to false]
159
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
160
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
161
+
162
+ ### Return type
163
+
164
+ [**Array&lt;DdrAPIResourceEntity&gt;**](DdrAPIResourceEntity.md)
165
+
166
+ ### Authorization
167
+
168
+ [oauth](../README.md#oauth)
169
+
170
+ ### HTTP request headers
171
+
172
+ - **Content-Type**: Not defined
173
+ - **Accept**: application/json, text/csv
174
+
175
+
176
+
177
+ # **get_resources_id**
178
+ > DdrAPIResourceEntity get_resources_id(id, opts)
179
+
180
+
181
+
182
+ Retrieve a resource
183
+
184
+ ### Example
185
+ ```ruby
186
+ # load the gem
187
+ require 'ddr_client'
188
+ # setup authorization
189
+ DdrClient.configure do |config|
190
+ # Configure API key authorization: oauth
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 = DdrClient::ResourcesApi.new
197
+
198
+ id = 'id_example' # String |
199
+
200
+ opts = {
201
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
202
+ exclude_fields: ['exclude_fields_example'] # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
203
+ }
204
+
205
+ begin
206
+ result = api_instance.get_resources_id(id, opts)
207
+ p result
208
+ rescue DdrClient::ApiError => e
209
+ puts "Exception when calling ResourcesApi->get_resources_id: #{e}"
210
+ end
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ Name | Type | Description | Notes
216
+ ------------- | ------------- | ------------- | -------------
217
+ **id** | **String**| |
218
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
219
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
220
+
221
+ ### Return type
222
+
223
+ [**DdrAPIResourceEntity**](DdrAPIResourceEntity.md)
224
+
225
+ ### Authorization
226
+
227
+ [oauth](../README.md#oauth)
228
+
229
+ ### HTTP request headers
230
+
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: application/json
233
+
234
+
235
+
236
+ # **get_resources_id_attachments**
237
+ > Array&lt;DdrAPIResourceEntity&gt; get_resources_id_attachments(id, opts)
238
+
239
+
240
+
241
+ Get attachments to a Collection
242
+
243
+ ### Example
244
+ ```ruby
245
+ # load the gem
246
+ require 'ddr_client'
247
+ # setup authorization
248
+ DdrClient.configure do |config|
249
+ # Configure API key authorization: oauth
250
+ config.api_key['Authorization'] = 'YOUR API KEY'
251
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
252
+ #config.api_key_prefix['Authorization'] = 'Bearer'
253
+ end
254
+
255
+ api_instance = DdrClient::ResourcesApi.new
256
+
257
+ id = 'id_example' # String |
258
+
259
+ opts = {
260
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
261
+ exclude_fields: ['exclude_fields_example'], # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
262
+ csv_fields: ['csv_fields_example'], # Array<String> | CSV only: Include additional columns
263
+ file_fields: ['file_fields_example'], # Array<String> | CSV only: Include file columns (row values: 'present', 'absent', or 'n/a')
264
+ remove_empty_columns: false, # BOOLEAN | CSV only: Remove empty columns from CSV output table
265
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
266
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
267
+ }
268
+
269
+ begin
270
+ result = api_instance.get_resources_id_attachments(id, opts)
271
+ p result
272
+ rescue DdrClient::ApiError => e
273
+ puts "Exception when calling ResourcesApi->get_resources_id_attachments: #{e}"
274
+ end
275
+ ```
276
+
277
+ ### Parameters
278
+
279
+ Name | Type | Description | Notes
280
+ ------------- | ------------- | ------------- | -------------
281
+ **id** | **String**| |
282
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
283
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
284
+ **csv_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include additional columns | [optional]
285
+ **file_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include file columns (row values: &#39;present&#39;, &#39;absent&#39;, or &#39;n/a&#39;) | [optional]
286
+ **remove_empty_columns** | **BOOLEAN**| CSV only: Remove empty columns from CSV output table | [optional] [default to false]
287
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
288
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
289
+
290
+ ### Return type
291
+
292
+ [**Array&lt;DdrAPIResourceEntity&gt;**](DdrAPIResourceEntity.md)
293
+
294
+ ### Authorization
295
+
296
+ [oauth](../README.md#oauth)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: application/json, text/csv
302
+
303
+
304
+
305
+ # **get_resources_id_batches**
306
+ > Array&lt;DdrAPIBatchEntity&gt; get_resources_id_batches(id, opts)
307
+
308
+
309
+
310
+ Get batches associated with the resource (by batch collection_id or batch object resource_id)
311
+
312
+ ### Example
313
+ ```ruby
314
+ # load the gem
315
+ require 'ddr_client'
316
+ # setup authorization
317
+ DdrClient.configure do |config|
318
+ # Configure API key authorization: oauth
319
+ config.api_key['Authorization'] = 'YOUR API KEY'
320
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
321
+ #config.api_key_prefix['Authorization'] = 'Bearer'
322
+ end
323
+
324
+ api_instance = DdrClient::ResourcesApi.new
325
+
326
+ id = 'id_example' # String |
327
+
328
+ opts = {
329
+ batch_objects: false, # BOOLEAN | Include batch objects for each batch
330
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
331
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
332
+ }
333
+
334
+ begin
335
+ result = api_instance.get_resources_id_batches(id, opts)
336
+ p result
337
+ rescue DdrClient::ApiError => e
338
+ puts "Exception when calling ResourcesApi->get_resources_id_batches: #{e}"
339
+ end
340
+ ```
341
+
342
+ ### Parameters
343
+
344
+ Name | Type | Description | Notes
345
+ ------------- | ------------- | ------------- | -------------
346
+ **id** | **String**| |
347
+ **batch_objects** | **BOOLEAN**| Include batch objects for each batch | [optional] [default to false]
348
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
349
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
350
+
351
+ ### Return type
352
+
353
+ [**Array&lt;DdrAPIBatchEntity&gt;**](DdrAPIBatchEntity.md)
354
+
355
+ ### Authorization
356
+
357
+ [oauth](../README.md#oauth)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: Not defined
362
+ - **Accept**: application/json
363
+
364
+
365
+
366
+ # **get_resources_id_children**
367
+ > Array&lt;DdrAPIResourceEntity&gt; get_resources_id_children(id, opts)
368
+
369
+
370
+
371
+ Get children of a resource
372
+
373
+ ### Example
374
+ ```ruby
375
+ # load the gem
376
+ require 'ddr_client'
377
+ # setup authorization
378
+ DdrClient.configure do |config|
379
+ # Configure API key authorization: oauth
380
+ config.api_key['Authorization'] = 'YOUR API KEY'
381
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
382
+ #config.api_key_prefix['Authorization'] = 'Bearer'
383
+ end
384
+
385
+ api_instance = DdrClient::ResourcesApi.new
386
+
387
+ id = 'id_example' # String |
388
+
389
+ opts = {
390
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
391
+ exclude_fields: ['exclude_fields_example'], # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
392
+ csv_fields: ['csv_fields_example'], # Array<String> | CSV only: Include additional columns
393
+ file_fields: ['file_fields_example'], # Array<String> | CSV only: Include file columns (row values: 'present', 'absent', or 'n/a')
394
+ remove_empty_columns: false, # BOOLEAN | CSV only: Remove empty columns from CSV output table
395
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
396
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
397
+ }
398
+
399
+ begin
400
+ result = api_instance.get_resources_id_children(id, opts)
401
+ p result
402
+ rescue DdrClient::ApiError => e
403
+ puts "Exception when calling ResourcesApi->get_resources_id_children: #{e}"
404
+ end
405
+ ```
406
+
407
+ ### Parameters
408
+
409
+ Name | Type | Description | Notes
410
+ ------------- | ------------- | ------------- | -------------
411
+ **id** | **String**| |
412
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
413
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
414
+ **csv_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include additional columns | [optional]
415
+ **file_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include file columns (row values: &#39;present&#39;, &#39;absent&#39;, or &#39;n/a&#39;) | [optional]
416
+ **remove_empty_columns** | **BOOLEAN**| CSV only: Remove empty columns from CSV output table | [optional] [default to false]
417
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
418
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
419
+
420
+ ### Return type
421
+
422
+ [**Array&lt;DdrAPIResourceEntity&gt;**](DdrAPIResourceEntity.md)
423
+
424
+ ### Authorization
425
+
426
+ [oauth](../README.md#oauth)
427
+
428
+ ### HTTP request headers
429
+
430
+ - **Content-Type**: Not defined
431
+ - **Accept**: application/json, text/csv
432
+
433
+
434
+
435
+ # **get_resources_id_download**
436
+ > File get_resources_id_download(id)
437
+
438
+
439
+
440
+ Download original file
441
+
442
+ ### Example
443
+ ```ruby
444
+ # load the gem
445
+ require 'ddr_client'
446
+ # setup authorization
447
+ DdrClient.configure do |config|
448
+ # Configure API key authorization: oauth
449
+ config.api_key['Authorization'] = 'YOUR API KEY'
450
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
451
+ #config.api_key_prefix['Authorization'] = 'Bearer'
452
+ end
453
+
454
+ api_instance = DdrClient::ResourcesApi.new
455
+
456
+ id = 'id_example' # String |
457
+
458
+
459
+ begin
460
+ result = api_instance.get_resources_id_download(id)
461
+ p result
462
+ rescue DdrClient::ApiError => e
463
+ puts "Exception when calling ResourcesApi->get_resources_id_download: #{e}"
464
+ end
465
+ ```
466
+
467
+ ### Parameters
468
+
469
+ Name | Type | Description | Notes
470
+ ------------- | ------------- | ------------- | -------------
471
+ **id** | **String**| |
472
+
473
+ ### Return type
474
+
475
+ **File**
476
+
477
+ ### Authorization
478
+
479
+ [oauth](../README.md#oauth)
480
+
481
+ ### HTTP request headers
482
+
483
+ - **Content-Type**: Not defined
484
+ - **Accept**: application/json
485
+
486
+
487
+
488
+ # **get_resources_id_files_slug**
489
+ > File get_resources_id_files_slug(id, slug)
490
+
491
+
492
+
493
+ Download a file attached to a resource
494
+
495
+ ### Example
496
+ ```ruby
497
+ # load the gem
498
+ require 'ddr_client'
499
+ # setup authorization
500
+ DdrClient.configure do |config|
501
+ # Configure API key authorization: oauth
502
+ config.api_key['Authorization'] = 'YOUR API KEY'
503
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
504
+ #config.api_key_prefix['Authorization'] = 'Bearer'
505
+ end
506
+
507
+ api_instance = DdrClient::ResourcesApi.new
508
+
509
+ id = 'id_example' # String |
510
+
511
+ slug = 'slug_example' # String |
512
+
513
+
514
+ begin
515
+ result = api_instance.get_resources_id_files_slug(id, slug)
516
+ p result
517
+ rescue DdrClient::ApiError => e
518
+ puts "Exception when calling ResourcesApi->get_resources_id_files_slug: #{e}"
519
+ end
520
+ ```
521
+
522
+ ### Parameters
523
+
524
+ Name | Type | Description | Notes
525
+ ------------- | ------------- | ------------- | -------------
526
+ **id** | **String**| |
527
+ **slug** | **String**| |
528
+
529
+ ### Return type
530
+
531
+ **File**
532
+
533
+ ### Authorization
534
+
535
+ [oauth](../README.md#oauth)
536
+
537
+ ### HTTP request headers
538
+
539
+ - **Content-Type**: Not defined
540
+ - **Accept**: application/json
541
+
542
+
543
+
544
+ # **get_resources_id_fixity**
545
+ > get_resources_id_fixity(id)
546
+
547
+ Perform a fixity check on the resource
548
+
549
+ Content <= 1GB is checked and results returned; content > 1GB is accepted and background job information is returned
550
+
551
+ ### Example
552
+ ```ruby
553
+ # load the gem
554
+ require 'ddr_client'
555
+ # setup authorization
556
+ DdrClient.configure do |config|
557
+ # Configure API key authorization: oauth
558
+ config.api_key['Authorization'] = 'YOUR API KEY'
559
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
560
+ #config.api_key_prefix['Authorization'] = 'Bearer'
561
+ end
562
+
563
+ api_instance = DdrClient::ResourcesApi.new
564
+
565
+ id = 'id_example' # String |
566
+
567
+
568
+ begin
569
+ #Perform a fixity check on the resource
570
+ api_instance.get_resources_id_fixity(id)
571
+ rescue DdrClient::ApiError => e
572
+ puts "Exception when calling ResourcesApi->get_resources_id_fixity: #{e}"
573
+ end
574
+ ```
575
+
576
+ ### Parameters
577
+
578
+ Name | Type | Description | Notes
579
+ ------------- | ------------- | ------------- | -------------
580
+ **id** | **String**| |
581
+
582
+ ### Return type
583
+
584
+ nil (empty response body)
585
+
586
+ ### Authorization
587
+
588
+ [oauth](../README.md#oauth)
589
+
590
+ ### HTTP request headers
591
+
592
+ - **Content-Type**: Not defined
593
+ - **Accept**: application/json
594
+
595
+
596
+
597
+ # **get_resources_id_members**
598
+ > Array&lt;DdrAPIResourceEntity&gt; get_resources_id_members(id, opts)
599
+
600
+ Get members of a Collection
601
+
602
+ Members include all resources related to the collection by admin_policy_id, which includes itself.
603
+
604
+ ### Example
605
+ ```ruby
606
+ # load the gem
607
+ require 'ddr_client'
608
+ # setup authorization
609
+ DdrClient.configure do |config|
610
+ # Configure API key authorization: oauth
611
+ config.api_key['Authorization'] = 'YOUR API KEY'
612
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
613
+ #config.api_key_prefix['Authorization'] = 'Bearer'
614
+ end
615
+
616
+ api_instance = DdrClient::ResourcesApi.new
617
+
618
+ id = 'id_example' # String |
619
+
620
+ opts = {
621
+ model: ['model_example'], # Array<String> | Limit to selected model type(s)
622
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
623
+ exclude_fields: ['exclude_fields_example'], # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
624
+ csv_fields: ['csv_fields_example'], # Array<String> | CSV only: Include additional columns
625
+ file_fields: ['file_fields_example'], # Array<String> | CSV only: Include file columns (row values: 'present', 'absent', or 'n/a')
626
+ remove_empty_columns: false, # BOOLEAN | CSV only: Remove empty columns from CSV output table
627
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
628
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
629
+ }
630
+
631
+ begin
632
+ #Get members of a Collection
633
+ result = api_instance.get_resources_id_members(id, opts)
634
+ p result
635
+ rescue DdrClient::ApiError => e
636
+ puts "Exception when calling ResourcesApi->get_resources_id_members: #{e}"
637
+ end
638
+ ```
639
+
640
+ ### Parameters
641
+
642
+ Name | Type | Description | Notes
643
+ ------------- | ------------- | ------------- | -------------
644
+ **id** | **String**| |
645
+ **model** | [**Array&lt;String&gt;**](String.md)| Limit to selected model type(s) | [optional]
646
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
647
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
648
+ **csv_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include additional columns | [optional]
649
+ **file_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include file columns (row values: &#39;present&#39;, &#39;absent&#39;, or &#39;n/a&#39;) | [optional]
650
+ **remove_empty_columns** | **BOOLEAN**| CSV only: Remove empty columns from CSV output table | [optional] [default to false]
651
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
652
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
653
+
654
+ ### Return type
655
+
656
+ [**Array&lt;DdrAPIResourceEntity&gt;**](DdrAPIResourceEntity.md)
657
+
658
+ ### Authorization
659
+
660
+ [oauth](../README.md#oauth)
661
+
662
+ ### HTTP request headers
663
+
664
+ - **Content-Type**: Not defined
665
+ - **Accept**: application/json, text/csv
666
+
667
+
668
+
669
+ # **get_resources_id_permanent_id**
670
+ > get_resources_id_permanent_id(id)
671
+
672
+
673
+
674
+ Retrieve metadata for the permanent ID assigned to the resource
675
+
676
+ ### Example
677
+ ```ruby
678
+ # load the gem
679
+ require 'ddr_client'
680
+ # setup authorization
681
+ DdrClient.configure do |config|
682
+ # Configure API key authorization: oauth
683
+ config.api_key['Authorization'] = 'YOUR API KEY'
684
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
685
+ #config.api_key_prefix['Authorization'] = 'Bearer'
686
+ end
687
+
688
+ api_instance = DdrClient::ResourcesApi.new
689
+
690
+ id = 'id_example' # String |
691
+
692
+
693
+ begin
694
+ api_instance.get_resources_id_permanent_id(id)
695
+ rescue DdrClient::ApiError => e
696
+ puts "Exception when calling ResourcesApi->get_resources_id_permanent_id: #{e}"
697
+ end
698
+ ```
699
+
700
+ ### Parameters
701
+
702
+ Name | Type | Description | Notes
703
+ ------------- | ------------- | ------------- | -------------
704
+ **id** | **String**| |
705
+
706
+ ### Return type
707
+
708
+ nil (empty response body)
709
+
710
+ ### Authorization
711
+
712
+ [oauth](../README.md#oauth)
713
+
714
+ ### HTTP request headers
715
+
716
+ - **Content-Type**: Not defined
717
+ - **Accept**: application/json
718
+
719
+
720
+
721
+ # **get_resources_id_permissions**
722
+ > get_resources_id_permissions(id)
723
+
724
+
725
+
726
+ Return the effective permissions on the resource
727
+
728
+ ### Example
729
+ ```ruby
730
+ # load the gem
731
+ require 'ddr_client'
732
+ # setup authorization
733
+ DdrClient.configure do |config|
734
+ # Configure API key authorization: oauth
735
+ config.api_key['Authorization'] = 'YOUR API KEY'
736
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
737
+ #config.api_key_prefix['Authorization'] = 'Bearer'
738
+ end
739
+
740
+ api_instance = DdrClient::ResourcesApi.new
741
+
742
+ id = 'id_example' # String |
743
+
744
+
745
+ begin
746
+ api_instance.get_resources_id_permissions(id)
747
+ rescue DdrClient::ApiError => e
748
+ puts "Exception when calling ResourcesApi->get_resources_id_permissions: #{e}"
749
+ end
750
+ ```
751
+
752
+ ### Parameters
753
+
754
+ Name | Type | Description | Notes
755
+ ------------- | ------------- | ------------- | -------------
756
+ **id** | **String**| |
757
+
758
+ ### Return type
759
+
760
+ nil (empty response body)
761
+
762
+ ### Authorization
763
+
764
+ [oauth](../README.md#oauth)
765
+
766
+ ### HTTP request headers
767
+
768
+ - **Content-Type**: Not defined
769
+ - **Accept**: application/json
770
+
771
+
772
+
773
+ # **get_resources_id_targets**
774
+ > Array&lt;DdrAPIResourceEntity&gt; get_resources_id_targets(id, opts)
775
+
776
+
777
+
778
+ Get targets associated with the Collection
779
+
780
+ ### Example
781
+ ```ruby
782
+ # load the gem
783
+ require 'ddr_client'
784
+ # setup authorization
785
+ DdrClient.configure do |config|
786
+ # Configure API key authorization: oauth
787
+ config.api_key['Authorization'] = 'YOUR API KEY'
788
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
789
+ #config.api_key_prefix['Authorization'] = 'Bearer'
790
+ end
791
+
792
+ api_instance = DdrClient::ResourcesApi.new
793
+
794
+ id = 'id_example' # String |
795
+
796
+ opts = {
797
+ fields: ['fields_example'], # Array<String> | Metadata fields to include (resource ID and model are always included)
798
+ exclude_fields: ['exclude_fields_example'], # Array<String> | Metadata fields to exclude (cannot combine with \"fields\")
799
+ csv_fields: ['csv_fields_example'], # Array<String> | CSV only: Include additional columns
800
+ file_fields: ['file_fields_example'], # Array<String> | CSV only: Include file columns (row values: 'present', 'absent', or 'n/a')
801
+ remove_empty_columns: false, # BOOLEAN | CSV only: Remove empty columns from CSV output table
802
+ per_page: nil, # Object | JSON only: Number of records to return per page (default: 20)
803
+ page: nil # Object | JSON only: Page number of results to return (default: 1)
804
+ }
805
+
806
+ begin
807
+ result = api_instance.get_resources_id_targets(id, opts)
808
+ p result
809
+ rescue DdrClient::ApiError => e
810
+ puts "Exception when calling ResourcesApi->get_resources_id_targets: #{e}"
811
+ end
812
+ ```
813
+
814
+ ### Parameters
815
+
816
+ Name | Type | Description | Notes
817
+ ------------- | ------------- | ------------- | -------------
818
+ **id** | **String**| |
819
+ **fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to include (resource ID and model are always included) | [optional]
820
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| Metadata fields to exclude (cannot combine with \&quot;fields\&quot;) | [optional]
821
+ **csv_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include additional columns | [optional]
822
+ **file_fields** | [**Array&lt;String&gt;**](String.md)| CSV only: Include file columns (row values: &#39;present&#39;, &#39;absent&#39;, or &#39;n/a&#39;) | [optional]
823
+ **remove_empty_columns** | **BOOLEAN**| CSV only: Remove empty columns from CSV output table | [optional] [default to false]
824
+ **per_page** | [**Object**](.md)| JSON only: Number of records to return per page (default: 20) | [optional]
825
+ **page** | [**Object**](.md)| JSON only: Page number of results to return (default: 1) | [optional]
826
+
827
+ ### Return type
828
+
829
+ [**Array&lt;DdrAPIResourceEntity&gt;**](DdrAPIResourceEntity.md)
830
+
831
+ ### Authorization
832
+
833
+ [oauth](../README.md#oauth)
834
+
835
+ ### HTTP request headers
836
+
837
+ - **Content-Type**: Not defined
838
+ - **Accept**: application/json, text/csv
839
+
840
+
841
+
842
+ # **get_resources_id_technical_metadata**
843
+ > Array&lt;DdrAPITechnicalMetadataEntity&gt; get_resources_id_technical_metadata(id)
844
+
845
+
846
+
847
+ Get technical metadata for Component members of the Collection
848
+
849
+ ### Example
850
+ ```ruby
851
+ # load the gem
852
+ require 'ddr_client'
853
+ # setup authorization
854
+ DdrClient.configure do |config|
855
+ # Configure API key authorization: oauth
856
+ config.api_key['Authorization'] = 'YOUR API KEY'
857
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
858
+ #config.api_key_prefix['Authorization'] = 'Bearer'
859
+ end
860
+
861
+ api_instance = DdrClient::ResourcesApi.new
862
+
863
+ id = 'id_example' # String |
864
+
865
+
866
+ begin
867
+ result = api_instance.get_resources_id_technical_metadata(id)
868
+ p result
869
+ rescue DdrClient::ApiError => e
870
+ puts "Exception when calling ResourcesApi->get_resources_id_technical_metadata: #{e}"
871
+ end
872
+ ```
873
+
874
+ ### Parameters
875
+
876
+ Name | Type | Description | Notes
877
+ ------------- | ------------- | ------------- | -------------
878
+ **id** | **String**| |
879
+
880
+ ### Return type
881
+
882
+ [**Array&lt;DdrAPITechnicalMetadataEntity&gt;**](DdrAPITechnicalMetadataEntity.md)
883
+
884
+ ### Authorization
885
+
886
+ [oauth](../README.md#oauth)
887
+
888
+ ### HTTP request headers
889
+
890
+ - **Content-Type**: Not defined
891
+ - **Accept**: application/json, text/csv
892
+
893
+
894
+
895
+ # **patch_resources_id**
896
+ > DdrAPIResourceEntity patch_resources_id(id, resources)
897
+
898
+
899
+
900
+ Update a resource
901
+
902
+ ### Example
903
+ ```ruby
904
+ # load the gem
905
+ require 'ddr_client'
906
+ # setup authorization
907
+ DdrClient.configure do |config|
908
+ # Configure API key authorization: oauth
909
+ config.api_key['Authorization'] = 'YOUR API KEY'
910
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
911
+ #config.api_key_prefix['Authorization'] = 'Bearer'
912
+ end
913
+
914
+ api_instance = DdrClient::ResourcesApi.new
915
+
916
+ id = 'id_example' # String |
917
+
918
+ resources = DdrClient::PatchResources.new # PatchResources |
919
+
920
+
921
+ begin
922
+ result = api_instance.patch_resources_id(id, resources)
923
+ p result
924
+ rescue DdrClient::ApiError => e
925
+ puts "Exception when calling ResourcesApi->patch_resources_id: #{e}"
926
+ end
927
+ ```
928
+
929
+ ### Parameters
930
+
931
+ Name | Type | Description | Notes
932
+ ------------- | ------------- | ------------- | -------------
933
+ **id** | **String**| |
934
+ **resources** | [**PatchResources**](PatchResources.md)| |
935
+
936
+ ### Return type
937
+
938
+ [**DdrAPIResourceEntity**](DdrAPIResourceEntity.md)
939
+
940
+ ### Authorization
941
+
942
+ [oauth](../README.md#oauth)
943
+
944
+ ### HTTP request headers
945
+
946
+ - **Content-Type**: application/json
947
+ - **Accept**: application/json
948
+
949
+
950
+
951
+ # **post_resources**
952
+ > DdrAPIResourceEntity post_resources(resources)
953
+
954
+
955
+
956
+ Create a resource
957
+
958
+ ### Example
959
+ ```ruby
960
+ # load the gem
961
+ require 'ddr_client'
962
+ # setup authorization
963
+ DdrClient.configure do |config|
964
+ # Configure API key authorization: oauth
965
+ config.api_key['Authorization'] = 'YOUR API KEY'
966
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
967
+ #config.api_key_prefix['Authorization'] = 'Bearer'
968
+ end
969
+
970
+ api_instance = DdrClient::ResourcesApi.new
971
+
972
+ resources = DdrClient::PostResources.new # PostResources |
973
+
974
+
975
+ begin
976
+ result = api_instance.post_resources(resources)
977
+ p result
978
+ rescue DdrClient::ApiError => e
979
+ puts "Exception when calling ResourcesApi->post_resources: #{e}"
980
+ end
981
+ ```
982
+
983
+ ### Parameters
984
+
985
+ Name | Type | Description | Notes
986
+ ------------- | ------------- | ------------- | -------------
987
+ **resources** | [**PostResources**](PostResources.md)| |
988
+
989
+ ### Return type
990
+
991
+ [**DdrAPIResourceEntity**](DdrAPIResourceEntity.md)
992
+
993
+ ### Authorization
994
+
995
+ [oauth](../README.md#oauth)
996
+
997
+ ### HTTP request headers
998
+
999
+ - **Content-Type**: application/json
1000
+ - **Accept**: application/json
1001
+
1002
+
1003
+