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/lib/ddr_client.rb ADDED
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'ddr_client/api_client'
15
+ require 'ddr_client/api_error'
16
+ require 'ddr_client/version'
17
+ require 'ddr_client/configuration'
18
+
19
+ # Models
20
+ require 'ddr_client/models/ddr_api_batch_entity'
21
+ require 'ddr_client/models/ddr_api_batch_entity_logfile'
22
+ require 'ddr_client/models/ddr_api_batch_object_attribute_entity'
23
+ require 'ddr_client/models/ddr_api_batch_object_datastream_entity'
24
+ require 'ddr_client/models/ddr_api_batch_object_entity'
25
+ require 'ddr_client/models/ddr_api_batch_object_message_entity'
26
+ require 'ddr_client/models/ddr_api_batch_object_relationship_entity'
27
+ require 'ddr_client/models/ddr_api_batch_object_role_entity'
28
+ require 'ddr_client/models/ddr_api_event_entity'
29
+ require 'ddr_client/models/ddr_api_file_entity'
30
+ require 'ddr_client/models/ddr_api_group_entity'
31
+ require 'ddr_client/models/ddr_api_group_member_entity'
32
+ require 'ddr_client/models/ddr_api_link_entity'
33
+ require 'ddr_client/models/ddr_api_resource_entity'
34
+ require 'ddr_client/models/ddr_api_resource_entity_files'
35
+ require 'ddr_client/models/ddr_api_resource_entity_metadata'
36
+ require 'ddr_client/models/ddr_api_resource_entity_related'
37
+ require 'ddr_client/models/ddr_api_role_entity'
38
+ require 'ddr_client/models/ddr_api_technical_metadata_entity'
39
+ require 'ddr_client/models/ddr_api_user_entity'
40
+ require 'ddr_client/models/patch_resources'
41
+ require 'ddr_client/models/patch_resources_metadata'
42
+ require 'ddr_client/models/patch_resources_related'
43
+ require 'ddr_client/models/patch_resources_roles'
44
+ require 'ddr_client/models/post_resources'
45
+
46
+ # APIs
47
+ require 'ddr_client/api/batch_objects_api'
48
+ require 'ddr_client/api/batches_api'
49
+ require 'ddr_client/api/events_api'
50
+ require 'ddr_client/api/groups_api'
51
+ require 'ddr_client/api/index_api'
52
+ require 'ddr_client/api/queues_api'
53
+ require 'ddr_client/api/reports_api'
54
+ require 'ddr_client/api/resources_api'
55
+ require 'ddr_client/api/schema_api'
56
+ require 'ddr_client/api/users_api'
57
+
58
+ module DdrClient
59
+ class << self
60
+ # Customize default settings for the SDK using block.
61
+ # DdrClient.configure do |config|
62
+ # config.username = "xxx"
63
+ # config.password = "xxx"
64
+ # end
65
+ # If no block given, return the default Configuration object.
66
+ def configure
67
+ if block_given?
68
+ yield(Configuration.default)
69
+ else
70
+ Configuration.default
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,61 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::BatchObjectsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'BatchObjectsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::BatchObjectsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BatchObjectsApi' do
30
+ it 'should create an instance of BatchObjectsApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::BatchObjectsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_batch_objects
36
+ # Retrieve batch object records
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :resource_id Filter by resource ID
39
+ # @option opts [String] :type Filter by batch object type
40
+ # @option opts [Array<String>] :model Filter by models(s)
41
+ # @option opts [Object] :per_page JSON only: Number of records to return per page (default: 20)
42
+ # @option opts [Object] :page JSON only: Page number of results to return (default: 1)
43
+ # @return [Array<DdrAPIBatchObjectEntity>]
44
+ describe 'get_batch_objects test' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ # unit tests for get_batch_objects_id
51
+ # Retrieve a batch object record with details (attributes, files, messages, relationships, roles)
52
+ # @param id
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [DdrAPIBatchObjectEntity]
55
+ describe 'get_batch_objects_id test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ end
@@ -0,0 +1,100 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::BatchesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'BatchesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::BatchesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of BatchesApi' do
30
+ it 'should create an instance of BatchesApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::BatchesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_batches
36
+ # List batches
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :outcome Filter by batch processing outcome
39
+ # @option opts [Integer] :user_id Filter by user ID associated with the batch
40
+ # @option opts [String] :status Filter by batch status
41
+ # @option opts [Object] :per_page JSON only: Number of records to return per page (default: 20)
42
+ # @option opts [Object] :page JSON only: Page number of results to return (default: 1)
43
+ # @return [Array<DdrAPIBatchEntity>]
44
+ describe 'get_batches test' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ # unit tests for get_batches_id
51
+ # Retrieve a batch record
52
+ # @param id
53
+ # @param [Hash] opts the optional parameters
54
+ # @option opts [BOOLEAN] :batch_objects Include related batch objects (not paginated)
55
+ # @return [DdrAPIBatchEntity]
56
+ describe 'get_batches_id test' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ # unit tests for get_batches_id_batch_objects
63
+ # Retrieve the batch objects for a batch
64
+ # @param id
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [BOOLEAN] :batch_object_details JSON only: Include related attributes, files, messages, relationships, and roles for each batch object
67
+ # @option opts [Object] :per_page JSON only: Number of records to return per page (default: 20)
68
+ # @option opts [Object] :page JSON only: Page number of results to return (default: 1)
69
+ # @return [Array<DdrAPIBatchObjectEntity>]
70
+ describe 'get_batches_id_batch_objects test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ # unit tests for get_batches_id_log
77
+ # Download the batch log file
78
+ # @param id
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [File]
81
+ describe 'get_batches_id_log test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
84
+ end
85
+ end
86
+
87
+ # unit tests for get_batches_id_messages
88
+ # Retrieve the batch object messages for a batch
89
+ # @param id
90
+ # @param [Hash] opts the optional parameters
91
+ # @option opts [Object] :per_page JSON only: Number of records to return per page (default: 20)
92
+ # @option opts [Object] :page JSON only: Page number of results to return (default: 1)
93
+ # @return [Array<DdrAPIBatchObjectMessageEntity>]
94
+ describe 'get_batches_id_messages test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
97
+ end
98
+ end
99
+
100
+ end
@@ -0,0 +1,64 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::EventsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'EventsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::EventsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of EventsApi' do
30
+ it 'should create an instance of EventsApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::EventsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_events
36
+ # Retrieve events
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :resource_id Filter by resource (required for XML output)
39
+ # @option opts [String] :type Filter by event type
40
+ # @option opts [String] :outcome Filter by event outcome
41
+ # @option opts [String] :operator Filter by event operator (user name or \&quot;SYSTEM\&quot;)
42
+ # @option opts [DateTime] :since Filter events occurring since a point a time
43
+ # @option opts [DateTime] :before Filter events occurring up to (before) a point in time
44
+ # @option opts [Object] :per_page JSON only: Number of records to return per page (default: 20)
45
+ # @option opts [Object] :page JSON only: Page number of results to return (default: 1)
46
+ # @return [Array<DdrAPIEventEntity>]
47
+ describe 'get_events test' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ # unit tests for get_events_id
54
+ # Retrieve event
55
+ # @param id
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [DdrAPIEventEntity]
58
+ describe 'get_events_id test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::GroupsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'GroupsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::GroupsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of GroupsApi' do
30
+ it 'should create an instance of GroupsApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::GroupsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_groups
36
+ # List repository groups
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [BOOLEAN] :include_members Include members for each group
39
+ # @return [Array<DdrAPIGroupEntity>]
40
+ describe 'get_groups test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -0,0 +1,67 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::IndexApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'IndexApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::IndexApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of IndexApi' do
30
+ it 'should create an instance of IndexApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::IndexApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for delete_index_id
36
+ # Delete a document
37
+ # @param id
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [nil]
40
+ describe 'delete_index_id test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for get_index_id
47
+ # Retrieve a document
48
+ # @param id
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [nil]
51
+ describe 'get_index_id test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for get_index_schema
58
+ # Retrieve the index schema
59
+ # @param [Hash] opts the optional parameters
60
+ # @return [nil]
61
+ describe 'get_index_schema test' do
62
+ it 'should work' do
63
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
64
+ end
65
+ end
66
+
67
+ end
@@ -0,0 +1,55 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::QueuesApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'QueuesApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::QueuesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of QueuesApi' do
30
+ it 'should create an instance of QueuesApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::QueuesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for delete_queues_locks
36
+ # Unlock locked jobs
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [nil]
39
+ describe 'delete_queues_locks test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ # unit tests for get_queues_stats
46
+ # Retrieve summary infomation on background job queues
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [nil]
49
+ describe 'get_queues_stats test' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ end
@@ -0,0 +1,70 @@
1
+ =begin
2
+ #Duke Digital Repository API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.36
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for DdrClient::ReportsApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'ReportsApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = DdrClient::ReportsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ReportsApi' do
30
+ it 'should create an instance of ReportsApi' do
31
+ expect(@instance).to be_instance_of(DdrClient::ReportsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_reports_collection_summary
36
+ # Collection summary report
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [Array<String>] :fields Fields to include for each collection (default: id, title, ingestion_date, admin_set, workflow_state)
39
+ # @return [File]
40
+ describe 'get_reports_collection_summary test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for get_reports_duplicate_content
47
+ # Duplicate content report
48
+ # @param [Hash] opts the optional parameters
49
+ # @option opts [Array<String>] :fields Fields to include in the report (default: sha1, id, model, original_filename, parent_id, collection_title, workflow_state, ingestion_date)
50
+ # @return [File]
51
+ describe 'get_reports_duplicate_content test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for get_reports_roles
58
+ # Roles report
59
+ # @param [Hash] opts the optional parameters
60
+ # @option opts [BOOLEAN] :include_inherited Include inherited roles for Item resources
61
+ # @option opts [String] :collection_id Limit resources to members of Collection ID
62
+ # @option opts [Array<String>] :fields Fields to include in the report (default: id, model, title)
63
+ # @return [File]
64
+ describe 'get_reports_roles test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ end