Class: OCI::CloudMigrations::Models::OlvmClusterProperties
- Inherits:
-
Object
- Object
- OCI::CloudMigrations::Models::OlvmClusterProperties
- Defined in:
- lib/oci/cloud_migrations/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
- #bios_type ⇒ OCI::CloudMigrations::Models::OlvmBiosType
-
#cluster_description ⇒ String
A human-readable description in plain text.
-
#cluster_name ⇒ String
[Required] A human-readable name in plain text.
-
#comment ⇒ String
Free text containing comments about this object.
- #cpu ⇒ OCI::CloudMigrations::Models::OlvmCpu
-
#custom_scheduling_policy_properties ⇒ Array<OCI::CloudMigrations::Models::OlvmProperty>
Custom scheduling policy properties of the cluster.
-
#data_centers ⇒ Array<OCI::CloudMigrations::Models::OlvmDataCenter>
List of data centers where storage domain belongs.
- #display ⇒ OCI::CloudMigrations::Models::OlvmDisplay
- #error_handling ⇒ OCI::CloudMigrations::Models::OlvmErrorHandling
- #fencing_policy ⇒ OCI::CloudMigrations::Models::OlvmFencingPolicy
-
#fips_mode ⇒ String
FIPS mode of the cluster.
-
#firewall_type ⇒ String
The type of firewall to be used on hosts in this cluster.
-
#gluster_tuned_profile ⇒ String
The name of the tuned profile.
-
#is_ballooning_enabled ⇒ BOOLEAN
Whether ballooning is enabled.
-
#is_gluster_service ⇒ BOOLEAN
Indicates if Gluster service is used.
-
#is_ha_reservation ⇒ BOOLEAN
Indicates whether HA reservation is enabled.
-
#is_trusted_service ⇒ BOOLEAN
Indicates if trusted service is enabled.
-
#is_tunnel_migration ⇒ BOOLEAN
Indicates if tunnel migration is enabled.
-
#is_update_in_progress ⇒ BOOLEAN
Indicates if an upgrade has been started for the cluster.
-
#is_use_threads_as_cores ⇒ BOOLEAN
Indicates if threads should be used as cores.
-
#is_virt_service ⇒ BOOLEAN
Indicates if virt service is enabled.
-
#is_vnc_encryption ⇒ BOOLEAN
Indicates if VNC encryption is enabled.
- #ksm ⇒ OCI::CloudMigrations::Models::Ksm
-
#log_max_memory_used_threshold ⇒ Integer
The memory consumption threshold for logging audit log events.
-
#log_max_memory_used_threshold_type ⇒ String
The memory consumption threshold type for logging audit log events.
- #memory_policy ⇒ OCI::CloudMigrations::Models::OlvmMemoryPolicy
- #migration_policy ⇒ OCI::CloudMigrations::Models::OlvmMigrationOptions
-
#required_rng_sources ⇒ Array<OCI::CloudMigrations::Models::RngSource>
Set of random number generator (RNG) sources required from each host in the cluster.
- #serial_number ⇒ OCI::CloudMigrations::Models::OlvmSerialNumber
-
#supported_versions ⇒ Array<OCI::CloudMigrations::Models::OlvmVersion>
List of supported versions.
-
#switch_type ⇒ String
Describes all switch types supported by the Manager.
-
#upgrade_correlation_id ⇒ String
The upgrade correlation identifier.
-
#upgrade_percent_complete ⇒ Integer
If an upgrade is in progress, the upgrade???s reported percent complete.
- #version ⇒ OCI::CloudMigrations::Models::OlvmVersion
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ OlvmClusterProperties
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ OlvmClusterProperties
Initializes the object
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_migrations/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_type ⇒ OCI::CloudMigrations::Models::OlvmBiosType
49 50 51 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 49 def bios_type @bios_type end |
#cluster_description ⇒ String
A human-readable description in plain text.
38 39 40 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 38 def cluster_description @cluster_description end |
#cluster_name ⇒ String
[Required] A human-readable name in plain text.
34 35 36 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 34 def cluster_name @cluster_name end |
#comment ⇒ String
Free text containing comments about this object.
42 43 44 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 42 def comment @comment end |
#cpu ⇒ OCI::CloudMigrations::Models::OlvmCpu
52 53 54 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 52 def cpu @cpu end |
#custom_scheduling_policy_properties ⇒ Array<OCI::CloudMigrations::Models::OlvmProperty>
Custom scheduling policy properties of the cluster.
56 57 58 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 56 def custom_scheduling_policy_properties @custom_scheduling_policy_properties end |
#data_centers ⇒ Array<OCI::CloudMigrations::Models::OlvmDataCenter>
List of data centers where storage domain belongs
156 157 158 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 156 def data_centers @data_centers end |
#display ⇒ OCI::CloudMigrations::Models::OlvmDisplay
59 60 61 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 59 def display @display end |
#error_handling ⇒ OCI::CloudMigrations::Models::OlvmErrorHandling
62 63 64 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 62 def error_handling @error_handling end |
#fencing_policy ⇒ OCI::CloudMigrations::Models::OlvmFencingPolicy
65 66 67 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 65 def fencing_policy @fencing_policy end |
#fips_mode ⇒ String
FIPS mode of the cluster.
69 70 71 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 69 def fips_mode @fips_mode end |
#firewall_type ⇒ String
The type of firewall to be used on hosts in this cluster.
73 74 75 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 73 def firewall_type @firewall_type end |
#gluster_tuned_profile ⇒ String
The name of the tuned profile.
81 82 83 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 81 def gluster_tuned_profile @gluster_tuned_profile end |
#is_ballooning_enabled ⇒ BOOLEAN
Whether ballooning is enabled.
46 47 48 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 46 def is_ballooning_enabled @is_ballooning_enabled end |
#is_gluster_service ⇒ BOOLEAN
Indicates if Gluster service is used.
77 78 79 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 77 def is_gluster_service @is_gluster_service end |
#is_ha_reservation ⇒ BOOLEAN
Indicates whether HA reservation is enabled.
85 86 87 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 85 def is_ha_reservation @is_ha_reservation end |
#is_trusted_service ⇒ BOOLEAN
Indicates if trusted service is enabled
125 126 127 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 125 def is_trusted_service @is_trusted_service end |
#is_tunnel_migration ⇒ BOOLEAN
Indicates if tunnel migration is enabled
129 130 131 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 129 def is_tunnel_migration @is_tunnel_migration end |
#is_update_in_progress ⇒ BOOLEAN
Indicates if an upgrade has been started for the cluster.
137 138 139 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 137 def is_update_in_progress @is_update_in_progress end |
#is_use_threads_as_cores ⇒ BOOLEAN
Indicates if threads should be used as cores
121 122 123 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 121 def is_use_threads_as_cores @is_use_threads_as_cores end |
#is_virt_service ⇒ BOOLEAN
Indicates if virt service is enabled.
148 149 150 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 148 def is_virt_service @is_virt_service end |
#is_vnc_encryption ⇒ BOOLEAN
Indicates if VNC encryption is enabled.
152 153 154 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 152 def is_vnc_encryption @is_vnc_encryption end |
#ksm ⇒ OCI::CloudMigrations::Models::Ksm
88 89 90 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 88 def ksm @ksm end |
#log_max_memory_used_threshold ⇒ Integer
The memory consumption threshold for logging audit log events
92 93 94 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 92 def log_max_memory_used_threshold @log_max_memory_used_threshold end |
#log_max_memory_used_threshold_type ⇒ String
The memory consumption threshold type for logging audit log events.
96 97 98 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 96 def log_max_memory_used_threshold_type @log_max_memory_used_threshold_type end |
#memory_policy ⇒ OCI::CloudMigrations::Models::OlvmMemoryPolicy
99 100 101 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 99 def memory_policy @memory_policy end |
#migration_policy ⇒ OCI::CloudMigrations::Models::OlvmMigrationOptions
102 103 104 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 102 def migration_policy @migration_policy end |
#required_rng_sources ⇒ Array<OCI::CloudMigrations::Models::RngSource>
Set of random number generator (RNG) sources required from each host in the cluster.
106 107 108 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 106 def required_rng_sources @required_rng_sources end |
#serial_number ⇒ OCI::CloudMigrations::Models::OlvmSerialNumber
109 110 111 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 109 def serial_number @serial_number end |
#supported_versions ⇒ Array<OCI::CloudMigrations::Models::OlvmVersion>
List of supported versions.
113 114 115 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 113 def supported_versions @supported_versions end |
#switch_type ⇒ String
Describes all switch types supported by the Manager
117 118 119 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 117 def switch_type @switch_type end |
#upgrade_correlation_id ⇒ String
The upgrade correlation identifier.
133 134 135 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 133 def upgrade_correlation_id @upgrade_correlation_id end |
#upgrade_percent_complete ⇒ Integer
If an upgrade is in progress, the upgrade???s reported percent complete.
141 142 143 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 141 def upgrade_percent_complete @upgrade_percent_complete end |
#version ⇒ OCI::CloudMigrations::Models::OlvmVersion
144 145 146 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 144 def version @version end |
Class Method Details
.attribute_map ⇒ Object
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_migrations/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_types ⇒ Object
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_migrations/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::CloudMigrations::Models::OlvmBiosType', 'cpu': :'OCI::CloudMigrations::Models::OlvmCpu', 'custom_scheduling_policy_properties': :'Array<OCI::CloudMigrations::Models::OlvmProperty>', 'display': :'OCI::CloudMigrations::Models::OlvmDisplay', 'error_handling': :'OCI::CloudMigrations::Models::OlvmErrorHandling', 'fencing_policy': :'OCI::CloudMigrations::Models::OlvmFencingPolicy', 'fips_mode': :'String', 'firewall_type': :'String', 'is_gluster_service': :'BOOLEAN', 'gluster_tuned_profile': :'String', 'is_ha_reservation': :'BOOLEAN', 'ksm': :'OCI::CloudMigrations::Models::Ksm', 'log_max_memory_used_threshold': :'Integer', 'log_max_memory_used_threshold_type': :'String', 'memory_policy': :'OCI::CloudMigrations::Models::OlvmMemoryPolicy', 'migration_policy': :'OCI::CloudMigrations::Models::OlvmMigrationOptions', 'required_rng_sources': :'Array<OCI::CloudMigrations::Models::RngSource>', 'serial_number': :'OCI::CloudMigrations::Models::OlvmSerialNumber', 'supported_versions': :'Array<OCI::CloudMigrations::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::CloudMigrations::Models::OlvmVersion', 'is_virt_service': :'BOOLEAN', 'is_vnc_encryption': :'BOOLEAN', 'data_centers': :'Array<OCI::CloudMigrations::Models::OlvmDataCenter>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
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_migrations/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
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_migrations/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
555 556 557 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 555 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
564 565 566 |
# File 'lib/oci/cloud_migrations/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_hash ⇒ Hash
Returns the object in the form of hash
608 609 610 611 612 613 614 615 616 617 |
# File 'lib/oci/cloud_migrations/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_s ⇒ String
Returns the string representation of the object
602 603 604 |
# File 'lib/oci/cloud_migrations/models/olvm_cluster_properties.rb', line 602 def to_s to_hash.to_s end |