Skip to content

Commit

Permalink
feat(ocean/gcp): new field: PreemptiblePercentage (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
TamirYaariSpot authored Apr 3, 2022
1 parent 8e0d3d1 commit 8461f63
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions service/ocean/providers/gcp/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ type Cluster struct {
}

type Strategy struct {
DrainingTimeout *int `json:"drainingTimeout,omitempty"`
ProvisioningModel *string `json:"provisioningModel,omitempty"`
DrainingTimeout *int `json:"drainingTimeout,omitempty"`
ProvisioningModel *string `json:"provisioningModel,omitempty"`
PreemptiblePercentage *int `json:"preemptiblePercentage,omitempty"`

forceSendFields []string
nullFields []string
Expand Down Expand Up @@ -850,6 +851,13 @@ func (o *Strategy) SetProvisioningModel(v *string) *Strategy {
return o
}

func (o *Strategy) SetPreemptiblePercentage(v *int) *Strategy {
if o.PreemptiblePercentage = v; o.PreemptiblePercentage == nil {
o.nullFields = append(o.nullFields, "PreemptiblePercentage")
}
return o
}

// endregion

// region Compute
Expand Down

0 comments on commit 8461f63

Please sign in to comment.