class Fog::OpenStack::KeyManager::Real

Public Class Methods

not_found_class() click to toggle source
# File lib/fog/openstack/key_manager.rb, line 95
def self.not_found_class
  Fog::OpenStack::KeyManager::NotFound
end

Public Instance Methods

create_container(options) click to toggle source
# File lib/fog/openstack/key_manager/requests/create_container.rb, line 5
def create_container(options)
  request(
    :body    => Fog::JSON.encode(options),
    :expects => [201],
    :method  => 'POST',
    :path    => 'containers'
  )
end
create_secret(options) click to toggle source
# File lib/fog/openstack/key_manager/requests/create_secret.rb, line 5
def create_secret(options)
  request(
    :body    => Fog::JSON.encode(options),
    :expects => [201],
    :method  => 'POST',
    :path    => 'secrets'
  )
end
default_path_prefix() click to toggle source
# File lib/fog/openstack/key_manager.rb, line 99
def default_path_prefix
  'v1'
end
default_service_type() click to toggle source
# File lib/fog/openstack/key_manager.rb, line 103
def default_service_type
  %w[key-manager]
end
delete_container(id) click to toggle source
# File lib/fog/openstack/key_manager/requests/delete_container.rb, line 5
def delete_container(id)
  request(
    :expects => [204],
    :method  => 'DELETE',
    :path    => "containers/#{id}"
  )
end
delete_container_acl(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/delete_container_acl.rb, line 5
def delete_container_acl(uuid)
  request(
    :expects => [200],
    :method  => 'DELETE',
    :path    => "containers/#{uuid}/acl"
  )
end
delete_secret(id) click to toggle source
# File lib/fog/openstack/key_manager/requests/delete_secret.rb, line 5
def delete_secret(id)
  request(
    :expects => [204],
    :method  => 'DELETE',
    :path    => "secrets/#{id}"
  )
end
delete_secret_acl(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/delete_secret_acl.rb, line 5
def delete_secret_acl(uuid)
  request(
    :expects => [200],
    :method  => 'DELETE',
    :path    => "secrets/#{uuid}/acl"
  )
end
get_container(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/get_container.rb, line 5
def get_container(uuid)
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => "containers/#{uuid}",
  )
end
get_container_acl(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/get_container_acl.rb, line 5
def get_container_acl(uuid)
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => "containers/#{uuid}/acl"
  )
end
get_secret(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/get_secret.rb, line 5
def get_secret(uuid)
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => "secrets/#{uuid}",
  )
end
get_secret_acl(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/get_secret_acl.rb, line 5
def get_secret_acl(uuid)
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => "secrets/#{uuid}/acl"
  )
end
get_secret_metadata(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/get_secret_metadata.rb, line 5
def get_secret_metadata(uuid)
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => "secrets/#{uuid}/metadata",
  )
end
get_secret_payload(uuid) click to toggle source
# File lib/fog/openstack/key_manager/requests/get_secret_payload.rb, line 5
def get_secret_payload(uuid)
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => "secrets/#{uuid}/payload",
    :headers => {
      'Accept' => '*/*'
    }
  )
end
list_containers(options = {}) click to toggle source
# File lib/fog/openstack/key_manager/requests/list_containers.rb, line 5
def list_containers(options = {})
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => 'containers',
    :query   => options
  )
end
list_secrets(options = {}) click to toggle source
# File lib/fog/openstack/key_manager/requests/list_secrets.rb, line 5
def list_secrets(options = {})
  request(
    :expects => [200],
    :method  => 'GET',
    :path    => 'secrets',
    :query   => options
  )
end
replace_container_acl(uuid, options) click to toggle source
# File lib/fog/openstack/key_manager/requests/replace_container_acl.rb, line 5
def replace_container_acl(uuid, options)
  request(
    :body    => Fog::JSON.encode(options),
    :expects => [200],
    :method  => 'PUT',
    :path    => "containers/#{uuid}/acl"
  )
end
replace_secret_acl(uuid, options) click to toggle source
# File lib/fog/openstack/key_manager/requests/replace_secret_acl.rb, line 5
def replace_secret_acl(uuid, options)
  request(
    :body    => Fog::JSON.encode(options),
    :expects => [200],
    :method  => 'PUT',
    :path    => "secrets/#{uuid}/acl"
  )
end
update_container_acl(uuid, options) click to toggle source
# File lib/fog/openstack/key_manager/requests/update_container_acl.rb, line 5
def update_container_acl(uuid, options)
  request(
    :body    => Fog::JSON.encode(options),
    :expects => [200],
    :method  => 'PATCH',
    :path    => "containers/#{uuid}/acl"
  )
end
update_secret_acl(uuid, options) click to toggle source
# File lib/fog/openstack/key_manager/requests/update_secret_acl.rb, line 5
def update_secret_acl(uuid, options)
  request(
    :body    => Fog::JSON.encode(options),
    :expects => [200],
    :method  => 'PATCH',
    :path    => "secrets/#{uuid}/acl"
  )
end