Skip to content

Commit 5ad3fd2

Browse files
committed
fixup
1 parent 76bbe89 commit 5ad3fd2

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

rootfs/helmbroker/broker.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,19 @@ def deprovision(self,
9595
# ...
9696

9797
return DeprovisionServiceSpec(is_async=False)
98+
99+
100+
def last_operation(self,
101+
instance_id: str,
102+
operation_data: Optional[str],
103+
**kwargs
104+
) -> LastOperation:
105+
"""
106+
Further readings `CF Broker API#LastOperation <https://docs.cloudfoundry.org/services/api.html#polling>`_
107+
108+
:param instance_id: Instance id provided by the platform
109+
:param operation_data: Operation data received from async operation
110+
:param kwargs: May contain additional information, improves compatibility with upstream versions
111+
:rtype: LastOperation
112+
"""
113+
raise NotImplementedError()

rootfs/helmbroker/meta.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from collections import namedtuple
2+
3+
4+
5+
"""
6+
{
7+
"id": "instance_id",
8+
"details": {
9+
"service_id": "service_id",
10+
"plan_id" : "plan_id",
11+
"context" : {
12+
13+
},
14+
"parameters": {
15+
16+
}
17+
},
18+
"last_operation": {
19+
"state": "Ready",
20+
"description": "everything is ok."
21+
}
22+
}
23+
"""
24+
25+
26+
class InstanceMeta(object):
27+
pass

0 commit comments

Comments
 (0)