conjur-asset-service-gateway-api 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c6fe3e8279a7668cbb129075c9e1c21183d34bc
4
- data.tar.gz: 4dffe2642ad8c62755e59e6a66ed00b03ac6b277
3
+ metadata.gz: d9fe5402663a6e353499b505063c9800417c3f47
4
+ data.tar.gz: 89937433a26b470ed9ce88437579a23ead72aa1a
5
5
  SHA512:
6
- metadata.gz: 1ed9c0f0bfa6a8a10f374addc91b80f1970779160b3da7ec4caa526848f6db1f5e4c989a18d2be9118448972d63c4bfa695968b337b792c2a73389f9774e2d72
7
- data.tar.gz: 885278d0ab934ca00cbeb3f7bcf190b17a0c29f671acae5955de2961b1f2eba397128b9c95490a3a891de635b628981e952021f003e163ebaabfc9a500fdf35b
6
+ metadata.gz: 2fc371a243a84531a5f38836d56b2329f8e657c607565bd5c6d9c56dc323a59d01ddf5e35e0502de2d4cb50eee9d36cb9849d4fc78be4debede882bbc70ed0d3
7
+ data.tar.gz: acd3ac0a67c2416e9c6497b77e6f87ad9ae4393d5f67f88c20173d5ed7537be03e9c6198f0aa5d5262d66c8bc27923900e8870890deac11663675e586f29ed25
@@ -1,7 +1,7 @@
1
1
  module Conjur
2
2
  module Asset
3
3
  module ServiceGateway
4
- VERSION = "0.5.3"
4
+ VERSION = "0.6.0"
5
5
  end
6
6
  end
7
7
  end
@@ -1,6 +1,12 @@
1
1
  module Conjur
2
2
  class ServiceGateway < RestClient::Resource
3
3
  include ActsAsAsset
4
+
5
+ def proxies
6
+ self.attributes['proxies'].map do |roleid|
7
+ Role.new(Conjur::Authz::API.host, self.options)[Conjur::API.parse_role_id(roleid).join('/')]
8
+ end
9
+ end
4
10
 
5
11
  def add_proxy(role)
6
12
  log do |logger|
@@ -30,8 +36,8 @@ module Conjur
30
36
  end
31
37
 
32
38
  def web_services
33
- self.attributes['web_services'].values.collect do |attrs|
34
- Conjur::WebService.new("#{Conjur::WebServices::API.host}/web_services/#{path_escape attrs['id']}", options).tap do |d|
39
+ self.attributes['web_services'].collect do |attrs|
40
+ Conjur::WebService.new("#{Conjur::ServiceGateways::API.host}/web_services/#{path_escape attrs['id']}", options).tap do |d|
35
41
  d.attributes = attrs
36
42
  end
37
43
  end
@@ -1,6 +1,12 @@
1
1
  module Conjur
2
2
  class WebService < RestClient::Resource
3
3
  include ActsAsAsset
4
+
5
+ def clients
6
+ self.attributes['clients'].map do |roleid|
7
+ Role.new(Conjur::Authz::API.host, self.options)[Conjur::API.parse_role_id(roleid).join('/')]
8
+ end
9
+ end
4
10
 
5
11
  def add_client(member)
6
12
  RestClient::Resource.new(self["clients"].url, self.options).post(id: member)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjur-asset-service-gateway-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Gilpin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-17 00:00:00.000000000 Z
11
+ date: 2013-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: conjur-api