Class: Softlayer::Network::Storage::Hub::Swift::Share

Inherits:
Entity
  • Object
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, #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_listObject



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)
  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