Class: Misty::Openstack::API::Swift::V1

Inherits:
Object
  • Object
show all
Includes:
Misty::Openstack::API::SwiftV1, ServicePack
Defined in:
lib/misty/openstack/api/swift/v1.rb

Constant Summary

Constants included from HTTP::Request

HTTP::Request::DECODE_TO_JSON

Instance Attribute Summary

Attributes included from Service

#headers, #microversion

Instance Method Summary collapse

Methods included from HTTP::Direct

#base_set, #delete, #get, #post, #put

Methods included from HTTP::Request

#decode?, #decode_to_json?, #http, #http_copy, #http_delete, #http_get, #http_head, #http_options, #http_patch, #http_post, #http_put, #http_to_s

Methods included from HTTP::MethodBuilder

#method_missing

Methods included from HTTP::NetHTTP

http_request

Methods included from Service

#initialize, #request_config, #requests

Methods included from Misty::Openstack::API::SwiftV1

#api, #tag

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Misty::HTTP::MethodBuilder

Instance Method Details

#bulk_delete(data) ⇒ Object



25
26
27
28
29
# File 'lib/misty/openstack/api/swift/v1.rb', line 25

def bulk_delete(data)
  param = 'bulk-delete=1'
  @request_headers.add('Content-Type' => 'text/plain')
  (param, data)
end

#prefix_path_to_ignoreObject



12
13
14
# File 'lib/misty/openstack/api/swift/v1.rb', line 12

def prefix_path_to_ignore
  '/v1/{account}'
end

#requests_customObject

Custom requests



21
22
23
# File 'lib/misty/openstack/api/swift/v1.rb', line 21

def requests_custom
  [ :bulk_delete ]
end

#service_typesObject



16
17
18
# File 'lib/misty/openstack/api/swift/v1.rb', line 16

def service_types
  %w(object-store)
end