forked from cloudfoundry/multiapps-cli-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcf_services_response.go
More file actions
60 lines (50 loc) · 1.84 KB
/
cf_services_response.go
File metadata and controls
60 lines (50 loc) · 1.84 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package models
type CloudFoundryServiceInstance struct {
Guid string `json:"guid"`
Name string `json:"name"`
Type string `json:"type"`
Tags []string `json:"tags"`
LastOperation LastOperation `json:"last_operation,omitempty"`
PlanGuid string `jsonry:"relationships.service_plan.data.guid"`
SpaceGuid string `jsonry:"relationships.space.data.guid"`
Metadata Metadata `json:"metadata"`
Plan ServicePlan `json:"-"`
Offering ServiceOffering `json:"-"`
}
type CloudFoundryUserProvidedServiceInstance struct {
Guid string `json:"guid"`
Name string `json:"name"`
Type string `json:"type"`
LastOperation LastOperation `json:"last_operation,omitempty"`
SpaceGuid string `jsonry:"relationships.space.data.guid"`
Metadata Metadata `json:"metadata"`
}
type LastOperation struct {
Type string `json:"type"`
State string `json:"state"`
Description string `json:"description"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
}
type ServicePlan struct {
Guid string `json:"guid"`
Name string `json:"name"`
OfferingGuid string `jsonry:"relationships.service_offering.data.guid,omitempty"`
}
type ServiceOffering struct {
Guid string `json:"guid"`
Name string `json:"name"`
}
type ServiceBinding struct {
Guid string `json:"guid"`
Name string `json:"name,omitempty"`
AppGuid string `jsonry:"relationships.app.data.guid,omitempty"`
AppName string `json:"-"`
}
type ServiceInstanceAuxiliaryContent struct {
ServicePlans []ServicePlan `json:"service_plans"`
ServiceOfferings []ServiceOffering `json:"service_offerings"`
}
type ServiceBindingAuxiliaryContent struct {
Apps []CloudFoundryApplication `json:"apps"`
}