Class: OCI::CloudBridge::Models::OlvmClusterProperties

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/cloud_bridge/models/olvm_cluster_properties.rb

Overview

OLVM Cluster properties.

Constant Summary collapse

FIPS_MODE_ENUM =
[
  FIPS_MODE_DISABLED = 'DISABLED'.freeze,
  FIPS_MODE_ENABLED = 'ENABLED'.freeze,
  FIPS_MODE_UNDEFINED = 'UNDEFINED'.freeze
].freeze
FIREWALL_TYPE_ENUM =
[
  FIREWALL_TYPE_FIREWALLD = 'FIREWALLD'.freeze,
  FIREWALL_TYPE_IPTABLES = 'IPTABLES'.freeze
].freeze
LOG_MAX_MEMORY_USED_THRESHOLD_TYPE_ENUM =
[
  LOG_MAX_MEMORY_USED_THRESHOLD_TYPE_ABSOLUTE_VALUE_IN_MB = 'ABSOLUTE_VALUE_IN_MB'.freeze,
  LOG_MAX_MEMORY_USED_THRESHOLD_TYPE_PERCENTAGE = 'PERCENTAGE'.freeze
].freeze
SWITCH_TYPE_ENUM =
[
  SWITCH_TYPE_LEGACY = 'LEGACY'.freeze,
  SWITCH_TYPE_OVS = 'OVS'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OlvmClusterProperties

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
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
465
466
467
468
469
470
471
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 282

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.cluster_name = attributes[:'clusterName'] if attributes[:'clusterName']

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

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

  self.cluster_description = attributes[:'clusterDescription'] if attributes[:'clusterDescription']

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

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

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

  self.is_ballooning_enabled = attributes[:'isBallooningEnabled'] unless attributes[:'isBallooningEnabled'].nil?

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

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

  self.bios_type = attributes[:'biosType'] if attributes[:'biosType']

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

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

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

  self.custom_scheduling_policy_properties = attributes[:'customSchedulingPolicyProperties'] if attributes[:'customSchedulingPolicyProperties']

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

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

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

  self.error_handling = attributes[:'errorHandling'] if attributes[:'errorHandling']

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

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

  self.fencing_policy = attributes[:'fencingPolicy'] if attributes[:'fencingPolicy']

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

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

  self.fips_mode = attributes[:'fipsMode'] if attributes[:'fipsMode']

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

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

  self.firewall_type = attributes[:'firewallType'] if attributes[:'firewallType']

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

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

  self.is_gluster_service = attributes[:'isGlusterService'] unless attributes[:'isGlusterService'].nil?

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

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

  self.gluster_tuned_profile = attributes[:'glusterTunedProfile'] if attributes[:'glusterTunedProfile']

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

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

  self.is_ha_reservation = attributes[:'isHaReservation'] unless attributes[:'isHaReservation'].nil?

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

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

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

  self.log_max_memory_used_threshold = attributes[:'logMaxMemoryUsedThreshold'] if attributes[:'logMaxMemoryUsedThreshold']

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

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

  self.log_max_memory_used_threshold_type = attributes[:'logMaxMemoryUsedThresholdType'] if attributes[:'logMaxMemoryUsedThresholdType']

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

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

  self.memory_policy = attributes[:'memoryPolicy'] if attributes[:'memoryPolicy']

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

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

  self.migration_policy = attributes[:'migrationPolicy'] if attributes[:'migrationPolicy']

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

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

  self.required_rng_sources = attributes[:'requiredRngSources'] if attributes[:'requiredRngSources']

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

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

  self.serial_number = attributes[:'serialNumber'] if attributes[:'serialNumber']

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

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

  self.supported_versions = attributes[:'supportedVersions'] if attributes[:'supportedVersions']

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

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

  self.switch_type = attributes[:'switchType'] if attributes[:'switchType']

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

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

  self.is_use_threads_as_cores = attributes[:'isUseThreadsAsCores'] unless attributes[:'isUseThreadsAsCores'].nil?

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

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

  self.is_trusted_service = attributes[:'isTrustedService'] unless attributes[:'isTrustedService'].nil?

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

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

  self.is_tunnel_migration = attributes[:'isTunnelMigration'] unless attributes[:'isTunnelMigration'].nil?

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

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

  self.upgrade_correlation_id = attributes[:'upgradeCorrelationId'] if attributes[:'upgradeCorrelationId']

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

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

  self.is_update_in_progress = attributes[:'isUpdateInProgress'] unless attributes[:'isUpdateInProgress'].nil?

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

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

  self.upgrade_percent_complete = attributes[:'upgradePercentComplete'] if attributes[:'upgradePercentComplete']

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

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

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

  self.is_virt_service = attributes[:'isVirtService'] unless attributes[:'isVirtService'].nil?

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

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

  self.is_vnc_encryption = attributes[:'isVncEncryption'] unless attributes[:'isVncEncryption'].nil?

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

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

  self.data_centers = attributes[:'dataCenters'] if attributes[:'dataCenters']

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

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

Instance Attribute Details

#bios_typeOCI::CloudBridge::Models::OlvmBiosType



49
50
51
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 49

def bios_type
  @bios_type
end

#cluster_descriptionString

A human-readable description in plain text.

Returns:

  • (String)


38
39
40
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 38

def cluster_description
  @cluster_description
end

#cluster_nameString

[Required] A human-readable name in plain text.

Returns:

  • (String)


34
35
36
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 34

def cluster_name
  @cluster_name
end

#commentString

Free text containing comments about this object.

Returns:

  • (String)


42
43
44
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 42

def comment
  @comment
end

#cpuOCI::CloudBridge::Models::OlvmCpu



52
53
54
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 52

def cpu
  @cpu
end

#custom_scheduling_policy_propertiesArray<OCI::CloudBridge::Models::OlvmProperty>

Custom scheduling policy properties of the cluster.



56
57
58
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 56

def custom_scheduling_policy_properties
  @custom_scheduling_policy_properties
end

#data_centersArray<OCI::CloudBridge::Models::OlvmDataCenter>

List of data centers where storage domain belongs



156
157
158
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 156

def data_centers
  @data_centers
end

#displayOCI::CloudBridge::Models::OlvmDisplay



59
60
61
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 59

def display
  @display
end

#error_handlingOCI::CloudBridge::Models::OlvmErrorHandling



62
63
64
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 62

def error_handling
  @error_handling
end

#fencing_policyOCI::CloudBridge::Models::OlvmFencingPolicy



65
66
67
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 65

def fencing_policy
  @fencing_policy
end

#fips_modeString

FIPS mode of the cluster.

Returns:

  • (String)


69
70
71
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 69

def fips_mode
  @fips_mode
end

#firewall_typeString

The type of firewall to be used on hosts in this cluster.

Returns:

  • (String)


73
74
75
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 73

def firewall_type
  @firewall_type
end

#gluster_tuned_profileString

The name of the tuned profile.

Returns:

  • (String)


81
82
83
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 81

def gluster_tuned_profile
  @gluster_tuned_profile
end

#is_ballooning_enabledBOOLEAN

Whether ballooning is enabled.

Returns:

  • (BOOLEAN)


46
47
48
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 46

def is_ballooning_enabled
  @is_ballooning_enabled
end

#is_gluster_serviceBOOLEAN

Indicates if Gluster service is used.

Returns:

  • (BOOLEAN)


77
78
79
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 77

def is_gluster_service
  @is_gluster_service
end

#is_ha_reservationBOOLEAN

Indicates whether HA reservation is enabled.

Returns:

  • (BOOLEAN)


85
86
87
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 85

def is_ha_reservation
  @is_ha_reservation
end

#is_trusted_serviceBOOLEAN

Indicates if trusted service is enabled

Returns:

  • (BOOLEAN)


125
126
127
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 125

def is_trusted_service
  @is_trusted_service
end

#is_tunnel_migrationBOOLEAN

Indicates if tunnel migration is enabled

Returns:

  • (BOOLEAN)


129
130
131
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 129

def is_tunnel_migration
  @is_tunnel_migration
end

#is_update_in_progressBOOLEAN

Indicates if an upgrade has been started for the cluster.

Returns:

  • (BOOLEAN)


137
138
139
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 137

def is_update_in_progress
  @is_update_in_progress
end

#is_use_threads_as_coresBOOLEAN

Indicates if threads should be used as cores

Returns:

  • (BOOLEAN)


121
122
123
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 121

def is_use_threads_as_cores
  @is_use_threads_as_cores
end

#is_virt_serviceBOOLEAN

Indicates if virt service is enabled.

Returns:

  • (BOOLEAN)


148
149
150
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 148

def is_virt_service
  @is_virt_service
end

#is_vnc_encryptionBOOLEAN

Indicates if VNC encryption is enabled.

Returns:

  • (BOOLEAN)


152
153
154
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 152

def is_vnc_encryption
  @is_vnc_encryption
end

#ksmOCI::CloudBridge::Models::Ksm



88
89
90
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 88

def ksm
  @ksm
end

#log_max_memory_used_thresholdInteger

The memory consumption threshold for logging audit log events

Returns:

  • (Integer)


92
93
94
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 92

def log_max_memory_used_threshold
  @log_max_memory_used_threshold
end

#log_max_memory_used_threshold_typeString

The memory consumption threshold type for logging audit log events.

Returns:

  • (String)


96
97
98
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 96

def log_max_memory_used_threshold_type
  @log_max_memory_used_threshold_type
end

#memory_policyOCI::CloudBridge::Models::OlvmMemoryPolicy



99
100
101
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 99

def memory_policy
  @memory_policy
end

#migration_policyOCI::CloudBridge::Models::OlvmMigrationOptions



102
103
104
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 102

def migration_policy
  @migration_policy
end

#required_rng_sourcesArray<OCI::CloudBridge::Models::RngSource>

Set of random number generator (RNG) sources required from each host in the cluster.

Returns:

  • (Array<OCI::CloudBridge::Models::RngSource>)


106
107
108
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 106

def required_rng_sources
  @required_rng_sources
end

#serial_numberOCI::CloudBridge::Models::OlvmSerialNumber



109
110
111
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 109

def serial_number
  @serial_number
end

#supported_versionsArray<OCI::CloudBridge::Models::OlvmVersion>

List of supported versions.



113
114
115
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 113

def supported_versions
  @supported_versions
end

#switch_typeString

Describes all switch types supported by the Manager

Returns:

  • (String)


117
118
119
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 117

def switch_type
  @switch_type
end

#upgrade_correlation_idString

The upgrade correlation identifier.

Returns:

  • (String)


133
134
135
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 133

def upgrade_correlation_id
  @upgrade_correlation_id
end

#upgrade_percent_completeInteger

If an upgrade is in progress, the upgradeu2019s reported percent complete.

Returns:

  • (Integer)


141
142
143
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 141

def upgrade_percent_complete
  @upgrade_percent_complete
end

#versionOCI::CloudBridge::Models::OlvmVersion



144
145
146
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 144

def version
  @version
end

Class Method Details

.attribute_mapObject

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



159
160
161
162
163
164
165
166
167
168
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
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 159

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'cluster_name': :'clusterName',
    'cluster_description': :'clusterDescription',
    'comment': :'comment',
    'is_ballooning_enabled': :'isBallooningEnabled',
    'bios_type': :'biosType',
    'cpu': :'cpu',
    'custom_scheduling_policy_properties': :'customSchedulingPolicyProperties',
    'display': :'display',
    'error_handling': :'errorHandling',
    'fencing_policy': :'fencingPolicy',
    'fips_mode': :'fipsMode',
    'firewall_type': :'firewallType',
    'is_gluster_service': :'isGlusterService',
    'gluster_tuned_profile': :'glusterTunedProfile',
    'is_ha_reservation': :'isHaReservation',
    'ksm': :'ksm',
    'log_max_memory_used_threshold': :'logMaxMemoryUsedThreshold',
    'log_max_memory_used_threshold_type': :'logMaxMemoryUsedThresholdType',
    'memory_policy': :'memoryPolicy',
    'migration_policy': :'migrationPolicy',
    'required_rng_sources': :'requiredRngSources',
    'serial_number': :'serialNumber',
    'supported_versions': :'supportedVersions',
    'switch_type': :'switchType',
    'is_use_threads_as_cores': :'isUseThreadsAsCores',
    'is_trusted_service': :'isTrustedService',
    'is_tunnel_migration': :'isTunnelMigration',
    'upgrade_correlation_id': :'upgradeCorrelationId',
    'is_update_in_progress': :'isUpdateInProgress',
    'upgrade_percent_complete': :'upgradePercentComplete',
    'version': :'version',
    'is_virt_service': :'isVirtService',
    'is_vnc_encryption': :'isVncEncryption',
    'data_centers': :'dataCenters'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



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
229
230
231
232
233
234
235
236
237
238
239
240
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 201

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'cluster_name': :'String',
    'cluster_description': :'String',
    'comment': :'String',
    'is_ballooning_enabled': :'BOOLEAN',
    'bios_type': :'OCI::CloudBridge::Models::OlvmBiosType',
    'cpu': :'OCI::CloudBridge::Models::OlvmCpu',
    'custom_scheduling_policy_properties': :'Array<OCI::CloudBridge::Models::OlvmProperty>',
    'display': :'OCI::CloudBridge::Models::OlvmDisplay',
    'error_handling': :'OCI::CloudBridge::Models::OlvmErrorHandling',
    'fencing_policy': :'OCI::CloudBridge::Models::OlvmFencingPolicy',
    'fips_mode': :'String',
    'firewall_type': :'String',
    'is_gluster_service': :'BOOLEAN',
    'gluster_tuned_profile': :'String',
    'is_ha_reservation': :'BOOLEAN',
    'ksm': :'OCI::CloudBridge::Models::Ksm',
    'log_max_memory_used_threshold': :'Integer',
    'log_max_memory_used_threshold_type': :'String',
    'memory_policy': :'OCI::CloudBridge::Models::OlvmMemoryPolicy',
    'migration_policy': :'OCI::CloudBridge::Models::OlvmMigrationOptions',
    'required_rng_sources': :'Array<OCI::CloudBridge::Models::RngSource>',
    'serial_number': :'OCI::CloudBridge::Models::OlvmSerialNumber',
    'supported_versions': :'Array<OCI::CloudBridge::Models::OlvmVersion>',
    'switch_type': :'String',
    'is_use_threads_as_cores': :'BOOLEAN',
    'is_trusted_service': :'BOOLEAN',
    'is_tunnel_migration': :'BOOLEAN',
    'upgrade_correlation_id': :'String',
    'is_update_in_progress': :'BOOLEAN',
    'upgrade_percent_complete': :'Integer',
    'version': :'OCI::CloudBridge::Models::OlvmVersion',
    'is_virt_service': :'BOOLEAN',
    'is_vnc_encryption': :'BOOLEAN',
    'data_centers': :'Array<OCI::CloudBridge::Models::OlvmDataCenter>'
    # 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



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
547
548
549
550
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 512

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

  self.class == other.class &&
    cluster_name == other.cluster_name &&
    cluster_description == other.cluster_description &&
    comment == other.comment &&
    is_ballooning_enabled == other.is_ballooning_enabled &&
    bios_type == other.bios_type &&
    cpu == other.cpu &&
    custom_scheduling_policy_properties == other.custom_scheduling_policy_properties &&
    display == other.display &&
    error_handling == other.error_handling &&
    fencing_policy == other.fencing_policy &&
    fips_mode == other.fips_mode &&
    firewall_type == other.firewall_type &&
    is_gluster_service == other.is_gluster_service &&
    gluster_tuned_profile == other.gluster_tuned_profile &&
    is_ha_reservation == other.is_ha_reservation &&
    ksm == other.ksm &&
    log_max_memory_used_threshold == other.log_max_memory_used_threshold &&
    log_max_memory_used_threshold_type == other.log_max_memory_used_threshold_type &&
    memory_policy == other.memory_policy &&
    migration_policy == other.migration_policy &&
    required_rng_sources == other.required_rng_sources &&
    serial_number == other.serial_number &&
    supported_versions == other.supported_versions &&
    switch_type == other.switch_type &&
    is_use_threads_as_cores == other.is_use_threads_as_cores &&
    is_trusted_service == other.is_trusted_service &&
    is_tunnel_migration == other.is_tunnel_migration &&
    upgrade_correlation_id == other.upgrade_correlation_id &&
    is_update_in_progress == other.is_update_in_progress &&
    upgrade_percent_complete == other.upgrade_percent_complete &&
    version == other.version &&
    is_virt_service == other.is_virt_service &&
    is_vnc_encryption == other.is_vnc_encryption &&
    data_centers == other.data_centers
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



575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 575

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


555
556
557
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 555

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



564
565
566
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 564

def hash
  [cluster_name, cluster_description, comment, is_ballooning_enabled, bios_type, cpu, custom_scheduling_policy_properties, display, error_handling, fencing_policy, fips_mode, firewall_type, is_gluster_service, gluster_tuned_profile, is_ha_reservation, ksm, log_max_memory_used_threshold, log_max_memory_used_threshold_type, memory_policy, migration_policy, required_rng_sources, serial_number, supported_versions, switch_type, is_use_threads_as_cores, is_trusted_service, is_tunnel_migration, upgrade_correlation_id, is_update_in_progress, upgrade_percent_complete, version, is_virt_service, is_vnc_encryption, data_centers].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



608
609
610
611
612
613
614
615
616
617
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 608

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



602
603
604
# File 'lib/oci/cloud_bridge/models/olvm_cluster_properties.rb', line 602

def to_s
  to_hash.to_s
end