From 330ae51b9177e990c26bad07214d7210b305f1e6 Mon Sep 17 00:00:00 2001 From: Sharad Kesarwani <108344822+sharadkesarwani@users.noreply.github.com> Date: Thu, 19 Sep 2024 00:00:32 +0530 Subject: [PATCH] added support for `ShouldUtilizeCommitments` --- service/ocean/providers/gcp/cluster.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/service/ocean/providers/gcp/cluster.go b/service/ocean/providers/gcp/cluster.go index 81ce45f0..11ed20a0 100644 --- a/service/ocean/providers/gcp/cluster.go +++ b/service/ocean/providers/gcp/cluster.go @@ -46,9 +46,10 @@ type Cluster struct { } type Strategy struct { - DrainingTimeout *int `json:"drainingTimeout,omitempty"` - ProvisioningModel *string `json:"provisioningModel,omitempty"` - PreemptiblePercentage *int `json:"preemptiblePercentage,omitempty"` + DrainingTimeout *int `json:"drainingTimeout,omitempty"` + ProvisioningModel *string `json:"provisioningModel,omitempty"` + PreemptiblePercentage *int `json:"preemptiblePercentage,omitempty"` + ShouldUtilizeCommitments *bool `json:"shouldUtilizeCommitments,omitempty"` forceSendFields []string nullFields []string @@ -877,6 +878,13 @@ func (o *Strategy) SetPreemptiblePercentage(v *int) *Strategy { return o } +func (o *Strategy) SetShouldUtilizeCommitments(v *bool) *Strategy { + if o.ShouldUtilizeCommitments = v; o.ShouldUtilizeCommitments == nil { + o.nullFields = append(o.nullFields, "ShouldUtilizeCommitments") + } + return o +} + // endregion // region Compute