hula 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/hula/service_broker/api.rb +11 -4
- data/lib/hula/service_broker/client.rb +1 -1
- data/lib/hula/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31671440948f1801936a9394af3f22ccfaced9fe
|
4
|
+
data.tar.gz: 8e4587450e77afdf7d942a9d4ded08ae3701da57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75350ad0d834e37077fdfd98e035a6dc2db32dd5c5a83f8c0058a72318a1de10e5e5e8dfc0e7a5f17082e108ba8fc0f6a01a5b10cce4c83ea4f7db8dcce689ba
|
7
|
+
data.tar.gz: c813d1a928d5e6c2301ca9b814f476b2ae55443fd39e846210d0569a6b83e88431605b5f24e27c715df4a5d4bef6e280393abd35878a831f8577064cb6255943
|
@@ -67,10 +67,12 @@ module Hula
|
|
67
67
|
)
|
68
68
|
end
|
69
69
|
|
70
|
-
def unbind_instance(instance_binding)
|
70
|
+
def unbind_instance(instance_binding, plan)
|
71
71
|
http_unbind_instance(
|
72
72
|
service_instance_id: instance_binding.service_instance.id,
|
73
|
-
binding_id: instance_binding.id
|
73
|
+
binding_id: instance_binding.id,
|
74
|
+
service_id: plan.service_id,
|
75
|
+
plan_id: plan.id
|
74
76
|
)
|
75
77
|
end
|
76
78
|
|
@@ -119,9 +121,14 @@ module Hula
|
|
119
121
|
)
|
120
122
|
end
|
121
123
|
|
122
|
-
def http_unbind_instance(service_instance_id:, binding_id:)
|
124
|
+
def http_unbind_instance(service_instance_id:, binding_id:, service_id:, plan_id:)
|
125
|
+
uri = url.dup
|
126
|
+
uri.path = uri.path += "/v2/service_instances/#{service_instance_id}/service_bindings/#{binding_id}"
|
127
|
+
params = { :'plan_id' => plan_id, :'service_id' => service_id}
|
128
|
+
uri.query = URI.encode_www_form(params)
|
129
|
+
|
123
130
|
http_client.delete(
|
124
|
-
|
131
|
+
uri,
|
125
132
|
auth: { username: username, password: password },
|
126
133
|
headers: { 'X-Broker-Api-Version': @broker_api_version }
|
127
134
|
)
|
data/lib/hula/version.rb
CHANGED