class ProxyAPI::ContainerGateway

Public Class Methods

new(args) click to toggle source
Calls superclass method
# File lib/proxy_api/container_gateway.rb, line 3
def initialize(args)
  @url = args[:url] + "/container_gateway"
  super args
end

Public Instance Methods

host_repository_mapping(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 40
def host_repository_mapping(args)
  # put '/v2/update_host_repository_mapping/?'
  @url += "/host_repository_mapping"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to refresh host-repository mapping"))
end
repository_list(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 8
def repository_list(args)
  # put '/v2/repository_list/?'
  @url += "/repository_list"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update the repository list"))
end
update_host_repositories(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 48
def update_host_repositories(args)
  # put '/v2/update_host_repositories/?'
  @url += "/update_host_repositories"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update host-repository mapping"))
end
update_hosts(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 32
def update_hosts(args)
  # put '/v2/update_hosts/?'
  @url += "/update_hosts"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update hosts"))
end
user_repository_mapping(args) click to toggle source
# File lib/proxy_api/container_gateway.rb, line 16
def user_repository_mapping(args)
  # put '/v2/user_repository_mapping/?'
  @url += "/user_repository_mapping"
  parse put(args)
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update the user-repository mapping"))
end
users() click to toggle source
# File lib/proxy_api/container_gateway.rb, line 24
def users
  # get '/v2/users/?'
  @url += "/users"
  @users = parse get
rescue => e
  raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to get users"))
end