Files
sdk/model_node.go

1116 lines
28 KiB
Go

/*
Hanzo Cloud API
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package hanzoai
import (
"encoding/json"
)
// checks if the Node type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Node{}
// Node struct for Node
type Node struct {
AutoQuery *bool `json:"autoQuery,omitempty"`
Category *string `json:"category,omitempty"`
CpuSize *string `json:"cpuSize,omitempty"`
CreatedTime *string `json:"createdTime,omitempty"`
Description *string `json:"description,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
EnableRemoteApp *bool `json:"enableRemoteApp,omitempty"`
IsPermanent *bool `json:"isPermanent,omitempty"`
Language *string `json:"language,omitempty"`
MachineName *string `json:"machineName,omitempty"`
MemSize *string `json:"memSize,omitempty"`
Name *string `json:"name,omitempty"`
Os *string `json:"os,omitempty"`
Owner *string `json:"owner,omitempty"`
Patches []Patch `json:"patches,omitempty"`
PrivateIp *string `json:"privateIp,omitempty"`
PublicIp *string `json:"publicIp,omitempty"`
RemoteApps []RemoteApp `json:"remoteApps,omitempty"`
RemotePassword *string `json:"remotePassword,omitempty"`
RemotePort *int32 `json:"remotePort,omitempty"`
RemoteProtocol *string `json:"remoteProtocol,omitempty"`
RemoteUsername *string `json:"remoteUsername,omitempty"`
Services []Service `json:"services,omitempty"`
Size *string `json:"size,omitempty"`
Tag *string `json:"tag,omitempty"`
Type *string `json:"type,omitempty"`
UpdatedTime *string `json:"updatedTime,omitempty"`
AdditionalProperties map[string]interface{}
}
type _Node Node
// NewNode instantiates a new Node 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 NewNode() *Node {
this := Node{}
return &this
}
// NewNodeWithDefaults instantiates a new Node 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 NewNodeWithDefaults() *Node {
this := Node{}
return &this
}
// GetAutoQuery returns the AutoQuery field value if set, zero value otherwise.
func (o *Node) GetAutoQuery() bool {
if o == nil || IsNil(o.AutoQuery) {
var ret bool
return ret
}
return *o.AutoQuery
}
// GetAutoQueryOk returns a tuple with the AutoQuery field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetAutoQueryOk() (*bool, bool) {
if o == nil || IsNil(o.AutoQuery) {
return nil, false
}
return o.AutoQuery, true
}
// HasAutoQuery returns a boolean if a field has been set.
func (o *Node) HasAutoQuery() bool {
if o != nil && !IsNil(o.AutoQuery) {
return true
}
return false
}
// SetAutoQuery gets a reference to the given bool and assigns it to the AutoQuery field.
func (o *Node) SetAutoQuery(v bool) {
o.AutoQuery = &v
}
// GetCategory returns the Category field value if set, zero value otherwise.
func (o *Node) GetCategory() string {
if o == nil || IsNil(o.Category) {
var ret string
return ret
}
return *o.Category
}
// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetCategoryOk() (*string, bool) {
if o == nil || IsNil(o.Category) {
return nil, false
}
return o.Category, true
}
// HasCategory returns a boolean if a field has been set.
func (o *Node) HasCategory() bool {
if o != nil && !IsNil(o.Category) {
return true
}
return false
}
// SetCategory gets a reference to the given string and assigns it to the Category field.
func (o *Node) SetCategory(v string) {
o.Category = &v
}
// GetCpuSize returns the CpuSize field value if set, zero value otherwise.
func (o *Node) GetCpuSize() string {
if o == nil || IsNil(o.CpuSize) {
var ret string
return ret
}
return *o.CpuSize
}
// GetCpuSizeOk returns a tuple with the CpuSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetCpuSizeOk() (*string, bool) {
if o == nil || IsNil(o.CpuSize) {
return nil, false
}
return o.CpuSize, true
}
// HasCpuSize returns a boolean if a field has been set.
func (o *Node) HasCpuSize() bool {
if o != nil && !IsNil(o.CpuSize) {
return true
}
return false
}
// SetCpuSize gets a reference to the given string and assigns it to the CpuSize field.
func (o *Node) SetCpuSize(v string) {
o.CpuSize = &v
}
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
func (o *Node) GetCreatedTime() string {
if o == nil || IsNil(o.CreatedTime) {
var ret string
return ret
}
return *o.CreatedTime
}
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetCreatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.CreatedTime) {
return nil, false
}
return o.CreatedTime, true
}
// HasCreatedTime returns a boolean if a field has been set.
func (o *Node) HasCreatedTime() bool {
if o != nil && !IsNil(o.CreatedTime) {
return true
}
return false
}
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
func (o *Node) SetCreatedTime(v string) {
o.CreatedTime = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *Node) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *Node) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *Node) SetDescription(v string) {
o.Description = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *Node) GetDisplayName() string {
if o == nil || IsNil(o.DisplayName) {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetDisplayNameOk() (*string, bool) {
if o == nil || IsNil(o.DisplayName) {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *Node) HasDisplayName() bool {
if o != nil && !IsNil(o.DisplayName) {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *Node) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetEnableRemoteApp returns the EnableRemoteApp field value if set, zero value otherwise.
func (o *Node) GetEnableRemoteApp() bool {
if o == nil || IsNil(o.EnableRemoteApp) {
var ret bool
return ret
}
return *o.EnableRemoteApp
}
// GetEnableRemoteAppOk returns a tuple with the EnableRemoteApp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetEnableRemoteAppOk() (*bool, bool) {
if o == nil || IsNil(o.EnableRemoteApp) {
return nil, false
}
return o.EnableRemoteApp, true
}
// HasEnableRemoteApp returns a boolean if a field has been set.
func (o *Node) HasEnableRemoteApp() bool {
if o != nil && !IsNil(o.EnableRemoteApp) {
return true
}
return false
}
// SetEnableRemoteApp gets a reference to the given bool and assigns it to the EnableRemoteApp field.
func (o *Node) SetEnableRemoteApp(v bool) {
o.EnableRemoteApp = &v
}
// GetIsPermanent returns the IsPermanent field value if set, zero value otherwise.
func (o *Node) GetIsPermanent() bool {
if o == nil || IsNil(o.IsPermanent) {
var ret bool
return ret
}
return *o.IsPermanent
}
// GetIsPermanentOk returns a tuple with the IsPermanent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetIsPermanentOk() (*bool, bool) {
if o == nil || IsNil(o.IsPermanent) {
return nil, false
}
return o.IsPermanent, true
}
// HasIsPermanent returns a boolean if a field has been set.
func (o *Node) HasIsPermanent() bool {
if o != nil && !IsNil(o.IsPermanent) {
return true
}
return false
}
// SetIsPermanent gets a reference to the given bool and assigns it to the IsPermanent field.
func (o *Node) SetIsPermanent(v bool) {
o.IsPermanent = &v
}
// GetLanguage returns the Language field value if set, zero value otherwise.
func (o *Node) GetLanguage() string {
if o == nil || IsNil(o.Language) {
var ret string
return ret
}
return *o.Language
}
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetLanguageOk() (*string, bool) {
if o == nil || IsNil(o.Language) {
return nil, false
}
return o.Language, true
}
// HasLanguage returns a boolean if a field has been set.
func (o *Node) HasLanguage() bool {
if o != nil && !IsNil(o.Language) {
return true
}
return false
}
// SetLanguage gets a reference to the given string and assigns it to the Language field.
func (o *Node) SetLanguage(v string) {
o.Language = &v
}
// GetMachineName returns the MachineName field value if set, zero value otherwise.
func (o *Node) GetMachineName() string {
if o == nil || IsNil(o.MachineName) {
var ret string
return ret
}
return *o.MachineName
}
// GetMachineNameOk returns a tuple with the MachineName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetMachineNameOk() (*string, bool) {
if o == nil || IsNil(o.MachineName) {
return nil, false
}
return o.MachineName, true
}
// HasMachineName returns a boolean if a field has been set.
func (o *Node) HasMachineName() bool {
if o != nil && !IsNil(o.MachineName) {
return true
}
return false
}
// SetMachineName gets a reference to the given string and assigns it to the MachineName field.
func (o *Node) SetMachineName(v string) {
o.MachineName = &v
}
// GetMemSize returns the MemSize field value if set, zero value otherwise.
func (o *Node) GetMemSize() string {
if o == nil || IsNil(o.MemSize) {
var ret string
return ret
}
return *o.MemSize
}
// GetMemSizeOk returns a tuple with the MemSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetMemSizeOk() (*string, bool) {
if o == nil || IsNil(o.MemSize) {
return nil, false
}
return o.MemSize, true
}
// HasMemSize returns a boolean if a field has been set.
func (o *Node) HasMemSize() bool {
if o != nil && !IsNil(o.MemSize) {
return true
}
return false
}
// SetMemSize gets a reference to the given string and assigns it to the MemSize field.
func (o *Node) SetMemSize(v string) {
o.MemSize = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *Node) 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 *Node) 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 *Node) 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 *Node) SetName(v string) {
o.Name = &v
}
// GetOs returns the Os field value if set, zero value otherwise.
func (o *Node) GetOs() string {
if o == nil || IsNil(o.Os) {
var ret string
return ret
}
return *o.Os
}
// GetOsOk returns a tuple with the Os field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetOsOk() (*string, bool) {
if o == nil || IsNil(o.Os) {
return nil, false
}
return o.Os, true
}
// HasOs returns a boolean if a field has been set.
func (o *Node) HasOs() bool {
if o != nil && !IsNil(o.Os) {
return true
}
return false
}
// SetOs gets a reference to the given string and assigns it to the Os field.
func (o *Node) SetOs(v string) {
o.Os = &v
}
// GetOwner returns the Owner field value if set, zero value otherwise.
func (o *Node) GetOwner() string {
if o == nil || IsNil(o.Owner) {
var ret string
return ret
}
return *o.Owner
}
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetOwnerOk() (*string, bool) {
if o == nil || IsNil(o.Owner) {
return nil, false
}
return o.Owner, true
}
// HasOwner returns a boolean if a field has been set.
func (o *Node) HasOwner() bool {
if o != nil && !IsNil(o.Owner) {
return true
}
return false
}
// SetOwner gets a reference to the given string and assigns it to the Owner field.
func (o *Node) SetOwner(v string) {
o.Owner = &v
}
// GetPatches returns the Patches field value if set, zero value otherwise.
func (o *Node) GetPatches() []Patch {
if o == nil || IsNil(o.Patches) {
var ret []Patch
return ret
}
return o.Patches
}
// GetPatchesOk returns a tuple with the Patches field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetPatchesOk() ([]Patch, bool) {
if o == nil || IsNil(o.Patches) {
return nil, false
}
return o.Patches, true
}
// HasPatches returns a boolean if a field has been set.
func (o *Node) HasPatches() bool {
if o != nil && !IsNil(o.Patches) {
return true
}
return false
}
// SetPatches gets a reference to the given []Patch and assigns it to the Patches field.
func (o *Node) SetPatches(v []Patch) {
o.Patches = v
}
// GetPrivateIp returns the PrivateIp field value if set, zero value otherwise.
func (o *Node) GetPrivateIp() string {
if o == nil || IsNil(o.PrivateIp) {
var ret string
return ret
}
return *o.PrivateIp
}
// GetPrivateIpOk returns a tuple with the PrivateIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetPrivateIpOk() (*string, bool) {
if o == nil || IsNil(o.PrivateIp) {
return nil, false
}
return o.PrivateIp, true
}
// HasPrivateIp returns a boolean if a field has been set.
func (o *Node) HasPrivateIp() bool {
if o != nil && !IsNil(o.PrivateIp) {
return true
}
return false
}
// SetPrivateIp gets a reference to the given string and assigns it to the PrivateIp field.
func (o *Node) SetPrivateIp(v string) {
o.PrivateIp = &v
}
// GetPublicIp returns the PublicIp field value if set, zero value otherwise.
func (o *Node) GetPublicIp() string {
if o == nil || IsNil(o.PublicIp) {
var ret string
return ret
}
return *o.PublicIp
}
// 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 *Node) GetPublicIpOk() (*string, bool) {
if o == nil || IsNil(o.PublicIp) {
return nil, false
}
return o.PublicIp, true
}
// HasPublicIp returns a boolean if a field has been set.
func (o *Node) HasPublicIp() bool {
if o != nil && !IsNil(o.PublicIp) {
return true
}
return false
}
// SetPublicIp gets a reference to the given string and assigns it to the PublicIp field.
func (o *Node) SetPublicIp(v string) {
o.PublicIp = &v
}
// GetRemoteApps returns the RemoteApps field value if set, zero value otherwise.
func (o *Node) GetRemoteApps() []RemoteApp {
if o == nil || IsNil(o.RemoteApps) {
var ret []RemoteApp
return ret
}
return o.RemoteApps
}
// GetRemoteAppsOk returns a tuple with the RemoteApps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetRemoteAppsOk() ([]RemoteApp, bool) {
if o == nil || IsNil(o.RemoteApps) {
return nil, false
}
return o.RemoteApps, true
}
// HasRemoteApps returns a boolean if a field has been set.
func (o *Node) HasRemoteApps() bool {
if o != nil && !IsNil(o.RemoteApps) {
return true
}
return false
}
// SetRemoteApps gets a reference to the given []RemoteApp and assigns it to the RemoteApps field.
func (o *Node) SetRemoteApps(v []RemoteApp) {
o.RemoteApps = v
}
// GetRemotePassword returns the RemotePassword field value if set, zero value otherwise.
func (o *Node) GetRemotePassword() string {
if o == nil || IsNil(o.RemotePassword) {
var ret string
return ret
}
return *o.RemotePassword
}
// GetRemotePasswordOk returns a tuple with the RemotePassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetRemotePasswordOk() (*string, bool) {
if o == nil || IsNil(o.RemotePassword) {
return nil, false
}
return o.RemotePassword, true
}
// HasRemotePassword returns a boolean if a field has been set.
func (o *Node) HasRemotePassword() bool {
if o != nil && !IsNil(o.RemotePassword) {
return true
}
return false
}
// SetRemotePassword gets a reference to the given string and assigns it to the RemotePassword field.
func (o *Node) SetRemotePassword(v string) {
o.RemotePassword = &v
}
// GetRemotePort returns the RemotePort field value if set, zero value otherwise.
func (o *Node) GetRemotePort() int32 {
if o == nil || IsNil(o.RemotePort) {
var ret int32
return ret
}
return *o.RemotePort
}
// GetRemotePortOk returns a tuple with the RemotePort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetRemotePortOk() (*int32, bool) {
if o == nil || IsNil(o.RemotePort) {
return nil, false
}
return o.RemotePort, true
}
// HasRemotePort returns a boolean if a field has been set.
func (o *Node) HasRemotePort() bool {
if o != nil && !IsNil(o.RemotePort) {
return true
}
return false
}
// SetRemotePort gets a reference to the given int32 and assigns it to the RemotePort field.
func (o *Node) SetRemotePort(v int32) {
o.RemotePort = &v
}
// GetRemoteProtocol returns the RemoteProtocol field value if set, zero value otherwise.
func (o *Node) GetRemoteProtocol() string {
if o == nil || IsNil(o.RemoteProtocol) {
var ret string
return ret
}
return *o.RemoteProtocol
}
// GetRemoteProtocolOk returns a tuple with the RemoteProtocol field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetRemoteProtocolOk() (*string, bool) {
if o == nil || IsNil(o.RemoteProtocol) {
return nil, false
}
return o.RemoteProtocol, true
}
// HasRemoteProtocol returns a boolean if a field has been set.
func (o *Node) HasRemoteProtocol() bool {
if o != nil && !IsNil(o.RemoteProtocol) {
return true
}
return false
}
// SetRemoteProtocol gets a reference to the given string and assigns it to the RemoteProtocol field.
func (o *Node) SetRemoteProtocol(v string) {
o.RemoteProtocol = &v
}
// GetRemoteUsername returns the RemoteUsername field value if set, zero value otherwise.
func (o *Node) GetRemoteUsername() string {
if o == nil || IsNil(o.RemoteUsername) {
var ret string
return ret
}
return *o.RemoteUsername
}
// GetRemoteUsernameOk returns a tuple with the RemoteUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetRemoteUsernameOk() (*string, bool) {
if o == nil || IsNil(o.RemoteUsername) {
return nil, false
}
return o.RemoteUsername, true
}
// HasRemoteUsername returns a boolean if a field has been set.
func (o *Node) HasRemoteUsername() bool {
if o != nil && !IsNil(o.RemoteUsername) {
return true
}
return false
}
// SetRemoteUsername gets a reference to the given string and assigns it to the RemoteUsername field.
func (o *Node) SetRemoteUsername(v string) {
o.RemoteUsername = &v
}
// GetServices returns the Services field value if set, zero value otherwise.
func (o *Node) GetServices() []Service {
if o == nil || IsNil(o.Services) {
var ret []Service
return ret
}
return o.Services
}
// GetServicesOk returns a tuple with the Services field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetServicesOk() ([]Service, bool) {
if o == nil || IsNil(o.Services) {
return nil, false
}
return o.Services, true
}
// HasServices returns a boolean if a field has been set.
func (o *Node) HasServices() bool {
if o != nil && !IsNil(o.Services) {
return true
}
return false
}
// SetServices gets a reference to the given []Service and assigns it to the Services field.
func (o *Node) SetServices(v []Service) {
o.Services = v
}
// GetSize returns the Size field value if set, zero value otherwise.
func (o *Node) GetSize() string {
if o == nil || IsNil(o.Size) {
var ret string
return ret
}
return *o.Size
}
// GetSizeOk returns a tuple with the Size field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetSizeOk() (*string, bool) {
if o == nil || IsNil(o.Size) {
return nil, false
}
return o.Size, true
}
// HasSize returns a boolean if a field has been set.
func (o *Node) HasSize() bool {
if o != nil && !IsNil(o.Size) {
return true
}
return false
}
// SetSize gets a reference to the given string and assigns it to the Size field.
func (o *Node) SetSize(v string) {
o.Size = &v
}
// GetTag returns the Tag field value if set, zero value otherwise.
func (o *Node) GetTag() string {
if o == nil || IsNil(o.Tag) {
var ret string
return ret
}
return *o.Tag
}
// GetTagOk returns a tuple with the Tag field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetTagOk() (*string, bool) {
if o == nil || IsNil(o.Tag) {
return nil, false
}
return o.Tag, true
}
// HasTag returns a boolean if a field has been set.
func (o *Node) HasTag() bool {
if o != nil && !IsNil(o.Tag) {
return true
}
return false
}
// SetTag gets a reference to the given string and assigns it to the Tag field.
func (o *Node) SetTag(v string) {
o.Tag = &v
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *Node) GetType() string {
if o == nil || IsNil(o.Type) {
var ret string
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetTypeOk() (*string, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *Node) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given string and assigns it to the Type field.
func (o *Node) SetType(v string) {
o.Type = &v
}
// GetUpdatedTime returns the UpdatedTime field value if set, zero value otherwise.
func (o *Node) GetUpdatedTime() string {
if o == nil || IsNil(o.UpdatedTime) {
var ret string
return ret
}
return *o.UpdatedTime
}
// GetUpdatedTimeOk returns a tuple with the UpdatedTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Node) GetUpdatedTimeOk() (*string, bool) {
if o == nil || IsNil(o.UpdatedTime) {
return nil, false
}
return o.UpdatedTime, true
}
// HasUpdatedTime returns a boolean if a field has been set.
func (o *Node) HasUpdatedTime() bool {
if o != nil && !IsNil(o.UpdatedTime) {
return true
}
return false
}
// SetUpdatedTime gets a reference to the given string and assigns it to the UpdatedTime field.
func (o *Node) SetUpdatedTime(v string) {
o.UpdatedTime = &v
}
func (o Node) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o Node) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.AutoQuery) {
toSerialize["autoQuery"] = o.AutoQuery
}
if !IsNil(o.Category) {
toSerialize["category"] = o.Category
}
if !IsNil(o.CpuSize) {
toSerialize["cpuSize"] = o.CpuSize
}
if !IsNil(o.CreatedTime) {
toSerialize["createdTime"] = o.CreatedTime
}
if !IsNil(o.Description) {
toSerialize["description"] = o.Description
}
if !IsNil(o.DisplayName) {
toSerialize["displayName"] = o.DisplayName
}
if !IsNil(o.EnableRemoteApp) {
toSerialize["enableRemoteApp"] = o.EnableRemoteApp
}
if !IsNil(o.IsPermanent) {
toSerialize["isPermanent"] = o.IsPermanent
}
if !IsNil(o.Language) {
toSerialize["language"] = o.Language
}
if !IsNil(o.MachineName) {
toSerialize["machineName"] = o.MachineName
}
if !IsNil(o.MemSize) {
toSerialize["memSize"] = o.MemSize
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Os) {
toSerialize["os"] = o.Os
}
if !IsNil(o.Owner) {
toSerialize["owner"] = o.Owner
}
if !IsNil(o.Patches) {
toSerialize["patches"] = o.Patches
}
if !IsNil(o.PrivateIp) {
toSerialize["privateIp"] = o.PrivateIp
}
if !IsNil(o.PublicIp) {
toSerialize["publicIp"] = o.PublicIp
}
if !IsNil(o.RemoteApps) {
toSerialize["remoteApps"] = o.RemoteApps
}
if !IsNil(o.RemotePassword) {
toSerialize["remotePassword"] = o.RemotePassword
}
if !IsNil(o.RemotePort) {
toSerialize["remotePort"] = o.RemotePort
}
if !IsNil(o.RemoteProtocol) {
toSerialize["remoteProtocol"] = o.RemoteProtocol
}
if !IsNil(o.RemoteUsername) {
toSerialize["remoteUsername"] = o.RemoteUsername
}
if !IsNil(o.Services) {
toSerialize["services"] = o.Services
}
if !IsNil(o.Size) {
toSerialize["size"] = o.Size
}
if !IsNil(o.Tag) {
toSerialize["tag"] = o.Tag
}
if !IsNil(o.Type) {
toSerialize["type"] = o.Type
}
if !IsNil(o.UpdatedTime) {
toSerialize["updatedTime"] = o.UpdatedTime
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *Node) UnmarshalJSON(data []byte) (err error) {
varNode := _Node{}
err = json.Unmarshal(data, &varNode)
if err != nil {
return err
}
*o = Node(varNode)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "autoQuery")
delete(additionalProperties, "category")
delete(additionalProperties, "cpuSize")
delete(additionalProperties, "createdTime")
delete(additionalProperties, "description")
delete(additionalProperties, "displayName")
delete(additionalProperties, "enableRemoteApp")
delete(additionalProperties, "isPermanent")
delete(additionalProperties, "language")
delete(additionalProperties, "machineName")
delete(additionalProperties, "memSize")
delete(additionalProperties, "name")
delete(additionalProperties, "os")
delete(additionalProperties, "owner")
delete(additionalProperties, "patches")
delete(additionalProperties, "privateIp")
delete(additionalProperties, "publicIp")
delete(additionalProperties, "remoteApps")
delete(additionalProperties, "remotePassword")
delete(additionalProperties, "remotePort")
delete(additionalProperties, "remoteProtocol")
delete(additionalProperties, "remoteUsername")
delete(additionalProperties, "services")
delete(additionalProperties, "size")
delete(additionalProperties, "tag")
delete(additionalProperties, "type")
delete(additionalProperties, "updatedTime")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableNode struct {
value *Node
isSet bool
}
func (v NullableNode) Get() *Node {
return v.value
}
func (v *NullableNode) Set(val *Node) {
v.value = val
v.isSet = true
}
func (v NullableNode) IsSet() bool {
return v.isSet
}
func (v *NullableNode) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableNode(val *Node) *NullableNode {
return &NullableNode{value: val, isSet: true}
}
func (v NullableNode) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableNode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}