Skip to content

Commit

Permalink
feat: maximum_polling_duration was missing from ServicePlan
Browse files Browse the repository at this point in the history
  • Loading branch information
Kola Segun authored and FelisiaM committed Sep 10, 2020
1 parent 509ba3f commit 5019c26
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
17 changes: 9 additions & 8 deletions domain/service_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ type Service struct {
}

type ServicePlan struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Free *bool `json:"free,omitempty"`
Bindable *bool `json:"bindable,omitempty"`
Metadata *ServicePlanMetadata `json:"metadata,omitempty"`
Schemas *ServiceSchemas `json:"schemas,omitempty"`
MaintenanceInfo *MaintenanceInfo `json:"maintenance_info,omitempty"`
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Free *bool `json:"free,omitempty"`
Bindable *bool `json:"bindable,omitempty"`
Metadata *ServicePlanMetadata `json:"metadata,omitempty"`
Schemas *ServiceSchemas `json:"schemas,omitempty"`
MaximumPollingDuration *int `json:"maximum_polling_duration,omitempty"`
MaintenanceInfo *MaintenanceInfo `json:"maintenance_info,omitempty"`
}

type ServiceSchemas struct {
Expand Down
2 changes: 2 additions & 0 deletions domain/service_catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ var _ = Describe("ServiceCatalog", func() {
Bullets: []string{"hello", "its me"},
DisplayName: "name",
},
MaximumPollingDuration: 3600,
MaintenanceInfo: &domain.MaintenanceInfo{
Public: map[string]string{
"name": "foo",
Expand All @@ -123,6 +124,7 @@ var _ = Describe("ServiceCatalog", func() {
"bullets":["hello", "its me"],
"displayName":"name"
},
"maximum_polling_duration": 3600,
"maintenance_info": {
"public": {
"name": "foo"
Expand Down
17 changes: 9 additions & 8 deletions v7/domain/service_catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,15 @@ type Service struct {
}

type ServicePlan struct {
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Free *bool `json:"free,omitempty"`
Bindable *bool `json:"bindable,omitempty"`
Metadata *ServicePlanMetadata `json:"metadata,omitempty"`
Schemas *ServiceSchemas `json:"schemas,omitempty"`
MaintenanceInfo *MaintenanceInfo `json:"maintenance_info,omitempty"`
ID string `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Free *bool `json:"free,omitempty"`
Bindable *bool `json:"bindable,omitempty"`
Metadata *ServicePlanMetadata `json:"metadata,omitempty"`
Schemas *ServiceSchemas `json:"schemas,omitempty"`
MaximumPollingDuration *int `json:"maximum_polling_duration,omitempty"`
MaintenanceInfo *MaintenanceInfo `json:"maintenance_info,omitempty"`
}

type ServiceSchemas struct {
Expand Down

0 comments on commit 5019c26

Please sign in to comment.