diff --git a/CHANGELOG.md b/CHANGELOG.md index 544625fd8..575059cad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## Release (2025-XX-XX) +## Release (2025-07-07) - `ske`: [v1.0.0](services/ske/CHANGELOG.md#v100) - **Breaking Change:** The region is no longer specified within the client configuration. Instead, the region must be passed as a parameter to any region-specific request. @@ -74,6 +74,8 @@ - `logme`: [v0.25.0](services/logme/CHANGELOG.md#v0250) - Add `required:"true"` tags to model structs - `iaas`: + - [v0.27.0](services/iaas/CHANGELOG.md#v0270) + - **Feature:** Add `Dhcp` field in `CreateNetworkPayload`, `Network` and `PartialUpdateNetworkPayload` models - [v0.26.0](services/iaas/CHANGELOG.md#v0260) - **Feature:** Add `Metadata` field to `Server`, `CreateServerPayload`, and `UpdateServerPayload` models - **Feature:** Increase maximum length validation for `machineType` and `volumePerformanceClass` from 63 to 127 characters diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index 5fadb8560..78f767566 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,3 +1,6 @@ +## v0.27.0 +- **Feature:** Add `Dhcp` field in `CreateNetworkPayload`, `Network` and `PartialUpdateNetworkPayload` models + ## v0.26.0 - **Feature:** Add `Metadata` field to `Server`, `CreateServerPayload`, and `UpdateServerPayload` models - **Feature:** Increase maximum length validation for `machineType` and `volumePerformanceClass` from 63 to 127 characters diff --git a/services/iaas/VERSION b/services/iaas/VERSION index f7689f340..37eb51de3 100644 --- a/services/iaas/VERSION +++ b/services/iaas/VERSION @@ -1 +1 @@ -v0.26.0 \ No newline at end of file +v0.27.0 \ No newline at end of file diff --git a/services/iaas/model_create_network_payload.go b/services/iaas/model_create_network_payload.go index dac5af860..8f56c0a94 100644 --- a/services/iaas/model_create_network_payload.go +++ b/services/iaas/model_create_network_payload.go @@ -37,6 +37,26 @@ func setCreateNetworkPayloadGetAddressFamilyAttributeType(arg *CreateNetworkPayl *arg = &val } +/* + types and functions for dhcp +*/ + +// isBoolean +type CreateNetworkPayloadgetDhcpAttributeType = *bool +type CreateNetworkPayloadgetDhcpArgType = bool +type CreateNetworkPayloadgetDhcpRetType = bool + +func getCreateNetworkPayloadgetDhcpAttributeTypeOk(arg CreateNetworkPayloadgetDhcpAttributeType) (ret CreateNetworkPayloadgetDhcpRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateNetworkPayloadgetDhcpAttributeType(arg *CreateNetworkPayloadgetDhcpAttributeType, val CreateNetworkPayloadgetDhcpRetType) { + *arg = &val +} + /* types and functions for labels */ @@ -101,6 +121,8 @@ func setCreateNetworkPayloadgetRoutedAttributeType(arg *CreateNetworkPayloadgetR // CreateNetworkPayload Object that represents the request body for a network create. type CreateNetworkPayload struct { AddressFamily CreateNetworkPayloadGetAddressFamilyAttributeType `json:"addressFamily,omitempty"` + // Enable or disable DHCP for a network. + Dhcp CreateNetworkPayloadgetDhcpAttributeType `json:"dhcp,omitempty"` // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels CreateNetworkPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. @@ -127,6 +149,8 @@ func NewCreateNetworkPayload(name CreateNetworkPayloadGetNameArgType) *CreateNet // but it doesn't guarantee that properties required by API are set func NewCreateNetworkPayloadWithDefaults() *CreateNetworkPayload { this := CreateNetworkPayload{} + var dhcp bool = true + this.Dhcp = &dhcp return &this } @@ -153,6 +177,29 @@ func (o *CreateNetworkPayload) SetAddressFamily(v CreateNetworkPayloadGetAddress setCreateNetworkPayloadGetAddressFamilyAttributeType(&o.AddressFamily, v) } +// GetDhcp returns the Dhcp field value if set, zero value otherwise. +func (o *CreateNetworkPayload) GetDhcp() (res CreateNetworkPayloadgetDhcpRetType) { + res, _ = o.GetDhcpOk() + return +} + +// GetDhcpOk returns a tuple with the Dhcp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateNetworkPayload) GetDhcpOk() (ret CreateNetworkPayloadgetDhcpRetType, ok bool) { + return getCreateNetworkPayloadgetDhcpAttributeTypeOk(o.Dhcp) +} + +// HasDhcp returns a boolean if a field has been set. +func (o *CreateNetworkPayload) HasDhcp() bool { + _, ok := o.GetDhcpOk() + return ok +} + +// SetDhcp gets a reference to the given bool and assigns it to the Dhcp field. +func (o *CreateNetworkPayload) SetDhcp(v CreateNetworkPayloadgetDhcpRetType) { + setCreateNetworkPayloadgetDhcpAttributeType(&o.Dhcp, v) +} + // GetLabels returns the Labels field value if set, zero value otherwise. func (o *CreateNetworkPayload) GetLabels() (res CreateNetworkPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() @@ -221,6 +268,9 @@ func (o CreateNetworkPayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateNetworkPayloadGetAddressFamilyAttributeTypeOk(o.AddressFamily); ok { toSerialize["AddressFamily"] = val } + if val, ok := getCreateNetworkPayloadgetDhcpAttributeTypeOk(o.Dhcp); ok { + toSerialize["Dhcp"] = val + } if val, ok := getCreateNetworkPayloadGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val } diff --git a/services/iaas/model_network.go b/services/iaas/model_network.go index 961fb9c9d..c8324e067 100644 --- a/services/iaas/model_network.go +++ b/services/iaas/model_network.go @@ -38,6 +38,26 @@ func setNetworkGetCreatedAtAttributeType(arg *NetworkGetCreatedAtAttributeType, *arg = &val } +/* + types and functions for dhcp +*/ + +// isBoolean +type NetworkgetDhcpAttributeType = *bool +type NetworkgetDhcpArgType = bool +type NetworkgetDhcpRetType = bool + +func getNetworkgetDhcpAttributeTypeOk(arg NetworkgetDhcpAttributeType) (ret NetworkgetDhcpRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setNetworkgetDhcpAttributeType(arg *NetworkgetDhcpAttributeType, val NetworkgetDhcpRetType) { + *arg = &val +} + /* types and functions for gateway */ @@ -316,6 +336,8 @@ func setNetworkGetUpdatedAtAttributeType(arg *NetworkGetUpdatedAtAttributeType, type Network struct { // Date-time when resource was created. CreatedAt NetworkGetCreatedAtAttributeType `json:"createdAt,omitempty"` + // Enable or disable DHCP for a network. + Dhcp NetworkgetDhcpAttributeType `json:"dhcp,omitempty"` // The gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway. Gateway NetworkGetGatewayAttributeType `json:"gateway,omitempty"` // The gateway of a network. If not specified the first IP of the network will be assigned as the gateway. If 'null' is sent, then the network doesn't have a gateway. @@ -389,6 +411,29 @@ func (o *Network) SetCreatedAt(v NetworkGetCreatedAtRetType) { setNetworkGetCreatedAtAttributeType(&o.CreatedAt, v) } +// GetDhcp returns the Dhcp field value if set, zero value otherwise. +func (o *Network) GetDhcp() (res NetworkgetDhcpRetType) { + res, _ = o.GetDhcpOk() + return +} + +// GetDhcpOk returns a tuple with the Dhcp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Network) GetDhcpOk() (ret NetworkgetDhcpRetType, ok bool) { + return getNetworkgetDhcpAttributeTypeOk(o.Dhcp) +} + +// HasDhcp returns a boolean if a field has been set. +func (o *Network) HasDhcp() bool { + _, ok := o.GetDhcpOk() + return ok +} + +// SetDhcp gets a reference to the given bool and assigns it to the Dhcp field. +func (o *Network) SetDhcp(v NetworkgetDhcpRetType) { + setNetworkgetDhcpAttributeType(&o.Dhcp, v) +} + // GetGateway returns the Gateway field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Network) GetGateway() (res NetworkGetGatewayRetType) { res, _ = o.GetGatewayOk() @@ -697,6 +742,9 @@ func (o Network) ToMap() (map[string]interface{}, error) { if val, ok := getNetworkGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { toSerialize["CreatedAt"] = val } + if val, ok := getNetworkgetDhcpAttributeTypeOk(o.Dhcp); ok { + toSerialize["Dhcp"] = val + } if val, ok := getNetworkGetGatewayAttributeTypeOk(o.Gateway); ok { toSerialize["Gateway"] = val } diff --git a/services/iaas/model_partial_update_network_payload.go b/services/iaas/model_partial_update_network_payload.go index 7e81264fc..7b4480c14 100644 --- a/services/iaas/model_partial_update_network_payload.go +++ b/services/iaas/model_partial_update_network_payload.go @@ -37,6 +37,26 @@ func setPartialUpdateNetworkPayloadGetAddressFamilyAttributeType(arg *PartialUpd *arg = &val } +/* + types and functions for dhcp +*/ + +// isBoolean +type PartialUpdateNetworkPayloadgetDhcpAttributeType = *bool +type PartialUpdateNetworkPayloadgetDhcpArgType = bool +type PartialUpdateNetworkPayloadgetDhcpRetType = bool + +func getPartialUpdateNetworkPayloadgetDhcpAttributeTypeOk(arg PartialUpdateNetworkPayloadgetDhcpAttributeType) (ret PartialUpdateNetworkPayloadgetDhcpRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setPartialUpdateNetworkPayloadgetDhcpAttributeType(arg *PartialUpdateNetworkPayloadgetDhcpAttributeType, val PartialUpdateNetworkPayloadgetDhcpRetType) { + *arg = &val +} + /* types and functions for labels */ @@ -101,6 +121,8 @@ func setPartialUpdateNetworkPayloadgetRoutedAttributeType(arg *PartialUpdateNetw // PartialUpdateNetworkPayload Object that represents the request body for a network update. type PartialUpdateNetworkPayload struct { AddressFamily PartialUpdateNetworkPayloadGetAddressFamilyAttributeType `json:"addressFamily,omitempty"` + // Enable or disable DHCP for a network. + Dhcp PartialUpdateNetworkPayloadgetDhcpAttributeType `json:"dhcp,omitempty"` // Object that represents the labels of an object. Regex for keys: `^[a-z]((-|_|[a-z0-9])){0,62}$`. Regex for values: `^(-|_|[a-z0-9]){0,63}$`. Labels PartialUpdateNetworkPayloadGetLabelsAttributeType `json:"labels,omitempty"` // The name for a General Object. Matches Names and also UUIDs. @@ -149,6 +171,29 @@ func (o *PartialUpdateNetworkPayload) SetAddressFamily(v PartialUpdateNetworkPay setPartialUpdateNetworkPayloadGetAddressFamilyAttributeType(&o.AddressFamily, v) } +// GetDhcp returns the Dhcp field value if set, zero value otherwise. +func (o *PartialUpdateNetworkPayload) GetDhcp() (res PartialUpdateNetworkPayloadgetDhcpRetType) { + res, _ = o.GetDhcpOk() + return +} + +// GetDhcpOk returns a tuple with the Dhcp field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateNetworkPayload) GetDhcpOk() (ret PartialUpdateNetworkPayloadgetDhcpRetType, ok bool) { + return getPartialUpdateNetworkPayloadgetDhcpAttributeTypeOk(o.Dhcp) +} + +// HasDhcp returns a boolean if a field has been set. +func (o *PartialUpdateNetworkPayload) HasDhcp() bool { + _, ok := o.GetDhcpOk() + return ok +} + +// SetDhcp gets a reference to the given bool and assigns it to the Dhcp field. +func (o *PartialUpdateNetworkPayload) SetDhcp(v PartialUpdateNetworkPayloadgetDhcpRetType) { + setPartialUpdateNetworkPayloadgetDhcpAttributeType(&o.Dhcp, v) +} + // GetLabels returns the Labels field value if set, zero value otherwise. func (o *PartialUpdateNetworkPayload) GetLabels() (res PartialUpdateNetworkPayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() @@ -223,6 +268,9 @@ func (o PartialUpdateNetworkPayload) ToMap() (map[string]interface{}, error) { if val, ok := getPartialUpdateNetworkPayloadGetAddressFamilyAttributeTypeOk(o.AddressFamily); ok { toSerialize["AddressFamily"] = val } + if val, ok := getPartialUpdateNetworkPayloadgetDhcpAttributeTypeOk(o.Dhcp); ok { + toSerialize["Dhcp"] = val + } if val, ok := getPartialUpdateNetworkPayloadGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val }