chore: work save

This commit is contained in:
Marcel S. Henselin 2026-01-29 10:05:13 +01:00
parent 3e3f13d36d
commit 9752d63f7e
19 changed files with 1003 additions and 209 deletions

View file

@ -37,6 +37,26 @@ func setConnectionRequestgetEnabledAttributeType(arg *ConnectionRequestgetEnable
*arg = &val
}
/*
types and functions for labels
*/
// isContainer
type ConnectionRequestGetLabelsAttributeType = *map[string]string
type ConnectionRequestGetLabelsArgType = map[string]string
type ConnectionRequestGetLabelsRetType = map[string]string
func getConnectionRequestGetLabelsAttributeTypeOk(arg ConnectionRequestGetLabelsAttributeType) (ret ConnectionRequestGetLabelsRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setConnectionRequestGetLabelsAttributeType(arg *ConnectionRequestGetLabelsAttributeType, val ConnectionRequestGetLabelsRetType) {
*arg = &val
}
/*
types and functions for localSubnets
*/
@ -142,6 +162,8 @@ func setConnectionRequestGetTunnel2AttributeType(arg *ConnectionRequestGetTunnel
type ConnectionRequest struct {
// This flag decides whether this connection should be enabled or disabled
Enabled ConnectionRequestgetEnabledAttributeType `json:"enabled,omitempty"`
// Map of custom labels. Key and values must be max 63 chars, start/end with alphanumeric.
Labels ConnectionRequestGetLabelsAttributeType `json:"labels,omitempty"`
// List of local subnets (IPv4 CIDR).
// REQUIRED
LocalSubnets ConnectionRequestGetLocalSubnetsAttributeType `json:"localSubnets" required:"true"`
@ -204,6 +226,29 @@ func (o *ConnectionRequest) SetEnabled(v ConnectionRequestgetEnabledRetType) {
setConnectionRequestgetEnabledAttributeType(&o.Enabled, v)
}
// GetLabels returns the Labels field value if set, zero value otherwise.
func (o *ConnectionRequest) GetLabels() (res ConnectionRequestGetLabelsRetType) {
res, _ = o.GetLabelsOk()
return
}
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ConnectionRequest) GetLabelsOk() (ret ConnectionRequestGetLabelsRetType, ok bool) {
return getConnectionRequestGetLabelsAttributeTypeOk(o.Labels)
}
// HasLabels returns a boolean if a field has been set.
func (o *ConnectionRequest) HasLabels() bool {
_, ok := o.GetLabelsOk()
return ok
}
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
func (o *ConnectionRequest) SetLabels(v ConnectionRequestGetLabelsRetType) {
setConnectionRequestGetLabelsAttributeType(&o.Labels, v)
}
// GetLocalSubnets returns the LocalSubnets field value
func (o *ConnectionRequest) GetLocalSubnets() (ret ConnectionRequestGetLocalSubnetsRetType) {
ret, _ = o.GetLocalSubnetsOk()
@ -294,6 +339,9 @@ func (o ConnectionRequest) ToMap() (map[string]interface{}, error) {
if val, ok := getConnectionRequestgetEnabledAttributeTypeOk(o.Enabled); ok {
toSerialize["Enabled"] = val
}
if val, ok := getConnectionRequestGetLabelsAttributeTypeOk(o.Labels); ok {
toSerialize["Labels"] = val
}
if val, ok := getConnectionRequestGetLocalSubnetsAttributeTypeOk(o.LocalSubnets); ok {
toSerialize["LocalSubnets"] = val
}