Class: Softlayer::Network::Storage::Hub::Swift::Share
- Defined in:
- lib/softlayer/network/storage/hub/swift/share.rb
Defined Under Namespace
Classes: Representer
Constant Summary collapse
- SERVICE =
'SoftLayer_Network_Storage_Hub_Swift_Share'
Class Method Summary collapse
- .get_container_list ⇒ Object
- .get_file(file_name = nil, container = nil) ⇒ Object
- .get_file_list(container = nil, path = nil) ⇒ Object
Methods inherited from Model
all, all_request_for, create, find, #init_headers, parse, request, #request, service_name, #service_name, #to_hash
Methods included from Model::Operations
extended, #filter, included, #limit, #mask, #request_headers
Class Method Details
.get_container_list ⇒ Object
9 10 11 |
# File 'lib/softlayer/network/storage/hub/swift/share.rb', line 9 def self.get_container_list request(:get_container_list, Array[Softlayer::Container::Network::Storage::Hub::ObjectStorage::Folder]) end |
.get_file(file_name = nil, container = nil) ⇒ Object
13 14 15 16 |
# File 'lib/softlayer/network/storage/hub/swift/share.rb', line 13 def self.get_file(file_name = nil, container = nil) = {file_name: file_name, container: container} request(:get_file, Softlayer::Container::Network::Storage::Hub::ObjectStorage::File, ) end |
.get_file_list(container = nil, path = nil) ⇒ Object
18 19 20 21 |
# File 'lib/softlayer/network/storage/hub/swift/share.rb', line 18 def self.get_file_list(container = nil, path = nil) = {container: container, path: path} request(:get_file_list, Array[Softlayer::Container::Utility::File::Entity], ) end |