Class: ProxyAPI::ContainerGateway
- Inherits:
-
Resource
- Object
- Resource
- ProxyAPI::ContainerGateway
- Defined in:
- lib/proxy_api/container_gateway.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ ContainerGateway
constructor
A new instance of ContainerGateway.
- #repository_list(args) ⇒ Object
- #user_repository_mapping(args) ⇒ Object
- #users ⇒ Object
Constructor Details
#initialize(args) ⇒ ContainerGateway
Returns a new instance of ContainerGateway.
3 4 5 6 |
# File 'lib/proxy_api/container_gateway.rb', line 3 def initialize(args) @url = args[:url] + "/container_gateway" super args end |
Instance Method Details
#repository_list(args) ⇒ Object
8 9 10 11 12 13 14 |
# 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 |
#user_repository_mapping(args) ⇒ Object
16 17 18 19 20 21 22 |
# 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 ⇒ Object
24 25 26 27 28 29 30 |
# 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 |