Sha256: 5f8bdac6ab524a76dba1d7f23f4612df3e1072103b7341b5759d715a10087ba3

Contents?: true

Size: 876 Bytes

Versions: 96

Compression:

Stored size: 876 Bytes

Contents

module ProxyAPI
  class ContainerGateway < ::ProxyAPI::Resource
    def initialize(args)
      @url = args[:url] + "/container_gateway"
      super args
    end

    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

    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

    def users
      # get '/v2/users/?'
      @url += "/users"
      @users = parse get
    rescue => e
      raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to get users"))
    end
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
katello-4.11.1 lib/proxy_api/container_gateway.rb
katello-4.11.0 lib/proxy_api/container_gateway.rb
katello-4.11.0.rc2 lib/proxy_api/container_gateway.rb
katello-4.11.0.rc1 lib/proxy_api/container_gateway.rb
katello-4.10.0 lib/proxy_api/container_gateway.rb
katello-4.9.2 lib/proxy_api/container_gateway.rb
katello-4.10.0.rc2 lib/proxy_api/container_gateway.rb
katello-4.10.0.rc1 lib/proxy_api/container_gateway.rb
katello-4.8.4 lib/proxy_api/container_gateway.rb
katello-4.9.1 lib/proxy_api/container_gateway.rb
katello-4.8.3 lib/proxy_api/container_gateway.rb
katello-4.9.0 lib/proxy_api/container_gateway.rb
katello-4.7.6 lib/proxy_api/container_gateway.rb
katello-4.8.2 lib/proxy_api/container_gateway.rb
katello-4.9.0.rc2 lib/proxy_api/container_gateway.rb
katello-4.9.0.rc1 lib/proxy_api/container_gateway.rb
katello-4.8.1 lib/proxy_api/container_gateway.rb
katello-4.7.5 lib/proxy_api/container_gateway.rb
katello-4.8.0 lib/proxy_api/container_gateway.rb
katello-4.8.0.rc2 lib/proxy_api/container_gateway.rb