Module: Misty::Openstack::SwiftV1

Included in:
Misty::Openstack::Swift::V1
Defined in:
lib/misty/openstack/swift/swift_v1.rb

Instance Method Summary collapse

Instance Method Details

#v1Object



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/misty/openstack/swift/swift_v1.rb', line 2

def v1
{"/info"=>{:GET=>[:list_activated_capabilities]},
 "/v1/{account}"=>
{:GET=>[:show_account_details_and_list_containers],
 :POST=>[:create_update_or_delete_account_metadata],
 :HEAD=>[:show_account_metadata]},
 "/v1/{account}/{container}"=>
{:GET=>[:show_container_details_and_list_objects],
 :PUT=>[:create_container],
 :POST=>[:create_update_or_delete_container_metadata],
 :HEAD=>[:show_container_metadata],
 :DELETE=>[:delete_container]},
 "/v1/{account}/{container}/{object}"=>
{:GET=>[:get_object_content_and_metadata],
 :PUT=>[:create_or_replace_object],
 :COPY=>[:copy_object],
 :DELETE=>[:delete_object],
 :HEAD=>[:show_object_metadata],
 :POST=>[:create_or_update_object_metadata]},
 "/v1/endpoints"=>{:GET=>[:list_endpoints]}}
end