Sha256: 5f8bdac6ab524a76dba1d7f23f4612df3e1072103b7341b5759d715a10087ba3

Contents?: true

Size: 876 Bytes

Versions: 92

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

92 entries across 92 versions & 1 rubygems

Version Path
katello-4.7.1 lib/proxy_api/container_gateway.rb
katello-4.6.2.1 lib/proxy_api/container_gateway.rb
katello-4.6.2 lib/proxy_api/container_gateway.rb
katello-4.7.0 lib/proxy_api/container_gateway.rb
katello-4.6.1 lib/proxy_api/container_gateway.rb
katello-4.7.0.rc2 lib/proxy_api/container_gateway.rb
katello-4.7.0.rc1 lib/proxy_api/container_gateway.rb
katello-4.4.2.2 lib/proxy_api/container_gateway.rb
katello-4.4.2.1 lib/proxy_api/container_gateway.rb
katello-4.4.2 lib/proxy_api/container_gateway.rb
katello-4.5.1 lib/proxy_api/container_gateway.rb
katello-4.6.0 lib/proxy_api/container_gateway.rb
katello-4.6.0.rc2 lib/proxy_api/container_gateway.rb
katello-4.6.0.rc1 lib/proxy_api/container_gateway.rb
katello-4.5.0 lib/proxy_api/container_gateway.rb
katello-4.5.0.rc2 lib/proxy_api/container_gateway.rb
katello-4.4.1 lib/proxy_api/container_gateway.rb
katello-4.5.0.rc1 lib/proxy_api/container_gateway.rb
katello-4.4.0.2 lib/proxy_api/container_gateway.rb
katello-4.4.0.1 lib/proxy_api/container_gateway.rb