Skip to content

Commit 2b865aa

Browse files
authoredFeb 12, 2025
Merge pull request #449 from cloudfoundry/fix-paid-services-allowed
Add paid services allowed as non-pointer bool
2 parents 2521905 + 2f0d21f commit 2b865aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎resource/organization_quota.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func (q *OrganizationQuotaCreateOrUpdate) WithPaidServicesAllowed(allowed bool)
9191
if q.Services == nil {
9292
q.Services = &ServicesQuota{}
9393
}
94-
q.Services.PaidServicesAllowed = &allowed
94+
q.Services.PaidServicesAllowed = allowed
9595
return q
9696
}
9797

‎resource/quota.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type AppsQuota struct {
1919

2020
type ServicesQuota struct {
2121
// Specifies if instances of paid service plans are permitted to be created.
22-
PaidServicesAllowed *bool `json:"paid_services_allowed,omitempty"`
22+
PaidServicesAllowed bool `json:"paid_services_allowed"`
2323

2424
// The maximum number of service instances permitted.
2525
TotalServiceInstances *int `json:"total_service_instances"`

‎resource/space_quota.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func (s *SpaceQuotaCreateOrUpdate) WithPaidServicesAllowed(allowed bool) *SpaceQ
112112
if s.Services == nil {
113113
s.Services = &ServicesQuota{}
114114
}
115-
s.Services.PaidServicesAllowed = &allowed
115+
s.Services.PaidServicesAllowed = allowed
116116
return s
117117
}
118118

0 commit comments

Comments
 (0)