Skip to content

Commit

Permalink
feat(ocean/aws): added dynamicIops (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
chandra1-n authored Sep 15, 2023
1 parent 4db5441 commit 946c4ee
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions service/ocean/providers/aws/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2078,6 +2078,7 @@ type ClusterEBS struct {
VolumeSize *int `json:"volumeSize,omitempty"`
Throughput *int `json:"throughput,omitempty"`
DynamicVolumeSize *ClusterDynamicVolumeSize `json:"dynamicVolumeSize,omitempty"`
DynamicIops *ClusterDynamicIops `json:"dynamicIops,omitempty"`

forceSendFields []string
nullFields []string
Expand All @@ -2091,6 +2092,15 @@ type ClusterDynamicVolumeSize struct {
nullFields []string
}

type ClusterDynamicIops struct {
BaseSize *int `json:"baseSize,omitempty"`
SizePerResourceUnit *int `json:"sizePerResourceUnit,omitempty"`
Resource *string `json:"resource,omitempty"`

forceSendFields []string
nullFields []string
}

// region BlockDeviceMapping

func (o ClusterBlockDeviceMappings) MarshalJSON() ([]byte, error) {
Expand Down Expand Up @@ -2186,6 +2196,13 @@ func (o *ClusterEBS) SetThroughput(v *int) *ClusterEBS {
return o
}

func (o *ClusterEBS) SetDynamicIops(v *ClusterDynamicIops) *ClusterEBS {
if o.DynamicIops = v; o.DynamicIops == nil {
o.nullFields = append(o.nullFields, "DynamicIops")
}
return o
}

// endregion

// region DynamicVolumeSize
Expand Down Expand Up @@ -2219,6 +2236,37 @@ func (o *ClusterDynamicVolumeSize) SetSizePerResourceUnit(v *int) *ClusterDynami

// endregion

// region DynamicIops

func (o ClusterDynamicIops) MarshalJSON() ([]byte, error) {
type noMethod ClusterDynamicIops
raw := noMethod(o)
return jsonutil.MarshalJSON(raw, o.forceSendFields, o.nullFields)
}

func (o *ClusterDynamicIops) SetBaseSize(v *int) *ClusterDynamicIops {
if o.BaseSize = v; o.BaseSize == nil {
o.nullFields = append(o.nullFields, "BaseSize")
}
return o
}

func (o *ClusterDynamicIops) SetResource(v *string) *ClusterDynamicIops {
if o.Resource = v; o.Resource == nil {
o.nullFields = append(o.nullFields, "Resource")
}
return o
}

func (o *ClusterDynamicIops) SetSizePerResourceUnit(v *int) *ClusterDynamicIops {
if o.SizePerResourceUnit = v; o.SizePerResourceUnit == nil {
o.nullFields = append(o.nullFields, "SizePerResourceUnit")
}
return o
}

// endregion

// region ResourceTagSpecification

func (o ResourceTagSpecification) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit 946c4ee

Please sign in to comment.