diff --git a/CHANGELOG.md b/CHANGELOG.md index 58c0e7d2b..0a2b6f7d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,12 @@ - **New:** Added duration utils - `stackitmarketplace`: [v1.16.0](services/stackitmarketplace/CHANGELOG.md#v1160) - **Breaking Change:** Remove unused `ProjectId` model struct -- `iaas`: [v1.1.0](services/iaas/CHANGELOG.md#v110) - - **Breaking Change:** Removal of unused model structs: `Area`, `AreaConfig`, `AreaPrefixConfigIPv4`, `UpdateAreaIPv4`, `NetworkAreaIPv4`, `CreateAreaAddressFamily`, `CreateAreaIPv4`, `CreateNetworkAddressFamily`, `CreateNetworkIPv4Body`, `CreateNetworkIPv6Body`, `CreateServerPayloadBootVolume`, `CreateServerPayloadNetworking`, `NullableUpdateAreaAddressFamily`, `CreateServerPayloadNetworking`, `UpdateNetworkAddressFamily`, `CreateServerPayloadNetworking`, `CreateServerPayloadNetworking` +- `iaas`: + - [v1.2.0](services/iaas/CHANGELOG.md#v120) + - **Feature:** Add new field `Encrypted` to `Backup` model, which indicates if a backup is encrypted + - **Feature:** Add new field `ImportProgress` to `Image` model, which indicates the import progress of an image + - [v1.1.0](services/iaas/CHANGELOG.md#v110) + - **Breaking Change:** Removal of unused model structs: `Area`, `AreaConfig`, `AreaPrefixConfigIPv4`, `UpdateAreaIPv4`, `NetworkAreaIPv4`, `CreateAreaAddressFamily`, `CreateAreaIPv4`, `CreateNetworkAddressFamily`, `CreateNetworkIPv4Body`, `CreateNetworkIPv6Body`, `CreateServerPayloadBootVolume`, `CreateServerPayloadNetworking`, `NullableUpdateAreaAddressFamily`, `CreateServerPayloadNetworking`, `UpdateNetworkAddressFamily`, `CreateServerPayloadNetworking`, `CreateServerPayloadNetworking` - `cdn`: [v2.1.0](services/cdn/CHANGELOG.md#v210) - **Breaking change:** Removal of unused model structs: `GetLogsSearchFiltersResponse`, `PatchLokiLogSink` - `kms`: [v1.1.0](services/kms/CHANGELOG.md#v110) diff --git a/services/iaas/CHANGELOG.md b/services/iaas/CHANGELOG.md index ee15dc8e1..df22b33d0 100644 --- a/services/iaas/CHANGELOG.md +++ b/services/iaas/CHANGELOG.md @@ -1,3 +1,7 @@ +## v1.2.0 +- **Feature:** Add new field `Encrypted` to `Backup` model, which indicates if a backup is encrypted +- **Feature:** Add new field `ImportProgress` to `Image` model, which indicates the import progress of an image + ## v1.1.0 - **Breaking Change:** Removal of unused model structs: `Area`, `AreaConfig`, `AreaPrefixConfigIPv4`, `UpdateAreaIPv4`, `NetworkAreaIPv4`, `CreateAreaAddressFamily`, `CreateAreaIPv4`, `CreateNetworkAddressFamily`, `CreateNetworkIPv4Body`, `CreateNetworkIPv6Body`, `CreateServerPayloadBootVolume`, `CreateServerPayloadNetworking`, `NullableUpdateAreaAddressFamily`, `CreateServerPayloadNetworking`, `UpdateNetworkAddressFamily`, `CreateServerPayloadNetworking`, `CreateServerPayloadNetworking` diff --git a/services/iaas/VERSION b/services/iaas/VERSION index 795460fce..79127d85a 100644 --- a/services/iaas/VERSION +++ b/services/iaas/VERSION @@ -1 +1 @@ -v1.1.0 +v1.2.0 diff --git a/services/iaas/model_backup.go b/services/iaas/model_backup.go index ad9bd7134..ad0bf3a46 100644 --- a/services/iaas/model_backup.go +++ b/services/iaas/model_backup.go @@ -59,6 +59,26 @@ func setBackupGetCreatedAtAttributeType(arg *BackupGetCreatedAtAttributeType, va *arg = &val } +/* + types and functions for encrypted +*/ + +// isBoolean +type BackupgetEncryptedAttributeType = *bool +type BackupgetEncryptedArgType = bool +type BackupgetEncryptedRetType = bool + +func getBackupgetEncryptedAttributeTypeOk(arg BackupgetEncryptedAttributeType) (ret BackupgetEncryptedRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setBackupgetEncryptedAttributeType(arg *BackupgetEncryptedAttributeType, val BackupgetEncryptedRetType) { + *arg = &val +} + /* types and functions for id */ @@ -230,6 +250,8 @@ type Backup struct { AvailabilityZone BackupGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"` // Date-time when resource was created. CreatedAt BackupGetCreatedAtAttributeType `json:"createdAt,omitempty"` + // Indicates if a volume is encrypted. + Encrypted BackupgetEncryptedAttributeType `json:"encrypted,omitempty"` // Universally Unique Identifier (UUID). Id BackupGetIdAttributeType `json:"id,omitempty"` // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. @@ -311,6 +333,29 @@ func (o *Backup) SetCreatedAt(v BackupGetCreatedAtRetType) { setBackupGetCreatedAtAttributeType(&o.CreatedAt, v) } +// GetEncrypted returns the Encrypted field value if set, zero value otherwise. +func (o *Backup) GetEncrypted() (res BackupgetEncryptedRetType) { + res, _ = o.GetEncryptedOk() + return +} + +// GetEncryptedOk returns a tuple with the Encrypted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Backup) GetEncryptedOk() (ret BackupgetEncryptedRetType, ok bool) { + return getBackupgetEncryptedAttributeTypeOk(o.Encrypted) +} + +// HasEncrypted returns a boolean if a field has been set. +func (o *Backup) HasEncrypted() bool { + _, ok := o.GetEncryptedOk() + return ok +} + +// SetEncrypted gets a reference to the given bool and assigns it to the Encrypted field. +func (o *Backup) SetEncrypted(v BackupgetEncryptedRetType) { + setBackupgetEncryptedAttributeType(&o.Encrypted, v) +} + // GetId returns the Id field value if set, zero value otherwise. func (o *Backup) GetId() (res BackupGetIdRetType) { res, _ = o.GetIdOk() @@ -503,6 +548,9 @@ func (o Backup) ToMap() (map[string]interface{}, error) { if val, ok := getBackupGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { toSerialize["CreatedAt"] = val } + if val, ok := getBackupgetEncryptedAttributeTypeOk(o.Encrypted); ok { + toSerialize["Encrypted"] = val + } if val, ok := getBackupGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val } diff --git a/services/iaas/model_create_image_payload.go b/services/iaas/model_create_image_payload.go index 95eb4adb1..6a40a1e1c 100644 --- a/services/iaas/model_create_image_payload.go +++ b/services/iaas/model_create_image_payload.go @@ -140,6 +140,26 @@ func setCreateImagePayloadGetIdAttributeType(arg *CreateImagePayloadGetIdAttribu type CreateImagePayloadGetIdArgType = string type CreateImagePayloadGetIdRetType = string +/* + types and functions for importProgress +*/ + +// isLong +type CreateImagePayloadGetImportProgressAttributeType = *int64 +type CreateImagePayloadGetImportProgressArgType = int64 +type CreateImagePayloadGetImportProgressRetType = int64 + +func getCreateImagePayloadGetImportProgressAttributeTypeOk(arg CreateImagePayloadGetImportProgressAttributeType) (ret CreateImagePayloadGetImportProgressRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setCreateImagePayloadGetImportProgressAttributeType(arg *CreateImagePayloadGetImportProgressAttributeType, val CreateImagePayloadGetImportProgressRetType) { + *arg = &val +} + /* types and functions for labels */ @@ -356,6 +376,8 @@ type CreateImagePayload struct { DiskFormat CreateImagePayloadGetDiskFormatAttributeType `json:"diskFormat" required:"true"` // Universally Unique Identifier (UUID). Id CreateImagePayloadGetIdAttributeType `json:"id,omitempty"` + // Indicates Image Import Progress in percent. + ImportProgress CreateImagePayloadGetImportProgressAttributeType `json:"importProgress,omitempty"` // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels CreateImagePayloadGetLabelsAttributeType `json:"labels,omitempty"` // Size in Gigabyte. @@ -532,6 +554,29 @@ func (o *CreateImagePayload) SetId(v CreateImagePayloadGetIdRetType) { setCreateImagePayloadGetIdAttributeType(&o.Id, v) } +// GetImportProgress returns the ImportProgress field value if set, zero value otherwise. +func (o *CreateImagePayload) GetImportProgress() (res CreateImagePayloadGetImportProgressRetType) { + res, _ = o.GetImportProgressOk() + return +} + +// GetImportProgressOk returns a tuple with the ImportProgress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateImagePayload) GetImportProgressOk() (ret CreateImagePayloadGetImportProgressRetType, ok bool) { + return getCreateImagePayloadGetImportProgressAttributeTypeOk(o.ImportProgress) +} + +// HasImportProgress returns a boolean if a field has been set. +func (o *CreateImagePayload) HasImportProgress() bool { + _, ok := o.GetImportProgressOk() + return ok +} + +// SetImportProgress gets a reference to the given int64 and assigns it to the ImportProgress field. +func (o *CreateImagePayload) SetImportProgress(v CreateImagePayloadGetImportProgressRetType) { + setCreateImagePayloadGetImportProgressAttributeType(&o.ImportProgress, v) +} + // GetLabels returns the Labels field value if set, zero value otherwise. func (o *CreateImagePayload) GetLabels() (res CreateImagePayloadGetLabelsRetType) { res, _ = o.GetLabelsOk() @@ -776,6 +821,9 @@ func (o CreateImagePayload) ToMap() (map[string]interface{}, error) { if val, ok := getCreateImagePayloadGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val } + if val, ok := getCreateImagePayloadGetImportProgressAttributeTypeOk(o.ImportProgress); ok { + toSerialize["ImportProgress"] = val + } if val, ok := getCreateImagePayloadGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val } diff --git a/services/iaas/model_image.go b/services/iaas/model_image.go index fa53b5138..18c2eeffc 100644 --- a/services/iaas/model_image.go +++ b/services/iaas/model_image.go @@ -140,6 +140,26 @@ func setImageGetIdAttributeType(arg *ImageGetIdAttributeType, val ImageGetIdRetT type ImageGetIdArgType = string type ImageGetIdRetType = string +/* + types and functions for importProgress +*/ + +// isLong +type ImageGetImportProgressAttributeType = *int64 +type ImageGetImportProgressArgType = int64 +type ImageGetImportProgressRetType = int64 + +func getImageGetImportProgressAttributeTypeOk(arg ImageGetImportProgressAttributeType) (ret ImageGetImportProgressRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setImageGetImportProgressAttributeType(arg *ImageGetImportProgressAttributeType, val ImageGetImportProgressRetType) { + *arg = &val +} + /* types and functions for labels */ @@ -356,6 +376,8 @@ type Image struct { DiskFormat ImageGetDiskFormatAttributeType `json:"diskFormat" required:"true"` // Universally Unique Identifier (UUID). Id ImageGetIdAttributeType `json:"id,omitempty"` + // Indicates Image Import Progress in percent. + ImportProgress ImageGetImportProgressAttributeType `json:"importProgress,omitempty"` // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. Labels ImageGetLabelsAttributeType `json:"labels,omitempty"` // Size in Gigabyte. @@ -532,6 +554,29 @@ func (o *Image) SetId(v ImageGetIdRetType) { setImageGetIdAttributeType(&o.Id, v) } +// GetImportProgress returns the ImportProgress field value if set, zero value otherwise. +func (o *Image) GetImportProgress() (res ImageGetImportProgressRetType) { + res, _ = o.GetImportProgressOk() + return +} + +// GetImportProgressOk returns a tuple with the ImportProgress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Image) GetImportProgressOk() (ret ImageGetImportProgressRetType, ok bool) { + return getImageGetImportProgressAttributeTypeOk(o.ImportProgress) +} + +// HasImportProgress returns a boolean if a field has been set. +func (o *Image) HasImportProgress() bool { + _, ok := o.GetImportProgressOk() + return ok +} + +// SetImportProgress gets a reference to the given int64 and assigns it to the ImportProgress field. +func (o *Image) SetImportProgress(v ImageGetImportProgressRetType) { + setImageGetImportProgressAttributeType(&o.ImportProgress, v) +} + // GetLabels returns the Labels field value if set, zero value otherwise. func (o *Image) GetLabels() (res ImageGetLabelsRetType) { res, _ = o.GetLabelsOk() @@ -776,6 +821,9 @@ func (o Image) ToMap() (map[string]interface{}, error) { if val, ok := getImageGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val } + if val, ok := getImageGetImportProgressAttributeTypeOk(o.ImportProgress); ok { + toSerialize["ImportProgress"] = val + } if val, ok := getImageGetLabelsAttributeTypeOk(o.Labels); ok { toSerialize["Labels"] = val } diff --git a/services/iaas/model_update_backup_payload.go b/services/iaas/model_update_backup_payload.go index 8d62403f0..e819da9e9 100644 --- a/services/iaas/model_update_backup_payload.go +++ b/services/iaas/model_update_backup_payload.go @@ -59,6 +59,26 @@ func setUpdateBackupPayloadGetCreatedAtAttributeType(arg *UpdateBackupPayloadGet *arg = &val } +/* + types and functions for encrypted +*/ + +// isBoolean +type UpdateBackupPayloadgetEncryptedAttributeType = *bool +type UpdateBackupPayloadgetEncryptedArgType = bool +type UpdateBackupPayloadgetEncryptedRetType = bool + +func getUpdateBackupPayloadgetEncryptedAttributeTypeOk(arg UpdateBackupPayloadgetEncryptedAttributeType) (ret UpdateBackupPayloadgetEncryptedRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateBackupPayloadgetEncryptedAttributeType(arg *UpdateBackupPayloadgetEncryptedAttributeType, val UpdateBackupPayloadgetEncryptedRetType) { + *arg = &val +} + /* types and functions for id */ @@ -230,6 +250,8 @@ type UpdateBackupPayload struct { AvailabilityZone UpdateBackupPayloadGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"` // Date-time when resource was created. CreatedAt UpdateBackupPayloadGetCreatedAtAttributeType `json:"createdAt,omitempty"` + // Indicates if a volume is encrypted. + Encrypted UpdateBackupPayloadgetEncryptedAttributeType `json:"encrypted,omitempty"` // Universally Unique Identifier (UUID). Id UpdateBackupPayloadGetIdAttributeType `json:"id,omitempty"` // Object that represents the labels of an object. Regex for keys: `^(?=.{1,63}$)([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]$`. Regex for values: `^(?=.{0,63}$)(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])*$`. Providing a `null` value for a key will remove that key. @@ -311,6 +333,29 @@ func (o *UpdateBackupPayload) SetCreatedAt(v UpdateBackupPayloadGetCreatedAtRetT setUpdateBackupPayloadGetCreatedAtAttributeType(&o.CreatedAt, v) } +// GetEncrypted returns the Encrypted field value if set, zero value otherwise. +func (o *UpdateBackupPayload) GetEncrypted() (res UpdateBackupPayloadgetEncryptedRetType) { + res, _ = o.GetEncryptedOk() + return +} + +// GetEncryptedOk returns a tuple with the Encrypted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateBackupPayload) GetEncryptedOk() (ret UpdateBackupPayloadgetEncryptedRetType, ok bool) { + return getUpdateBackupPayloadgetEncryptedAttributeTypeOk(o.Encrypted) +} + +// HasEncrypted returns a boolean if a field has been set. +func (o *UpdateBackupPayload) HasEncrypted() bool { + _, ok := o.GetEncryptedOk() + return ok +} + +// SetEncrypted gets a reference to the given bool and assigns it to the Encrypted field. +func (o *UpdateBackupPayload) SetEncrypted(v UpdateBackupPayloadgetEncryptedRetType) { + setUpdateBackupPayloadgetEncryptedAttributeType(&o.Encrypted, v) +} + // GetId returns the Id field value if set, zero value otherwise. func (o *UpdateBackupPayload) GetId() (res UpdateBackupPayloadGetIdRetType) { res, _ = o.GetIdOk() @@ -503,6 +548,9 @@ func (o UpdateBackupPayload) ToMap() (map[string]interface{}, error) { if val, ok := getUpdateBackupPayloadGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { toSerialize["CreatedAt"] = val } + if val, ok := getUpdateBackupPayloadgetEncryptedAttributeTypeOk(o.Encrypted); ok { + toSerialize["Encrypted"] = val + } if val, ok := getUpdateBackupPayloadGetIdAttributeTypeOk(o.Id); ok { toSerialize["Id"] = val }