From 41dd1507e906869209ea48c7e8bb160b4f3ba865 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Mon, 27 Apr 2026 11:56:12 +0000 Subject: [PATCH 1/2] Generate sfs --- services/sfs/go.mod | 2 +- services/sfs/go.sum | 4 +- ...napshot_policy_response_snapshot_policy.go | 61 ++- services/sfs/model_snapshot_policy.go | 61 ++- .../sfs/model_snapshot_policy_schedule.go | 69 ++- ...napshot_policy_snapshot_policy_schedule.go | 506 ++++++++++++++++++ ...ot_policy_snapshot_policy_schedule_test.go | 11 + services/sfs/oas_commit | 2 +- services/sfs/v1api/model_snapshot_policy.go | 44 +- .../v1api/model_snapshot_policy_schedule.go | 48 +- ...napshot_policy_snapshot_policy_schedule.go | 382 +++++++++++++ 11 files changed, 1177 insertions(+), 13 deletions(-) create mode 100644 services/sfs/model_snapshot_policy_snapshot_policy_schedule.go create mode 100644 services/sfs/model_snapshot_policy_snapshot_policy_schedule_test.go create mode 100644 services/sfs/v1api/model_snapshot_policy_snapshot_policy_schedule.go diff --git a/services/sfs/go.mod b/services/sfs/go.mod index d22128b54..4c3efe823 100644 --- a/services/sfs/go.mod +++ b/services/sfs/go.mod @@ -2,7 +2,7 @@ module github.com/stackitcloud/stackit-sdk-go/services/sfs go 1.25 -require github.com/stackitcloud/stackit-sdk-go/core v0.25.0 +require github.com/stackitcloud/stackit-sdk-go/core v0.26.0 require ( github.com/golang-jwt/jwt/v5 v5.3.1 // indirect diff --git a/services/sfs/go.sum b/services/sfs/go.sum index f66cfd445..3712a0c87 100644 --- a/services/sfs/go.sum +++ b/services/sfs/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.25.0 h1:ra3VEk684MNoq741g+xbZrKjZzhyztq5liUAwwew4DY= -github.com/stackitcloud/stackit-sdk-go/core v0.25.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA= +github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/sfs/model_get_snapshot_policy_response_snapshot_policy.go b/services/sfs/model_get_snapshot_policy_response_snapshot_policy.go index 85f67caac..c0b1b86bf 100644 --- a/services/sfs/model_get_snapshot_policy_response_snapshot_policy.go +++ b/services/sfs/model_get_snapshot_policy_response_snapshot_policy.go @@ -181,6 +181,33 @@ func setGetSnapshotPolicyResponseSnapshotPolicyGetSchedulesAttributeType(arg *Ge *arg = &val } +/* + types and functions for snapshotSchedules +*/ + +// isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeType = *[]SnapshotPolicySnapshotPolicySchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesArgType = []SnapshotPolicySnapshotPolicySchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesRetType = []SnapshotPolicySnapshotPolicySchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getGetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeTypeOk(arg GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeType) (ret GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setGetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeType(arg *GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeType, val GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesRetType) { + *arg = &val +} + // GetSnapshotPolicyResponseSnapshotPolicy Snapshot Policy // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetSnapshotPolicyResponseSnapshotPolicy struct { @@ -194,8 +221,10 @@ type GetSnapshotPolicyResponseSnapshotPolicy struct { Id GetSnapshotPolicyResponseSnapshotPolicyGetIdAttributeType `json:"id,omitempty"` // Name of the Snapshot Policy Name GetSnapshotPolicyResponseSnapshotPolicyGetNameAttributeType `json:"name,omitempty"` - // associated schedules + // Deprecated: (deprecated) associated schedules Schedules GetSnapshotPolicyResponseSnapshotPolicyGetSchedulesAttributeType `json:"schedules,omitempty"` + // associated schedules + SnapshotSchedules GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeType `json:"snapshotSchedules,omitempty"` } // NewGetSnapshotPolicyResponseSnapshotPolicy instantiates a new GetSnapshotPolicyResponseSnapshotPolicy object @@ -379,6 +408,33 @@ func (o *GetSnapshotPolicyResponseSnapshotPolicy) SetSchedules(v GetSnapshotPoli setGetSnapshotPolicyResponseSnapshotPolicyGetSchedulesAttributeType(&o.Schedules, v) } +// GetSnapshotSchedules returns the SnapshotSchedules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *GetSnapshotPolicyResponseSnapshotPolicy) GetSnapshotSchedules() (res GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesRetType) { + res, _ = o.GetSnapshotSchedulesOk() + return +} + +// GetSnapshotSchedulesOk returns a tuple with the SnapshotSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *GetSnapshotPolicyResponseSnapshotPolicy) GetSnapshotSchedulesOk() (ret GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesRetType, ok bool) { + return getGetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeTypeOk(o.SnapshotSchedules) +} + +// HasSnapshotSchedules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *GetSnapshotPolicyResponseSnapshotPolicy) HasSnapshotSchedules() bool { + _, ok := o.GetSnapshotSchedulesOk() + return ok +} + +// SetSnapshotSchedules gets a reference to the given []SnapshotPolicySnapshotPolicySchedule and assigns it to the SnapshotSchedules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *GetSnapshotPolicyResponseSnapshotPolicy) SetSnapshotSchedules(v GetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesRetType) { + setGetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeType(&o.SnapshotSchedules, v) +} + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetSnapshotPolicyResponseSnapshotPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} @@ -400,6 +456,9 @@ func (o GetSnapshotPolicyResponseSnapshotPolicy) ToMap() (map[string]interface{} if val, ok := getGetSnapshotPolicyResponseSnapshotPolicyGetSchedulesAttributeTypeOk(o.Schedules); ok { toSerialize["Schedules"] = val } + if val, ok := getGetSnapshotPolicyResponseSnapshotPolicyGetSnapshotSchedulesAttributeTypeOk(o.SnapshotSchedules); ok { + toSerialize["SnapshotSchedules"] = val + } return toSerialize, nil } diff --git a/services/sfs/model_snapshot_policy.go b/services/sfs/model_snapshot_policy.go index e7340d18a..bce4af8d8 100644 --- a/services/sfs/model_snapshot_policy.go +++ b/services/sfs/model_snapshot_policy.go @@ -181,6 +181,33 @@ func setSnapshotPolicyGetSchedulesAttributeType(arg *SnapshotPolicyGetSchedulesA *arg = &val } +/* + types and functions for snapshotSchedules +*/ + +// isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicyGetSnapshotSchedulesAttributeType = *[]SnapshotPolicySnapshotPolicySchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicyGetSnapshotSchedulesArgType = []SnapshotPolicySnapshotPolicySchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicyGetSnapshotSchedulesRetType = []SnapshotPolicySnapshotPolicySchedule + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicyGetSnapshotSchedulesAttributeTypeOk(arg SnapshotPolicyGetSnapshotSchedulesAttributeType) (ret SnapshotPolicyGetSnapshotSchedulesRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicyGetSnapshotSchedulesAttributeType(arg *SnapshotPolicyGetSnapshotSchedulesAttributeType, val SnapshotPolicyGetSnapshotSchedulesRetType) { + *arg = &val +} + // SnapshotPolicy struct for SnapshotPolicy // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SnapshotPolicy struct { @@ -194,8 +221,10 @@ type SnapshotPolicy struct { Id SnapshotPolicyGetIdAttributeType `json:"id,omitempty"` // Name of the Snapshot Policy Name SnapshotPolicyGetNameAttributeType `json:"name,omitempty"` - // associated schedules + // Deprecated: (deprecated) associated schedules Schedules SnapshotPolicyGetSchedulesAttributeType `json:"schedules,omitempty"` + // associated schedules + SnapshotSchedules SnapshotPolicyGetSnapshotSchedulesAttributeType `json:"snapshotSchedules,omitempty"` } // NewSnapshotPolicy instantiates a new SnapshotPolicy object @@ -379,6 +408,33 @@ func (o *SnapshotPolicy) SetSchedules(v SnapshotPolicyGetSchedulesRetType) { setSnapshotPolicyGetSchedulesAttributeType(&o.Schedules, v) } +// GetSnapshotSchedules returns the SnapshotSchedules field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicy) GetSnapshotSchedules() (res SnapshotPolicyGetSnapshotSchedulesRetType) { + res, _ = o.GetSnapshotSchedulesOk() + return +} + +// GetSnapshotSchedulesOk returns a tuple with the SnapshotSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicy) GetSnapshotSchedulesOk() (ret SnapshotPolicyGetSnapshotSchedulesRetType, ok bool) { + return getSnapshotPolicyGetSnapshotSchedulesAttributeTypeOk(o.SnapshotSchedules) +} + +// HasSnapshotSchedules returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicy) HasSnapshotSchedules() bool { + _, ok := o.GetSnapshotSchedulesOk() + return ok +} + +// SetSnapshotSchedules gets a reference to the given []SnapshotPolicySnapshotPolicySchedule and assigns it to the SnapshotSchedules field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicy) SetSnapshotSchedules(v SnapshotPolicyGetSnapshotSchedulesRetType) { + setSnapshotPolicyGetSnapshotSchedulesAttributeType(&o.SnapshotSchedules, v) +} + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o SnapshotPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} @@ -400,6 +456,9 @@ func (o SnapshotPolicy) ToMap() (map[string]interface{}, error) { if val, ok := getSnapshotPolicyGetSchedulesAttributeTypeOk(o.Schedules); ok { toSerialize["Schedules"] = val } + if val, ok := getSnapshotPolicyGetSnapshotSchedulesAttributeTypeOk(o.SnapshotSchedules); ok { + toSerialize["SnapshotSchedules"] = val + } return toSerialize, nil } diff --git a/services/sfs/model_snapshot_policy_schedule.go b/services/sfs/model_snapshot_policy_schedule.go index a7375508f..cff846f28 100644 --- a/services/sfs/model_snapshot_policy_schedule.go +++ b/services/sfs/model_snapshot_policy_schedule.go @@ -45,6 +45,33 @@ func setSnapshotPolicyScheduleGetCountAttributeType(arg *SnapshotPolicyScheduleG *arg = &val } +/* + types and functions for interval +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicyScheduleGetIntervalAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicyScheduleGetIntervalAttributeTypeOk(arg SnapshotPolicyScheduleGetIntervalAttributeType) (ret SnapshotPolicyScheduleGetIntervalRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicyScheduleGetIntervalAttributeType(arg *SnapshotPolicyScheduleGetIntervalAttributeType, val SnapshotPolicyScheduleGetIntervalRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicyScheduleGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicyScheduleGetIntervalRetType = string + /* types and functions for prefix */ @@ -129,10 +156,16 @@ type SnapshotPolicyScheduleGetScheduleIdRetType = string // SnapshotPolicySchedule struct for SnapshotPolicySchedule // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SnapshotPolicySchedule struct { - Count SnapshotPolicyScheduleGetCountAttributeType `json:"count,omitempty"` - Prefix SnapshotPolicyScheduleGetPrefixAttributeType `json:"prefix,omitempty"` + // Retention Count + Count SnapshotPolicyScheduleGetCountAttributeType `json:"count,omitempty"` + // Interval of the Schedule (follows the cron schedule expression in Unix-like systems) + Interval SnapshotPolicyScheduleGetIntervalAttributeType `json:"interval,omitempty"` + // Prefix used for the snapshots created by this policy + Prefix SnapshotPolicyScheduleGetPrefixAttributeType `json:"prefix,omitempty"` + // Retention Period (ISO 8601 format or \"infinite\") RetentionPeriod SnapshotPolicyScheduleGetRetentionPeriodAttributeType `json:"retentionPeriod,omitempty"` - ScheduleId SnapshotPolicyScheduleGetScheduleIdAttributeType `json:"scheduleId,omitempty"` + // ID of the Schedule + ScheduleId SnapshotPolicyScheduleGetScheduleIdAttributeType `json:"scheduleId,omitempty"` } // NewSnapshotPolicySchedule instantiates a new SnapshotPolicySchedule object @@ -181,6 +214,33 @@ func (o *SnapshotPolicySchedule) SetCount(v SnapshotPolicyScheduleGetCountRetTyp setSnapshotPolicyScheduleGetCountAttributeType(&o.Count, v) } +// GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySchedule) GetInterval() (res SnapshotPolicyScheduleGetIntervalRetType) { + res, _ = o.GetIntervalOk() + return +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySchedule) GetIntervalOk() (ret SnapshotPolicyScheduleGetIntervalRetType, ok bool) { + return getSnapshotPolicyScheduleGetIntervalAttributeTypeOk(o.Interval) +} + +// HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySchedule) HasInterval() bool { + _, ok := o.GetIntervalOk() + return ok +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySchedule) SetInterval(v SnapshotPolicyScheduleGetIntervalRetType) { + setSnapshotPolicyScheduleGetIntervalAttributeType(&o.Interval, v) +} + // GetPrefix returns the Prefix field value if set, zero value otherwise. // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SnapshotPolicySchedule) GetPrefix() (res SnapshotPolicyScheduleGetPrefixRetType) { @@ -268,6 +328,9 @@ func (o SnapshotPolicySchedule) ToMap() (map[string]interface{}, error) { if val, ok := getSnapshotPolicyScheduleGetCountAttributeTypeOk(o.Count); ok { toSerialize["Count"] = val } + if val, ok := getSnapshotPolicyScheduleGetIntervalAttributeTypeOk(o.Interval); ok { + toSerialize["Interval"] = val + } if val, ok := getSnapshotPolicyScheduleGetPrefixAttributeTypeOk(o.Prefix); ok { toSerialize["Prefix"] = val } diff --git a/services/sfs/model_snapshot_policy_snapshot_policy_schedule.go b/services/sfs/model_snapshot_policy_snapshot_policy_schedule.go new file mode 100644 index 000000000..66a956fdc --- /dev/null +++ b/services/sfs/model_snapshot_policy_snapshot_policy_schedule.go @@ -0,0 +1,506 @@ +/* +STACKIT File Storage (SFS) + +API used to create and manage NFS Shares. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package sfs + +import ( + "encoding/json" + "time" +) + +// checks if the SnapshotPolicySnapshotPolicySchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotPolicySnapshotPolicySchedule{} + +/* + types and functions for createdAt +*/ + +// isDateTime +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeType = *time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetCreatedAtArgType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetCreatedAtRetType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetCreatedAtRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetCreatedAtRetType) { + *arg = &val +} + +/* + types and functions for id +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetIdAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetIdAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetIdAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetIdRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetIdAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetIdAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetIdRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetIdRetType = string + +/* + types and functions for interval +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetIntervalRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetIntervalRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetIntervalArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetIntervalRetType = string + +/* + types and functions for name +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetNameAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetNameAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetNameAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetNameRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetNameAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetNameAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetNameRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetNameRetType = string + +/* + types and functions for prefix +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetPrefixRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetPrefixRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetPrefixArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetPrefixRetType = string + +/* + types and functions for retentionCount +*/ + +// isInteger +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetRetentionCountArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetRetentionCountRetType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetRetentionCountRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetRetentionCountRetType) { + *arg = &val +} + +/* + types and functions for retentionPeriod +*/ + +// isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeType = *string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func getSnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeTypeOk(arg SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeType) (ret SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func setSnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeType(arg *SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeType, val SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodRetType) { + *arg = &val +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodRetType = string + +// SnapshotPolicySnapshotPolicySchedule struct for SnapshotPolicySnapshotPolicySchedule +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type SnapshotPolicySnapshotPolicySchedule struct { + CreatedAt SnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeType `json:"createdAt,omitempty"` + // ID of the Schedule + Id SnapshotPolicySnapshotPolicyScheduleGetIdAttributeType `json:"id,omitempty"` + // Interval of the Schedule (follows the cron schedule expression in Unix-like systems) + Interval SnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeType `json:"interval,omitempty"` + // Name of the Schedule + Name SnapshotPolicySnapshotPolicyScheduleGetNameAttributeType `json:"name,omitempty"` + // Prefix used for the snapshots created by this policy + Prefix SnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeType `json:"prefix,omitempty"` + // Retention Count + RetentionCount SnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeType `json:"retentionCount,omitempty"` + // Retention Period (ISO 8601 format or \"infinite\") + RetentionPeriod SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeType `json:"retentionPeriod,omitempty"` +} + +// NewSnapshotPolicySnapshotPolicySchedule instantiates a new SnapshotPolicySnapshotPolicySchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewSnapshotPolicySnapshotPolicySchedule() *SnapshotPolicySnapshotPolicySchedule { + this := SnapshotPolicySnapshotPolicySchedule{} + return &this +} + +// NewSnapshotPolicySnapshotPolicyScheduleWithDefaults instantiates a new SnapshotPolicySnapshotPolicySchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewSnapshotPolicySnapshotPolicyScheduleWithDefaults() *SnapshotPolicySnapshotPolicySchedule { + this := SnapshotPolicySnapshotPolicySchedule{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetCreatedAt() (res SnapshotPolicySnapshotPolicyScheduleGetCreatedAtRetType) { + res, _ = o.GetCreatedAtOk() + return +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetCreatedAtOk() (ret SnapshotPolicySnapshotPolicyScheduleGetCreatedAtRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeTypeOk(o.CreatedAt) +} + +// HasCreatedAt returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasCreatedAt() bool { + _, ok := o.GetCreatedAtOk() + return ok +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetCreatedAt(v SnapshotPolicySnapshotPolicyScheduleGetCreatedAtRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeType(&o.CreatedAt, v) +} + +// GetId returns the Id field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetId() (res SnapshotPolicySnapshotPolicyScheduleGetIdRetType) { + res, _ = o.GetIdOk() + return +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetIdOk() (ret SnapshotPolicySnapshotPolicyScheduleGetIdRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetIdAttributeTypeOk(o.Id) +} + +// HasId returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasId() bool { + _, ok := o.GetIdOk() + return ok +} + +// SetId gets a reference to the given string and assigns it to the Id field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetId(v SnapshotPolicySnapshotPolicyScheduleGetIdRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetIdAttributeType(&o.Id, v) +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetInterval() (res SnapshotPolicySnapshotPolicyScheduleGetIntervalRetType) { + res, _ = o.GetIntervalOk() + return +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetIntervalOk() (ret SnapshotPolicySnapshotPolicyScheduleGetIntervalRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeTypeOk(o.Interval) +} + +// HasInterval returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasInterval() bool { + _, ok := o.GetIntervalOk() + return ok +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetInterval(v SnapshotPolicySnapshotPolicyScheduleGetIntervalRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeType(&o.Interval, v) +} + +// GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetName() (res SnapshotPolicySnapshotPolicyScheduleGetNameRetType) { + res, _ = o.GetNameOk() + return +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetNameOk() (ret SnapshotPolicySnapshotPolicyScheduleGetNameRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetNameAttributeTypeOk(o.Name) +} + +// HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasName() bool { + _, ok := o.GetNameOk() + return ok +} + +// SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetName(v SnapshotPolicySnapshotPolicyScheduleGetNameRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetNameAttributeType(&o.Name, v) +} + +// GetPrefix returns the Prefix field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetPrefix() (res SnapshotPolicySnapshotPolicyScheduleGetPrefixRetType) { + res, _ = o.GetPrefixOk() + return +} + +// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetPrefixOk() (ret SnapshotPolicySnapshotPolicyScheduleGetPrefixRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeTypeOk(o.Prefix) +} + +// HasPrefix returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasPrefix() bool { + _, ok := o.GetPrefixOk() + return ok +} + +// SetPrefix gets a reference to the given string and assigns it to the Prefix field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetPrefix(v SnapshotPolicySnapshotPolicyScheduleGetPrefixRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeType(&o.Prefix, v) +} + +// GetRetentionCount returns the RetentionCount field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionCount() (res SnapshotPolicySnapshotPolicyScheduleGetRetentionCountRetType) { + res, _ = o.GetRetentionCountOk() + return +} + +// GetRetentionCountOk returns a tuple with the RetentionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionCountOk() (ret SnapshotPolicySnapshotPolicyScheduleGetRetentionCountRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeTypeOk(o.RetentionCount) +} + +// HasRetentionCount returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasRetentionCount() bool { + _, ok := o.GetRetentionCountOk() + return ok +} + +// SetRetentionCount gets a reference to the given int64 and assigns it to the RetentionCount field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetRetentionCount(v SnapshotPolicySnapshotPolicyScheduleGetRetentionCountRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeType(&o.RetentionCount, v) +} + +// GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionPeriod() (res SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodRetType) { + res, _ = o.GetRetentionPeriodOk() + return +} + +// GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionPeriodOk() (ret SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodRetType, ok bool) { + return getSnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeTypeOk(o.RetentionPeriod) +} + +// HasRetentionPeriod returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) HasRetentionPeriod() bool { + _, ok := o.GetRetentionPeriodOk() + return ok +} + +// SetRetentionPeriod gets a reference to the given string and assigns it to the RetentionPeriod field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o *SnapshotPolicySnapshotPolicySchedule) SetRetentionPeriod(v SnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodRetType) { + setSnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeType(&o.RetentionPeriod, v) +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (o SnapshotPolicySnapshotPolicySchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetCreatedAtAttributeTypeOk(o.CreatedAt); ok { + toSerialize["CreatedAt"] = val + } + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetIdAttributeTypeOk(o.Id); ok { + toSerialize["Id"] = val + } + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetIntervalAttributeTypeOk(o.Interval); ok { + toSerialize["Interval"] = val + } + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetNameAttributeTypeOk(o.Name); ok { + toSerialize["Name"] = val + } + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetPrefixAttributeTypeOk(o.Prefix); ok { + toSerialize["Prefix"] = val + } + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetRetentionCountAttributeTypeOk(o.RetentionCount); ok { + toSerialize["RetentionCount"] = val + } + if val, ok := getSnapshotPolicySnapshotPolicyScheduleGetRetentionPeriodAttributeTypeOk(o.RetentionPeriod); ok { + toSerialize["RetentionPeriod"] = val + } + return toSerialize, nil +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +type NullableSnapshotPolicySnapshotPolicySchedule struct { + value *SnapshotPolicySnapshotPolicySchedule + isSet bool +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableSnapshotPolicySnapshotPolicySchedule) Get() *SnapshotPolicySnapshotPolicySchedule { + return v.value +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableSnapshotPolicySnapshotPolicySchedule) Set(val *SnapshotPolicySnapshotPolicySchedule) { + v.value = val + v.isSet = true +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableSnapshotPolicySnapshotPolicySchedule) IsSet() bool { + return v.isSet +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableSnapshotPolicySnapshotPolicySchedule) Unset() { + v.value = nil + v.isSet = false +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func NewNullableSnapshotPolicySnapshotPolicySchedule(val *SnapshotPolicySnapshotPolicySchedule) *NullableSnapshotPolicySnapshotPolicySchedule { + return &NullableSnapshotPolicySnapshotPolicySchedule{value: val, isSet: true} +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v NullableSnapshotPolicySnapshotPolicySchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +func (v *NullableSnapshotPolicySnapshotPolicySchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/sfs/model_snapshot_policy_snapshot_policy_schedule_test.go b/services/sfs/model_snapshot_policy_snapshot_policy_schedule_test.go new file mode 100644 index 000000000..cddb93322 --- /dev/null +++ b/services/sfs/model_snapshot_policy_snapshot_policy_schedule_test.go @@ -0,0 +1,11 @@ +/* +STACKIT File Storage (SFS) + +API used to create and manage NFS Shares. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sfs diff --git a/services/sfs/oas_commit b/services/sfs/oas_commit index 51a174998..d95cb336f 100644 --- a/services/sfs/oas_commit +++ b/services/sfs/oas_commit @@ -1 +1 @@ -cf362a60f53ce793dd0da4517dd1c5056a8fc8c6 +57752d1e917248b5b47a9cefdeae49703477a6f2 diff --git a/services/sfs/v1api/model_snapshot_policy.go b/services/sfs/v1api/model_snapshot_policy.go index b14f32719..1cff6ae68 100644 --- a/services/sfs/v1api/model_snapshot_policy.go +++ b/services/sfs/v1api/model_snapshot_policy.go @@ -30,8 +30,11 @@ type SnapshotPolicy struct { Id *string `json:"id,omitempty"` // Name of the Snapshot Policy Name *string `json:"name,omitempty"` + // (deprecated) associated schedules + // Deprecated + Schedules []SnapshotPolicySchedule `json:"schedules,omitempty"` // associated schedules - Schedules []SnapshotPolicySchedule `json:"schedules,omitempty"` + SnapshotSchedules []SnapshotPolicySnapshotPolicySchedule `json:"snapshotSchedules,omitempty"` AdditionalProperties map[string]interface{} } @@ -215,6 +218,7 @@ func (o *SnapshotPolicy) SetName(v string) { } // GetSchedules returns the Schedules field value if set, zero value otherwise. +// Deprecated func (o *SnapshotPolicy) GetSchedules() []SnapshotPolicySchedule { if o == nil || IsNil(o.Schedules) { var ret []SnapshotPolicySchedule @@ -225,6 +229,7 @@ func (o *SnapshotPolicy) GetSchedules() []SnapshotPolicySchedule { // GetSchedulesOk returns a tuple with the Schedules field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *SnapshotPolicy) GetSchedulesOk() ([]SnapshotPolicySchedule, bool) { if o == nil || IsNil(o.Schedules) { return nil, false @@ -242,10 +247,43 @@ func (o *SnapshotPolicy) HasSchedules() bool { } // SetSchedules gets a reference to the given []SnapshotPolicySchedule and assigns it to the Schedules field. +// Deprecated func (o *SnapshotPolicy) SetSchedules(v []SnapshotPolicySchedule) { o.Schedules = v } +// GetSnapshotSchedules returns the SnapshotSchedules field value if set, zero value otherwise. +func (o *SnapshotPolicy) GetSnapshotSchedules() []SnapshotPolicySnapshotPolicySchedule { + if o == nil || IsNil(o.SnapshotSchedules) { + var ret []SnapshotPolicySnapshotPolicySchedule + return ret + } + return o.SnapshotSchedules +} + +// GetSnapshotSchedulesOk returns a tuple with the SnapshotSchedules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicy) GetSnapshotSchedulesOk() ([]SnapshotPolicySnapshotPolicySchedule, bool) { + if o == nil || IsNil(o.SnapshotSchedules) { + return nil, false + } + return o.SnapshotSchedules, true +} + +// HasSnapshotSchedules returns a boolean if a field has been set. +func (o *SnapshotPolicy) HasSnapshotSchedules() bool { + if o != nil && !IsNil(o.SnapshotSchedules) { + return true + } + + return false +} + +// SetSnapshotSchedules gets a reference to the given []SnapshotPolicySnapshotPolicySchedule and assigns it to the SnapshotSchedules field. +func (o *SnapshotPolicy) SetSnapshotSchedules(v []SnapshotPolicySnapshotPolicySchedule) { + o.SnapshotSchedules = v +} + func (o SnapshotPolicy) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -274,6 +312,9 @@ func (o SnapshotPolicy) ToMap() (map[string]interface{}, error) { if !IsNil(o.Schedules) { toSerialize["schedules"] = o.Schedules } + if !IsNil(o.SnapshotSchedules) { + toSerialize["snapshotSchedules"] = o.SnapshotSchedules + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -302,6 +343,7 @@ func (o *SnapshotPolicy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "name") delete(additionalProperties, "schedules") + delete(additionalProperties, "snapshotSchedules") o.AdditionalProperties = additionalProperties } diff --git a/services/sfs/v1api/model_snapshot_policy_schedule.go b/services/sfs/v1api/model_snapshot_policy_schedule.go index c5595e0d7..306236bd9 100644 --- a/services/sfs/v1api/model_snapshot_policy_schedule.go +++ b/services/sfs/v1api/model_snapshot_policy_schedule.go @@ -19,9 +19,15 @@ var _ MappedNullable = &SnapshotPolicySchedule{} // SnapshotPolicySchedule struct for SnapshotPolicySchedule type SnapshotPolicySchedule struct { - Count *int32 `json:"count,omitempty"` - Prefix *string `json:"prefix,omitempty"` - RetentionPeriod *string `json:"retentionPeriod,omitempty"` + // Retention Count + Count *int32 `json:"count,omitempty"` + // Interval of the Schedule (follows the cron schedule expression in Unix-like systems) + Interval *string `json:"interval,omitempty"` + // Prefix used for the snapshots created by this policy + Prefix *string `json:"prefix,omitempty"` + // Retention Period (ISO 8601 format or \"infinite\") + RetentionPeriod *string `json:"retentionPeriod,omitempty"` + // ID of the Schedule ScheduleId *string `json:"scheduleId,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,6 +83,38 @@ func (o *SnapshotPolicySchedule) SetCount(v int32) { o.Count = &v } +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *SnapshotPolicySchedule) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySchedule) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *SnapshotPolicySchedule) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *SnapshotPolicySchedule) SetInterval(v string) { + o.Interval = &v +} + // GetPrefix returns the Prefix field value if set, zero value otherwise. func (o *SnapshotPolicySchedule) GetPrefix() string { if o == nil || IsNil(o.Prefix) { @@ -186,6 +224,9 @@ func (o SnapshotPolicySchedule) ToMap() (map[string]interface{}, error) { if !IsNil(o.Count) { toSerialize["count"] = o.Count } + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } if !IsNil(o.Prefix) { toSerialize["prefix"] = o.Prefix } @@ -218,6 +259,7 @@ func (o *SnapshotPolicySchedule) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "count") + delete(additionalProperties, "interval") delete(additionalProperties, "prefix") delete(additionalProperties, "retentionPeriod") delete(additionalProperties, "scheduleId") diff --git a/services/sfs/v1api/model_snapshot_policy_snapshot_policy_schedule.go b/services/sfs/v1api/model_snapshot_policy_snapshot_policy_schedule.go new file mode 100644 index 000000000..20cd6d111 --- /dev/null +++ b/services/sfs/v1api/model_snapshot_policy_snapshot_policy_schedule.go @@ -0,0 +1,382 @@ +/* +STACKIT File Storage (SFS) + +API used to create and manage NFS Shares. + +API version: 1.0.0 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "time" +) + +// checks if the SnapshotPolicySnapshotPolicySchedule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotPolicySnapshotPolicySchedule{} + +// SnapshotPolicySnapshotPolicySchedule struct for SnapshotPolicySnapshotPolicySchedule +type SnapshotPolicySnapshotPolicySchedule struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + // ID of the Schedule + Id *string `json:"id,omitempty"` + // Interval of the Schedule (follows the cron schedule expression in Unix-like systems) + Interval *string `json:"interval,omitempty"` + // Name of the Schedule + Name *string `json:"name,omitempty"` + // Prefix used for the snapshots created by this policy + Prefix *string `json:"prefix,omitempty"` + // Retention Count + RetentionCount *int32 `json:"retentionCount,omitempty"` + // Retention Period (ISO 8601 format or \"infinite\") + RetentionPeriod *string `json:"retentionPeriod,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _SnapshotPolicySnapshotPolicySchedule SnapshotPolicySnapshotPolicySchedule + +// NewSnapshotPolicySnapshotPolicySchedule instantiates a new SnapshotPolicySnapshotPolicySchedule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSnapshotPolicySnapshotPolicySchedule() *SnapshotPolicySnapshotPolicySchedule { + this := SnapshotPolicySnapshotPolicySchedule{} + return &this +} + +// NewSnapshotPolicySnapshotPolicyScheduleWithDefaults instantiates a new SnapshotPolicySnapshotPolicySchedule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnapshotPolicySnapshotPolicyScheduleWithDefaults() *SnapshotPolicySnapshotPolicySchedule { + this := SnapshotPolicySnapshotPolicySchedule{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetId(v string) { + o.Id = &v +} + +// GetInterval returns the Interval field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetInterval() string { + if o == nil || IsNil(o.Interval) { + var ret string + return ret + } + return *o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetIntervalOk() (*string, bool) { + if o == nil || IsNil(o.Interval) { + return nil, false + } + return o.Interval, true +} + +// HasInterval returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasInterval() bool { + if o != nil && !IsNil(o.Interval) { + return true + } + + return false +} + +// SetInterval gets a reference to the given string and assigns it to the Interval field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetInterval(v string) { + o.Interval = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetName(v string) { + o.Name = &v +} + +// GetPrefix returns the Prefix field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetPrefix() string { + if o == nil || IsNil(o.Prefix) { + var ret string + return ret + } + return *o.Prefix +} + +// GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetPrefixOk() (*string, bool) { + if o == nil || IsNil(o.Prefix) { + return nil, false + } + return o.Prefix, true +} + +// HasPrefix returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasPrefix() bool { + if o != nil && !IsNil(o.Prefix) { + return true + } + + return false +} + +// SetPrefix gets a reference to the given string and assigns it to the Prefix field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetPrefix(v string) { + o.Prefix = &v +} + +// GetRetentionCount returns the RetentionCount field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionCount() int32 { + if o == nil || IsNil(o.RetentionCount) { + var ret int32 + return ret + } + return *o.RetentionCount +} + +// GetRetentionCountOk returns a tuple with the RetentionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionCountOk() (*int32, bool) { + if o == nil || IsNil(o.RetentionCount) { + return nil, false + } + return o.RetentionCount, true +} + +// HasRetentionCount returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasRetentionCount() bool { + if o != nil && !IsNil(o.RetentionCount) { + return true + } + + return false +} + +// SetRetentionCount gets a reference to the given int32 and assigns it to the RetentionCount field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetRetentionCount(v int32) { + o.RetentionCount = &v +} + +// GetRetentionPeriod returns the RetentionPeriod field value if set, zero value otherwise. +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionPeriod() string { + if o == nil || IsNil(o.RetentionPeriod) { + var ret string + return ret + } + return *o.RetentionPeriod +} + +// GetRetentionPeriodOk returns a tuple with the RetentionPeriod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) GetRetentionPeriodOk() (*string, bool) { + if o == nil || IsNil(o.RetentionPeriod) { + return nil, false + } + return o.RetentionPeriod, true +} + +// HasRetentionPeriod returns a boolean if a field has been set. +func (o *SnapshotPolicySnapshotPolicySchedule) HasRetentionPeriod() bool { + if o != nil && !IsNil(o.RetentionPeriod) { + return true + } + + return false +} + +// SetRetentionPeriod gets a reference to the given string and assigns it to the RetentionPeriod field. +func (o *SnapshotPolicySnapshotPolicySchedule) SetRetentionPeriod(v string) { + o.RetentionPeriod = &v +} + +func (o SnapshotPolicySnapshotPolicySchedule) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotPolicySnapshotPolicySchedule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Interval) { + toSerialize["interval"] = o.Interval + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Prefix) { + toSerialize["prefix"] = o.Prefix + } + if !IsNil(o.RetentionCount) { + toSerialize["retentionCount"] = o.RetentionCount + } + if !IsNil(o.RetentionPeriod) { + toSerialize["retentionPeriod"] = o.RetentionPeriod + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SnapshotPolicySnapshotPolicySchedule) UnmarshalJSON(data []byte) (err error) { + varSnapshotPolicySnapshotPolicySchedule := _SnapshotPolicySnapshotPolicySchedule{} + + err = json.Unmarshal(data, &varSnapshotPolicySnapshotPolicySchedule) + + if err != nil { + return err + } + + *o = SnapshotPolicySnapshotPolicySchedule(varSnapshotPolicySnapshotPolicySchedule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "createdAt") + delete(additionalProperties, "id") + delete(additionalProperties, "interval") + delete(additionalProperties, "name") + delete(additionalProperties, "prefix") + delete(additionalProperties, "retentionCount") + delete(additionalProperties, "retentionPeriod") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSnapshotPolicySnapshotPolicySchedule struct { + value *SnapshotPolicySnapshotPolicySchedule + isSet bool +} + +func (v NullableSnapshotPolicySnapshotPolicySchedule) Get() *SnapshotPolicySnapshotPolicySchedule { + return v.value +} + +func (v *NullableSnapshotPolicySnapshotPolicySchedule) Set(val *SnapshotPolicySnapshotPolicySchedule) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotPolicySnapshotPolicySchedule) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotPolicySnapshotPolicySchedule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotPolicySnapshotPolicySchedule(val *SnapshotPolicySnapshotPolicySchedule) *NullableSnapshotPolicySnapshotPolicySchedule { + return &NullableSnapshotPolicySnapshotPolicySchedule{value: val, isSet: true} +} + +func (v NullableSnapshotPolicySnapshotPolicySchedule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotPolicySnapshotPolicySchedule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} From 883eb4901e54407dfc10adc289888192e7675d8f Mon Sep 17 00:00:00 2001 From: Carlo Goetz Date: Mon, 27 Apr 2026 15:00:32 +0200 Subject: [PATCH 2/2] chore(sfs) write changelog, bump version --- CHANGELOG.md | 5 +++++ examples/sfs/go.mod | 2 +- examples/sfs/go.sum | 4 ++-- services/sfs/CHANGELOG.md | 6 ++++++ services/sfs/VERSION | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 545d0db93..53f986031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -314,6 +314,11 @@ - **Feature:** model `UpdateResourcePoolPayload` now has an additional field `snapshotPolicyId` - **Feature:** new models: `DisableLockResponse`, `EnableLockResponse`, `GetLockResponse`, `GetScheduleResponse`, `GetSnapshotPolicyResponse`, `ListSchedulesResponse`, `ListSnapshotPoliciesResponse`, `ResourcePoolSnapshotPolicy`, `Schedule`, `SnapshotPolicy`, `SnapshotPolicySchedule`, `UpdateResourcePoolSnapshotPayload`, `UpdateResourcePoolSnapshotResponse` - **Feature:** new operations: `UpdateResourcePoolSnapshot`, `ListSchedules`, `GetSchedule`, `ListSnapshotPolicies`, `GetSnapshotPolicy`, `DisableLock`, `GetLock`, `EnableLock`, + - [v0.9.0](services/sfs/CHANGELOG.md#v090) + - **Deprecation:** deprecated field `Schedules` in model `SnapshotPolicy` + - **Feature:** new field `SnapshotSchedules` in model `SnapshotPolicy` + - **Feature:** new field `Interval` in model `SnapshotPolicySchedule` + - **Feature:** new model `SnapshotPolicySnapshotPolicySchedule` - `ske`: - [v1.11.2](services/ske/CHANGELOG.md#v1112) - **Dependencies:** Bump STACKIT SDK core module from `v0.24.0` to `v0.24.1` diff --git a/examples/sfs/go.mod b/examples/sfs/go.mod index 62f461f4c..7c0d39d87 100644 --- a/examples/sfs/go.mod +++ b/examples/sfs/go.mod @@ -6,7 +6,7 @@ go 1.25 replace github.com/stackitcloud/stackit-sdk-go/services/sfs => ../../services/sfs require ( - github.com/stackitcloud/stackit-sdk-go/core v0.25.0 + github.com/stackitcloud/stackit-sdk-go/core v0.26.0 github.com/stackitcloud/stackit-sdk-go/services/sfs v0.6.3 ) diff --git a/examples/sfs/go.sum b/examples/sfs/go.sum index f66cfd445..3712a0c87 100644 --- a/examples/sfs/go.sum +++ b/examples/sfs/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.25.0 h1:ra3VEk684MNoq741g+xbZrKjZzhyztq5liUAwwew4DY= -github.com/stackitcloud/stackit-sdk-go/core v0.25.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA= +github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/sfs/CHANGELOG.md b/services/sfs/CHANGELOG.md index 8e1dcefa3..c38d3146f 100644 --- a/services/sfs/CHANGELOG.md +++ b/services/sfs/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.9.0 +- **Deprecation:** deprecated field `Schedules` in model `SnapshotPolicy` +- **Feature:** new field `SnapshotSchedules` in model `SnapshotPolicy` +- **Feature:** new field `Interval` in model `SnapshotPolicySchedule` +- **Feature:** new model `SnapshotPolicySnapshotPolicySchedule` + ## v0.8.0 - **Feature:** model `CreateResourcePoolPayload` now has an additional field `snapshotPolicyId` - **Feature:** model `CreateResourcePoolSnapshotPayload` now has an additional field `snaplockRetentionHours` diff --git a/services/sfs/VERSION b/services/sfs/VERSION index 4ea5cafac..7965b36d6 100644 --- a/services/sfs/VERSION +++ b/services/sfs/VERSION @@ -1 +1 @@ -v0.8.0 \ No newline at end of file +v0.9.0 \ No newline at end of file