Class: UntitledApi::InternalMxagentsConfigResponse1

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/internal_mxagents_config_response1.rb

Overview

InternalMxagentsConfigResponse1 Model.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(id = SKIP, cluster_id = SKIP, timestamp = SKIP, org_id = SKIP, site_id = SKIP, errors = SKIP, tunterm_id = SKIP, audit_id = SKIP, hostname = SKIP, ssh = SKIP, services = SKIP, versions = SKIP, ntp_servers = SKIP, cloud_env = SKIP, mxagent = SKIP, mxocproxy = SKIP, tunterm = SKIP, mxdas = SKIP, radsecproxy = SKIP) ⇒ InternalMxagentsConfigResponse1

Returns a new instance of InternalMxagentsConfigResponse1.



143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 143

def initialize(id = SKIP,
               cluster_id = SKIP,
               timestamp = SKIP,
               org_id = SKIP,
               site_id = SKIP,
               errors = SKIP,
               tunterm_id = SKIP,
               audit_id = SKIP,
               hostname = SKIP,
               ssh = SKIP,
               services = SKIP,
               versions = SKIP,
               ntp_servers = SKIP,
               cloud_env = SKIP,
               mxagent = SKIP,
               mxocproxy = SKIP,
               tunterm = SKIP,
               mxdas = SKIP,
               radsecproxy = SKIP)
  @id = id unless id == SKIP
  @cluster_id = cluster_id unless cluster_id == SKIP
  @timestamp = timestamp unless timestamp == SKIP
  @org_id = org_id unless org_id == SKIP
  @site_id = site_id unless site_id == SKIP
  @errors = errors unless errors == SKIP
  @tunterm_id = tunterm_id unless tunterm_id == SKIP
  @audit_id = audit_id unless audit_id == SKIP
  @hostname = hostname unless hostname == SKIP
  @ssh = ssh unless ssh == SKIP
  @services = services unless services == SKIP
  @versions = versions unless versions == SKIP
  @ntp_servers = ntp_servers unless ntp_servers == SKIP
  @cloud_env = cloud_env unless cloud_env == SKIP
  @mxagent = mxagent unless mxagent == SKIP
  @mxocproxy = mxocproxy unless mxocproxy == SKIP
  @tunterm = tunterm unless tunterm == SKIP
  @mxdas = mxdas unless mxdas == SKIP
  @radsecproxy = radsecproxy unless radsecproxy == SKIP
end

Instance Attribute Details

#audit_idString

TODO: Write general description for this method

Returns:

  • (String)


42
43
44
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 42

def audit_id
  @audit_id
end

#cloud_envObject

TODO: Write general description for this method

Returns:

  • (Object)


66
67
68
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 66

def cloud_env
  @cloud_env
end

#cluster_idObject

TODO: Write general description for this method

Returns:

  • (Object)


18
19
20
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 18

def cluster_id
  @cluster_id
end

#errorsObject

TODO: Write general description for this method

Returns:

  • (Object)


34
35
36
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 34

def errors
  @errors
end

#hostnameString

TODO: Write general description for this method

Returns:

  • (String)


46
47
48
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 46

def hostname
  @hostname
end

#idString

TODO: Write general description for this method

Returns:

  • (String)


14
15
16
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 14

def id
  @id
end

#mxagentObject

TODO: Write general description for this method

Returns:

  • (Object)


70
71
72
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 70

def mxagent
  @mxagent
end

#mxdasObject

TODO: Write general description for this method

Returns:

  • (Object)


82
83
84
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 82

def mxdas
  @mxdas
end

#mxocproxyObject

TODO: Write general description for this method

Returns:

  • (Object)


74
75
76
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 74

def mxocproxy
  @mxocproxy
end

#ntp_serversObject

TODO: Write general description for this method

Returns:

  • (Object)


62
63
64
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 62

def ntp_servers
  @ntp_servers
end

#org_idString

TODO: Write general description for this method

Returns:

  • (String)


26
27
28
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 26

def org_id
  @org_id
end

#radsecproxyObject

TODO: Write general description for this method

Returns:

  • (Object)


86
87
88
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 86

def radsecproxy
  @radsecproxy
end

#servicesObject

TODO: Write general description for this method

Returns:

  • (Object)


54
55
56
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 54

def services
  @services
end

#site_idString

TODO: Write general description for this method

Returns:

  • (String)


30
31
32
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 30

def site_id
  @site_id
end

