From 1c0ba50668e1e4e75b82b8b8c054a2e809975564 Mon Sep 17 00:00:00 2001 From: "Marcel S. Henselin" Date: Tue, 30 Dec 2025 13:24:08 +0100 Subject: [PATCH] fix: add missing files --- ...tance_partially_request_payload_network.go | 177 ++++++++++++++++++ ..._partially_request_payload_network_test.go | 11 ++ 2 files changed, 188 insertions(+) create mode 100644 pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network.go create mode 100644 pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network_test.go diff --git a/pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network.go b/pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network.go new file mode 100644 index 00000000..cc750734 --- /dev/null +++ b/pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network.go @@ -0,0 +1,177 @@ +/* +STACKIT MSSQL Service API + +This is the documentation for the STACKIT MSSQL service + +API version: 3alpha1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sqlserverflexalpha + +import ( + "encoding/json" +) + +// checks if the UpdateInstancePartiallyRequestPayloadNetwork type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateInstancePartiallyRequestPayloadNetwork{} + +/* + types and functions for accessScope +*/ + +// isEnumRef +type UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType = *InstanceNetworkAccessScope +type UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeArgType = InstanceNetworkAccessScope +type UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType = InstanceNetworkAccessScope + +func getUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeTypeOk(arg UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType) (ret UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType(arg *UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType, val UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType) { + *arg = &val +} + +/* + types and functions for acl +*/ + +// isArray +type UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType = *[]string +type UpdateInstancePartiallyRequestPayloadNetworkGetAclArgType = []string +type UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType = []string + +func getUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeTypeOk(arg UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType) (ret UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType, ok bool) { + if arg == nil { + return ret, false + } + return *arg, true +} + +func setUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType(arg *UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType, val UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType) { + *arg = &val +} + +// UpdateInstancePartiallyRequestPayloadNetwork the network configuration of the instance. +type UpdateInstancePartiallyRequestPayloadNetwork struct { + AccessScope UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType `json:"accessScope,omitempty"` + // List of IPV4 cidr. + Acl UpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType `json:"acl,omitempty"` +} + +// NewUpdateInstancePartiallyRequestPayloadNetwork instantiates a new UpdateInstancePartiallyRequestPayloadNetwork 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 NewUpdateInstancePartiallyRequestPayloadNetwork() *UpdateInstancePartiallyRequestPayloadNetwork { + this := UpdateInstancePartiallyRequestPayloadNetwork{} + return &this +} + +// NewUpdateInstancePartiallyRequestPayloadNetworkWithDefaults instantiates a new UpdateInstancePartiallyRequestPayloadNetwork 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 NewUpdateInstancePartiallyRequestPayloadNetworkWithDefaults() *UpdateInstancePartiallyRequestPayloadNetwork { + this := UpdateInstancePartiallyRequestPayloadNetwork{} + var accessScope InstanceNetworkAccessScope = INSTANCENETWORKACCESSSCOPE_PUBLIC + this.AccessScope = &accessScope + return &this +} + +// GetAccessScope returns the AccessScope field value if set, zero value otherwise. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAccessScope() (res UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType) { + res, _ = o.GetAccessScopeOk() + return +} + +// GetAccessScopeOk returns a tuple with the AccessScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAccessScopeOk() (ret UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType, ok bool) { + return getUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeTypeOk(o.AccessScope) +} + +// HasAccessScope returns a boolean if a field has been set. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) HasAccessScope() bool { + _, ok := o.GetAccessScopeOk() + return ok +} + +// SetAccessScope gets a reference to the given InstanceNetworkAccessScope and assigns it to the AccessScope field. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) SetAccessScope(v UpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeRetType) { + setUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeType(&o.AccessScope, v) +} + +// GetAcl returns the Acl field value if set, zero value otherwise. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAcl() (res UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType) { + res, _ = o.GetAclOk() + return +} + +// GetAclOk returns a tuple with the Acl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) GetAclOk() (ret UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType, ok bool) { + return getUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeTypeOk(o.Acl) +} + +// HasAcl returns a boolean if a field has been set. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) HasAcl() bool { + _, ok := o.GetAclOk() + return ok +} + +// SetAcl gets a reference to the given []string and assigns it to the Acl field. +func (o *UpdateInstancePartiallyRequestPayloadNetwork) SetAcl(v UpdateInstancePartiallyRequestPayloadNetworkGetAclRetType) { + setUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeType(&o.Acl, v) +} + +func (o UpdateInstancePartiallyRequestPayloadNetwork) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if val, ok := getUpdateInstancePartiallyRequestPayloadNetworkGetAccessScopeAttributeTypeOk(o.AccessScope); ok { + toSerialize["AccessScope"] = val + } + if val, ok := getUpdateInstancePartiallyRequestPayloadNetworkGetAclAttributeTypeOk(o.Acl); ok { + toSerialize["Acl"] = val + } + return toSerialize, nil +} + +type NullableUpdateInstancePartiallyRequestPayloadNetwork struct { + value *UpdateInstancePartiallyRequestPayloadNetwork + isSet bool +} + +func (v NullableUpdateInstancePartiallyRequestPayloadNetwork) Get() *UpdateInstancePartiallyRequestPayloadNetwork { + return v.value +} + +func (v *NullableUpdateInstancePartiallyRequestPayloadNetwork) Set(val *UpdateInstancePartiallyRequestPayloadNetwork) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateInstancePartiallyRequestPayloadNetwork) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateInstancePartiallyRequestPayloadNetwork) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateInstancePartiallyRequestPayloadNetwork(val *UpdateInstancePartiallyRequestPayloadNetwork) *NullableUpdateInstancePartiallyRequestPayloadNetwork { + return &NullableUpdateInstancePartiallyRequestPayloadNetwork{value: val, isSet: true} +} + +func (v NullableUpdateInstancePartiallyRequestPayloadNetwork) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateInstancePartiallyRequestPayloadNetwork) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network_test.go b/pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network_test.go new file mode 100644 index 00000000..f551e1f0 --- /dev/null +++ b/pkg/sqlserverflexalpha/model_update_instance_partially_request_payload_network_test.go @@ -0,0 +1,11 @@ +/* +STACKIT MSSQL Service API + +This is the documentation for the STACKIT MSSQL service + +API version: 3alpha1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package sqlserverflexalpha