Skip to content

Commit

Permalink
Fix PaidServicesAllowed to type bool
Browse files Browse the repository at this point in the history
  • Loading branch information
fapo85 authored and gogolok committed Feb 4, 2025
1 parent 0c61a55 commit 7858cdd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion resource/organization_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (q *OrganizationQuotaCreateOrUpdate) WithPaidServicesAllowed(allowed bool)
if q.Services == nil {
q.Services = &ServicesQuota{}
}
q.Services.PaidServicesAllowed = &allowed
q.Services.PaidServicesAllowed = allowed
return q
}

Expand Down
2 changes: 1 addition & 1 deletion resource/quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type AppsQuota struct {

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

// The maximum number of service instances permitted.
TotalServiceInstances *int `json:"total_service_instances"`
Expand Down
2 changes: 1 addition & 1 deletion resource/space_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (s *SpaceQuotaCreateOrUpdate) WithPaidServicesAllowed(allowed bool) *SpaceQ
if s.Services == nil {
s.Services = &ServicesQuota{}
}
s.Services.PaidServicesAllowed = &allowed
s.Services.PaidServicesAllowed = allowed
return s
}

Expand Down

0 comments on commit 7858cdd

Please sign in to comment.