Class: OCI::CloudBridge::Models::OlvmTemplateProperties
- Inherits:
-
Object
- Object
- OCI::CloudBridge::Models::OlvmTemplateProperties
- Defined in:
- lib/oci/cloud_bridge/models/olvm_template_properties.rb
Overview
OLVM Template properties.
Constant Summary collapse
- AUTO_PINNING_POLICY_ENUM =
[ AUTO_PINNING_POLICY_ADJUST = 'ADJUST'.freeze, AUTO_PINNING_POLICY_DISABLED = 'DISABLED'.freeze, AUTO_PINNING_POLICY_EXISTING = 'EXISTING'.freeze ].freeze
- CPU_PINNING_POLICY_ENUM =
[ CPU_PINNING_POLICY_DEDICATED = 'DEDICATED'.freeze, CPU_PINNING_POLICY_ISOLATED_THREADS = 'ISOLATED_THREADS'.freeze, CPU_PINNING_POLICY_MANUAL = 'MANUAL'.freeze, CPU_PINNING_POLICY_NONE = 'NONE'.freeze, CPU_PINNING_POLICY_RESIZE_AND_PIN_NUMA = 'RESIZE_AND_PIN_NUMA'.freeze ].freeze
- STATUS_ENUM =
[ STATUS_ILLEGAL = 'ILLEGAL'.freeze, STATUS_LOCKED = 'LOCKED'.freeze, STATUS_OK = 'OK'.freeze ].freeze
- STORAGE_ERROR_RESUME_BEHAVIOR_ENUM =
[ STORAGE_ERROR_RESUME_BEHAVIOR_AUTO_RESUME = 'AUTO_RESUME'.freeze, STORAGE_ERROR_RESUME_BEHAVIOR_KILL = 'KILL'.freeze, STORAGE_ERROR_RESUME_BEHAVIOR_LEAVE_PAUSED = 'LEAVE_PAUSED'.freeze ].freeze
Instance Attribute Summary collapse
-
#auto_pinning_policy ⇒ String
Specifies if and how the auto CPU and NUMA configuration is applied.
- #bios ⇒ OCI::CloudBridge::Models::OlvmBios
-
#comment ⇒ String
Free text containing comments about this object.
- #console ⇒ OCI::CloudBridge::Models::OlvmConsole
- #cpu ⇒ OCI::CloudBridge::Models::OlvmCpu
-
#cpu_pinning_policy ⇒ String
Type representing the CPU and NUMA pinning policy.
-
#cpu_shares ⇒ Integer
Number of CPU Shares.
- #custom_compatibility_version ⇒ OCI::CloudBridge::Models::OlvmVersion
-
#custom_cpu_model ⇒ String
Custom CPU model.
-
#custom_emulated_machine ⇒ String
Custom Emulated machine.
-
#custom_properties ⇒ Array<OCI::CloudBridge::Models::OlvmCustomProperty>
Custom properties applied to the vNIC profile.
-
#description ⇒ String
A human-readable description in plain text.
- #display ⇒ OCI::CloudBridge::Models::OlvmDisplay
- #domain ⇒ OCI::CloudBridge::Models::OlvmDomain
- #high_availability ⇒ OCI::CloudBridge::Models::OlvmHighAvailability
- #initialization ⇒ OCI::CloudBridge::Models::OlvmInitialization
-
#io_threads ⇒ Integer
For performance tuning of IO threading.
-
#is_delete_protected ⇒ BOOLEAN
If true, the virtual machine cannot be deleted.
-
#is_multi_queues_enabled ⇒ BOOLEAN
If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus.
-
#is_soundcard_enabled ⇒ BOOLEAN
If true, the sound card is added to the virtual machine.
-
#is_start_paused ⇒ BOOLEAN
If true, the virtual machine will be initially in 'paused' state after start.
-
#is_stateless ⇒ BOOLEAN
If true, the virtual machine is stateless - itu2019s state (disks) are rolled-back after shutdown.
-
#is_tpm_enabled ⇒ BOOLEAN
If true, a TPM device is added to the virtual machine.
-
#is_tunnel_migration ⇒ BOOLEAN
If true, the network data transfer will be encrypted during virtual machine live migration.
-
#is_virtio_scsi_enabled ⇒ BOOLEAN
Indicates if Virtio SCSI Support is enabled.
-
#is_virtio_scsi_multi_queues_enabled ⇒ BOOLEAN
If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues.
- #large_icon ⇒ OCI::CloudBridge::Models::OlvmIcon
-
#memory_in_bytes ⇒ Integer
The virtual machineu2019s memory, in bytes.
- #memory_policy ⇒ OCI::CloudBridge::Models::OlvmMemoryPolicy
-
#migration_downtime_in_ms ⇒ Integer
Maximum time the virtual machine can be non responsive during its live migration to another host in ms.
- #migration_policy ⇒ OCI::CloudBridge::Models::OlvmMigrationOptions
-
#origin ⇒ String
The origin of this virtual machine.
- #os ⇒ OCI::CloudBridge::Models::OlvmOperatingSystem
- #placement_policy ⇒ OCI::CloudBridge::Models::OlvmVmPlacementPolicy
- #serial_number ⇒ OCI::CloudBridge::Models::OlvmSerialNumber
- #small_icon ⇒ OCI::CloudBridge::Models::OlvmIcon
-
#status ⇒ String
The status of the template.
- #storage_domain_lease ⇒ OCI::CloudBridge::Models::OlvmStorageDomainProperties
-
#storage_error_resume_behavior ⇒ String
Determines how the virtual machine will be resumed after storage error.
-
#template_name ⇒ String
[Required] Name of the property.
-
#time_created ⇒ DateTime
Creation time.
-
#timezone ⇒ String
Name of time zone.
- #type ⇒ OCI::CloudBridge::Models::OlvmVmType
- #usb ⇒ OCI::CloudBridge::Models::OlvmUsb
- #version ⇒ OCI::CloudBridge::Models::OlvmTemplateVersion
-
#virtio_scsi_multi_queues ⇒ Integer
Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info.
- #vm ⇒ OCI::CloudBridge::Models::OlvmVirtualMachine
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 = {}) ⇒ OlvmTemplateProperties
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 = {}) ⇒ OlvmTemplateProperties
Initializes the object
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 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 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 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 368 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.auto_pinning_policy = attributes[:'autoPinningPolicy'] if attributes[:'autoPinningPolicy'] raise 'You cannot provide both :autoPinningPolicy and :auto_pinning_policy' if attributes.key?(:'autoPinningPolicy') && attributes.key?(:'auto_pinning_policy') self.auto_pinning_policy = attributes[:'auto_pinning_policy'] if attributes[:'auto_pinning_policy'] self.bios = attributes[:'bios'] if attributes[:'bios'] self.comment = attributes[:'comment'] if attributes[:'comment'] self.console = attributes[:'console'] if attributes[:'console'] self.cpu = attributes[:'cpu'] if attributes[:'cpu'] self.cpu_pinning_policy = attributes[:'cpuPinningPolicy'] if attributes[:'cpuPinningPolicy'] raise 'You cannot provide both :cpuPinningPolicy and :cpu_pinning_policy' if attributes.key?(:'cpuPinningPolicy') && attributes.key?(:'cpu_pinning_policy') self.cpu_pinning_policy = attributes[:'cpu_pinning_policy'] if attributes[:'cpu_pinning_policy'] self.cpu_shares = attributes[:'cpuShares'] if attributes[:'cpuShares'] raise 'You cannot provide both :cpuShares and :cpu_shares' if attributes.key?(:'cpuShares') && attributes.key?(:'cpu_shares') self.cpu_shares = attributes[:'cpu_shares'] if attributes[:'cpu_shares'] self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated'] raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created') self.time_created = attributes[:'time_created'] if attributes[:'time_created'] self.custom_compatibility_version = attributes[:'customCompatibilityVersion'] if attributes[:'customCompatibilityVersion'] raise 'You cannot provide both :customCompatibilityVersion and :custom_compatibility_version' if attributes.key?(:'customCompatibilityVersion') && attributes.key?(:'custom_compatibility_version') self.custom_compatibility_version = attributes[:'custom_compatibility_version'] if attributes[:'custom_compatibility_version'] self.custom_cpu_model = attributes[:'customCpuModel'] if attributes[:'customCpuModel'] raise 'You cannot provide both :customCpuModel and :custom_cpu_model' if attributes.key?(:'customCpuModel') && attributes.key?(:'custom_cpu_model') self.custom_cpu_model = attributes[:'custom_cpu_model'] if attributes[:'custom_cpu_model'] self.custom_emulated_machine = attributes[:'customEmulatedMachine'] if attributes[:'customEmulatedMachine'] raise 'You cannot provide both :customEmulatedMachine and :custom_emulated_machine' if attributes.key?(:'customEmulatedMachine') && attributes.key?(:'custom_emulated_machine') self.custom_emulated_machine = attributes[:'custom_emulated_machine'] if attributes[:'custom_emulated_machine'] self.custom_properties = attributes[:'customProperties'] if attributes[:'customProperties'] raise 'You cannot provide both :customProperties and :custom_properties' if attributes.key?(:'customProperties') && attributes.key?(:'custom_properties') self.custom_properties = attributes[:'custom_properties'] if attributes[:'custom_properties'] self.is_delete_protected = attributes[:'isDeleteProtected'] unless attributes[:'isDeleteProtected'].nil? raise 'You cannot provide both :isDeleteProtected and :is_delete_protected' if attributes.key?(:'isDeleteProtected') && attributes.key?(:'is_delete_protected') self.is_delete_protected = attributes[:'is_delete_protected'] unless attributes[:'is_delete_protected'].nil? self.description = attributes[:'description'] if attributes[:'description'] self.display = attributes[:'display'] if attributes[:'display'] self.domain = attributes[:'domain'] if attributes[:'domain'] self.high_availability = attributes[:'highAvailability'] if attributes[:'highAvailability'] raise 'You cannot provide both :highAvailability and :high_availability' if attributes.key?(:'highAvailability') && attributes.key?(:'high_availability') self.high_availability = attributes[:'high_availability'] if attributes[:'high_availability'] self.initialization = attributes[:'initialization'] if attributes[:'initialization'] self.io_threads = attributes[:'ioThreads'] if attributes[:'ioThreads'] raise 'You cannot provide both :ioThreads and :io_threads' if attributes.key?(:'ioThreads') && attributes.key?(:'io_threads') self.io_threads = attributes[:'io_threads'] if attributes[:'io_threads'] self.large_icon = attributes[:'largeIcon'] if attributes[:'largeIcon'] raise 'You cannot provide both :largeIcon and :large_icon' if attributes.key?(:'largeIcon') && attributes.key?(:'large_icon') self.large_icon = attributes[:'large_icon'] if attributes[:'large_icon'] self.storage_domain_lease = attributes[:'storageDomainLease'] if attributes[:'storageDomainLease'] raise 'You cannot provide both :storageDomainLease and :storage_domain_lease' if attributes.key?(:'storageDomainLease') && attributes.key?(:'storage_domain_lease') self.storage_domain_lease = attributes[:'storage_domain_lease'] if attributes[:'storage_domain_lease'] 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.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.migration_downtime_in_ms = attributes[:'migrationDowntimeInMs'] if attributes[:'migrationDowntimeInMs'] raise 'You cannot provide both :migrationDowntimeInMs and :migration_downtime_in_ms' if attributes.key?(:'migrationDowntimeInMs') && attributes.key?(:'migration_downtime_in_ms') self.migration_downtime_in_ms = attributes[:'migration_downtime_in_ms'] if attributes[:'migration_downtime_in_ms'] self.is_multi_queues_enabled = attributes[:'isMultiQueuesEnabled'] unless attributes[:'isMultiQueuesEnabled'].nil? raise 'You cannot provide both :isMultiQueuesEnabled and :is_multi_queues_enabled' if attributes.key?(:'isMultiQueuesEnabled') && attributes.key?(:'is_multi_queues_enabled') self.is_multi_queues_enabled = attributes[:'is_multi_queues_enabled'] unless attributes[:'is_multi_queues_enabled'].nil? self.template_name = attributes[:'templateName'] if attributes[:'templateName'] raise 'You cannot provide both :templateName and :template_name' if attributes.key?(:'templateName') && attributes.key?(:'template_name') self.template_name = attributes[:'template_name'] if attributes[:'template_name'] self.origin = attributes[:'origin'] if attributes[:'origin'] self.os = attributes[:'os'] if attributes[:'os'] self.placement_policy = attributes[:'placementPolicy'] if attributes[:'placementPolicy'] raise 'You cannot provide both :placementPolicy and :placement_policy' if attributes.key?(:'placementPolicy') && attributes.key?(:'placement_policy') self.placement_policy = attributes[:'placement_policy'] if attributes[:'placement_policy'] 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.small_icon = attributes[:'smallIcon'] if attributes[:'smallIcon'] raise 'You cannot provide both :smallIcon and :small_icon' if attributes.key?(:'smallIcon') && attributes.key?(:'small_icon') self.small_icon = attributes[:'small_icon'] if attributes[:'small_icon'] self.is_soundcard_enabled = attributes[:'isSoundcardEnabled'] unless attributes[:'isSoundcardEnabled'].nil? raise 'You cannot provide both :isSoundcardEnabled and :is_soundcard_enabled' if attributes.key?(:'isSoundcardEnabled') && attributes.key?(:'is_soundcard_enabled') self.is_soundcard_enabled = attributes[:'is_soundcard_enabled'] unless attributes[:'is_soundcard_enabled'].nil? self.is_start_paused = attributes[:'isStartPaused'] unless attributes[:'isStartPaused'].nil? raise 'You cannot provide both :isStartPaused and :is_start_paused' if attributes.key?(:'isStartPaused') && attributes.key?(:'is_start_paused') self.is_start_paused = attributes[:'is_start_paused'] unless attributes[:'is_start_paused'].nil? self.is_stateless = attributes[:'isStateless'] unless attributes[:'isStateless'].nil? raise 'You cannot provide both :isStateless and :is_stateless' if attributes.key?(:'isStateless') && attributes.key?(:'is_stateless') self.is_stateless = attributes[:'is_stateless'] unless attributes[:'is_stateless'].nil? self.status = attributes[:'status'] if attributes[:'status'] self.storage_error_resume_behavior = attributes[:'storageErrorResumeBehavior'] if attributes[:'storageErrorResumeBehavior'] raise 'You cannot provide both :storageErrorResumeBehavior and :storage_error_resume_behavior' if attributes.key?(:'storageErrorResumeBehavior') && attributes.key?(:'storage_error_resume_behavior') self.storage_error_resume_behavior = attributes[:'storage_error_resume_behavior'] if attributes[:'storage_error_resume_behavior'] self.timezone = attributes[:'timezone'] if attributes[:'timezone'] self.is_tpm_enabled = attributes[:'isTpmEnabled'] unless attributes[:'isTpmEnabled'].nil? raise 'You cannot provide both :isTpmEnabled and :is_tpm_enabled' if attributes.key?(:'isTpmEnabled') && attributes.key?(:'is_tpm_enabled') self.is_tpm_enabled = attributes[:'is_tpm_enabled'] unless attributes[:'is_tpm_enabled'].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.type = attributes[:'type'] if attributes[:'type'] self.usb = attributes[:'usb'] if attributes[:'usb'] self.version = attributes[:'version'] if attributes[:'version'] self.is_virtio_scsi_enabled = attributes[:'isVirtioScsiEnabled'] unless attributes[:'isVirtioScsiEnabled'].nil? raise 'You cannot provide both :isVirtioScsiEnabled and :is_virtio_scsi_enabled' if attributes.key?(:'isVirtioScsiEnabled') && attributes.key?(:'is_virtio_scsi_enabled') self.is_virtio_scsi_enabled = attributes[:'is_virtio_scsi_enabled'] unless attributes[:'is_virtio_scsi_enabled'].nil? self.virtio_scsi_multi_queues = attributes[:'virtioScsiMultiQueues'] if attributes[:'virtioScsiMultiQueues'] raise 'You cannot provide both :virtioScsiMultiQueues and :virtio_scsi_multi_queues' if attributes.key?(:'virtioScsiMultiQueues') && attributes.key?(:'virtio_scsi_multi_queues') self.virtio_scsi_multi_queues = attributes[:'virtio_scsi_multi_queues'] if attributes[:'virtio_scsi_multi_queues'] self.is_virtio_scsi_multi_queues_enabled = attributes[:'isVirtioScsiMultiQueuesEnabled'] unless attributes[:'isVirtioScsiMultiQueuesEnabled'].nil? raise 'You cannot provide both :isVirtioScsiMultiQueuesEnabled and :is_virtio_scsi_multi_queues_enabled' if attributes.key?(:'isVirtioScsiMultiQueuesEnabled') && attributes.key?(:'is_virtio_scsi_multi_queues_enabled') self.is_virtio_scsi_multi_queues_enabled = attributes[:'is_virtio_scsi_multi_queues_enabled'] unless attributes[:'is_virtio_scsi_multi_queues_enabled'].nil? self.vm = attributes[:'vm'] if attributes[:'vm'] end |
Instance Attribute Details
#auto_pinning_policy ⇒ String
Specifies if and how the auto CPU and NUMA configuration is applied.
39 40 41 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 39 def auto_pinning_policy @auto_pinning_policy end |
#bios ⇒ OCI::CloudBridge::Models::OlvmBios
42 43 44 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 42 def bios @bios end |
#comment ⇒ String
Free text containing comments about this object.
46 47 48 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 46 def comment @comment end |
#console ⇒ OCI::CloudBridge::Models::OlvmConsole
49 50 51 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 49 def console @console end |
#cpu ⇒ OCI::CloudBridge::Models::OlvmCpu
52 53 54 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 52 def cpu @cpu end |
#cpu_pinning_policy ⇒ String
Type representing the CPU and NUMA pinning policy.
56 57 58 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 56 def cpu_pinning_policy @cpu_pinning_policy end |
#cpu_shares ⇒ Integer
Number of CPU Shares
60 61 62 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 60 def cpu_shares @cpu_shares end |
#custom_compatibility_version ⇒ OCI::CloudBridge::Models::OlvmVersion
67 68 69 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 67 def custom_compatibility_version @custom_compatibility_version end |
#custom_cpu_model ⇒ String
Custom CPU model
71 72 73 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 71 def custom_cpu_model @custom_cpu_model end |
#custom_emulated_machine ⇒ String
Custom Emulated machine
75 76 77 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 75 def custom_emulated_machine @custom_emulated_machine end |
#custom_properties ⇒ Array<OCI::CloudBridge::Models::OlvmCustomProperty>
Custom properties applied to the vNIC profile.
79 80 81 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 79 def custom_properties @custom_properties end |
#description ⇒ String
A human-readable description in plain text.
87 88 89 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 87 def description @description end |
#display ⇒ OCI::CloudBridge::Models::OlvmDisplay
90 91 92 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 90 def display @display end |
#domain ⇒ OCI::CloudBridge::Models::OlvmDomain
93 94 95 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 93 def domain @domain end |
#high_availability ⇒ OCI::CloudBridge::Models::OlvmHighAvailability
96 97 98 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 96 def high_availability @high_availability end |
#initialization ⇒ OCI::CloudBridge::Models::OlvmInitialization
99 100 101 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 99 def initialization @initialization end |
#io_threads ⇒ Integer
For performance tuning of IO threading.
103 104 105 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 103 def io_threads @io_threads end |
#is_delete_protected ⇒ BOOLEAN
If true, the virtual machine cannot be deleted.
83 84 85 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 83 def is_delete_protected @is_delete_protected end |
#is_multi_queues_enabled ⇒ BOOLEAN
If true, each virtual interface will get the optimal number of queues, depending on the available virtual Cpus.
127 128 129 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 127 def is_multi_queues_enabled @is_multi_queues_enabled end |
#is_soundcard_enabled ⇒ BOOLEAN
If true, the sound card is added to the virtual machine.
151 152 153 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 151 def is_soundcard_enabled @is_soundcard_enabled end |
#is_start_paused ⇒ BOOLEAN
If true, the virtual machine will be initially in 'paused' state after start.
155 156 157 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 155 def is_start_paused @is_start_paused end |
#is_stateless ⇒ BOOLEAN
If true, the virtual machine is stateless - itu2019s state (disks) are rolled-back after shutdown.
159 160 161 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 159 def is_stateless @is_stateless end |
#is_tpm_enabled ⇒ BOOLEAN
If true, a TPM device is added to the virtual machine.
175 176 177 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 175 def is_tpm_enabled @is_tpm_enabled end |
#is_tunnel_migration ⇒ BOOLEAN
If true, the network data transfer will be encrypted during virtual machine live migration.
179 180 181 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 179 def is_tunnel_migration @is_tunnel_migration end |
#is_virtio_scsi_enabled ⇒ BOOLEAN
Indicates if Virtio SCSI Support is enabled.
192 193 194 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 192 def is_virtio_scsi_enabled @is_virtio_scsi_enabled end |
#is_virtio_scsi_multi_queues_enabled ⇒ BOOLEAN
If true, the Virtio-SCSI devices will obtain a number of multiple queues depending on the available virtual Cpus and disks, or according to the specified virtioScsiMultiQueues
200 201 202 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 200 def is_virtio_scsi_multi_queues_enabled @is_virtio_scsi_multi_queues_enabled end |
#large_icon ⇒ OCI::CloudBridge::Models::OlvmIcon
106 107 108 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 106 def large_icon @large_icon end |
#memory_in_bytes ⇒ Integer
The virtual machineu2019s memory, in bytes.
113 114 115 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 113 def memory_in_bytes @memory_in_bytes end |
#memory_policy ⇒ OCI::CloudBridge::Models::OlvmMemoryPolicy
116 117 118 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 116 def memory_policy @memory_policy end |
#migration_downtime_in_ms ⇒ Integer
Maximum time the virtual machine can be non responsive during its live migration to another host in ms.
123 124 125 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 123 def migration_downtime_in_ms @migration_downtime_in_ms end |
#migration_policy ⇒ OCI::CloudBridge::Models::OlvmMigrationOptions
119 120 121 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 119 def migration_policy @migration_policy end |
#origin ⇒ String
The origin of this virtual machine.
135 136 137 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 135 def origin @origin end |
#os ⇒ OCI::CloudBridge::Models::OlvmOperatingSystem
138 139 140 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 138 def os @os end |
#placement_policy ⇒ OCI::CloudBridge::Models::OlvmVmPlacementPolicy
141 142 143 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 141 def placement_policy @placement_policy end |
#serial_number ⇒ OCI::CloudBridge::Models::OlvmSerialNumber
144 145 146 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 144 def serial_number @serial_number end |
#small_icon ⇒ OCI::CloudBridge::Models::OlvmIcon
147 148 149 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 147 def small_icon @small_icon end |
#status ⇒ String
The status of the template.
163 164 165 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 163 def status @status end |
#storage_domain_lease ⇒ OCI::CloudBridge::Models::OlvmStorageDomainProperties
109 110 111 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 109 def storage_domain_lease @storage_domain_lease end |
#storage_error_resume_behavior ⇒ String
Determines how the virtual machine will be resumed after storage error.
167 168 169 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 167 def storage_error_resume_behavior @storage_error_resume_behavior end |
#template_name ⇒ String
[Required] Name of the property.
131 132 133 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 131 def template_name @template_name end |
#time_created ⇒ DateTime
Creation time.
64 65 66 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 64 def time_created @time_created end |
#timezone ⇒ String
Name of time zone.
171 172 173 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 171 def timezone @timezone end |
#type ⇒ OCI::CloudBridge::Models::OlvmVmType
182 183 184 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 182 def type @type end |
#usb ⇒ OCI::CloudBridge::Models::OlvmUsb
185 186 187 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 185 def usb @usb end |
#version ⇒ OCI::CloudBridge::Models::OlvmTemplateVersion
188 189 190 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 188 def version @version end |
#virtio_scsi_multi_queues ⇒ Integer
Number of queues for a Virtio-SCSI contoller this field requires virtioScsiMultiQueuesEnabled to be true see virtioScsiMultiQueuesEnabled for more info
196 197 198 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 196 def virtio_scsi_multi_queues @virtio_scsi_multi_queues end |
#vm ⇒ OCI::CloudBridge::Models::OlvmVirtualMachine
203 204 205 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 203 def vm @vm end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
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 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 206 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'auto_pinning_policy': :'autoPinningPolicy', 'bios': :'bios', 'comment': :'comment', 'console': :'console', 'cpu': :'cpu', 'cpu_pinning_policy': :'cpuPinningPolicy', 'cpu_shares': :'cpuShares', 'time_created': :'timeCreated', 'custom_compatibility_version': :'customCompatibilityVersion', 'custom_cpu_model': :'customCpuModel', 'custom_emulated_machine': :'customEmulatedMachine', 'custom_properties': :'customProperties', 'is_delete_protected': :'isDeleteProtected', 'description': :'description', 'display': :'display', 'domain': :'domain', 'high_availability': :'highAvailability', 'initialization': :'initialization', 'io_threads': :'ioThreads', 'large_icon': :'largeIcon', 'storage_domain_lease': :'storageDomainLease', 'memory_in_bytes': :'memoryInBytes', 'memory_policy': :'memoryPolicy', 'migration_policy': :'migrationPolicy', 'migration_downtime_in_ms': :'migrationDowntimeInMs', 'is_multi_queues_enabled': :'isMultiQueuesEnabled', 'template_name': :'templateName', 'origin': :'origin', 'os': :'os', 'placement_policy': :'placementPolicy', 'serial_number': :'serialNumber', 'small_icon': :'smallIcon', 'is_soundcard_enabled': :'isSoundcardEnabled', 'is_start_paused': :'isStartPaused', 'is_stateless': :'isStateless', 'status': :'status', 'storage_error_resume_behavior': :'storageErrorResumeBehavior', 'timezone': :'timezone', 'is_tpm_enabled': :'isTpmEnabled', 'is_tunnel_migration': :'isTunnelMigration', 'type': :'type', 'usb': :'usb', 'version': :'version', 'is_virtio_scsi_enabled': :'isVirtioScsiEnabled', 'virtio_scsi_multi_queues': :'virtioScsiMultiQueues', 'is_virtio_scsi_multi_queues_enabled': :'isVirtioScsiMultiQueuesEnabled', 'vm': :'vm' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 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 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 261 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'auto_pinning_policy': :'String', 'bios': :'OCI::CloudBridge::Models::OlvmBios', 'comment': :'String', 'console': :'OCI::CloudBridge::Models::OlvmConsole', 'cpu': :'OCI::CloudBridge::Models::OlvmCpu', 'cpu_pinning_policy': :'String', 'cpu_shares': :'Integer', 'time_created': :'DateTime', 'custom_compatibility_version': :'OCI::CloudBridge::Models::OlvmVersion', 'custom_cpu_model': :'String', 'custom_emulated_machine': :'String', 'custom_properties': :'Array<OCI::CloudBridge::Models::OlvmCustomProperty>', 'is_delete_protected': :'BOOLEAN', 'description': :'String', 'display': :'OCI::CloudBridge::Models::OlvmDisplay', 'domain': :'OCI::CloudBridge::Models::OlvmDomain', 'high_availability': :'OCI::CloudBridge::Models::OlvmHighAvailability', 'initialization': :'OCI::CloudBridge::Models::OlvmInitialization', 'io_threads': :'Integer', 'large_icon': :'OCI::CloudBridge::Models::OlvmIcon', 'storage_domain_lease': :'OCI::CloudBridge::Models::OlvmStorageDomainProperties', 'memory_in_bytes': :'Integer', 'memory_policy': :'OCI::CloudBridge::Models::OlvmMemoryPolicy', 'migration_policy': :'OCI::CloudBridge::Models::OlvmMigrationOptions', 'migration_downtime_in_ms': :'Integer', 'is_multi_queues_enabled': :'BOOLEAN', 'template_name': :'String', 'origin': :'String', 'os': :'OCI::CloudBridge::Models::OlvmOperatingSystem', 'placement_policy': :'OCI::CloudBridge::Models::OlvmVmPlacementPolicy', 'serial_number': :'OCI::CloudBridge::Models::OlvmSerialNumber', 'small_icon': :'OCI::CloudBridge::Models::OlvmIcon', 'is_soundcard_enabled': :'BOOLEAN', 'is_start_paused': :'BOOLEAN', 'is_stateless': :'BOOLEAN', 'status': :'String', 'storage_error_resume_behavior': :'String', 'timezone': :'String', 'is_tpm_enabled': :'BOOLEAN', 'is_tunnel_migration': :'BOOLEAN', 'type': :'OCI::CloudBridge::Models::OlvmVmType', 'usb': :'OCI::CloudBridge::Models::OlvmUsb', 'version': :'OCI::CloudBridge::Models::OlvmTemplateVersion', 'is_virtio_scsi_enabled': :'BOOLEAN', 'virtio_scsi_multi_queues': :'Integer', 'is_virtio_scsi_multi_queues_enabled': :'BOOLEAN', 'vm': :'OCI::CloudBridge::Models::OlvmVirtualMachine' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 632 def ==(other) return true if equal?(other) self.class == other.class && auto_pinning_policy == other.auto_pinning_policy && bios == other.bios && comment == other.comment && console == other.console && cpu == other.cpu && cpu_pinning_policy == other.cpu_pinning_policy && cpu_shares == other.cpu_shares && time_created == other.time_created && custom_compatibility_version == other.custom_compatibility_version && custom_cpu_model == other.custom_cpu_model && custom_emulated_machine == other.custom_emulated_machine && custom_properties == other.custom_properties && is_delete_protected == other.is_delete_protected && description == other.description && display == other.display && domain == other.domain && high_availability == other.high_availability && initialization == other.initialization && io_threads == other.io_threads && large_icon == other.large_icon && storage_domain_lease == other.storage_domain_lease && memory_in_bytes == other.memory_in_bytes && memory_policy == other.memory_policy && migration_policy == other.migration_policy && migration_downtime_in_ms == other.migration_downtime_in_ms && is_multi_queues_enabled == other.is_multi_queues_enabled && template_name == other.template_name && origin == other.origin && os == other.os && placement_policy == other.placement_policy && serial_number == other.serial_number && small_icon == other.small_icon && is_soundcard_enabled == other.is_soundcard_enabled && is_start_paused == other.is_start_paused && is_stateless == other.is_stateless && status == other.status && storage_error_resume_behavior == other.storage_error_resume_behavior && timezone == other.timezone && is_tpm_enabled == other.is_tpm_enabled && is_tunnel_migration == other.is_tunnel_migration && type == other.type && usb == other.usb && version == other.version && is_virtio_scsi_enabled == other.is_virtio_scsi_enabled && virtio_scsi_multi_queues == other.virtio_scsi_multi_queues && is_virtio_scsi_multi_queues_enabled == other.is_virtio_scsi_multi_queues_enabled && vm == other.vm end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 708 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
688 689 690 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 688 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
697 698 699 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 697 def hash [auto_pinning_policy, bios, comment, console, cpu, cpu_pinning_policy, cpu_shares, time_created, custom_compatibility_version, custom_cpu_model, custom_emulated_machine, custom_properties, is_delete_protected, description, display, domain, high_availability, initialization, io_threads, large_icon, storage_domain_lease, memory_in_bytes, memory_policy, migration_policy, migration_downtime_in_ms, is_multi_queues_enabled, template_name, origin, os, placement_policy, serial_number, small_icon, is_soundcard_enabled, is_start_paused, is_stateless, status, storage_error_resume_behavior, timezone, is_tpm_enabled, is_tunnel_migration, type, usb, version, is_virtio_scsi_enabled, virtio_scsi_multi_queues, is_virtio_scsi_multi_queues_enabled, vm].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
741 742 743 744 745 746 747 748 749 750 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 741 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
735 736 737 |
# File 'lib/oci/cloud_bridge/models/olvm_template_properties.rb', line 735 def to_s to_hash.to_s end |