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
data/docs/IndexApi.md ADDED
@@ -0,0 +1,161 @@
1
+ # DdrClient::IndexApi
2
+
3
+ All URIs are relative to *https://example.org/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_index_id**](IndexApi.md#delete_index_id) | **DELETE** /index/{id} |
8
+ [**get_index_id**](IndexApi.md#get_index_id) | **GET** /index/{id} |
9
+ [**get_index_schema**](IndexApi.md#get_index_schema) | **GET** /index/schema |
10
+
11
+
12
+ # **delete_index_id**
13
+ > delete_index_id(id)
14
+
15
+
16
+
17
+ Delete a document
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'ddr_client'
23
+ # setup authorization
24
+ DdrClient.configure do |config|
25
+ # Configure API key authorization: oauth
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 = DdrClient::IndexApi.new
32
+
33
+ id = 'id_example' # String |
34
+
35
+
36
+ begin
37
+ api_instance.delete_index_id(id)
38
+ rescue DdrClient::ApiError => e
39
+ puts "Exception when calling IndexApi->delete_index_id: #{e}"
40
+ end
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ Name | Type | Description | Notes
46
+ ------------- | ------------- | ------------- | -------------
47
+ **id** | **String**| |
48
+
49
+ ### Return type
50
+
51
+ nil (empty response body)
52
+
53
+ ### Authorization
54
+
55
+ [oauth](../README.md#oauth)
56
+
57
+ ### HTTP request headers
58
+
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: application/json
61
+
62
+
63
+
64
+ # **get_index_id**
65
+ > get_index_id(id)
66
+
67
+
68
+
69
+ Retrieve a document
70
+
71
+ ### Example
72
+ ```ruby
73
+ # load the gem
74
+ require 'ddr_client'
75
+ # setup authorization
76
+ DdrClient.configure do |config|
77
+ # Configure API key authorization: oauth
78
+ config.api_key['Authorization'] = 'YOUR API KEY'
79
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
80
+ #config.api_key_prefix['Authorization'] = 'Bearer'
81
+ end
82
+
83
+ api_instance = DdrClient::IndexApi.new
84
+
85
+ id = 'id_example' # String |
86
+
87
+
88
+ begin
89
+ api_instance.get_index_id(id)
90
+ rescue DdrClient::ApiError => e
91
+ puts "Exception when calling IndexApi->get_index_id: #{e}"
92
+ end
93
+ ```
94
+
95
+ ### Parameters
96
+
97
+ Name | Type | Description | Notes
98
+ ------------- | ------------- | ------------- | -------------
99
+ **id** | **String**| |
100
+
101
+ ### Return type
102
+
103
+ nil (empty response body)
104
+
105
+ ### Authorization
106
+
107
+ [oauth](../README.md#oauth)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: application/json
113
+
114
+
115
+
116
+ # **get_index_schema**
117
+ > get_index_schema
118
+
119
+
120
+
121
+ Retrieve the index schema
122
+
123
+ ### Example
124
+ ```ruby
125
+ # load the gem
126
+ require 'ddr_client'
127
+ # setup authorization
128
+ DdrClient.configure do |config|
129
+ # Configure API key authorization: oauth
130
+ config.api_key['Authorization'] = 'YOUR API KEY'
131
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
132
+ #config.api_key_prefix['Authorization'] = 'Bearer'
133
+ end
134
+
135
+ api_instance = DdrClient::IndexApi.new
136
+
137
+ begin
138
+ api_instance.get_index_schema
139
+ rescue DdrClient::ApiError => e
140
+ puts "Exception when calling IndexApi->get_index_schema: #{e}"
141
+ end
142
+ ```
143
+
144
+ ### Parameters
145
+ This endpoint does not need any parameter.
146
+
147
+ ### Return type
148
+
149
+ nil (empty response body)
150
+
151
+ ### Authorization
152
+
153
+ [oauth](../README.md#oauth)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: application/json
159
+
160
+
161
+
@@ -0,0 +1,11 @@
1
+ # DdrClient::PatchResources
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **optimistic_lock_token** | **String** | Optimistic lock token |
7
+ **metadata** | [**PatchResourcesMetadata**](PatchResourcesMetadata.md) | | [optional]
8
+ **related** | [**PatchResourcesRelated**](PatchResourcesRelated.md) | | [optional]
9
+ **roles** | [**Array<PatchResourcesRoles>**](PatchResourcesRoles.md) | Role-based access control assertions on the resource | [optional]
10
+
11
+
@@ -0,0 +1,62 @@
1
+ # DdrClient::PatchResourcesMetadata
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **abstract** | **String** | http://purl.org/dc/terms/abstract | [optional]
7
+ **access_rights** | **String** | http://purl.org/dc/terms/accessRights | [optional]
8
+ **alternative** | **String** | http://purl.org/dc/terms/alternative | [optional]
9
+ **available** | **String** | http://purl.org/dc/terms/available | [optional]
10
+ **contributor** | **String** | http://purl.org/dc/terms/contributor | [optional]
11
+ **creator** | **String** | http://purl.org/dc/terms/creator | [optional]
12
+ **date** | **String** | http://purl.org/dc/terms/date | [optional]
13
+ **description** | **String** | http://purl.org/dc/terms/description | [optional]
14
+ **extent** | **String** | http://purl.org/dc/terms/extent | [optional]
15
+ **format** | **String** | http://purl.org/dc/terms/format | [optional]
16
+ **has_part** | **String** | http://purl.org/dc/terms/hasPart | [optional]
17
+ **identifier** | **String** | http://purl.org/dc/terms/identifier | [optional]
18
+ **is_format_of** | **String** | http://purl.org/dc/terms/isFormatOf | [optional]
19
+ **is_part_of** | **String** | http://purl.org/dc/terms/isPartOf | [optional]
20
+ **language** | **String** | http://purl.org/dc/terms/language | [optional]
21
+ **medium** | **String** | http://purl.org/dc/terms/medium | [optional]
22
+ **provenance** | **String** | http://purl.org/dc/terms/provenance | [optional]
23
+ **publisher** | **String** | http://purl.org/dc/terms/publisher | [optional]
24
+ **relation** | **String** | http://purl.org/dc/terms/relation | [optional]
25
+ **rights** | **String** | http://purl.org/dc/terms/rights | [optional]
26
+ **spatial** | **String** | http://purl.org/dc/terms/spatial | [optional]
27
+ **subject** | **String** | http://purl.org/dc/terms/subject | [optional]
28
+ **title** | **String** | http://purl.org/dc/terms/title | [optional]
29
+ **type** | **String** | http://purl.org/dc/terms/type | [optional]
30
+ **admin_set** | **String** | Administrative group to which the collection belongs | [optional]
31
+ **aleph_id** | **String** | Aleph identifier | [optional]
32
+ **aspace_id** | **String** | ArchivesSpace identifier | [optional]
33
+ **contentdm_id** | **String** | CONTENTdm identifier (deprecated) | [optional]
34
+ **display_format** | **String** | Display Format | [optional]
35
+ **doi** | **String** | Digital Object Identifier (doi.org) | [optional]
36
+ **ead_id** | **String** | Source collection identifier | [optional]
37
+ **fcrepo3_pid** | **String** | Resource ID from defunct Fedora 3 repository | [optional]
38
+ **ingested_by** | **String** | Person or entity responsible for ingest | [optional]
39
+ **ingestion_date** | **String** | Date/time of original ingest (may differ from created_at) | [optional]
40
+ **local_id** | **String** | Digital Collections identifier | [optional]
41
+ **nested_path** | **String** | Path to original file from root ingest folder | [optional]
42
+ **permanent_id** | **String** | Permanent identifier (ARK) assigned to the resource | [optional]
43
+ **permanent_url** | **String** | Permalink to the end-user representation of the resource. | [optional]
44
+ **research_help_contact** | **String** | Research Help Contact | [optional]
45
+ **rights_note** | **String** | Rights Note | [optional]
46
+ **workflow_state** | **String** | Workflow State | [optional]
47
+ **biblical_book** | **String** | Biblical Book | [optional]
48
+ **category** | **String** | Category | [optional]
49
+ **chapter_and_verse** | **String** | Chapter And Verse | [optional]
50
+ **company** | **String** | Company | [optional]
51
+ **headline** | **String** | Headline | [optional]
52
+ **issue_number** | **String** | Issue Number | [optional]
53
+ **placement_company** | **String** | Placement Company | [optional]
54
+ **product** | **String** | Product | [optional]
55
+ **publication** | **String** | Publication | [optional]
56
+ **series** | **String** | Series | [optional]
57
+ **setting** | **String** | Setting | [optional]
58
+ **sponsor** | **String** | Sponsor | [optional]
59
+ **tone** | **String** | Tone | [optional]
60
+ **volume** | **String** | Volume | [optional]
61
+
62
+
@@ -0,0 +1,11 @@
1
+ # DdrClient::PatchResourcesRelated
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **admin_policy_id** | **String** | ID of the Collection of which this resource is a member | [optional]
7
+ **attached_to_id** | **String** | ID of the resource to which this resource is attached | [optional]
8
+ **parent_id** | **String** | ID of the parent of this resource | [optional]
9
+ **target_id** | **String** | ID of the Target associated with this resource | [optional]
10
+
11
+
@@ -0,0 +1,10 @@
1
+ # DdrClient::PatchResourcesRoles
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **role_type** | **String** | Type of access granted |
7
+ **agent** | **String** | Person or group to whom access is granted |
8
+ **scope** | **String** | Scope of the access granted |
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # DdrClient::PostResources
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Resource ID | [optional]
7
+ **model** | **String** | Type of resource to create |
8
+ **metadata** | [**PatchResourcesMetadata**](PatchResourcesMetadata.md) | | [optional]
9
+ **related** | [**PatchResourcesRelated**](PatchResourcesRelated.md) | | [optional]
10
+ **roles** | [**Array<PatchResourcesRoles>**](PatchResourcesRoles.md) | Role-based access control assertions on the resource | [optional]
11
+
12
+
data/docs/QueuesApi.md ADDED
@@ -0,0 +1,102 @@
1
+ # DdrClient::QueuesApi
2
+
3
+ All URIs are relative to *https://example.org/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete_queues_locks**](QueuesApi.md#delete_queues_locks) | **DELETE** /queues/locks |
8
+ [**get_queues_stats**](QueuesApi.md#get_queues_stats) | **GET** /queues/stats |
9
+
10
+
11
+ # **delete_queues_locks**
12
+ > delete_queues_locks
13
+
14
+
15
+
16
+ Unlock locked jobs
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'ddr_client'
22
+ # setup authorization
23
+ DdrClient.configure do |config|
24
+ # Configure API key authorization: oauth
25
+ config.api_key['Authorization'] = 'YOUR API KEY'
26
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
27
+ #config.api_key_prefix['Authorization'] = 'Bearer'
28
+ end
29
+
30
+ api_instance = DdrClient::QueuesApi.new
31
+
32
+ begin
33
+ api_instance.delete_queues_locks
34
+ rescue DdrClient::ApiError => e
35
+ puts "Exception when calling QueuesApi->delete_queues_locks: #{e}"
36
+ end
37
+ ```
38
+
39
+ ### Parameters
40
+ This endpoint does not need any parameter.
41
+
42
+ ### Return type
43
+
44
+ nil (empty response body)
45
+
46
+ ### Authorization
47
+
48
+ [oauth](../README.md#oauth)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+
57
+ # **get_queues_stats**
58
+ > get_queues_stats
59
+
60
+
61
+
62
+ Retrieve summary infomation on background job queues
63
+
64
+ ### Example
65
+ ```ruby
66
+ # load the gem
67
+ require 'ddr_client'
68
+ # setup authorization
69
+ DdrClient.configure do |config|
70
+ # Configure API key authorization: oauth
71
+ config.api_key['Authorization'] = 'YOUR API KEY'
72
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
73
+ #config.api_key_prefix['Authorization'] = 'Bearer'
74
+ end
75
+
76
+ api_instance = DdrClient::QueuesApi.new
77
+
78
+ begin
79
+ api_instance.get_queues_stats
80
+ rescue DdrClient::ApiError => e
81
+ puts "Exception when calling QueuesApi->get_queues_stats: #{e}"
82
+ end
83
+ ```
84
+
85
+ ### Parameters
86
+ This endpoint does not need any parameter.
87
+
88
+ ### Return type
89
+
90
+ nil (empty response body)
91
+
92
+ ### Authorization
93
+
94
+ [oauth](../README.md#oauth)
95
+
96
+ ### HTTP request headers
97
+
98
+ - **Content-Type**: Not defined
99
+ - **Accept**: application/json
100
+
101
+
102
+
@@ -0,0 +1,177 @@
1
+ # DdrClient::ReportsApi
2
+
3
+ All URIs are relative to *https://example.org/api*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_reports_collection_summary**](ReportsApi.md#get_reports_collection_summary) | **GET** /reports/collection_summary |
8
+ [**get_reports_duplicate_content**](ReportsApi.md#get_reports_duplicate_content) | **GET** /reports/duplicate_content |
9
+ [**get_reports_roles**](ReportsApi.md#get_reports_roles) | **GET** /reports/roles |
10
+
11
+
12
+ # **get_reports_collection_summary**
13
+ > File get_reports_collection_summary(opts)
14
+
15
+
16
+
17
+ Collection summary report
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'ddr_client'
23
+ # setup authorization
24
+ DdrClient.configure do |config|
25
+ # Configure API key authorization: oauth
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 = DdrClient::ReportsApi.new
32
+
33
+ opts = {
34
+ fields: ['fields_example'] # Array<String> | Fields to include for each collection (default: id, title, ingestion_date, admin_set, workflow_state)
35
+ }
36
+
37
+ begin
38
+ result = api_instance.get_reports_collection_summary(opts)
39
+ p result
40
+ rescue DdrClient::ApiError => e
41
+ puts "Exception when calling ReportsApi->get_reports_collection_summary: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **fields** | [**Array&lt;String&gt;**](String.md)| Fields to include for each collection (default: id, title, ingestion_date, admin_set, workflow_state) | [optional]
50
+
51
+ ### Return type
52
+
53
+ **File**
54
+
55
+ ### Authorization
56
+
57
+ [oauth](../README.md#oauth)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: Not defined
62
+ - **Accept**: text/csv
63
+
64
+
65
+
66
+ # **get_reports_duplicate_content**
67
+ > File get_reports_duplicate_content(opts)
68
+
69
+
70
+
71
+ Duplicate content report
72
+
73
+ ### Example
74
+ ```ruby
75
+ # load the gem
76
+ require 'ddr_client'
77
+ # setup authorization
78
+ DdrClient.configure do |config|
79
+ # Configure API key authorization: oauth
80
+ config.api_key['Authorization'] = 'YOUR API KEY'
81
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
82
+ #config.api_key_prefix['Authorization'] = 'Bearer'
83
+ end
84
+
85
+ api_instance = DdrClient::ReportsApi.new
86
+
87
+ opts = {
88
+ fields: ['fields_example'] # Array<String> | Fields to include in the report (default: sha1, id, model, original_filename, parent_id, collection_title, workflow_state, ingestion_date)
89
+ }
90
+
91
+ begin
92
+ result = api_instance.get_reports_duplicate_content(opts)
93
+ p result
94
+ rescue DdrClient::ApiError => e
95
+ puts "Exception when calling ReportsApi->get_reports_duplicate_content: #{e}"
96
+ end
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ Name | Type | Description | Notes
102
+ ------------- | ------------- | ------------- | -------------
103
+ **fields** | [**Array&lt;String&gt;**](String.md)| Fields to include in the report (default: sha1, id, model, original_filename, parent_id, collection_title, workflow_state, ingestion_date) | [optional]
104
+
105
+ ### Return type
106
+
107
+ **File**
108
+
109
+ ### Authorization
110
+
111
+ [oauth](../README.md#oauth)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: Not defined
116
+ - **Accept**: text/csv
117
+
118
+
119
+
120
+ # **get_reports_roles**
121
+ > File get_reports_roles(opts)
122
+
123
+
124
+
125
+ Roles report
126
+
127
+ ### Example
128
+ ```ruby
129
+ # load the gem
130
+ require 'ddr_client'
131
+ # setup authorization
132
+ DdrClient.configure do |config|
133
+ # Configure API key authorization: oauth
134
+ config.api_key['Authorization'] = 'YOUR API KEY'
135
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
136
+ #config.api_key_prefix['Authorization'] = 'Bearer'
137
+ end
138
+
139
+ api_instance = DdrClient::ReportsApi.new
140
+
141
+ opts = {
142
+ include_inherited: false, # BOOLEAN | Include inherited roles for Item resources
143
+ collection_id: 'collection_id_example', # String | Limit resources to members of Collection ID
144
+ fields: ['fields_example'] # Array<String> | Fields to include in the report (default: id, model, title)
145
+ }
146
+
147
+ begin
148
+ result = api_instance.get_reports_roles(opts)
149
+ p result
150
+ rescue DdrClient::ApiError => e
151
+ puts "Exception when calling ReportsApi->get_reports_roles: #{e}"
152
+ end
153
+ ```
154
+
155
+ ### Parameters
156
+
157
+ Name | Type | Description | Notes
158
+ ------------- | ------------- | ------------- | -------------
159
+ **include_inherited** | **BOOLEAN**| Include inherited roles for Item resources | [optional] [default to false]
160
+ **collection_id** | **String**| Limit resources to members of Collection ID | [optional]
161
+ **fields** | [**Array&lt;String&gt;**](String.md)| Fields to include in the report (default: id, model, title) | [optional]
162
+
163
+ ### Return type
164
+
165
+ **File**
166
+
167
+ ### Authorization
168
+
169
+ [oauth](../README.md#oauth)
170
+
171
+ ### HTTP request headers
172
+
173
+ - **Content-Type**: Not defined
174
+ - **Accept**: text/csv
175
+
176
+
177
+