Module: Duracloud::RestMethods
Instance Method Summary collapse
- #copy_content(target_space_id, target_content_id, **options) ⇒ Object
- #create_space(space_id, **query) ⇒ Object
- #delete_content(space_id, content_id, **options) ⇒ Object
- #delete_space(space_id, **query) ⇒ Object
- #generate_manifest(space_id, **query) ⇒ Object
- #get_audit_log(space_id, **query) ⇒ Object
- #get_bit_integrity_report(space_id, **query) ⇒ Object
- #get_bit_integrity_report_properties(space_id, **query) ⇒ Object
- #get_content(space_id, content_id, **options, &block) ⇒ Object
- #get_content_properties(space_id, content_id, **options) ⇒ Object
- #get_manifest(space_id, **query, &block) ⇒ Object
- #get_space(space_id, **query) ⇒ Object
- #get_space_acls(space_id, **query) ⇒ Object
- #get_space_properties(space_id, **query) ⇒ Object
- #get_spaces(**query) ⇒ Object
- #get_storage_reports_by_space(space_id, **query) ⇒ Object
- #get_storage_reports_by_store(**query) ⇒ Object
- #get_storage_reports_for_all_spaces_in_a_store(epoch_ms, **query) ⇒ Object
- #get_stores ⇒ Object
- #get_tasks(**query) ⇒ Object
- #perform_task(task_name, **query) ⇒ Object
- #set_content_properties(space_id, content_id, **options) ⇒ Object
- #set_space_acls(space_id, **options) ⇒ Object
- #store_content(space_id, content_id, **options) ⇒ Object
Instance Method Details
#copy_content(target_space_id, target_content_id, **options) ⇒ Object
65 66 67 |
# File 'lib/duracloud/rest_methods.rb', line 65 def copy_content(target_space_id, target_content_id, **) durastore_content(:put, target_space_id, target_content_id, **) end |
#create_space(space_id, **query) ⇒ Object
35 36 37 |
# File 'lib/duracloud/rest_methods.rb', line 35 def create_space(space_id, **query) durastore(:put, space_id, **query) end |
#delete_content(space_id, content_id, **options) ⇒ Object
70 71 72 |
# File 'lib/duracloud/rest_methods.rb', line 70 def delete_content(space_id, content_id, **) durastore_content(:delete, space_id, content_id, **) end |
#delete_space(space_id, **query) ⇒ Object
40 41 42 |
# File 'lib/duracloud/rest_methods.rb', line 40 def delete_space(space_id, **query) durastore(:delete, space_id, **query) end |
#generate_manifest(space_id, **query) ⇒ Object
85 86 87 |
# File 'lib/duracloud/rest_methods.rb', line 85 def generate_manifest(space_id, **query) durastore(:post, "manifest/#{space_id}", **query) end |
#get_audit_log(space_id, **query) ⇒ Object
75 76 77 |
# File 'lib/duracloud/rest_methods.rb', line 75 def get_audit_log(space_id, **query) durastore(:get, "audit/#{space_id}", **query) end |
#get_bit_integrity_report(space_id, **query) ⇒ Object
90 91 92 |
# File 'lib/duracloud/rest_methods.rb', line 90 def get_bit_integrity_report(space_id, **query) durastore(:get, "bit-integrity/#{space_id}", **query) end |
#get_bit_integrity_report_properties(space_id, **query) ⇒ Object
95 96 97 |
# File 'lib/duracloud/rest_methods.rb', line 95 def get_bit_integrity_report_properties(space_id, **query) durastore(:head, "bit-integrity/#{space_id}", **query) end |
#get_content(space_id, content_id, **options, &block) ⇒ Object
45 46 47 |
# File 'lib/duracloud/rest_methods.rb', line 45 def get_content(space_id, content_id, **, &block) durastore_content(:get, space_id, content_id, **, &block) end |
#get_content_properties(space_id, content_id, **options) ⇒ Object
50 51 52 |
# File 'lib/duracloud/rest_methods.rb', line 50 def get_content_properties(space_id, content_id, **) durastore_content(:head, space_id, content_id, **) end |
#get_manifest(space_id, **query, &block) ⇒ Object
80 81 82 |
# File 'lib/duracloud/rest_methods.rb', line 80 def get_manifest(space_id, **query, &block) durastore(:get, "manifest/#{space_id}", **query, &block) end |
#get_space(space_id, **query) ⇒ Object
15 16 17 |
# File 'lib/duracloud/rest_methods.rb', line 15 def get_space(space_id, **query) durastore(:get, space_id, **query) end |
#get_space_acls(space_id, **query) ⇒ Object
25 26 27 |
# File 'lib/duracloud/rest_methods.rb', line 25 def get_space_acls(space_id, **query) durastore(:head, "acl/#{space_id}", **query) end |
#get_space_properties(space_id, **query) ⇒ Object
20 21 22 |
# File 'lib/duracloud/rest_methods.rb', line 20 def get_space_properties(space_id, **query) durastore(:head, space_id, **query) end |
#get_spaces(**query) ⇒ Object
10 11 12 |
# File 'lib/duracloud/rest_methods.rb', line 10 def get_spaces(**query) durastore(:get, "spaces", **query) end |
#get_storage_reports_by_space(space_id, **query) ⇒ Object
112 113 114 |
# File 'lib/duracloud/rest_methods.rb', line 112 def get_storage_reports_by_space(space_id, **query) durastore(:get, "report/space/#{space_id}", **query) end |
#get_storage_reports_by_store(**query) ⇒ Object
117 118 119 |
# File 'lib/duracloud/rest_methods.rb', line 117 def get_storage_reports_by_store(**query) durastore(:get, "report/store", **query) end |
#get_storage_reports_for_all_spaces_in_a_store(epoch_ms, **query) ⇒ Object
122 123 124 |
# File 'lib/duracloud/rest_methods.rb', line 122 def get_storage_reports_for_all_spaces_in_a_store(epoch_ms, **query) durastore(:get, "report/store/#{epoch_ms}", **query) end |
#get_stores ⇒ Object
5 6 7 |
# File 'lib/duracloud/rest_methods.rb', line 5 def get_stores durastore(:get, "stores") end |
#get_tasks(**query) ⇒ Object
100 101 102 103 |
# File 'lib/duracloud/rest_methods.rb', line 100 def get_tasks(**query) raise NotImplementedError, "The API method 'Get Tasks' has not been implemented." end |
#perform_task(task_name, **query) ⇒ Object
106 107 108 109 |
# File 'lib/duracloud/rest_methods.rb', line 106 def perform_task(task_name, **query) raise NotImplementedError, "The API method 'Perform Task' has not been implemented." end |
#set_content_properties(space_id, content_id, **options) ⇒ Object
55 56 57 |
# File 'lib/duracloud/rest_methods.rb', line 55 def set_content_properties(space_id, content_id, **) durastore_content(:post, space_id, content_id, **) end |
#set_space_acls(space_id, **options) ⇒ Object
30 31 32 |
# File 'lib/duracloud/rest_methods.rb', line 30 def set_space_acls(space_id, **) durastore(:post, "acl/#{space_id}", **) end |
#store_content(space_id, content_id, **options) ⇒ Object
60 61 62 |
# File 'lib/duracloud/rest_methods.rb', line 60 def store_content(space_id, content_id, **) durastore_content(:put, space_id, content_id, **) end |