feat: generating code
This commit is contained in:
parent
c329d58970
commit
51663cd8d0
1221 changed files with 271709 additions and 2444 deletions
549
pkg/iaasbeta/model_server_network.go
Normal file
549
pkg/iaasbeta/model_server_network.go
Normal file
|
|
@ -0,0 +1,549 @@
|
|||
/*
|
||||
STACKIT IaaS API
|
||||
|
||||
This API allows you to create and modify IaaS resources.
|
||||
|
||||
API version: 2beta1
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package iaasbeta
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the ServerNetwork type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &ServerNetwork{}
|
||||
|
||||
/*
|
||||
types and functions for allowedAddresses
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ServerNetworkGetAllowedAddressesAttributeType = *[]AllowedAddressesInner
|
||||
type ServerNetworkGetAllowedAddressesArgType = []AllowedAddressesInner
|
||||
type ServerNetworkGetAllowedAddressesRetType = []AllowedAddressesInner
|
||||
|
||||
func getServerNetworkGetAllowedAddressesAttributeTypeOk(arg ServerNetworkGetAllowedAddressesAttributeType) (ret ServerNetworkGetAllowedAddressesRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetAllowedAddressesAttributeType(arg *ServerNetworkGetAllowedAddressesAttributeType, val ServerNetworkGetAllowedAddressesRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for ipv4
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetIpv4AttributeType = *string
|
||||
|
||||
func getServerNetworkGetIpv4AttributeTypeOk(arg ServerNetworkGetIpv4AttributeType) (ret ServerNetworkGetIpv4RetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetIpv4AttributeType(arg *ServerNetworkGetIpv4AttributeType, val ServerNetworkGetIpv4RetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetIpv4ArgType = string
|
||||
type ServerNetworkGetIpv4RetType = string
|
||||
|
||||
/*
|
||||
types and functions for ipv6
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetIpv6AttributeType = *string
|
||||
|
||||
func getServerNetworkGetIpv6AttributeTypeOk(arg ServerNetworkGetIpv6AttributeType) (ret ServerNetworkGetIpv6RetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetIpv6AttributeType(arg *ServerNetworkGetIpv6AttributeType, val ServerNetworkGetIpv6RetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetIpv6ArgType = string
|
||||
type ServerNetworkGetIpv6RetType = string
|
||||
|
||||
/*
|
||||
types and functions for mac
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetMacAttributeType = *string
|
||||
|
||||
func getServerNetworkGetMacAttributeTypeOk(arg ServerNetworkGetMacAttributeType) (ret ServerNetworkGetMacRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetMacAttributeType(arg *ServerNetworkGetMacAttributeType, val ServerNetworkGetMacRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetMacArgType = string
|
||||
type ServerNetworkGetMacRetType = string
|
||||
|
||||
/*
|
||||
types and functions for networkId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetNetworkIdAttributeType = *string
|
||||
|
||||
func getServerNetworkGetNetworkIdAttributeTypeOk(arg ServerNetworkGetNetworkIdAttributeType) (ret ServerNetworkGetNetworkIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetNetworkIdAttributeType(arg *ServerNetworkGetNetworkIdAttributeType, val ServerNetworkGetNetworkIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetNetworkIdArgType = string
|
||||
type ServerNetworkGetNetworkIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for networkName
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetNetworkNameAttributeType = *string
|
||||
|
||||
func getServerNetworkGetNetworkNameAttributeTypeOk(arg ServerNetworkGetNetworkNameAttributeType) (ret ServerNetworkGetNetworkNameRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetNetworkNameAttributeType(arg *ServerNetworkGetNetworkNameAttributeType, val ServerNetworkGetNetworkNameRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetNetworkNameArgType = string
|
||||
type ServerNetworkGetNetworkNameRetType = string
|
||||
|
||||
/*
|
||||
types and functions for nicId
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetNicIdAttributeType = *string
|
||||
|
||||
func getServerNetworkGetNicIdAttributeTypeOk(arg ServerNetworkGetNicIdAttributeType) (ret ServerNetworkGetNicIdRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetNicIdAttributeType(arg *ServerNetworkGetNicIdAttributeType, val ServerNetworkGetNicIdRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetNicIdArgType = string
|
||||
type ServerNetworkGetNicIdRetType = string
|
||||
|
||||
/*
|
||||
types and functions for nicSecurity
|
||||
*/
|
||||
|
||||
// isBoolean
|
||||
type ServerNetworkgetNicSecurityAttributeType = *bool
|
||||
type ServerNetworkgetNicSecurityArgType = bool
|
||||
type ServerNetworkgetNicSecurityRetType = bool
|
||||
|
||||
func getServerNetworkgetNicSecurityAttributeTypeOk(arg ServerNetworkgetNicSecurityAttributeType) (ret ServerNetworkgetNicSecurityRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkgetNicSecurityAttributeType(arg *ServerNetworkgetNicSecurityAttributeType, val ServerNetworkgetNicSecurityRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
/*
|
||||
types and functions for publicIp
|
||||
*/
|
||||
|
||||
// isNotNullableString
|
||||
type ServerNetworkGetPublicIpAttributeType = *string
|
||||
|
||||
func getServerNetworkGetPublicIpAttributeTypeOk(arg ServerNetworkGetPublicIpAttributeType) (ret ServerNetworkGetPublicIpRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetPublicIpAttributeType(arg *ServerNetworkGetPublicIpAttributeType, val ServerNetworkGetPublicIpRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
type ServerNetworkGetPublicIpArgType = string
|
||||
type ServerNetworkGetPublicIpRetType = string
|
||||
|
||||
/*
|
||||
types and functions for securityGroups
|
||||
*/
|
||||
|
||||
// isArray
|
||||
type ServerNetworkGetSecurityGroupsAttributeType = *[]string
|
||||
type ServerNetworkGetSecurityGroupsArgType = []string
|
||||
type ServerNetworkGetSecurityGroupsRetType = []string
|
||||
|
||||
func getServerNetworkGetSecurityGroupsAttributeTypeOk(arg ServerNetworkGetSecurityGroupsAttributeType) (ret ServerNetworkGetSecurityGroupsRetType, ok bool) {
|
||||
if arg == nil {
|
||||
return ret, false
|
||||
}
|
||||
return *arg, true
|
||||
}
|
||||
|
||||
func setServerNetworkGetSecurityGroupsAttributeType(arg *ServerNetworkGetSecurityGroupsAttributeType, val ServerNetworkGetSecurityGroupsRetType) {
|
||||
*arg = &val
|
||||
}
|
||||
|
||||
// ServerNetwork Describes the object that matches servers to its networks.
|
||||
type ServerNetwork struct {
|
||||
// A list of IPs or CIDR notations.
|
||||
AllowedAddresses ServerNetworkGetAllowedAddressesAttributeType `json:"allowedAddresses,omitempty"`
|
||||
// Object that represents an IP address.
|
||||
Ipv4 ServerNetworkGetIpv4AttributeType `json:"ipv4,omitempty"`
|
||||
// String that represents an IPv6 address.
|
||||
Ipv6 ServerNetworkGetIpv6AttributeType `json:"ipv6,omitempty"`
|
||||
// Object that represents an MAC address.
|
||||
// REQUIRED
|
||||
Mac ServerNetworkGetMacAttributeType `json:"mac" required:"true"`
|
||||
// Universally Unique Identifier (UUID).
|
||||
// REQUIRED
|
||||
NetworkId ServerNetworkGetNetworkIdAttributeType `json:"networkId" required:"true"`
|
||||
// The name for a General Object. Matches Names and also UUIDs.
|
||||
// REQUIRED
|
||||
NetworkName ServerNetworkGetNetworkNameAttributeType `json:"networkName" required:"true"`
|
||||
// Universally Unique Identifier (UUID).
|
||||
// REQUIRED
|
||||
NicId ServerNetworkGetNicIdAttributeType `json:"nicId" required:"true"`
|
||||
// If this is set to false, then no security groups will apply to this server network interface.
|
||||
// REQUIRED
|
||||
NicSecurity ServerNetworkgetNicSecurityAttributeType `json:"nicSecurity" required:"true"`
|
||||
// Object that represents an IP address.
|
||||
PublicIp ServerNetworkGetPublicIpAttributeType `json:"publicIp,omitempty"`
|
||||
// A list of UUIDs.
|
||||
SecurityGroups ServerNetworkGetSecurityGroupsAttributeType `json:"securityGroups,omitempty"`
|
||||
}
|
||||
|
||||
type _ServerNetwork ServerNetwork
|
||||
|
||||
// NewServerNetwork instantiates a new ServerNetwork 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 NewServerNetwork(mac ServerNetworkGetMacArgType, networkId ServerNetworkGetNetworkIdArgType, networkName ServerNetworkGetNetworkNameArgType, nicId ServerNetworkGetNicIdArgType, nicSecurity ServerNetworkgetNicSecurityArgType) *ServerNetwork {
|
||||
this := ServerNetwork{}
|
||||
setServerNetworkGetMacAttributeType(&this.Mac, mac)
|
||||
setServerNetworkGetNetworkIdAttributeType(&this.NetworkId, networkId)
|
||||
setServerNetworkGetNetworkNameAttributeType(&this.NetworkName, networkName)
|
||||
setServerNetworkGetNicIdAttributeType(&this.NicId, nicId)
|
||||
setServerNetworkgetNicSecurityAttributeType(&this.NicSecurity, nicSecurity)
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewServerNetworkWithDefaults instantiates a new ServerNetwork 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 NewServerNetworkWithDefaults() *ServerNetwork {
|
||||
this := ServerNetwork{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAllowedAddresses returns the AllowedAddresses field value if set, zero value otherwise.
|
||||
func (o *ServerNetwork) GetAllowedAddresses() (res ServerNetworkGetAllowedAddressesRetType) {
|
||||
res, _ = o.GetAllowedAddressesOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetAllowedAddressesOk returns a tuple with the AllowedAddresses field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetAllowedAddressesOk() (ret ServerNetworkGetAllowedAddressesRetType, ok bool) {
|
||||
return getServerNetworkGetAllowedAddressesAttributeTypeOk(o.AllowedAddresses)
|
||||
}
|
||||
|
||||
// HasAllowedAddresses returns a boolean if a field has been set.
|
||||
func (o *ServerNetwork) HasAllowedAddresses() bool {
|
||||
_, ok := o.GetAllowedAddressesOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetAllowedAddresses gets a reference to the given []AllowedAddressesInner and assigns it to the AllowedAddresses field.
|
||||
func (o *ServerNetwork) SetAllowedAddresses(v ServerNetworkGetAllowedAddressesRetType) {
|
||||
setServerNetworkGetAllowedAddressesAttributeType(&o.AllowedAddresses, v)
|
||||
}
|
||||
|
||||
// GetIpv4 returns the Ipv4 field value if set, zero value otherwise.
|
||||
func (o *ServerNetwork) GetIpv4() (res ServerNetworkGetIpv4RetType) {
|
||||
res, _ = o.GetIpv4Ok()
|
||||
return
|
||||
}
|
||||
|
||||
// GetIpv4Ok returns a tuple with the Ipv4 field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetIpv4Ok() (ret ServerNetworkGetIpv4RetType, ok bool) {
|
||||
return getServerNetworkGetIpv4AttributeTypeOk(o.Ipv4)
|
||||
}
|
||||
|
||||
// HasIpv4 returns a boolean if a field has been set.
|
||||
func (o *ServerNetwork) HasIpv4() bool {
|
||||
_, ok := o.GetIpv4Ok()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetIpv4 gets a reference to the given string and assigns it to the Ipv4 field.
|
||||
func (o *ServerNetwork) SetIpv4(v ServerNetworkGetIpv4RetType) {
|
||||
setServerNetworkGetIpv4AttributeType(&o.Ipv4, v)
|
||||
}
|
||||
|
||||
// GetIpv6 returns the Ipv6 field value if set, zero value otherwise.
|
||||
func (o *ServerNetwork) GetIpv6() (res ServerNetworkGetIpv6RetType) {
|
||||
res, _ = o.GetIpv6Ok()
|
||||
return
|
||||
}
|
||||
|
||||
// GetIpv6Ok returns a tuple with the Ipv6 field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetIpv6Ok() (ret ServerNetworkGetIpv6RetType, ok bool) {
|
||||
return getServerNetworkGetIpv6AttributeTypeOk(o.Ipv6)
|
||||
}
|
||||
|
||||
// HasIpv6 returns a boolean if a field has been set.
|
||||
func (o *ServerNetwork) HasIpv6() bool {
|
||||
_, ok := o.GetIpv6Ok()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetIpv6 gets a reference to the given string and assigns it to the Ipv6 field.
|
||||
func (o *ServerNetwork) SetIpv6(v ServerNetworkGetIpv6RetType) {
|
||||
setServerNetworkGetIpv6AttributeType(&o.Ipv6, v)
|
||||
}
|
||||
|
||||
// GetMac returns the Mac field value
|
||||
func (o *ServerNetwork) GetMac() (ret ServerNetworkGetMacRetType) {
|
||||
ret, _ = o.GetMacOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetMacOk returns a tuple with the Mac field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetMacOk() (ret ServerNetworkGetMacRetType, ok bool) {
|
||||
return getServerNetworkGetMacAttributeTypeOk(o.Mac)
|
||||
}
|
||||
|
||||
// SetMac sets field value
|
||||
func (o *ServerNetwork) SetMac(v ServerNetworkGetMacRetType) {
|
||||
setServerNetworkGetMacAttributeType(&o.Mac, v)
|
||||
}
|
||||
|
||||
// GetNetworkId returns the NetworkId field value
|
||||
func (o *ServerNetwork) GetNetworkId() (ret ServerNetworkGetNetworkIdRetType) {
|
||||
ret, _ = o.GetNetworkIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNetworkIdOk returns a tuple with the NetworkId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetNetworkIdOk() (ret ServerNetworkGetNetworkIdRetType, ok bool) {
|
||||
return getServerNetworkGetNetworkIdAttributeTypeOk(o.NetworkId)
|
||||
}
|
||||
|
||||
// SetNetworkId sets field value
|
||||
func (o *ServerNetwork) SetNetworkId(v ServerNetworkGetNetworkIdRetType) {
|
||||
setServerNetworkGetNetworkIdAttributeType(&o.NetworkId, v)
|
||||
}
|
||||
|
||||
// GetNetworkName returns the NetworkName field value
|
||||
func (o *ServerNetwork) GetNetworkName() (ret ServerNetworkGetNetworkNameRetType) {
|
||||
ret, _ = o.GetNetworkNameOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNetworkNameOk returns a tuple with the NetworkName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetNetworkNameOk() (ret ServerNetworkGetNetworkNameRetType, ok bool) {
|
||||
return getServerNetworkGetNetworkNameAttributeTypeOk(o.NetworkName)
|
||||
}
|
||||
|
||||
// SetNetworkName sets field value
|
||||
func (o *ServerNetwork) SetNetworkName(v ServerNetworkGetNetworkNameRetType) {
|
||||
setServerNetworkGetNetworkNameAttributeType(&o.NetworkName, v)
|
||||
}
|
||||
|
||||
// GetNicId returns the NicId field value
|
||||
func (o *ServerNetwork) GetNicId() (ret ServerNetworkGetNicIdRetType) {
|
||||
ret, _ = o.GetNicIdOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNicIdOk returns a tuple with the NicId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetNicIdOk() (ret ServerNetworkGetNicIdRetType, ok bool) {
|
||||
return getServerNetworkGetNicIdAttributeTypeOk(o.NicId)
|
||||
}
|
||||
|
||||
// SetNicId sets field value
|
||||
func (o *ServerNetwork) SetNicId(v ServerNetworkGetNicIdRetType) {
|
||||
setServerNetworkGetNicIdAttributeType(&o.NicId, v)
|
||||
}
|
||||
|
||||
// GetNicSecurity returns the NicSecurity field value
|
||||
func (o *ServerNetwork) GetNicSecurity() (ret ServerNetworkgetNicSecurityRetType) {
|
||||
ret, _ = o.GetNicSecurityOk()
|
||||
return ret
|
||||
}
|
||||
|
||||
// GetNicSecurityOk returns a tuple with the NicSecurity field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetNicSecurityOk() (ret ServerNetworkgetNicSecurityRetType, ok bool) {
|
||||
return getServerNetworkgetNicSecurityAttributeTypeOk(o.NicSecurity)
|
||||
}
|
||||
|
||||
// SetNicSecurity sets field value
|
||||
func (o *ServerNetwork) SetNicSecurity(v ServerNetworkgetNicSecurityRetType) {
|
||||
setServerNetworkgetNicSecurityAttributeType(&o.NicSecurity, v)
|
||||
}
|
||||
|
||||
// GetPublicIp returns the PublicIp field value if set, zero value otherwise.
|
||||
func (o *ServerNetwork) GetPublicIp() (res ServerNetworkGetPublicIpRetType) {
|
||||
res, _ = o.GetPublicIpOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetPublicIpOk returns a tuple with the PublicIp field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetPublicIpOk() (ret ServerNetworkGetPublicIpRetType, ok bool) {
|
||||
return getServerNetworkGetPublicIpAttributeTypeOk(o.PublicIp)
|
||||
}
|
||||
|
||||
// HasPublicIp returns a boolean if a field has been set.
|
||||
func (o *ServerNetwork) HasPublicIp() bool {
|
||||
_, ok := o.GetPublicIpOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetPublicIp gets a reference to the given string and assigns it to the PublicIp field.
|
||||
func (o *ServerNetwork) SetPublicIp(v ServerNetworkGetPublicIpRetType) {
|
||||
setServerNetworkGetPublicIpAttributeType(&o.PublicIp, v)
|
||||
}
|
||||
|
||||
// GetSecurityGroups returns the SecurityGroups field value if set, zero value otherwise.
|
||||
func (o *ServerNetwork) GetSecurityGroups() (res ServerNetworkGetSecurityGroupsRetType) {
|
||||
res, _ = o.GetSecurityGroupsOk()
|
||||
return
|
||||
}
|
||||
|
||||
// GetSecurityGroupsOk returns a tuple with the SecurityGroups field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *ServerNetwork) GetSecurityGroupsOk() (ret ServerNetworkGetSecurityGroupsRetType, ok bool) {
|
||||
return getServerNetworkGetSecurityGroupsAttributeTypeOk(o.SecurityGroups)
|
||||
}
|
||||
|
||||
// HasSecurityGroups returns a boolean if a field has been set.
|
||||
func (o *ServerNetwork) HasSecurityGroups() bool {
|
||||
_, ok := o.GetSecurityGroupsOk()
|
||||
return ok
|
||||
}
|
||||
|
||||
// SetSecurityGroups gets a reference to the given []string and assigns it to the SecurityGroups field.
|
||||
func (o *ServerNetwork) SetSecurityGroups(v ServerNetworkGetSecurityGroupsRetType) {
|
||||
setServerNetworkGetSecurityGroupsAttributeType(&o.SecurityGroups, v)
|
||||
}
|
||||
|
||||
func (o ServerNetwork) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if val, ok := getServerNetworkGetAllowedAddressesAttributeTypeOk(o.AllowedAddresses); ok {
|
||||
toSerialize["AllowedAddresses"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetIpv4AttributeTypeOk(o.Ipv4); ok {
|
||||
toSerialize["Ipv4"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetIpv6AttributeTypeOk(o.Ipv6); ok {
|
||||
toSerialize["Ipv6"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetMacAttributeTypeOk(o.Mac); ok {
|
||||
toSerialize["Mac"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetNetworkIdAttributeTypeOk(o.NetworkId); ok {
|
||||
toSerialize["NetworkId"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetNetworkNameAttributeTypeOk(o.NetworkName); ok {
|
||||
toSerialize["NetworkName"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetNicIdAttributeTypeOk(o.NicId); ok {
|
||||
toSerialize["NicId"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkgetNicSecurityAttributeTypeOk(o.NicSecurity); ok {
|
||||
toSerialize["NicSecurity"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetPublicIpAttributeTypeOk(o.PublicIp); ok {
|
||||
toSerialize["PublicIp"] = val
|
||||
}
|
||||
if val, ok := getServerNetworkGetSecurityGroupsAttributeTypeOk(o.SecurityGroups); ok {
|
||||
toSerialize["SecurityGroups"] = val
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableServerNetwork struct {
|
||||
value *ServerNetwork
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableServerNetwork) Get() *ServerNetwork {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableServerNetwork) Set(val *ServerNetwork) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableServerNetwork) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableServerNetwork) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableServerNetwork(val *ServerNetwork) *NullableServerNetwork {
|
||||
return &NullableServerNetwork{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableServerNetwork) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableServerNetwork) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue