Class: OvirtSDK4::Vm
- Inherits:
-
VmBase
- Object
- Struct
- Identified
- VmBase
- OvirtSDK4::Vm
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labels
attribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labels
attribute. -
#applications ⇒ Array<Application>
Returns the value of the
applications
attribute. -
#applications=(list) ⇒ Object
Sets the value of the
applications
attribute. -
#bios ⇒ Bios
Returns the value of the
bios
attribute. -
#bios=(value) ⇒ Object
Sets the value of the
bios
attribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdroms
attribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdroms
attribute. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#console ⇒ Console
Returns the value of the
console
attribute. -
#console=(value) ⇒ Object
Sets the value of the
console
attribute. -
#cpu ⇒ Cpu
Returns the value of the
cpu
attribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpu
attribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profile
attribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profile
attribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_shares
attribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_shares
attribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_time
attribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_time
attribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_version
attribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_version
attribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_model
attribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_model
attribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machine
attribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machine
attribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_properties
attribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_properties
attribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protected
attribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protected
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachments
attribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachments
attribute. -
#display ⇒ Display
Returns the value of the
display
attribute. -
#display=(value) ⇒ Object
Sets the value of the
display
attribute. -
#domain ⇒ Domain
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_provider
attribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_provider
attribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppies
attribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppies
attribute. -
#fqdn ⇒ String
Returns the value of the
fqdn
attribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdn
attribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consoles
attribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consoles
attribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_system
attribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_system
attribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zone
attribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zone
attribute. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_images
attribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_images
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availability
attribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availability
attribute. -
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devices
attribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devices
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialization ⇒ Initialization
Returns the value of the
initialization
attribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initialization
attribute. -
#initialize(opts = {}) ⇒ Vm
constructor
Creates a new instance of the Vm class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_type
attribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_type
attribute. -
#io ⇒ Io
Returns the value of the
io
attribute. -
#io=(value) ⇒ Object
Sets the value of the
io
attribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errata
attribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errata
attribute. -
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
lease
attribute. -
#lease=(value) ⇒ Object
Sets the value of the
lease
attribute. -
#memory ⇒ Integer
Returns the value of the
memory
attribute. -
#memory=(value) ⇒ Object
Sets the value of the
memory
attribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policy
attribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policy
attribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migration
attribute. -
#migration=(value) ⇒ Object
Sets the value of the
migration
attribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtime
attribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtime
attribute. -
#multi_queues_enabled ⇒ Boolean
Returns the value of the
multi_queues_enabled
attribute. -
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the
multi_queues_enabled
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_exists
attribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_exists
attribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nics
attribute. -
#nics=(list) ⇒ Object
Sets the value of the
nics
attribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodes
attribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodes
attribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_mode
attribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_mode
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#original_template ⇒ Template
Returns the value of the
original_template
attribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_template
attribute. -
#os ⇒ OperatingSystem
Returns the value of the
os
attribute. -
#os=(value) ⇒ Object
Sets the value of the
os
attribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloads
attribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloads
attribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissions
attribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissions
attribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policy
attribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policy
attribute. -
#quota ⇒ Quota
Returns the value of the
quota
attribute. -
#quota=(value) ⇒ Object
Sets the value of the
quota
attribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devices
attribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devices
attribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_device
attribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_device
attribute. -
#run_once ⇒ Boolean
Returns the value of the
run_once
attribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_once
attribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_number
attribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_number
attribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessions
attribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessions
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshots
attribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshots
attribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabled
attribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabled
attribute. -
#sso ⇒ Sso
Returns the value of the
sso
attribute. -
#sso=(value) ⇒ Object
Sets the value of the
sso
attribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_paused
attribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_paused
attribute. -
#start_time ⇒ DateTime
Returns the value of the
start_time
attribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_time
attribute. -
#stateless ⇒ Boolean
Returns the value of the
stateless
attribute. -
#stateless=(value) ⇒ Object
Sets the value of the
stateless
attribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statistics
attribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statistics
attribute. -
#status ⇒ VmStatus
Returns the value of the
status
attribute. -
#status=(value) ⇒ Object
Sets the value of the
status
attribute. -
#status_detail ⇒ String
Returns the value of the
status_detail
attribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detail
attribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reason
attribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reason
attribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_time
attribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_time
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviour
attribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviour
attribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tags
attribute. -
#tags=(list) ⇒ Object
Sets the value of the
tags
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zone
attribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zone
attribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migration
attribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migration
attribute. -
#type ⇒ VmType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#usb ⇒ Usb
Returns the value of the
usb
attribute. -
#usb=(value) ⇒ Object
Sets the value of the
usb
attribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_version
attribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_version
attribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsi
attribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsi
attribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_pool
attribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_pool
attribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogs
attribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogs
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Vm
Creates a new instance of the OvirtSDK4::Vm class.
49956 49957 49958 49959 49960 49961 49962 49963 49964 49965 49966 49967 49968 49969 49970 49971 49972 49973 49974 49975 49976 49977 49978 49979 49980 49981 49982 49983 49984 49985 49986 49987 49988 49989 49990 49991 49992 49993 49994 49995 |
# File 'lib/ovirtsdk4/types.rb', line 49956 def initialize(opts = {}) super(opts) self.affinity_labels = opts[:affinity_labels] self.applications = opts[:applications] self.cdroms = opts[:cdroms] self. = opts[:disk_attachments] self.external_host_provider = opts[:external_host_provider] self.floppies = opts[:floppies] self.fqdn = opts[:fqdn] self.graphics_consoles = opts[:graphics_consoles] self. = opts[:guest_operating_system] self.guest_time_zone = opts[:guest_time_zone] self.has_illegal_images = opts[:has_illegal_images] self.host = opts[:host] self.host_devices = opts[:host_devices] self.instance_type = opts[:instance_type] self.katello_errata = opts[:katello_errata] self.next_run_configuration_exists = opts[:next_run_configuration_exists] self.nics = opts[:nics] self.numa_nodes = opts[:numa_nodes] self.numa_tune_mode = opts[:numa_tune_mode] self.original_template = opts[:original_template] self.payloads = opts[:payloads] self. = opts[:permissions] self.reported_devices = opts[:reported_devices] self.run_once = opts[:run_once] self.sessions = opts[:sessions] self.snapshots = opts[:snapshots] self.start_time = opts[:start_time] self.statistics = opts[:statistics] self.status = opts[:status] self.status_detail = opts[:status_detail] self.stop_reason = opts[:stop_reason] self.stop_time = opts[:stop_time] self. = opts[:tags] self.template = opts[:template] self.use_latest_template_version = opts[:use_latest_template_version] self.vm_pool = opts[:vm_pool] self.watchdogs = opts[:watchdogs] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
50000 50001 50002 50003 50004 50005 50006 50007 50008 50009 50010 50011 50012 50013 50014 50015 50016 50017 50018 50019 50020 50021 50022 50023 50024 50025 50026 50027 50028 50029 50030 50031 50032 50033 50034 50035 50036 50037 50038 50039 |
# File 'lib/ovirtsdk4/types.rb', line 50000 def ==(other) super && @affinity_labels == other.affinity_labels && @applications == other.applications && @cdroms == other.cdroms && @disk_attachments == other. && @external_host_provider == other.external_host_provider && @floppies == other.floppies && @fqdn == other.fqdn && @graphics_consoles == other.graphics_consoles && @guest_operating_system == other. && @guest_time_zone == other.guest_time_zone && @has_illegal_images == other.has_illegal_images && @host == other.host && @host_devices == other.host_devices && @instance_type == other.instance_type && @katello_errata == other.katello_errata && @next_run_configuration_exists == other.next_run_configuration_exists && @nics == other.nics && @numa_nodes == other.numa_nodes && @numa_tune_mode == other.numa_tune_mode && @original_template == other.original_template && @payloads == other.payloads && @permissions == other. && @reported_devices == other.reported_devices && @run_once == other.run_once && @sessions == other.sessions && @snapshots == other.snapshots && @start_time == other.start_time && @statistics == other.statistics && @status == other.status && @status_detail == other.status_detail && @stop_reason == other.stop_reason && @stop_time == other.stop_time && @tags == other. && @template == other.template && @use_latest_template_version == other.use_latest_template_version && @vm_pool == other.vm_pool && @watchdogs == other.watchdogs end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels
attribute.
47903 47904 47905 |
# File 'lib/ovirtsdk4/types.rb', line 47903 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels
attribute.
47912 47913 47914 47915 47916 47917 47918 47919 47920 47921 47922 |
# File 'lib/ovirtsdk4/types.rb', line 47912 def affinity_labels=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = AffinityLabel.new(value) end end end @affinity_labels = list end |
#applications ⇒ Array<Application>
Returns the value of the applications
attribute.
47929 47930 47931 |
# File 'lib/ovirtsdk4/types.rb', line 47929 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications
attribute.
47938 47939 47940 47941 47942 47943 47944 47945 47946 47947 47948 |
# File 'lib/ovirtsdk4/types.rb', line 47938 def applications=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Application.new(value) end end end @applications = list end |
#bios ⇒ Bios
Returns the value of the bios
attribute.
47955 47956 47957 |
# File 'lib/ovirtsdk4/types.rb', line 47955 def bios @bios end |
#bios=(value) ⇒ Object
Sets the value of the bios
attribute.
The value
parameter can be an instance of Bios or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
47968 47969 47970 47971 47972 47973 |
# File 'lib/ovirtsdk4/types.rb', line 47968 def bios=(value) if value.is_a?(Hash) value = Bios.new(value) end @bios = value end |
#cdroms ⇒ Array<Cdrom>
Returns the value of the cdroms
attribute.
47980 47981 47982 |
# File 'lib/ovirtsdk4/types.rb', line 47980 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms
attribute.
47989 47990 47991 47992 47993 47994 47995 47996 47997 47998 47999 |
# File 'lib/ovirtsdk4/types.rb', line 47989 def cdroms=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Cdrom.new(value) end end end @cdroms = list end |
#cluster ⇒ Cluster
Returns the value of the cluster
attribute.
48006 48007 48008 |
# File 'lib/ovirtsdk4/types.rb', line 48006 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster
attribute.
The value
parameter can be an instance of Cluster or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48019 48020 48021 48022 48023 48024 |
# File 'lib/ovirtsdk4/types.rb', line 48019 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
48031 48032 48033 |
# File 'lib/ovirtsdk4/types.rb', line 48031 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
48040 48041 48042 |
# File 'lib/ovirtsdk4/types.rb', line 48040 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console
attribute.
48049 48050 48051 |
# File 'lib/ovirtsdk4/types.rb', line 48049 def console @console end |
#console=(value) ⇒ Object
Sets the value of the console
attribute.
The value
parameter can be an instance of Console or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48062 48063 48064 48065 48066 48067 |
# File 'lib/ovirtsdk4/types.rb', line 48062 def console=(value) if value.is_a?(Hash) value = Console.new(value) end @console = value end |
#cpu ⇒ Cpu
Returns the value of the cpu
attribute.
48074 48075 48076 |
# File 'lib/ovirtsdk4/types.rb', line 48074 def cpu @cpu end |
#cpu=(value) ⇒ Object
Sets the value of the cpu
attribute.
The value
parameter can be an instance of Cpu or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48087 48088 48089 48090 48091 48092 |
# File 'lib/ovirtsdk4/types.rb', line 48087 def cpu=(value) if value.is_a?(Hash) value = Cpu.new(value) end @cpu = value end |
#cpu_profile ⇒ CpuProfile
Returns the value of the cpu_profile
attribute.
48099 48100 48101 |
# File 'lib/ovirtsdk4/types.rb', line 48099 def cpu_profile @cpu_profile end |
#cpu_profile=(value) ⇒ Object
Sets the value of the cpu_profile
attribute.
The value
parameter can be an instance of CpuProfile or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48112 48113 48114 48115 48116 48117 |
# File 'lib/ovirtsdk4/types.rb', line 48112 def cpu_profile=(value) if value.is_a?(Hash) value = CpuProfile.new(value) end @cpu_profile = value end |
#cpu_shares ⇒ Integer
Returns the value of the cpu_shares
attribute.
48124 48125 48126 |
# File 'lib/ovirtsdk4/types.rb', line 48124 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares
attribute.
48133 48134 48135 |
# File 'lib/ovirtsdk4/types.rb', line 48133 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time
attribute.
48142 48143 48144 |
# File 'lib/ovirtsdk4/types.rb', line 48142 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time
attribute.
48151 48152 48153 |
# File 'lib/ovirtsdk4/types.rb', line 48151 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version
attribute.
48160 48161 48162 |
# File 'lib/ovirtsdk4/types.rb', line 48160 def custom_compatibility_version @custom_compatibility_version end |
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the custom_compatibility_version
attribute.
The value
parameter can be an instance of OvirtSDK4::Version or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48173 48174 48175 48176 48177 48178 |
# File 'lib/ovirtsdk4/types.rb', line 48173 def custom_compatibility_version=(value) if value.is_a?(Hash) value = Version.new(value) end @custom_compatibility_version = value end |
#custom_cpu_model ⇒ String
Returns the value of the custom_cpu_model
attribute.
48185 48186 48187 |
# File 'lib/ovirtsdk4/types.rb', line 48185 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model
attribute.
48194 48195 48196 |
# File 'lib/ovirtsdk4/types.rb', line 48194 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine
attribute.
48203 48204 48205 |
# File 'lib/ovirtsdk4/types.rb', line 48203 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine
attribute.
48212 48213 48214 |
# File 'lib/ovirtsdk4/types.rb', line 48212 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties
attribute.
48221 48222 48223 |
# File 'lib/ovirtsdk4/types.rb', line 48221 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties
attribute.
48230 48231 48232 48233 48234 48235 48236 48237 48238 48239 48240 |
# File 'lib/ovirtsdk4/types.rb', line 48230 def custom_properties=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CustomProperty.new(value) end end end @custom_properties = list end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected
attribute.
48247 48248 48249 |
# File 'lib/ovirtsdk4/types.rb', line 48247 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected
attribute.
48256 48257 48258 |
# File 'lib/ovirtsdk4/types.rb', line 48256 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description
attribute.
48265 48266 48267 |
# File 'lib/ovirtsdk4/types.rb', line 48265 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
48274 48275 48276 |
# File 'lib/ovirtsdk4/types.rb', line 48274 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments
attribute.
48283 48284 48285 |
# File 'lib/ovirtsdk4/types.rb', line 48283 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments
attribute.
48292 48293 48294 48295 48296 48297 48298 48299 48300 48301 48302 |
# File 'lib/ovirtsdk4/types.rb', line 48292 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DiskAttachment.new(value) end end end @disk_attachments = list end |
#display ⇒ Display
Returns the value of the display
attribute.
48309 48310 48311 |
# File 'lib/ovirtsdk4/types.rb', line 48309 def display @display end |
#display=(value) ⇒ Object
Sets the value of the display
attribute.
The value
parameter can be an instance of Display or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48322 48323 48324 48325 48326 48327 |
# File 'lib/ovirtsdk4/types.rb', line 48322 def display=(value) if value.is_a?(Hash) value = Display.new(value) end @display = value end |
#domain ⇒ Domain
Returns the value of the domain
attribute.
48334 48335 48336 |
# File 'lib/ovirtsdk4/types.rb', line 48334 def domain @domain end |
#domain=(value) ⇒ Object
Sets the value of the domain
attribute.
The value
parameter can be an instance of Domain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48347 48348 48349 48350 48351 48352 |
# File 'lib/ovirtsdk4/types.rb', line 48347 def domain=(value) if value.is_a?(Hash) value = Domain.new(value) end @domain = value end |
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the external_host_provider
attribute.
48359 48360 48361 |
# File 'lib/ovirtsdk4/types.rb', line 48359 def external_host_provider @external_host_provider end |
#external_host_provider=(value) ⇒ Object
Sets the value of the external_host_provider
attribute.
The value
parameter can be an instance of ExternalHostProvider or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48372 48373 48374 48375 48376 48377 |
# File 'lib/ovirtsdk4/types.rb', line 48372 def external_host_provider=(value) if value.is_a?(Hash) value = ExternalHostProvider.new(value) end @external_host_provider = value end |
#floppies ⇒ Array<Floppy>
Returns the value of the floppies
attribute.
48384 48385 48386 |
# File 'lib/ovirtsdk4/types.rb', line 48384 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies
attribute.
48393 48394 48395 48396 48397 48398 48399 48400 48401 48402 48403 |
# File 'lib/ovirtsdk4/types.rb', line 48393 def floppies=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Floppy.new(value) end end end @floppies = list end |
#fqdn ⇒ String
Returns the value of the fqdn
attribute.
48410 48411 48412 |
# File 'lib/ovirtsdk4/types.rb', line 48410 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn
attribute.
48419 48420 48421 |
# File 'lib/ovirtsdk4/types.rb', line 48419 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles
attribute.
48428 48429 48430 |
# File 'lib/ovirtsdk4/types.rb', line 48428 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles
attribute.
48437 48438 48439 48440 48441 48442 48443 48444 48445 48446 48447 |
# File 'lib/ovirtsdk4/types.rb', line 48437 def graphics_consoles=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GraphicsConsole.new(value) end end end @graphics_consoles = list end |
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the guest_operating_system
attribute.
48454 48455 48456 |
# File 'lib/ovirtsdk4/types.rb', line 48454 def @guest_operating_system end |
#guest_operating_system=(value) ⇒ Object
Sets the value of the guest_operating_system
attribute.
The value
parameter can be an instance of GuestOperatingSystem or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48467 48468 48469 48470 48471 48472 |
# File 'lib/ovirtsdk4/types.rb', line 48467 def (value) if value.is_a?(Hash) value = GuestOperatingSystem.new(value) end @guest_operating_system = value end |
#guest_time_zone ⇒ TimeZone
Returns the value of the guest_time_zone
attribute.
48479 48480 48481 |
# File 'lib/ovirtsdk4/types.rb', line 48479 def guest_time_zone @guest_time_zone end |
#guest_time_zone=(value) ⇒ Object
Sets the value of the guest_time_zone
attribute.
The value
parameter can be an instance of TimeZone or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48492 48493 48494 48495 48496 48497 |
# File 'lib/ovirtsdk4/types.rb', line 48492 def guest_time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @guest_time_zone = value end |
#has_illegal_images ⇒ Boolean
Returns the value of the has_illegal_images
attribute.
48504 48505 48506 |
# File 'lib/ovirtsdk4/types.rb', line 48504 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images
attribute.
48513 48514 48515 |
# File 'lib/ovirtsdk4/types.rb', line 48513 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
50044 50045 50046 50047 50048 50049 50050 50051 50052 50053 50054 50055 50056 50057 50058 50059 50060 50061 50062 50063 50064 50065 50066 50067 50068 50069 50070 50071 50072 50073 50074 50075 50076 50077 50078 50079 50080 50081 50082 50083 |
# File 'lib/ovirtsdk4/types.rb', line 50044 def hash super + @affinity_labels.hash + @applications.hash + @cdroms.hash + @disk_attachments.hash + @external_host_provider.hash + @floppies.hash + @fqdn.hash + @graphics_consoles.hash + @guest_operating_system.hash + @guest_time_zone.hash + @has_illegal_images.hash + @host.hash + @host_devices.hash + @instance_type.hash + @katello_errata.hash + @next_run_configuration_exists.hash + @nics.hash + @numa_nodes.hash + @numa_tune_mode.hash + @original_template.hash + @payloads.hash + @permissions.hash + @reported_devices.hash + @run_once.hash + @sessions.hash + @snapshots.hash + @start_time.hash + @statistics.hash + @status.hash + @status_detail.hash + @stop_reason.hash + @stop_time.hash + @tags.hash + @template.hash + @use_latest_template_version.hash + @vm_pool.hash + @watchdogs.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability
attribute.
48522 48523 48524 |
# File 'lib/ovirtsdk4/types.rb', line 48522 def high_availability @high_availability end |
#high_availability=(value) ⇒ Object
Sets the value of the high_availability
attribute.
The value
parameter can be an instance of HighAvailability or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48535 48536 48537 48538 48539 48540 |
# File 'lib/ovirtsdk4/types.rb', line 48535 def high_availability=(value) if value.is_a?(Hash) value = HighAvailability.new(value) end @high_availability = value end |
#host ⇒ Host
Returns the value of the host
attribute.
48547 48548 48549 |
# File 'lib/ovirtsdk4/types.rb', line 48547 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of Host or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48560 48561 48562 48563 48564 48565 |
# File 'lib/ovirtsdk4/types.rb', line 48560 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#host_devices ⇒ Array<HostDevice>
Returns the value of the host_devices
attribute.
48572 48573 48574 |
# File 'lib/ovirtsdk4/types.rb', line 48572 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices
attribute.
48581 48582 48583 48584 48585 48586 48587 48588 48589 48590 48591 |
# File 'lib/ovirtsdk4/types.rb', line 48581 def host_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostDevice.new(value) end end end @host_devices = list end |
#id ⇒ String
Returns the value of the id
attribute.
48598 48599 48600 |
# File 'lib/ovirtsdk4/types.rb', line 48598 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
48607 48608 48609 |
# File 'lib/ovirtsdk4/types.rb', line 48607 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization
attribute.
48616 48617 48618 |
# File 'lib/ovirtsdk4/types.rb', line 48616 def initialization @initialization end |
#initialization=(value) ⇒ Object
Sets the value of the initialization
attribute.
The value
parameter can be an instance of Initialization or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48629 48630 48631 48632 48633 48634 |
# File 'lib/ovirtsdk4/types.rb', line 48629 def initialization=(value) if value.is_a?(Hash) value = Initialization.new(value) end @initialization = value end |
#instance_type ⇒ InstanceType
Returns the value of the instance_type
attribute.
48641 48642 48643 |
# File 'lib/ovirtsdk4/types.rb', line 48641 def instance_type @instance_type end |
#instance_type=(value) ⇒ Object
Sets the value of the instance_type
attribute.
The value
parameter can be an instance of InstanceType or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48654 48655 48656 48657 48658 48659 |
# File 'lib/ovirtsdk4/types.rb', line 48654 def instance_type=(value) if value.is_a?(Hash) value = InstanceType.new(value) end @instance_type = value end |
#io ⇒ Io
Returns the value of the io
attribute.
48666 48667 48668 |
# File 'lib/ovirtsdk4/types.rb', line 48666 def io @io end |
#io=(value) ⇒ Object
Sets the value of the io
attribute.
The value
parameter can be an instance of Io or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48679 48680 48681 48682 48683 48684 |
# File 'lib/ovirtsdk4/types.rb', line 48679 def io=(value) if value.is_a?(Hash) value = Io.new(value) end @io = value end |
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the katello_errata
attribute.
48691 48692 48693 |
# File 'lib/ovirtsdk4/types.rb', line 48691 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata
attribute.
48700 48701 48702 48703 48704 48705 48706 48707 48708 48709 48710 |
# File 'lib/ovirtsdk4/types.rb', line 48700 def katello_errata=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = KatelloErratum.new(value) end end end @katello_errata = list end |
#large_icon ⇒ Icon
Returns the value of the large_icon
attribute.
48717 48718 48719 |
# File 'lib/ovirtsdk4/types.rb', line 48717 def large_icon @large_icon end |
#large_icon=(value) ⇒ Object
Sets the value of the large_icon
attribute.
The value
parameter can be an instance of Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48730 48731 48732 48733 48734 48735 |
# File 'lib/ovirtsdk4/types.rb', line 48730 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end |
#lease ⇒ StorageDomainLease
Returns the value of the lease
attribute.
48742 48743 48744 |
# File 'lib/ovirtsdk4/types.rb', line 48742 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease
attribute.
The value
parameter can be an instance of StorageDomainLease or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48755 48756 48757 48758 48759 48760 |
# File 'lib/ovirtsdk4/types.rb', line 48755 def lease=(value) if value.is_a?(Hash) value = StorageDomainLease.new(value) end @lease = value end |
#memory ⇒ Integer
Returns the value of the memory
attribute.
48767 48768 48769 |
# File 'lib/ovirtsdk4/types.rb', line 48767 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory
attribute.
48776 48777 48778 |
# File 'lib/ovirtsdk4/types.rb', line 48776 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy
attribute.
48785 48786 48787 |
# File 'lib/ovirtsdk4/types.rb', line 48785 def memory_policy @memory_policy end |
#memory_policy=(value) ⇒ Object
Sets the value of the memory_policy
attribute.
The value
parameter can be an instance of MemoryPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48798 48799 48800 48801 48802 48803 |
# File 'lib/ovirtsdk4/types.rb', line 48798 def memory_policy=(value) if value.is_a?(Hash) value = MemoryPolicy.new(value) end @memory_policy = value end |
#migration ⇒ MigrationOptions
Returns the value of the migration
attribute.
48810 48811 48812 |
# File 'lib/ovirtsdk4/types.rb', line 48810 def migration @migration end |
#migration=(value) ⇒ Object
Sets the value of the migration
attribute.
The value
parameter can be an instance of MigrationOptions or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
48823 48824 48825 48826 48827 48828 |
# File 'lib/ovirtsdk4/types.rb', line 48823 def migration=(value) if value.is_a?(Hash) value = MigrationOptions.new(value) end @migration = value end |
#migration_downtime ⇒ Integer
Returns the value of the migration_downtime
attribute.
48835 48836 48837 |
# File 'lib/ovirtsdk4/types.rb', line 48835 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime
attribute.
48844 48845 48846 |
# File 'lib/ovirtsdk4/types.rb', line 48844 def migration_downtime=(value) @migration_downtime = value end |
#multi_queues_enabled ⇒ Boolean
Returns the value of the multi_queues_enabled
attribute.
48853 48854 48855 |
# File 'lib/ovirtsdk4/types.rb', line 48853 def multi_queues_enabled @multi_queues_enabled end |
#multi_queues_enabled=(value) ⇒ Object
Sets the value of the multi_queues_enabled
attribute.
48862 48863 48864 |
# File 'lib/ovirtsdk4/types.rb', line 48862 def multi_queues_enabled=(value) @multi_queues_enabled = value end |
#name ⇒ String
Returns the value of the name
attribute.
48871 48872 48873 |
# File 'lib/ovirtsdk4/types.rb', line 48871 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
48880 48881 48882 |
# File 'lib/ovirtsdk4/types.rb', line 48880 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists
attribute.
48889 48890 48891 |
# File 'lib/ovirtsdk4/types.rb', line 48889 def next_run_configuration_exists @next_run_configuration_exists end |
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the next_run_configuration_exists
attribute.
48898 48899 48900 |
# File 'lib/ovirtsdk4/types.rb', line 48898 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics
attribute.
48907 48908 48909 |
# File 'lib/ovirtsdk4/types.rb', line 48907 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics
attribute.
48916 48917 48918 48919 48920 48921 48922 48923 48924 48925 48926 |
# File 'lib/ovirtsdk4/types.rb', line 48916 def nics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Nic.new(value) end end end @nics = list end |
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the numa_nodes
attribute.
48933 48934 48935 |
# File 'lib/ovirtsdk4/types.rb', line 48933 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes
attribute.
48942 48943 48944 48945 48946 48947 48948 48949 48950 48951 48952 |
# File 'lib/ovirtsdk4/types.rb', line 48942 def numa_nodes=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NumaNode.new(value) end end end @numa_nodes = list end |
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the numa_tune_mode
attribute.
48959 48960 48961 |
# File 'lib/ovirtsdk4/types.rb', line 48959 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode
attribute.
48968 48969 48970 |
# File 'lib/ovirtsdk4/types.rb', line 48968 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
48977 48978 48979 |
# File 'lib/ovirtsdk4/types.rb', line 48977 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
48986 48987 48988 |
# File 'lib/ovirtsdk4/types.rb', line 48986 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template
attribute.
48995 48996 48997 |
# File 'lib/ovirtsdk4/types.rb', line 48995 def original_template @original_template end |
#original_template=(value) ⇒ Object
Sets the value of the original_template
attribute.
The value
parameter can be an instance of Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49008 49009 49010 49011 49012 49013 |
# File 'lib/ovirtsdk4/types.rb', line 49008 def original_template=(value) if value.is_a?(Hash) value = Template.new(value) end @original_template = value end |
#os ⇒ OperatingSystem
Returns the value of the os
attribute.
49020 49021 49022 |
# File 'lib/ovirtsdk4/types.rb', line 49020 def os @os end |
#os=(value) ⇒ Object
Sets the value of the os
attribute.
The value
parameter can be an instance of OperatingSystem or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49033 49034 49035 49036 49037 49038 |
# File 'lib/ovirtsdk4/types.rb', line 49033 def os=(value) if value.is_a?(Hash) value = OperatingSystem.new(value) end @os = value end |
#payloads ⇒ Array<Payload>
Returns the value of the payloads
attribute.
49045 49046 49047 |
# File 'lib/ovirtsdk4/types.rb', line 49045 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads
attribute.
49054 49055 49056 49057 49058 49059 49060 49061 49062 49063 49064 |
# File 'lib/ovirtsdk4/types.rb', line 49054 def payloads=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Payload.new(value) end end end @payloads = list end |
#permissions ⇒ Array<Permission>
Returns the value of the permissions
attribute.
49071 49072 49073 |
# File 'lib/ovirtsdk4/types.rb', line 49071 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions
attribute.
49080 49081 49082 49083 49084 49085 49086 49087 49088 49089 49090 |
# File 'lib/ovirtsdk4/types.rb', line 49080 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Permission.new(value) end end end @permissions = list end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy
attribute.
49097 49098 49099 |
# File 'lib/ovirtsdk4/types.rb', line 49097 def placement_policy @placement_policy end |
#placement_policy=(value) ⇒ Object
Sets the value of the placement_policy
attribute.
The value
parameter can be an instance of OvirtSDK4::VmPlacementPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49110 49111 49112 49113 49114 49115 |
# File 'lib/ovirtsdk4/types.rb', line 49110 def placement_policy=(value) if value.is_a?(Hash) value = VmPlacementPolicy.new(value) end @placement_policy = value end |
#quota ⇒ Quota
Returns the value of the quota
attribute.
49122 49123 49124 |
# File 'lib/ovirtsdk4/types.rb', line 49122 def quota @quota end |
#quota=(value) ⇒ Object
Sets the value of the quota
attribute.
The value
parameter can be an instance of Quota or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49135 49136 49137 49138 49139 49140 |
# File 'lib/ovirtsdk4/types.rb', line 49135 def quota=(value) if value.is_a?(Hash) value = Quota.new(value) end @quota = value end |
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the reported_devices
attribute.
49147 49148 49149 |
# File 'lib/ovirtsdk4/types.rb', line 49147 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices
attribute.
49156 49157 49158 49159 49160 49161 49162 49163 49164 49165 49166 |
# File 'lib/ovirtsdk4/types.rb', line 49156 def reported_devices=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ReportedDevice.new(value) end end end @reported_devices = list end |
#rng_device ⇒ RngDevice
Returns the value of the rng_device
attribute.
49173 49174 49175 |
# File 'lib/ovirtsdk4/types.rb', line 49173 def rng_device @rng_device end |
#rng_device=(value) ⇒ Object
Sets the value of the rng_device
attribute.
The value
parameter can be an instance of RngDevice or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49186 49187 49188 49189 49190 49191 |
# File 'lib/ovirtsdk4/types.rb', line 49186 def rng_device=(value) if value.is_a?(Hash) value = RngDevice.new(value) end @rng_device = value end |
#run_once ⇒ Boolean
Returns the value of the run_once
attribute.
49198 49199 49200 |
# File 'lib/ovirtsdk4/types.rb', line 49198 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once
attribute.
49207 49208 49209 |
# File 'lib/ovirtsdk4/types.rb', line 49207 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number
attribute.
49216 49217 49218 |
# File 'lib/ovirtsdk4/types.rb', line 49216 def serial_number @serial_number end |
#serial_number=(value) ⇒ Object
Sets the value of the serial_number
attribute.
The value
parameter can be an instance of SerialNumber or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49229 49230 49231 49232 49233 49234 |
# File 'lib/ovirtsdk4/types.rb', line 49229 def serial_number=(value) if value.is_a?(Hash) value = SerialNumber.new(value) end @serial_number = value end |
#sessions ⇒ Array<Session>
Returns the value of the sessions
attribute.
49241 49242 49243 |
# File 'lib/ovirtsdk4/types.rb', line 49241 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions
attribute.
49250 49251 49252 49253 49254 49255 49256 49257 49258 49259 49260 |
# File 'lib/ovirtsdk4/types.rb', line 49250 def sessions=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Session.new(value) end end end @sessions = list end |
#small_icon ⇒ Icon
Returns the value of the small_icon
attribute.
49267 49268 49269 |
# File 'lib/ovirtsdk4/types.rb', line 49267 def small_icon @small_icon end |
#small_icon=(value) ⇒ Object
Sets the value of the small_icon
attribute.
The value
parameter can be an instance of Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49280 49281 49282 49283 49284 49285 |
# File 'lib/ovirtsdk4/types.rb', line 49280 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots
attribute.
49292 49293 49294 |
# File 'lib/ovirtsdk4/types.rb', line 49292 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots
attribute.
49301 49302 49303 49304 49305 49306 49307 49308 49309 49310 49311 |
# File 'lib/ovirtsdk4/types.rb', line 49301 def snapshots=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Snapshot.new(value) end end end @snapshots = list end |
#soundcard_enabled ⇒ Boolean
Returns the value of the soundcard_enabled
attribute.
49318 49319 49320 |
# File 'lib/ovirtsdk4/types.rb', line 49318 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled
attribute.
49327 49328 49329 |
# File 'lib/ovirtsdk4/types.rb', line 49327 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso
attribute.
49336 49337 49338 |
# File 'lib/ovirtsdk4/types.rb', line 49336 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso
attribute.
The value
parameter can be an instance of Sso or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49349 49350 49351 49352 49353 49354 |
# File 'lib/ovirtsdk4/types.rb', line 49349 def sso=(value) if value.is_a?(Hash) value = Sso.new(value) end @sso = value end |
#start_paused ⇒ Boolean
Returns the value of the start_paused
attribute.
49361 49362 49363 |
# File 'lib/ovirtsdk4/types.rb', line 49361 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused
attribute.
49370 49371 49372 |
# File 'lib/ovirtsdk4/types.rb', line 49370 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time
attribute.
49379 49380 49381 |
# File 'lib/ovirtsdk4/types.rb', line 49379 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time
attribute.
49388 49389 49390 |
# File 'lib/ovirtsdk4/types.rb', line 49388 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless
attribute.
49397 49398 49399 |
# File 'lib/ovirtsdk4/types.rb', line 49397 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless
attribute.
49406 49407 49408 |
# File 'lib/ovirtsdk4/types.rb', line 49406 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics
attribute.
49415 49416 49417 |
# File 'lib/ovirtsdk4/types.rb', line 49415 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics
attribute.
49424 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 |
# File 'lib/ovirtsdk4/types.rb', line 49424 def statistics=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Statistic.new(value) end end end @statistics = list end |
#status ⇒ VmStatus
Returns the value of the status
attribute.
49441 49442 49443 |
# File 'lib/ovirtsdk4/types.rb', line 49441 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status
attribute.
49450 49451 49452 |
# File 'lib/ovirtsdk4/types.rb', line 49450 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail
attribute.
49459 49460 49461 |
# File 'lib/ovirtsdk4/types.rb', line 49459 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail
attribute.
49468 49469 49470 |
# File 'lib/ovirtsdk4/types.rb', line 49468 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason
attribute.
49477 49478 49479 |
# File 'lib/ovirtsdk4/types.rb', line 49477 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason
attribute.
49486 49487 49488 |
# File 'lib/ovirtsdk4/types.rb', line 49486 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time
attribute.
49495 49496 49497 |
# File 'lib/ovirtsdk4/types.rb', line 49495 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time
attribute.
49504 49505 49506 |
# File 'lib/ovirtsdk4/types.rb', line 49504 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
49513 49514 49515 |
# File 'lib/ovirtsdk4/types.rb', line 49513 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain
attribute.
The value
parameter can be an instance of StorageDomain or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49526 49527 49528 49529 49530 49531 |
# File 'lib/ovirtsdk4/types.rb', line 49526 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the storage_error_resume_behaviour
attribute.
49538 49539 49540 |
# File 'lib/ovirtsdk4/types.rb', line 49538 def storage_error_resume_behaviour @storage_error_resume_behaviour end |
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the storage_error_resume_behaviour
attribute.
49547 49548 49549 |
# File 'lib/ovirtsdk4/types.rb', line 49547 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags
attribute.
49556 49557 49558 |
# File 'lib/ovirtsdk4/types.rb', line 49556 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags
attribute.
49565 49566 49567 49568 49569 49570 49571 49572 49573 49574 49575 |
# File 'lib/ovirtsdk4/types.rb', line 49565 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Tag.new(value) end end end @tags = list end |
#template ⇒ Template
Returns the value of the template
attribute.
49582 49583 49584 |
# File 'lib/ovirtsdk4/types.rb', line 49582 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template
attribute.
The value
parameter can be an instance of Template or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49595 49596 49597 49598 49599 49600 |
# File 'lib/ovirtsdk4/types.rb', line 49595 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#time_zone ⇒ TimeZone
Returns the value of the time_zone
attribute.
49607 49608 49609 |
# File 'lib/ovirtsdk4/types.rb', line 49607 def time_zone @time_zone end |
#time_zone=(value) ⇒ Object
Sets the value of the time_zone
attribute.
The value
parameter can be an instance of TimeZone or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49620 49621 49622 49623 49624 49625 |
# File 'lib/ovirtsdk4/types.rb', line 49620 def time_zone=(value) if value.is_a?(Hash) value = TimeZone.new(value) end @time_zone = value end |
#tunnel_migration ⇒ Boolean
Returns the value of the tunnel_migration
attribute.
49632 49633 49634 |
# File 'lib/ovirtsdk4/types.rb', line 49632 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration
attribute.
49641 49642 49643 |
# File 'lib/ovirtsdk4/types.rb', line 49641 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type
attribute.
49650 49651 49652 |
# File 'lib/ovirtsdk4/types.rb', line 49650 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
49659 49660 49661 |
# File 'lib/ovirtsdk4/types.rb', line 49659 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb
attribute.
49668 49669 49670 |
# File 'lib/ovirtsdk4/types.rb', line 49668 def usb @usb end |
#usb=(value) ⇒ Object
Sets the value of the usb
attribute.
The value
parameter can be an instance of Usb or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49681 49682 49683 49684 49685 49686 |
# File 'lib/ovirtsdk4/types.rb', line 49681 def usb=(value) if value.is_a?(Hash) value = Usb.new(value) end @usb = value end |
#use_latest_template_version ⇒ Boolean
Returns the value of the use_latest_template_version
attribute.
49693 49694 49695 |
# File 'lib/ovirtsdk4/types.rb', line 49693 def use_latest_template_version @use_latest_template_version end |
#use_latest_template_version=(value) ⇒ Object
Sets the value of the use_latest_template_version
attribute.
49702 49703 49704 |
# File 'lib/ovirtsdk4/types.rb', line 49702 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi
attribute.
49711 49712 49713 |
# File 'lib/ovirtsdk4/types.rb', line 49711 def virtio_scsi @virtio_scsi end |
#virtio_scsi=(value) ⇒ Object
Sets the value of the virtio_scsi
attribute.
The value
parameter can be an instance of OvirtSDK4::VirtioScsi or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49724 49725 49726 49727 49728 49729 |
# File 'lib/ovirtsdk4/types.rb', line 49724 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool
attribute.
49736 49737 49738 |
# File 'lib/ovirtsdk4/types.rb', line 49736 def vm_pool @vm_pool end |
#vm_pool=(value) ⇒ Object
Sets the value of the vm_pool
attribute.
The value
parameter can be an instance of OvirtSDK4::VmPool or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
49749 49750 49751 49752 49753 49754 |
# File 'lib/ovirtsdk4/types.rb', line 49749 def vm_pool=(value) if value.is_a?(Hash) value = VmPool.new(value) end @vm_pool = value end |
#watchdogs ⇒ Array<Watchdog>
Returns the value of the watchdogs
attribute.
49761 49762 49763 |
# File 'lib/ovirtsdk4/types.rb', line 49761 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs
attribute.
49770 49771 49772 49773 49774 49775 49776 49777 49778 49779 49780 |
# File 'lib/ovirtsdk4/types.rb', line 49770 def watchdogs=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Watchdog.new(value) end end end @watchdogs = list end |