github.com/liamawhite/cli-with-i18n@v6.32.1-0.20171122084555-dede0a5c3448+incompatible/cf/models/service_instance.go (about) 1 package models 2 3 type LastOperationFields struct { 4 Type string 5 State string 6 Description string 7 CreatedAt string 8 UpdatedAt string 9 } 10 11 type ServiceInstanceCreateRequest struct { 12 Name string `json:"name"` 13 SpaceGUID string `json:"space_guid"` 14 PlanGUID string `json:"service_plan_guid,omitempty"` 15 Params map[string]interface{} `json:"parameters,omitempty"` 16 Tags []string `json:"tags,omitempty"` 17 } 18 19 type ServiceInstanceUpdateRequest struct { 20 PlanGUID string `json:"service_plan_guid,omitempty"` 21 Params map[string]interface{} `json:"parameters,omitempty"` 22 Tags []string `json:"tags"` 23 } 24 25 type ServiceInstanceFields struct { 26 GUID string 27 Name string 28 LastOperation LastOperationFields 29 SysLogDrainURL string 30 RouteServiceURL string 31 ApplicationNames []string 32 Params map[string]interface{} 33 DashboardURL string 34 Tags []string 35 } 36 37 type ServiceInstance struct { 38 ServiceInstanceFields 39 ServiceBindings []ServiceBindingFields 40 ServiceKeys []ServiceKeyFields 41 ServicePlan ServicePlanFields 42 ServiceOffering ServiceOfferingFields 43 } 44 45 func (inst ServiceInstance) IsUserProvided() bool { 46 return inst.ServicePlan.GUID == "" 47 }