forked from cloudfoundry/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
last_operation.go
26 lines (20 loc) · 931 Bytes
/
last_operation.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package ccv2
import "code.cloudfoundry.org/cli/api/cloudcontroller/ccv2/constant"
// LastOperation is the status of the last operation requested on a service
// instance.
type LastOperation struct {
// Type is the type of operation that was last performed or currently being
// performed on the service instance.
Type string `json:"type"`
// State is the status of the last operation or current operation being
// performed on the service instance.
State constant.LastOperationState `json:"state"`
// Description is the service broker-provided description of the operation.
Description string `json:"description"`
// UpdatedAt is the timestamp that the Cloud Controller last checked the
// service instance state from the broker.
UpdatedAt string `json:"updated_at"`
// CreatedAt is the timestamp that the Cloud Controller created the service
// instance from the broker.
CreatedAt string `json:"created_at"`
}