From 7858cdd14b7495a9bf247802bd4b5639e3cdaa34 Mon Sep 17 00:00:00 2001 From: Fabian Spottog Date: Wed, 30 Oct 2024 14:45:26 +0100 Subject: [PATCH] Fix PaidServicesAllowed to type bool --- resource/organization_quota.go | 2 +- resource/quota.go | 2 +- resource/space_quota.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resource/organization_quota.go b/resource/organization_quota.go index 651566e..2f55cbf 100644 --- a/resource/organization_quota.go +++ b/resource/organization_quota.go @@ -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 } diff --git a/resource/quota.go b/resource/quota.go index 1a55530..8e53f64 100644 --- a/resource/quota.go +++ b/resource/quota.go @@ -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"` diff --git a/resource/space_quota.go b/resource/space_quota.go index aac55c8..8819608 100644 --- a/resource/space_quota.go +++ b/resource/space_quota.go @@ -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 }