File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ()
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments