Class: OCI::CloudMigrations::Models::OlvmHost

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/cloud_migrations/models/olvm_host.rb

Overview

Type representing a host.

Constant Summary collapse

AUTO_NUMA_STATUS_ENUM =
[
  AUTO_NUMA_STATUS_DISABLE = 'DISABLE'.freeze,
  AUTO_NUMA_STATUS_ENABLE = 'ENABLE'.freeze,
  AUTO_NUMA_STATUS_UNKNOWN = 'UNKNOWN'.freeze
].freeze
EXTERNAL_STATUS_ENUM =
[
  EXTERNAL_STATUS_ERROR = 'ERROR'.freeze,
  EXTERNAL_STATUS_FAILURE = 'FAILURE'.freeze,
  EXTERNAL_STATUS_INFO = 'INFO'.freeze,
  EXTERNAL_STATUS_OK = 'OK'.freeze,
  EXTERNAL_STATUS_WARNING = 'WARNING'.freeze
].freeze
KDUMP_STATUS_ENUM =
[
  KDUMP_STATUS_DISABLED = 'DISABLED'.freeze,
  KDUMP_STATUS_ENABLED = 'ENABLED'.freeze,
  KDUMP_STATUS_UNKNOWN = 'UNKNOWN'.freeze
].freeze
VGPU_PLACEMENT_ENUM =
[
  VGPU_PLACEMENT_CONSOLIDATED = 'CONSOLIDATED'.freeze,
  VGPU_PLACEMENT_SEPARATED = 'SEPARATED'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OlvmHost

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 301

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.address = attributes[:'address'] if attributes[:'address']

  self.auto_numa_status = attributes[:'autoNumaStatus'] if attributes[:'autoNumaStatus']

  raise 'You cannot provide both :autoNumaStatus and :auto_numa_status' if attributes.key?(:'autoNumaStatus') && attributes.key?(:'auto_numa_status')

  self.auto_numa_status = attributes[:'auto_numa_status'] if attributes[:'auto_numa_status']

  self.certificate = attributes[:'certificate'] if attributes[:'certificate']

  self.comment = attributes[:'comment'] if attributes[:'comment']

  self.cpu = attributes[:'cpu'] if attributes[:'cpu']

  self.description = attributes[:'description'] if attributes[:'description']

  self.is_host_device_passthrough = attributes[:'isHostDevicePassthrough'] unless attributes[:'isHostDevicePassthrough'].nil?

  raise 'You cannot provide both :isHostDevicePassthrough and :is_host_device_passthrough' if attributes.key?(:'isHostDevicePassthrough') && attributes.key?(:'is_host_device_passthrough')

  self.is_host_device_passthrough = attributes[:'is_host_device_passthrough'] unless attributes[:'is_host_device_passthrough'].nil?

  self.display = attributes[:'display'] if attributes[:'display']

  self.external_status = attributes[:'externalStatus'] if attributes[:'externalStatus']

  raise 'You cannot provide both :externalStatus and :external_status' if attributes.key?(:'externalStatus') && attributes.key?(:'external_status')

  self.external_status = attributes[:'external_status'] if attributes[:'external_status']

  self.hardware_information = attributes[:'hardwareInformation'] if attributes[:'hardwareInformation']

  raise 'You cannot provide both :hardwareInformation and :hardware_information' if attributes.key?(:'hardwareInformation') && attributes.key?(:'hardware_information')

  self.hardware_information = attributes[:'hardware_information'] if attributes[:'hardware_information']

  self.hosted_engine = attributes[:'hostedEngine'] if attributes[:'hostedEngine']

  raise 'You cannot provide both :hostedEngine and :hosted_engine' if attributes.key?(:'hostedEngine') && attributes.key?(:'hosted_engine')

  self.hosted_engine = attributes[:'hosted_engine'] if attributes[:'hosted_engine']

  self.id = attributes[:'id'] if attributes[:'id']

  self.iscsi = attributes[:'iscsi'] if attributes[:'iscsi']

  self.kdump_status = attributes[:'kdumpStatus'] if attributes[:'kdumpStatus']

  raise 'You cannot provide both :kdumpStatus and :kdump_status' if attributes.key?(:'kdumpStatus') && attributes.key?(:'kdump_status')

  self.kdump_status = attributes[:'kdump_status'] if attributes[:'kdump_status']

  self.ksm = attributes[:'ksm'] if attributes[:'ksm']

  self.libvirt_version = attributes[:'libvirtVersion'] if attributes[:'libvirtVersion']

  raise 'You cannot provide both :libvirtVersion and :libvirt_version' if attributes.key?(:'libvirtVersion') && attributes.key?(:'libvirt_version')

  self.libvirt_version = attributes[:'libvirt_version'] if attributes[:'libvirt_version']

  self.max_scheduling_memory_in_bytes = attributes[:'maxSchedulingMemoryInBytes'] if attributes[:'maxSchedulingMemoryInBytes']

  raise 'You cannot provide both :maxSchedulingMemoryInBytes and :max_scheduling_memory_in_bytes' if attributes.key?(:'maxSchedulingMemoryInBytes') && attributes.key?(:'max_scheduling_memory_in_bytes')

  self.max_scheduling_memory_in_bytes = attributes[:'max_scheduling_memory_in_bytes'] if attributes[:'max_scheduling_memory_in_bytes']

  self.memory_in_bytes = attributes[:'memoryInBytes'] if attributes[:'memoryInBytes']

  raise 'You cannot provide both :memoryInBytes and :memory_in_bytes' if attributes.key?(:'memoryInBytes') && attributes.key?(:'memory_in_bytes')

  self.memory_in_bytes = attributes[:'memory_in_bytes'] if attributes[:'memory_in_bytes']

  self.name = attributes[:'name'] if attributes[:'name']

  self.is_network_operation_in_progress = attributes[:'isNetworkOperationInProgress'] unless attributes[:'isNetworkOperationInProgress'].nil?

  raise 'You cannot provide both :isNetworkOperationInProgress and :is_network_operation_in_progress' if attributes.key?(:'isNetworkOperationInProgress') && attributes.key?(:'is_network_operation_in_progress')

  self.is_network_operation_in_progress = attributes[:'is_network_operation_in_progress'] unless attributes[:'is_network_operation_in_progress'].nil?

  self.is_numa_supported = attributes[:'isNumaSupported'] unless attributes[:'isNumaSupported'].nil?

  raise 'You cannot provide both :isNumaSupported and :is_numa_supported' if attributes.key?(:'isNumaSupported') && attributes.key?(:'is_numa_supported')

  self.is_numa_supported = attributes[:'is_numa_supported'] unless attributes[:'is_numa_supported'].nil?

  self.os = attributes[:'os'] if attributes[:'os']

  self.is_override_ip_tables = attributes[:'isOverrideIpTables'] unless attributes[:'isOverrideIpTables'].nil?

  raise 'You cannot provide both :isOverrideIpTables and :is_override_ip_tables' if attributes.key?(:'isOverrideIpTables') && attributes.key?(:'is_override_ip_tables')

  self.is_override_ip_tables = attributes[:'is_override_ip_tables'] unless attributes[:'is_override_ip_tables'].nil?

  self.is_ovn_configured = attributes[:'isOvnConfigured'] unless attributes[:'isOvnConfigured'].nil?

  raise 'You cannot provide both :isOvnConfigured and :is_ovn_configured' if attributes.key?(:'isOvnConfigured') && attributes.key?(:'is_ovn_configured')

  self.is_ovn_configured = attributes[:'is_ovn_configured'] unless attributes[:'is_ovn_configured'].nil?

  self.port = attributes[:'port'] if attributes[:'port']

  self.power_management = attributes[:'powerManagement'] if attributes[:'powerManagement']

  raise 'You cannot provide both :powerManagement and :power_management' if attributes.key?(:'powerManagement') && attributes.key?(:'power_management')

  self.power_management = attributes[:'power_management'] if attributes[:'power_management']

  self.is_reinstallation_required = attributes[:'isReinstallationRequired'] unless attributes[:'isReinstallationRequired'].nil?

  raise 'You cannot provide both :isReinstallationRequired and :is_reinstallation_required' if attributes.key?(:'isReinstallationRequired') && attributes.key?(:'is_reinstallation_required')

  self.is_reinstallation_required = attributes[:'is_reinstallation_required'] unless attributes[:'is_reinstallation_required'].nil?

  self.se_linux = attributes[:'seLinux'] if attributes[:'seLinux']

  raise 'You cannot provide both :seLinux and :se_linux' if attributes.key?(:'seLinux') && attributes.key?(:'se_linux')

  self.se_linux = attributes[:'se_linux'] if attributes[:'se_linux']

  self.spm = attributes[:'spm'] if attributes[:'spm']

  self.host_status = attributes[:'hostStatus'] if attributes[:'hostStatus']

  raise 'You cannot provide both :hostStatus and :host_status' if attributes.key?(:'hostStatus') && attributes.key?(:'host_status')

  self.host_status = attributes[:'host_status'] if attributes[:'host_status']

  self.status_detail = attributes[:'statusDetail'] if attributes[:'statusDetail']

  raise 'You cannot provide both :statusDetail and :status_detail' if attributes.key?(:'statusDetail') && attributes.key?(:'status_detail')

  self.status_detail = attributes[:'status_detail'] if attributes[:'status_detail']

  self.summary = attributes[:'summary'] if attributes[:'summary']

  self.is_transparent_huge_pages_enabled = attributes[:'isTransparentHugePagesEnabled'] unless attributes[:'isTransparentHugePagesEnabled'].nil?

  raise 'You cannot provide both :isTransparentHugePagesEnabled and :is_transparent_huge_pages_enabled' if attributes.key?(:'isTransparentHugePagesEnabled') && attributes.key?(:'is_transparent_huge_pages_enabled')

  self.is_transparent_huge_pages_enabled = attributes[:'is_transparent_huge_pages_enabled'] unless attributes[:'is_transparent_huge_pages_enabled'].nil?

  self.type = attributes[:'type'] if attributes[:'type']

  self.is_update_available = attributes[:'isUpdateAvailable'] unless attributes[:'isUpdateAvailable'].nil?

  raise 'You cannot provide both :isUpdateAvailable and :is_update_available' if attributes.key?(:'isUpdateAvailable') && attributes.key?(:'is_update_available')

  self.is_update_available = attributes[:'is_update_available'] unless attributes[:'is_update_available'].nil?

  self.version = attributes[:'version'] if attributes[:'version']

  self.vgpu_placement = attributes[:'vgpuPlacement'] if attributes[:'vgpuPlacement']

  raise 'You cannot provide both :vgpuPlacement and :vgpu_placement' if attributes.key?(:'vgpuPlacement') && attributes.key?(:'vgpu_placement')

  self.vgpu_placement = attributes[:'vgpu_placement'] if attributes[:'vgpu_placement']
end

Instance Attribute Details

#addressString

The host address (FQDN/IP).

Returns:

  • (String)


38
39
40
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 38

def address
  @address
end

#auto_numa_statusString

The host auto non uniform memory access (NUMA) status.

Returns:

  • (String)


42
43
44
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 42

def auto_numa_status
  @auto_numa_status
end

#certificateOCI::CloudMigrations::Models::OlvmCertificate



45
46
47
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 45

def certificate
  @certificate
end

#commentString

Free text containing comments about this object.

Returns:

  • (String)


49
50
51
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 49

def comment
  @comment
end

#cpuOCI::CloudMigrations::Models::OlvmCpu



52
53
54
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 52

def cpu
  @cpu
end

#descriptionString

A human-readable description in plain text.

Returns:

  • (String)


56
57
58
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 56

def description
  @description
end

#displayOCI::CloudMigrations::Models::OlvmDisplay



63
64
65
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 63

def display
  @display
end

#external_statusString

Status of storage domain.

Returns:

  • (String)


67
68
69
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 67

def external_status
  @external_status
end

#hardware_informationOCI::CloudMigrations::Models::OlvmHardwareInformation



70
71
72
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 70

def hardware_information
  @hardware_information
end

#host_statusOCI::CloudMigrations::Models::OlvmHostStatus



141
142
143
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 141

def host_status
  @host_status
end

#hosted_engineOCI::CloudMigrations::Models::OlvmHostedEngine



73
74
75
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 73

def hosted_engine
  @hosted_engine
end

#idString

A unique identifier.

Returns:

  • (String)


77
78
79
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 77

def id
  @id
end

#is_host_device_passthroughBOOLEAN

Specifies whether host device passthrough is enabled on this host.

Returns:

  • (BOOLEAN)


60
61
62
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 60

def is_host_device_passthrough
  @is_host_device_passthrough
end

#is_network_operation_in_progressBOOLEAN

Specifies whether a network-related operation, such as 'setup networks', 'sync networks', or 'refresh capabilities', is currently being executed on this host.

Returns:

  • (BOOLEAN)


106
107
108
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 106

def is_network_operation_in_progress
  @is_network_operation_in_progress
end

#is_numa_supportedBOOLEAN

Specifies whether non uniform memory access (NUMA) is supported on this host.

Returns:

  • (BOOLEAN)


110
111
112
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 110

def is_numa_supported
  @is_numa_supported
end

#is_override_ip_tablesBOOLEAN

Specifies whether we should override firewall definitions

Returns:

  • (BOOLEAN)


117
118
119
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 117

def is_override_ip_tables
  @is_override_ip_tables
end

#is_ovn_configuredBOOLEAN

Indicates if the host has correctly configured OVN.

Returns:

  • (BOOLEAN)


121
122
123
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 121

def is_ovn_configured
  @is_ovn_configured
end

#is_reinstallation_requiredBOOLEAN

Specifies whether the host should be reinstalled.

Returns:

  • (BOOLEAN)


132
133
134
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 132

def is_reinstallation_required
  @is_reinstallation_required
end

#is_transparent_huge_pages_enabledBOOLEAN

Indicates if transparent huge pages (THP) support is enabled.

Returns:

  • (BOOLEAN)


152
153
154
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 152

def is_transparent_huge_pages_enabled
  @is_transparent_huge_pages_enabled
end

#is_update_availableBOOLEAN

Specified whether there is an oVirt-related update on this host.

Returns:

  • (BOOLEAN)


159
160
161
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 159

def is_update_available
  @is_update_available
end

#iscsiOCI::CloudMigrations::Models::OlvmIscsiDetails



80
81
82
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 80

def iscsi
  @iscsi
end

#kdump_statusString

The host KDUMP status.

Returns:

  • (String)


84
85
86
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 84

def kdump_status
  @kdump_status
end

#ksmOCI::CloudMigrations::Models::Ksm



87
88
89
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 87

def ksm
  @ksm
end

#libvirt_versionOCI::CloudMigrations::Models::OlvmVersion



90
91
92
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 90

def libvirt_version
  @libvirt_version
end

#max_scheduling_memory_in_bytesInteger

The max scheduling memory on this host in bytes.

Returns:

  • (Integer)


94
95
96
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 94

def max_scheduling_memory_in_bytes
  @max_scheduling_memory_in_bytes
end

#memory_in_bytesInteger

The amount of physical memory on this host in bytes.

Returns:

  • (Integer)


98
99
100
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 98

def memory_in_bytes
  @memory_in_bytes
end

#nameString

Name of the property.

Returns:

  • (String)


102
103
104
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 102

def name
  @name
end

#osOCI::CloudMigrations::Models::OlvmOperatingSystem



113
114
115
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 113

def os
  @os
end

#portInteger

The host port.

Returns:

  • (Integer)


125
126
127
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 125

def port
  @port
end

#power_managementOCI::CloudMigrations::Models::OlvmPowerManagement



128
129
130
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 128

def power_management
  @power_management
end

#se_linuxOCI::CloudMigrations::Models::OlvmSelinux



135
136
137
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 135

def se_linux
  @se_linux
end

#spmOCI::CloudMigrations::Models::OlvmSpm



138
139
140
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 138

def spm
  @spm
end

#status_detailString

The host status details.

Returns:

  • (String)


145
146
147
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 145

def status_detail
  @status_detail
end

#summaryOCI::CloudMigrations::Models::OlvmVmSummary



148
149
150
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 148

def summary
  @summary
end

#typeOCI::CloudMigrations::Models::OlvmHostType



155
156
157
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 155

def type
  @type
end

#versionOCI::CloudMigrations::Models::OlvmVersion



162
163
164
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 162

def version
  @version
end

#vgpu_placementString

Specifies the vGPU placement strategy.

Returns:

  • (String)


166
167
168
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 166

def vgpu_placement
  @vgpu_placement
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
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
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 169

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'address': :'address',
    'auto_numa_status': :'autoNumaStatus',
    'certificate': :'certificate',
    'comment': :'comment',
    'cpu': :'cpu',
    'description': :'description',
    'is_host_device_passthrough': :'isHostDevicePassthrough',
    'display': :'display',
    'external_status': :'externalStatus',
    'hardware_information': :'hardwareInformation',
    'hosted_engine': :'hostedEngine',
    'id': :'id',
    'iscsi': :'iscsi',
    'kdump_status': :'kdumpStatus',
    'ksm': :'ksm',
    'libvirt_version': :'libvirtVersion',
    'max_scheduling_memory_in_bytes': :'maxSchedulingMemoryInBytes',
    'memory_in_bytes': :'memoryInBytes',
    'name': :'name',
    'is_network_operation_in_progress': :'isNetworkOperationInProgress',
    'is_numa_supported': :'isNumaSupported',
    'os': :'os',
    'is_override_ip_tables': :'isOverrideIpTables',
    'is_ovn_configured': :'isOvnConfigured',
    'port': :'port',
    'power_management': :'powerManagement',
    'is_reinstallation_required': :'isReinstallationRequired',
    'se_linux': :'seLinux',
    'spm': :'spm',
    'host_status': :'hostStatus',
    'status_detail': :'statusDetail',
    'summary': :'summary',
    'is_transparent_huge_pages_enabled': :'isTransparentHugePagesEnabled',
    'type': :'type',
    'is_update_available': :'isUpdateAvailable',
    'version': :'version',
    'vgpu_placement': :'vgpuPlacement'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 214

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'address': :'String',
    'auto_numa_status': :'String',
    'certificate': :'OCI::CloudMigrations::Models::OlvmCertificate',
    'comment': :'String',
    'cpu': :'OCI::CloudMigrations::Models::OlvmCpu',
    'description': :'String',
    'is_host_device_passthrough': :'BOOLEAN',
    'display': :'OCI::CloudMigrations::Models::OlvmDisplay',
    'external_status': :'String',
    'hardware_information': :'OCI::CloudMigrations::Models::OlvmHardwareInformation',
    'hosted_engine': :'OCI::CloudMigrations::Models::OlvmHostedEngine',
    'id': :'String',
    'iscsi': :'OCI::CloudMigrations::Models::OlvmIscsiDetails',
    'kdump_status': :'String',
    'ksm': :'OCI::CloudMigrations::Models::Ksm',
    'libvirt_version': :'OCI::CloudMigrations::Models::OlvmVersion',
    'max_scheduling_memory_in_bytes': :'Integer',
    'memory_in_bytes': :'Integer',
    'name': :'String',
    'is_network_operation_in_progress': :'BOOLEAN',
    'is_numa_supported': :'BOOLEAN',
    'os': :'OCI::CloudMigrations::Models::OlvmOperatingSystem',
    'is_override_ip_tables': :'BOOLEAN',
    'is_ovn_configured': :'BOOLEAN',
    'port': :'Integer',
    'power_management': :'OCI::CloudMigrations::Models::OlvmPowerManagement',
    'is_reinstallation_required': :'BOOLEAN',
    'se_linux': :'OCI::CloudMigrations::Models::OlvmSelinux',
    'spm': :'OCI::CloudMigrations::Models::OlvmSpm',
    'host_status': :'OCI::CloudMigrations::Models::OlvmHostStatus',
    'status_detail': :'String',
    'summary': :'OCI::CloudMigrations::Models::OlvmVmSummary',
    'is_transparent_huge_pages_enabled': :'BOOLEAN',
    'type': :'OCI::CloudMigrations::Models::OlvmHostType',
    'is_update_available': :'BOOLEAN',
    'version': :'OCI::CloudMigrations::Models::OlvmVersion',
    'vgpu_placement': :'String'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 505

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    address == other.address &&
    auto_numa_status == other.auto_numa_status &&
    certificate == other.certificate &&
    comment == other.comment &&
    cpu == other.cpu &&
    description == other.description &&
    is_host_device_passthrough == other.is_host_device_passthrough &&
    display == other.display &&
    external_status == other.external_status &&
    hardware_information == other.hardware_information &&
    hosted_engine == other.hosted_engine &&
    id == other.id &&
    iscsi == other.iscsi &&
    kdump_status == other.kdump_status &&
    ksm == other.ksm &&
    libvirt_version == other.libvirt_version &&
    max_scheduling_memory_in_bytes == other.max_scheduling_memory_in_bytes &&
    memory_in_bytes == other.memory_in_bytes &&
    name == other.name &&
    is_network_operation_in_progress == other.is_network_operation_in_progress &&
    is_numa_supported == other.is_numa_supported &&
    os == other.os &&
    is_override_ip_tables == other.is_override_ip_tables &&
    is_ovn_configured == other.is_ovn_configured &&
    port == other.port &&
    power_management == other.power_management &&
    is_reinstallation_required == other.is_reinstallation_required &&
    se_linux == other.se_linux &&
    spm == other.spm &&
    host_status == other.host_status &&
    status_detail == other.status_detail &&
    summary == other.summary &&
    is_transparent_huge_pages_enabled == other.is_transparent_huge_pages_enabled &&
    type == other.type &&
    is_update_available == other.is_update_available &&
    version == other.version &&
    vgpu_placement == other.vgpu_placement
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 571

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


551
552
553
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 551

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



560
561
562
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 560

def hash
  [address, auto_numa_status, certificate, comment, cpu, description, is_host_device_passthrough, display, external_status, hardware_information, hosted_engine, id, iscsi, kdump_status, ksm, libvirt_version, max_scheduling_memory_in_bytes, memory_in_bytes, name, is_network_operation_in_progress, is_numa_supported, os, is_override_ip_tables, is_ovn_configured, port, power_management, is_reinstallation_required, se_linux, spm, host_status, status_detail, summary, is_transparent_huge_pages_enabled, type, is_update_available, version, vgpu_placement].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



604
605
606
607
608
609
610
611
612
613
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 604

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



598
599
600
# File 'lib/oci/cloud_migrations/models/olvm_host.rb', line 598

def to_s
  to_hash.to_s
end