Skip to content

Commit

Permalink
added support for ShouldUtilizeCommitments
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadkesarwani committed Sep 18, 2024
1 parent 1b86c76 commit 330ae51
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions service/ocean/providers/gcp/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 330ae51

Please sign in to comment.