#sshObject

TODO: Write general description for this method

Returns:

  • (Object)


50
51
52
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 50

def ssh
  @ssh
end

#timestampFloat

TODO: Write general description for this method

Returns:

  • (Float)


22
23
24
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 22

def timestamp
  @timestamp
end

#tuntermObject

TODO: Write general description for this method

Returns:

  • (Object)


78
79
80
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 78

def tunterm
  @tunterm
end

#tunterm_idString

TODO: Write general description for this method

Returns:

  • (String)


38
39
40
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 38

def tunterm_id
  @tunterm_id
end

#versionsObject

TODO: Write general description for this method

Returns:

  • (Object)


58
59
60
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 58

def versions
  @versions
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 184

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  id = hash.key?('ID') ? hash['ID'] : SKIP
  cluster_id = hash.key?('ClusterID') ? hash['ClusterID'] : SKIP
  timestamp = hash.key?('Timestamp') ? hash['Timestamp'] : SKIP
  org_id = hash.key?('OrgID') ? hash['OrgID'] : SKIP
  site_id = hash.key?('SiteID') ? hash['SiteID'] : SKIP
  errors = hash.key?('_errors') ? hash['_errors'] : SKIP
  tunterm_id = hash.key?('TuntermID') ? hash['TuntermID'] : SKIP
  audit_id = hash.key?('AuditID') ? hash['AuditID'] : SKIP
  hostname = hash.key?('Hostname') ? hash['Hostname'] : SKIP
  ssh = hash.key?('SSH') ? hash['SSH'] : SKIP
  services = hash.key?('services') ? hash['services'] : SKIP
  versions = hash.key?('versions') ? hash['versions'] : SKIP
  ntp_servers = hash.key?('ntp_servers') ? hash['ntp_servers'] : SKIP
  cloud_env = hash.key?('cloud_env') ? hash['cloud_env'] : SKIP
  mxagent = hash.key?('mxagent') ? hash['mxagent'] : SKIP
  mxocproxy = hash.key?('mxocproxy') ? hash['mxocproxy'] : SKIP
  tunterm = hash.key?('tunterm') ? hash['tunterm'] : SKIP
  mxdas = hash.key?('mxdas') ? hash['mxdas'] : SKIP
  radsecproxy = hash.key?('radsecproxy') ? hash['radsecproxy'] : SKIP

  # Create object from extracted values.
  InternalMxagentsConfigResponse1.new(id,
                                      cluster_id,
                                      timestamp,
                                      org_id,
                                      site_id,
                                      errors,
                                      tunterm_id,
                                      audit_id,
                                      hostname,
                                      ssh,
                                      services,
                                      versions,
                                      ntp_servers,
                                      cloud_env,
                                      mxagent,
                                      mxocproxy,
                                      tunterm,
                                      mxdas,
                                      radsecproxy)
end

.namesObject

A mapping from model property names to API property names.



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 89

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['id'] = 'ID'
  @_hash['cluster_id'] = 'ClusterID'
  @_hash['timestamp'] = 'Timestamp'
  @_hash['org_id'] = 'OrgID'
  @_hash['site_id'] = 'SiteID'
  @_hash['errors'] = '_errors'
  @_hash['tunterm_id'] = 'TuntermID'
  @_hash['audit_id'] = 'AuditID'
  @_hash['hostname'] = 'Hostname'
  @_hash['ssh'] = 'SSH'
  @_hash['services'] = 'services'
  @_hash['versions'] = 'versions'
  @_hash['ntp_servers'] = 'ntp_servers'
  @_hash['cloud_env'] = 'cloud_env'
  @_hash['mxagent'] = 'mxagent'
  @_hash['mxocproxy'] = 'mxocproxy'
  @_hash['tunterm'] = 'tunterm'
  @_hash['mxdas'] = 'mxdas'
  @_hash['radsecproxy'] = 'radsecproxy'
  @_hash
end

.nullablesObject

An array for nullable fields



139
140
141
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 139

def self.nullables
  []
end

.optionalsObject

An array for optional fields



114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/untitled_api/models/internal_mxagents_config_response1.rb', line 114

def self.optionals
  %w[
    id
    cluster_id
    timestamp
    org_id
    site_id
    errors
    tunterm_id
    audit_id
    hostname
    ssh
    services
    versions
    ntp_servers
    cloud_env
    mxagent
    mxocproxy
    tunterm
    mxdas
    radsecproxy
  ]
end