Class: Softlayer::Network::Storage::Hub::Swift::Share
- Inherits:
-
Model
- Object
- Model
- Softlayer::Network::Storage::Hub::Swift::Share
show all
- 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
Methods inherited from Model
all, all_request_for, create, find, parse, request, #request, #to_hash
Class Method Details
.get_container_list ⇒ Object
.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)
message = {file_name: file_name, container: container}
request(:get_file, Softlayer::Container::Network::Storage::Hub::ObjectStorage::File, message)
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)
message = {container: container, path: path}
request(:get_file_list, Array[Softlayer::Container::Utility::File::Entity], message)
end
|