diff --git a/services/vpn/go.mod b/services/vpn/go.mod index 6fdb7111a..1edc89619 100644 --- a/services/vpn/go.mod +++ b/services/vpn/go.mod @@ -4,7 +4,7 @@ go 1.25 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.26.0 + github.com/stackitcloud/stackit-sdk-go/core v0.27.0 ) require ( diff --git a/services/vpn/go.sum b/services/vpn/go.sum index 3712a0c87..042f4a71a 100644 --- a/services/vpn/go.sum +++ b/services/vpn/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.26.0 h1:jQEb9gkehfp6VCP6TcYk7BI10cz4l0KM2L6hqYBH2QA= -github.com/stackitcloud/stackit-sdk-go/core v0.26.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= +github.com/stackitcloud/stackit-sdk-go/core v0.27.0 h1:7lc6qStcFDFf8zHP4ORPa9joybw+Sa2LtB6BVjKQ+ek= +github.com/stackitcloud/stackit-sdk-go/core v0.27.0/go.mod h1:WU1hhxnjXw2EV7CYa1nlEvNpMiRY6CvmIOaHuL3pOaA= diff --git a/services/vpn/oas_commit b/services/vpn/oas_commit index 739d7a10c..5542f81cd 100644 --- a/services/vpn/oas_commit +++ b/services/vpn/oas_commit @@ -1 +1 @@ -d3401e53c9d91a6d95564111fc34bc9d341ef4e6 +1ecc5ee263a36af12f8c9314dbed780cabe4deb2 diff --git a/services/vpn/v1alpha1api/model_asn_not.go b/services/vpn/v1alpha1api/model_asn_not.go new file mode 100644 index 000000000..d3b28d591 --- /dev/null +++ b/services/vpn/v1alpha1api/model_asn_not.go @@ -0,0 +1,113 @@ +/* +STACKIT VPN API + +Provision and manage STACKIT VPN gateways. Use this API to establish secure, encrypted IPsec tunnels between your STACKIT Network Area (SNA) and external networks. The service supports the following routing architectures: - Policy-based IPsec - Static route-based IPsec - Dynamic BGP IPsec + +API version: 1alpha1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1alpha1api + +import ( + "encoding/json" + "fmt" +) + +// ASNNot the model 'ASNNot' +type ASNNot float32 + +// List of ASN_not +const ( + ASNNOT__23456 ASNNot = 23456 + ASNNOT__65535 ASNNot = 65535 + ASNNOT__unknown_default_open_api ASNNot = 11184809 +) + +// All allowed values of ASNNot enum +var AllowedASNNotEnumValues = []ASNNot{ + 23456, + 65535, + 11184809, +} + +func (v *ASNNot) UnmarshalJSON(src []byte) error { + var value float32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ASNNot(value) + for _, existing := range AllowedASNNotEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = ASNNOT__unknown_default_open_api + return nil +} + +// NewASNNotFromValue returns a pointer to a valid ASNNot +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewASNNotFromValue(v float32) (*ASNNot, error) { + ev := ASNNot(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ASNNot: valid values are %v", v, AllowedASNNotEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ASNNot) IsValid() bool { + for _, existing := range AllowedASNNotEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ASN_not value +func (v ASNNot) Ptr() *ASNNot { + return &v +} + +type NullableASNNot struct { + value *ASNNot + isSet bool +} + +func (v NullableASNNot) Get() *ASNNot { + return v.value +} + +func (v *NullableASNNot) Set(val *ASNNot) { + v.value = val + v.isSet = true +} + +func (v NullableASNNot) IsSet() bool { + return v.isSet +} + +func (v *NullableASNNot) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableASNNot(val *ASNNot) *NullableASNNot { + return &NullableASNNot{value: val, isSet: true} +} + +func (v NullableASNNot) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableASNNot) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/vpn/v1alpha1api/model_bgp_tunnel_config.go b/services/vpn/v1alpha1api/model_bgp_tunnel_config.go index c7f7ade57..27ba0b04d 100644 --- a/services/vpn/v1alpha1api/model_bgp_tunnel_config.go +++ b/services/vpn/v1alpha1api/model_bgp_tunnel_config.go @@ -20,7 +20,7 @@ var _ MappedNullable = &BGPTunnelConfig{} // BGPTunnelConfig struct for BGPTunnelConfig type BGPTunnelConfig struct { - // ASN for private use (reserved by IANA), both 16Bit and 32Bit ranges are valid (RFC 6996). + // Number of an Autonomous System. Both 16Bit and 32Bit ranges are supported, excluding values reserved by: * RFC 7607 (0) * RFC 6793 (23456, AS_TRANS) * RFC 7300 (65535 and 4294967295, the \"Last ASNs\") RemoteAsn int64 `json:"remoteAsn"` AdditionalProperties map[string]interface{} } diff --git a/services/vpn/v1api/model_asn_not.go b/services/vpn/v1api/model_asn_not.go new file mode 100644 index 000000000..cd714fd6e --- /dev/null +++ b/services/vpn/v1api/model_asn_not.go @@ -0,0 +1,113 @@ +/* +STACKIT VPN API + +Provision and manage STACKIT VPN gateways. Use this API to establish secure, encrypted IPsec tunnels between your STACKIT Network Area (SNA) and external networks. The service supports the following routing architectures: - Policy-based IPsec - Static route-based IPsec - Dynamic BGP IPsec + +API version: 1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" + "fmt" +) + +// ASNNot the model 'ASNNot' +type ASNNot float32 + +// List of ASN_not +const ( + ASNNOT__23456 ASNNot = 23456 + ASNNOT__65535 ASNNot = 65535 + ASNNOT__unknown_default_open_api ASNNot = 11184809 +) + +// All allowed values of ASNNot enum +var AllowedASNNotEnumValues = []ASNNot{ + 23456, + 65535, + 11184809, +} + +func (v *ASNNot) UnmarshalJSON(src []byte) error { + var value float32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ASNNot(value) + for _, existing := range AllowedASNNotEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = ASNNOT__unknown_default_open_api + return nil +} + +// NewASNNotFromValue returns a pointer to a valid ASNNot +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewASNNotFromValue(v float32) (*ASNNot, error) { + ev := ASNNot(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ASNNot: valid values are %v", v, AllowedASNNotEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ASNNot) IsValid() bool { + for _, existing := range AllowedASNNotEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ASN_not value +func (v ASNNot) Ptr() *ASNNot { + return &v +} + +type NullableASNNot struct { + value *ASNNot + isSet bool +} + +func (v NullableASNNot) Get() *ASNNot { + return v.value +} + +func (v *NullableASNNot) Set(val *ASNNot) { + v.value = val + v.isSet = true +} + +func (v NullableASNNot) IsSet() bool { + return v.isSet +} + +func (v *NullableASNNot) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableASNNot(val *ASNNot) *NullableASNNot { + return &NullableASNNot{value: val, isSet: true} +} + +func (v NullableASNNot) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableASNNot) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/vpn/v1api/model_bgp_tunnel_config.go b/services/vpn/v1api/model_bgp_tunnel_config.go index 5859506ec..fc259e129 100644 --- a/services/vpn/v1api/model_bgp_tunnel_config.go +++ b/services/vpn/v1api/model_bgp_tunnel_config.go @@ -22,7 +22,7 @@ var _ MappedNullable = &BGPTunnelConfig{} type BGPTunnelConfig struct { // UUID of the BGPFilter to apply to incoming routes from this tunnel's BGP neighbor. The filter must exist in the same gateway. Multiple tunnels may reference the same BGPFilter; in that case the rules' 'match.peer' field can be used to scope behavior per neighbor. Outbound filtering is not yet supported; use gateway.bgp.overrideAdvertisedRoutes to control what is advertised. InboundFilterId NullableString `json:"inboundFilterId,omitempty"` - // ASN for private use (reserved by IANA), both 16Bit and 32Bit ranges are valid (RFC 6996). + // Number of an Autonomous System. Both 16Bit and 32Bit ranges are supported, excluding values reserved by: * RFC 7607 (0) * RFC 6793 (23456, AS_TRANS) * RFC 7300 (65535 and 4294967295, the \"Last ASNs\") RemoteAsn int64 `json:"remoteAsn"` AdditionalProperties map[string]interface{} } diff --git a/services/vpn/v1beta1api/model_asn_not.go b/services/vpn/v1beta1api/model_asn_not.go new file mode 100644 index 000000000..3e00d36a4 --- /dev/null +++ b/services/vpn/v1beta1api/model_asn_not.go @@ -0,0 +1,113 @@ +/* +STACKIT VPN API + +Provision and manage STACKIT VPN gateways. Use this API to establish secure, encrypted IPsec tunnels between your STACKIT Network Area (SNA) and external networks. The service supports the following routing architectures: - Policy-based IPsec - Static route-based IPsec - Dynamic BGP IPsec + +API version: 1beta1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1beta1api + +import ( + "encoding/json" + "fmt" +) + +// ASNNot the model 'ASNNot' +type ASNNot float32 + +// List of ASN_not +const ( + ASNNOT__23456 ASNNot = 23456 + ASNNOT__65535 ASNNot = 65535 + ASNNOT__unknown_default_open_api ASNNot = 11184809 +) + +// All allowed values of ASNNot enum +var AllowedASNNotEnumValues = []ASNNot{ + 23456, + 65535, + 11184809, +} + +func (v *ASNNot) UnmarshalJSON(src []byte) error { + var value float32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ASNNot(value) + for _, existing := range AllowedASNNotEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + *v = ASNNOT__unknown_default_open_api + return nil +} + +// NewASNNotFromValue returns a pointer to a valid ASNNot +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewASNNotFromValue(v float32) (*ASNNot, error) { + ev := ASNNot(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ASNNot: valid values are %v", v, AllowedASNNotEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ASNNot) IsValid() bool { + for _, existing := range AllowedASNNotEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ASN_not value +func (v ASNNot) Ptr() *ASNNot { + return &v +} + +type NullableASNNot struct { + value *ASNNot + isSet bool +} + +func (v NullableASNNot) Get() *ASNNot { + return v.value +} + +func (v *NullableASNNot) Set(val *ASNNot) { + v.value = val + v.isSet = true +} + +func (v NullableASNNot) IsSet() bool { + return v.isSet +} + +func (v *NullableASNNot) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableASNNot(val *ASNNot) *NullableASNNot { + return &NullableASNNot{value: val, isSet: true} +} + +func (v NullableASNNot) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableASNNot) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/vpn/v1beta1api/model_bgp_tunnel_config.go b/services/vpn/v1beta1api/model_bgp_tunnel_config.go index 9cad9160f..3a1f31894 100644 --- a/services/vpn/v1beta1api/model_bgp_tunnel_config.go +++ b/services/vpn/v1beta1api/model_bgp_tunnel_config.go @@ -20,7 +20,7 @@ var _ MappedNullable = &BGPTunnelConfig{} // BGPTunnelConfig struct for BGPTunnelConfig type BGPTunnelConfig struct { - // ASN for private use (reserved by IANA), both 16Bit and 32Bit ranges are valid (RFC 6996). + // Number of an Autonomous System. Both 16Bit and 32Bit ranges are supported, excluding values reserved by: * RFC 7607 (0) * RFC 6793 (23456, AS_TRANS) * RFC 7300 (65535 and 4294967295, the \"Last ASNs\") RemoteAsn int64 `json:"remoteAsn"` AdditionalProperties map[string]interface{} }