Class: OvirtSDK4::Snapshot
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the
affinity_labelsattribute. -
#affinity_labels=(list) ⇒ Object
Sets the value of the
affinity_labelsattribute. -
#applications ⇒ Array<Application>
Returns the value of the
applicationsattribute. -
#applications=(list) ⇒ Object
Sets the value of the
applicationsattribute. -
#bios ⇒ Bios
Returns the value of the
biosattribute. -
#bios=(value) ⇒ Object
Sets the value of the
biosattribute. -
#cdroms ⇒ Array<Cdrom>
Returns the value of the
cdromsattribute. -
#cdroms=(list) ⇒ Object
Sets the value of the
cdromsattribute. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#console ⇒ Console
Returns the value of the
consoleattribute. -
#console=(value) ⇒ Object
Sets the value of the
consoleattribute. -
#cpu ⇒ Cpu
Returns the value of the
cpuattribute. -
#cpu=(value) ⇒ Object
Sets the value of the
cpuattribute. -
#cpu_profile ⇒ CpuProfile
Returns the value of the
cpu_profileattribute. -
#cpu_profile=(value) ⇒ Object
Sets the value of the
cpu_profileattribute. -
#cpu_shares ⇒ Integer
Returns the value of the
cpu_sharesattribute. -
#cpu_shares=(value) ⇒ Object
Sets the value of the
cpu_sharesattribute. -
#creation_time ⇒ DateTime
Returns the value of the
creation_timeattribute. -
#creation_time=(value) ⇒ Object
Sets the value of the
creation_timeattribute. -
#custom_compatibility_version ⇒ Version
Returns the value of the
custom_compatibility_versionattribute. -
#custom_compatibility_version=(value) ⇒ Object
Sets the value of the
custom_compatibility_versionattribute. -
#custom_cpu_model ⇒ String
Returns the value of the
custom_cpu_modelattribute. -
#custom_cpu_model=(value) ⇒ Object
Sets the value of the
custom_cpu_modelattribute. -
#custom_emulated_machine ⇒ String
Returns the value of the
custom_emulated_machineattribute. -
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the
custom_emulated_machineattribute. -
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the
custom_propertiesattribute. -
#custom_properties=(list) ⇒ Object
Sets the value of the
custom_propertiesattribute. -
#date ⇒ DateTime
Returns the value of the
dateattribute. -
#date=(value) ⇒ Object
Sets the value of the
dateattribute. -
#delete_protected ⇒ Boolean
Returns the value of the
delete_protectedattribute. -
#delete_protected=(value) ⇒ Object
Sets the value of the
delete_protectedattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the
disk_attachmentsattribute. -
#disk_attachments=(list) ⇒ Object
Sets the value of the
disk_attachmentsattribute. -
#display ⇒ Display
Returns the value of the
displayattribute. -
#display=(value) ⇒ Object
Sets the value of the
displayattribute. -
#domain ⇒ Domain
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#external_host_provider ⇒ ExternalHostProvider
Returns the value of the
external_host_providerattribute. -
#external_host_provider=(value) ⇒ Object
Sets the value of the
external_host_providerattribute. -
#floppies ⇒ Array<Floppy>
Returns the value of the
floppiesattribute. -
#floppies=(list) ⇒ Object
Sets the value of the
floppiesattribute. -
#fqdn ⇒ String
Returns the value of the
fqdnattribute. -
#fqdn=(value) ⇒ Object
Sets the value of the
fqdnattribute. -
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the
graphics_consolesattribute. -
#graphics_consoles=(list) ⇒ Object
Sets the value of the
graphics_consolesattribute. -
#guest_operating_system ⇒ GuestOperatingSystem
Returns the value of the
guest_operating_systemattribute. -
#guest_operating_system=(value) ⇒ Object
Sets the value of the
guest_operating_systemattribute. -
#guest_time_zone ⇒ TimeZone
Returns the value of the
guest_time_zoneattribute. -
#guest_time_zone=(value) ⇒ Object
Sets the value of the
guest_time_zoneattribute. -
#has_illegal_images ⇒ Boolean
Returns the value of the
has_illegal_imagesattribute. -
#has_illegal_images=(value) ⇒ Object
Sets the value of the
has_illegal_imagesattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#high_availability ⇒ HighAvailability
Returns the value of the
high_availabilityattribute. -
#high_availability=(value) ⇒ Object
Sets the value of the
high_availabilityattribute. -
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#host_devices ⇒ Array<HostDevice>
Returns the value of the
host_devicesattribute. -
#host_devices=(list) ⇒ Object
Sets the value of the
host_devicesattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialization ⇒ Initialization
Returns the value of the
initializationattribute. -
#initialization=(value) ⇒ Object
Sets the value of the
initializationattribute. -
#initialize(opts = {}) ⇒ Snapshot
constructor
Creates a new instance of the Snapshot class.
-
#instance_type ⇒ InstanceType
Returns the value of the
instance_typeattribute. -
#instance_type=(value) ⇒ Object
Sets the value of the
instance_typeattribute. -
#io ⇒ Io
Returns the value of the
ioattribute. -
#io=(value) ⇒ Object
Sets the value of the
ioattribute. -
#katello_errata ⇒ Array<KatelloErratum>
Returns the value of the
katello_errataattribute. -
#katello_errata=(list) ⇒ Object
Sets the value of the
katello_errataattribute. -
#large_icon ⇒ Icon
Returns the value of the
large_iconattribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_iconattribute. -
#lease ⇒ StorageDomainLease
Returns the value of the
leaseattribute. -
#lease=(value) ⇒ Object
Sets the value of the
leaseattribute. -
#memory ⇒ Integer
Returns the value of the
memoryattribute. -
#memory=(value) ⇒ Object
Sets the value of the
memoryattribute. -
#memory_policy ⇒ MemoryPolicy
Returns the value of the
memory_policyattribute. -
#memory_policy=(value) ⇒ Object
Sets the value of the
memory_policyattribute. -
#migration ⇒ MigrationOptions
Returns the value of the
migrationattribute. -
#migration=(value) ⇒ Object
Sets the value of the
migrationattribute. -
#migration_downtime ⇒ Integer
Returns the value of the
migration_downtimeattribute. -
#migration_downtime=(value) ⇒ Object
Sets the value of the
migration_downtimeattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#next_run_configuration_exists ⇒ Boolean
Returns the value of the
next_run_configuration_existsattribute. -
#next_run_configuration_exists=(value) ⇒ Object
Sets the value of the
next_run_configuration_existsattribute. -
#nics ⇒ Array<Nic>
Returns the value of the
nicsattribute. -
#nics=(list) ⇒ Object
Sets the value of the
nicsattribute. -
#numa_nodes ⇒ Array<NumaNode>
Returns the value of the
numa_nodesattribute. -
#numa_nodes=(list) ⇒ Object
Sets the value of the
numa_nodesattribute. -
#numa_tune_mode ⇒ NumaTuneMode
Returns the value of the
numa_tune_modeattribute. -
#numa_tune_mode=(value) ⇒ Object
Sets the value of the
numa_tune_modeattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#original_template ⇒ Template
Returns the value of the
original_templateattribute. -
#original_template=(value) ⇒ Object
Sets the value of the
original_templateattribute. -
#os ⇒ OperatingSystem
Returns the value of the
osattribute. -
#os=(value) ⇒ Object
Sets the value of the
osattribute. -
#payloads ⇒ Array<Payload>
Returns the value of the
payloadsattribute. -
#payloads=(list) ⇒ Object
Sets the value of the
payloadsattribute. -
#permissions ⇒ Array<Permission>
Returns the value of the
permissionsattribute. -
#permissions=(list) ⇒ Object
Sets the value of the
permissionsattribute. -
#persist_memorystate ⇒ Boolean
Returns the value of the
persist_memorystateattribute. -
#persist_memorystate=(value) ⇒ Object
Sets the value of the
persist_memorystateattribute. -
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the
placement_policyattribute. -
#placement_policy=(value) ⇒ Object
Sets the value of the
placement_policyattribute. -
#quota ⇒ Quota
Returns the value of the
quotaattribute. -
#quota=(value) ⇒ Object
Sets the value of the
quotaattribute. -
#reported_devices ⇒ Array<ReportedDevice>
Returns the value of the
reported_devicesattribute. -
#reported_devices=(list) ⇒ Object
Sets the value of the
reported_devicesattribute. -
#rng_device ⇒ RngDevice
Returns the value of the
rng_deviceattribute. -
#rng_device=(value) ⇒ Object
Sets the value of the
rng_deviceattribute. -
#run_once ⇒ Boolean
Returns the value of the
run_onceattribute. -
#run_once=(value) ⇒ Object
Sets the value of the
run_onceattribute. -
#serial_number ⇒ SerialNumber
Returns the value of the
serial_numberattribute. -
#serial_number=(value) ⇒ Object
Sets the value of the
serial_numberattribute. -
#sessions ⇒ Array<Session>
Returns the value of the
sessionsattribute. -
#sessions=(list) ⇒ Object
Sets the value of the
sessionsattribute. -
#small_icon ⇒ Icon
Returns the value of the
small_iconattribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_iconattribute. -
#snapshot_status ⇒ SnapshotStatus
Returns the value of the
snapshot_statusattribute. -
#snapshot_status=(value) ⇒ Object
Sets the value of the
snapshot_statusattribute. -
#snapshot_type ⇒ SnapshotType
Returns the value of the
snapshot_typeattribute. -
#snapshot_type=(value) ⇒ Object
Sets the value of the
snapshot_typeattribute. -
#snapshots ⇒ Array<Snapshot>
Returns the value of the
snapshotsattribute. -
#snapshots=(list) ⇒ Object
Sets the value of the
snapshotsattribute. -
#soundcard_enabled ⇒ Boolean
Returns the value of the
soundcard_enabledattribute. -
#soundcard_enabled=(value) ⇒ Object
Sets the value of the
soundcard_enabledattribute. -
#sso ⇒ Sso
Returns the value of the
ssoattribute. -
#sso=(value) ⇒ Object
Sets the value of the
ssoattribute. -
#start_paused ⇒ Boolean
Returns the value of the
start_pausedattribute. -
#start_paused=(value) ⇒ Object
Sets the value of the
start_pausedattribute. -
#start_time ⇒ DateTime
Returns the value of the
start_timeattribute. -
#start_time=(value) ⇒ Object
Sets the value of the
start_timeattribute. -
#stateless ⇒ Boolean
Returns the value of the
statelessattribute. -
#stateless=(value) ⇒ Object
Sets the value of the
statelessattribute. -
#statistics ⇒ Array<Statistic>
Returns the value of the
statisticsattribute. -
#statistics=(list) ⇒ Object
Sets the value of the
statisticsattribute. -
#status ⇒ VmStatus
Returns the value of the
statusattribute. -
#status=(value) ⇒ Object
Sets the value of the
statusattribute. -
#status_detail ⇒ String
Returns the value of the
status_detailattribute. -
#status_detail=(value) ⇒ Object
Sets the value of the
status_detailattribute. -
#stop_reason ⇒ String
Returns the value of the
stop_reasonattribute. -
#stop_reason=(value) ⇒ Object
Sets the value of the
stop_reasonattribute. -
#stop_time ⇒ DateTime
Returns the value of the
stop_timeattribute. -
#stop_time=(value) ⇒ Object
Sets the value of the
stop_timeattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#storage_error_resume_behaviour ⇒ VmStorageErrorResumeBehaviour
Returns the value of the
storage_error_resume_behaviourattribute. -
#storage_error_resume_behaviour=(value) ⇒ Object
Sets the value of the
storage_error_resume_behaviourattribute. -
#tags ⇒ Array<Tag>
Returns the value of the
tagsattribute. -
#tags=(list) ⇒ Object
Sets the value of the
tagsattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#time_zone ⇒ TimeZone
Returns the value of the
time_zoneattribute. -
#time_zone=(value) ⇒ Object
Sets the value of the
time_zoneattribute. -
#tunnel_migration ⇒ Boolean
Returns the value of the
tunnel_migrationattribute. -
#tunnel_migration=(value) ⇒ Object
Sets the value of the
tunnel_migrationattribute. -
#type ⇒ VmType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#usb ⇒ Usb
Returns the value of the
usbattribute. -
#usb=(value) ⇒ Object
Sets the value of the
usbattribute. -
#use_latest_template_version ⇒ Boolean
Returns the value of the
use_latest_template_versionattribute. -
#use_latest_template_version=(value) ⇒ Object
Sets the value of the
use_latest_template_versionattribute. -
#virtio_scsi ⇒ VirtioScsi
Returns the value of the
virtio_scsiattribute. -
#virtio_scsi=(value) ⇒ Object
Sets the value of the
virtio_scsiattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute. -
#vm_pool ⇒ VmPool
Returns the value of the
vm_poolattribute. -
#vm_pool=(value) ⇒ Object
Sets the value of the
vm_poolattribute. -
#watchdogs ⇒ Array<Watchdog>
Returns the value of the
watchdogsattribute. -
#watchdogs=(list) ⇒ Object
Sets the value of the
watchdogsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Snapshot
Creates a new instance of the OvirtSDK4::Snapshot class.
55068 55069 55070 55071 55072 55073 55074 55075 |
# File 'lib/ovirtsdk4/types.rb', line 55068 def initialize(opts = {}) super(opts) self.date = opts[:date] self.persist_memorystate = opts[:persist_memorystate] self.snapshot_status = opts[:snapshot_status] self.snapshot_type = opts[:snapshot_type] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
55080 55081 55082 55083 55084 55085 55086 55087 |
# File 'lib/ovirtsdk4/types.rb', line 55080 def ==(other) super && @date == other.date && @persist_memorystate == other.persist_memorystate && @snapshot_status == other.snapshot_status && @snapshot_type == other.snapshot_type && @vm == other.vm end |
#affinity_labels ⇒ Array<AffinityLabel>
Returns the value of the affinity_labels attribute.
52928 52929 52930 |
# File 'lib/ovirtsdk4/types.rb', line 52928 def affinity_labels @affinity_labels end |
#affinity_labels=(list) ⇒ Object
Sets the value of the affinity_labels attribute.
52937 52938 52939 52940 52941 52942 52943 52944 52945 52946 52947 |
# File 'lib/ovirtsdk4/types.rb', line 52937 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.
52954 52955 52956 |
# File 'lib/ovirtsdk4/types.rb', line 52954 def applications @applications end |
#applications=(list) ⇒ Object
Sets the value of the applications attribute.
52963 52964 52965 52966 52967 52968 52969 52970 52971 52972 52973 |
# File 'lib/ovirtsdk4/types.rb', line 52963 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.
52980 52981 52982 |
# File 'lib/ovirtsdk4/types.rb', line 52980 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.
52993 52994 52995 52996 52997 52998 |
# File 'lib/ovirtsdk4/types.rb', line 52993 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.
53005 53006 53007 |
# File 'lib/ovirtsdk4/types.rb', line 53005 def cdroms @cdroms end |
#cdroms=(list) ⇒ Object
Sets the value of the cdroms attribute.
53014 53015 53016 53017 53018 53019 53020 53021 53022 53023 53024 |
# File 'lib/ovirtsdk4/types.rb', line 53014 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.
53031 53032 53033 |
# File 'lib/ovirtsdk4/types.rb', line 53031 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.
53044 53045 53046 53047 53048 53049 |
# File 'lib/ovirtsdk4/types.rb', line 53044 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.
53056 53057 53058 |
# File 'lib/ovirtsdk4/types.rb', line 53056 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
53065 53066 53067 |
# File 'lib/ovirtsdk4/types.rb', line 53065 def comment=(value) @comment = value end |
#console ⇒ Console
Returns the value of the console attribute.
53074 53075 53076 |
# File 'lib/ovirtsdk4/types.rb', line 53074 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.
53087 53088 53089 53090 53091 53092 |
# File 'lib/ovirtsdk4/types.rb', line 53087 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.
53099 53100 53101 |
# File 'lib/ovirtsdk4/types.rb', line 53099 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.
53112 53113 53114 53115 53116 53117 |
# File 'lib/ovirtsdk4/types.rb', line 53112 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.
53124 53125 53126 |
# File 'lib/ovirtsdk4/types.rb', line 53124 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.
53137 53138 53139 53140 53141 53142 |
# File 'lib/ovirtsdk4/types.rb', line 53137 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.
53149 53150 53151 |
# File 'lib/ovirtsdk4/types.rb', line 53149 def cpu_shares @cpu_shares end |
#cpu_shares=(value) ⇒ Object
Sets the value of the cpu_shares attribute.
53158 53159 53160 |
# File 'lib/ovirtsdk4/types.rb', line 53158 def cpu_shares=(value) @cpu_shares = value end |
#creation_time ⇒ DateTime
Returns the value of the creation_time attribute.
53167 53168 53169 |
# File 'lib/ovirtsdk4/types.rb', line 53167 def creation_time @creation_time end |
#creation_time=(value) ⇒ Object
Sets the value of the creation_time attribute.
53176 53177 53178 |
# File 'lib/ovirtsdk4/types.rb', line 53176 def creation_time=(value) @creation_time = value end |
#custom_compatibility_version ⇒ Version
Returns the value of the custom_compatibility_version attribute.
53185 53186 53187 |
# File 'lib/ovirtsdk4/types.rb', line 53185 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 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.
53198 53199 53200 53201 53202 53203 |
# File 'lib/ovirtsdk4/types.rb', line 53198 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.
53210 53211 53212 |
# File 'lib/ovirtsdk4/types.rb', line 53210 def custom_cpu_model @custom_cpu_model end |
#custom_cpu_model=(value) ⇒ Object
Sets the value of the custom_cpu_model attribute.
53219 53220 53221 |
# File 'lib/ovirtsdk4/types.rb', line 53219 def custom_cpu_model=(value) @custom_cpu_model = value end |
#custom_emulated_machine ⇒ String
Returns the value of the custom_emulated_machine attribute.
53228 53229 53230 |
# File 'lib/ovirtsdk4/types.rb', line 53228 def custom_emulated_machine @custom_emulated_machine end |
#custom_emulated_machine=(value) ⇒ Object
Sets the value of the custom_emulated_machine attribute.
53237 53238 53239 |
# File 'lib/ovirtsdk4/types.rb', line 53237 def custom_emulated_machine=(value) @custom_emulated_machine = value end |
#custom_properties ⇒ Array<CustomProperty>
Returns the value of the custom_properties attribute.
53246 53247 53248 |
# File 'lib/ovirtsdk4/types.rb', line 53246 def custom_properties @custom_properties end |
#custom_properties=(list) ⇒ Object
Sets the value of the custom_properties attribute.
53255 53256 53257 53258 53259 53260 53261 53262 53263 53264 53265 |
# File 'lib/ovirtsdk4/types.rb', line 53255 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 |
#date ⇒ DateTime
Returns the value of the date attribute.
53272 53273 53274 |
# File 'lib/ovirtsdk4/types.rb', line 53272 def date @date end |
#date=(value) ⇒ Object
Sets the value of the date attribute.
53281 53282 53283 |
# File 'lib/ovirtsdk4/types.rb', line 53281 def date=(value) @date = value end |
#delete_protected ⇒ Boolean
Returns the value of the delete_protected attribute.
53290 53291 53292 |
# File 'lib/ovirtsdk4/types.rb', line 53290 def delete_protected @delete_protected end |
#delete_protected=(value) ⇒ Object
Sets the value of the delete_protected attribute.
53299 53300 53301 |
# File 'lib/ovirtsdk4/types.rb', line 53299 def delete_protected=(value) @delete_protected = value end |
#description ⇒ String
Returns the value of the description attribute.
53308 53309 53310 |
# File 'lib/ovirtsdk4/types.rb', line 53308 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
53317 53318 53319 |
# File 'lib/ovirtsdk4/types.rb', line 53317 def description=(value) @description = value end |
#disk_attachments ⇒ Array<DiskAttachment>
Returns the value of the disk_attachments attribute.
53326 53327 53328 |
# File 'lib/ovirtsdk4/types.rb', line 53326 def @disk_attachments end |
#disk_attachments=(list) ⇒ Object
Sets the value of the disk_attachments attribute.
53335 53336 53337 53338 53339 53340 53341 53342 53343 53344 53345 |
# File 'lib/ovirtsdk4/types.rb', line 53335 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.
53352 53353 53354 |
# File 'lib/ovirtsdk4/types.rb', line 53352 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.
53365 53366 53367 53368 53369 53370 |
# File 'lib/ovirtsdk4/types.rb', line 53365 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.
53377 53378 53379 |
# File 'lib/ovirtsdk4/types.rb', line 53377 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.
53390 53391 53392 53393 53394 53395 |
# File 'lib/ovirtsdk4/types.rb', line 53390 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.
53402 53403 53404 |
# File 'lib/ovirtsdk4/types.rb', line 53402 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.
53415 53416 53417 53418 53419 53420 |
# File 'lib/ovirtsdk4/types.rb', line 53415 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.
53427 53428 53429 |
# File 'lib/ovirtsdk4/types.rb', line 53427 def floppies @floppies end |
#floppies=(list) ⇒ Object
Sets the value of the floppies attribute.
53436 53437 53438 53439 53440 53441 53442 53443 53444 53445 53446 |
# File 'lib/ovirtsdk4/types.rb', line 53436 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.
53453 53454 53455 |
# File 'lib/ovirtsdk4/types.rb', line 53453 def fqdn @fqdn end |
#fqdn=(value) ⇒ Object
Sets the value of the fqdn attribute.
53462 53463 53464 |
# File 'lib/ovirtsdk4/types.rb', line 53462 def fqdn=(value) @fqdn = value end |
#graphics_consoles ⇒ Array<GraphicsConsole>
Returns the value of the graphics_consoles attribute.
53471 53472 53473 |
# File 'lib/ovirtsdk4/types.rb', line 53471 def graphics_consoles @graphics_consoles end |
#graphics_consoles=(list) ⇒ Object
Sets the value of the graphics_consoles attribute.
53480 53481 53482 53483 53484 53485 53486 53487 53488 53489 53490 |
# File 'lib/ovirtsdk4/types.rb', line 53480 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.
53497 53498 53499 |
# File 'lib/ovirtsdk4/types.rb', line 53497 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.
53510 53511 53512 53513 53514 53515 |
# File 'lib/ovirtsdk4/types.rb', line 53510 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.
53522 53523 53524 |
# File 'lib/ovirtsdk4/types.rb', line 53522 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.
53535 53536 53537 53538 53539 53540 |
# File 'lib/ovirtsdk4/types.rb', line 53535 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.
53547 53548 53549 |
# File 'lib/ovirtsdk4/types.rb', line 53547 def has_illegal_images @has_illegal_images end |
#has_illegal_images=(value) ⇒ Object
Sets the value of the has_illegal_images attribute.
53556 53557 53558 |
# File 'lib/ovirtsdk4/types.rb', line 53556 def has_illegal_images=(value) @has_illegal_images = value end |
#hash ⇒ Object
Generates a hash value for this object.
55092 55093 55094 55095 55096 55097 55098 55099 |
# File 'lib/ovirtsdk4/types.rb', line 55092 def hash super + @date.hash + @persist_memorystate.hash + @snapshot_status.hash + @snapshot_type.hash + @vm.hash end |
#high_availability ⇒ HighAvailability
Returns the value of the high_availability attribute.
53565 53566 53567 |
# File 'lib/ovirtsdk4/types.rb', line 53565 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.
53578 53579 53580 53581 53582 53583 |
# File 'lib/ovirtsdk4/types.rb', line 53578 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.
53590 53591 53592 |
# File 'lib/ovirtsdk4/types.rb', line 53590 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.
53603 53604 53605 53606 53607 53608 |
# File 'lib/ovirtsdk4/types.rb', line 53603 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.
53615 53616 53617 |
# File 'lib/ovirtsdk4/types.rb', line 53615 def host_devices @host_devices end |
#host_devices=(list) ⇒ Object
Sets the value of the host_devices attribute.
53624 53625 53626 53627 53628 53629 53630 53631 53632 53633 53634 |
# File 'lib/ovirtsdk4/types.rb', line 53624 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.
53641 53642 53643 |
# File 'lib/ovirtsdk4/types.rb', line 53641 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
53650 53651 53652 |
# File 'lib/ovirtsdk4/types.rb', line 53650 def id=(value) @id = value end |
#initialization ⇒ Initialization
Returns the value of the initialization attribute.
53659 53660 53661 |
# File 'lib/ovirtsdk4/types.rb', line 53659 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.
53672 53673 53674 53675 53676 53677 |
# File 'lib/ovirtsdk4/types.rb', line 53672 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.
53684 53685 53686 |
# File 'lib/ovirtsdk4/types.rb', line 53684 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.
53697 53698 53699 53700 53701 53702 |
# File 'lib/ovirtsdk4/types.rb', line 53697 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.
53709 53710 53711 |
# File 'lib/ovirtsdk4/types.rb', line 53709 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.
53722 53723 53724 53725 53726 53727 |
# File 'lib/ovirtsdk4/types.rb', line 53722 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.
53734 53735 53736 |
# File 'lib/ovirtsdk4/types.rb', line 53734 def katello_errata @katello_errata end |
#katello_errata=(list) ⇒ Object
Sets the value of the katello_errata attribute.
53743 53744 53745 53746 53747 53748 53749 53750 53751 53752 53753 |
# File 'lib/ovirtsdk4/types.rb', line 53743 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.
53760 53761 53762 |
# File 'lib/ovirtsdk4/types.rb', line 53760 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.
53773 53774 53775 53776 53777 53778 |
# File 'lib/ovirtsdk4/types.rb', line 53773 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.
53785 53786 53787 |
# File 'lib/ovirtsdk4/types.rb', line 53785 def lease @lease end |
#lease=(value) ⇒ Object
Sets the value of the lease attribute.
The value parameter can be an instance of OvirtSDK4::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.
53798 53799 53800 53801 53802 53803 |
# File 'lib/ovirtsdk4/types.rb', line 53798 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.
53810 53811 53812 |
# File 'lib/ovirtsdk4/types.rb', line 53810 def memory @memory end |
#memory=(value) ⇒ Object
Sets the value of the memory attribute.
53819 53820 53821 |
# File 'lib/ovirtsdk4/types.rb', line 53819 def memory=(value) @memory = value end |
#memory_policy ⇒ MemoryPolicy
Returns the value of the memory_policy attribute.
53828 53829 53830 |
# File 'lib/ovirtsdk4/types.rb', line 53828 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.
53841 53842 53843 53844 53845 53846 |
# File 'lib/ovirtsdk4/types.rb', line 53841 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.
53853 53854 53855 |
# File 'lib/ovirtsdk4/types.rb', line 53853 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.
53866 53867 53868 53869 53870 53871 |
# File 'lib/ovirtsdk4/types.rb', line 53866 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.
53878 53879 53880 |
# File 'lib/ovirtsdk4/types.rb', line 53878 def migration_downtime @migration_downtime end |
#migration_downtime=(value) ⇒ Object
Sets the value of the migration_downtime attribute.
53887 53888 53889 |
# File 'lib/ovirtsdk4/types.rb', line 53887 def migration_downtime=(value) @migration_downtime = value end |
#name ⇒ String
Returns the value of the name attribute.
53896 53897 53898 |
# File 'lib/ovirtsdk4/types.rb', line 53896 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
53905 53906 53907 |
# File 'lib/ovirtsdk4/types.rb', line 53905 def name=(value) @name = value end |
#next_run_configuration_exists ⇒ Boolean
Returns the value of the next_run_configuration_exists attribute.
53914 53915 53916 |
# File 'lib/ovirtsdk4/types.rb', line 53914 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.
53923 53924 53925 |
# File 'lib/ovirtsdk4/types.rb', line 53923 def next_run_configuration_exists=(value) @next_run_configuration_exists = value end |
#nics ⇒ Array<Nic>
Returns the value of the nics attribute.
53932 53933 53934 |
# File 'lib/ovirtsdk4/types.rb', line 53932 def nics @nics end |
#nics=(list) ⇒ Object
Sets the value of the nics attribute.
53941 53942 53943 53944 53945 53946 53947 53948 53949 53950 53951 |
# File 'lib/ovirtsdk4/types.rb', line 53941 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.
53958 53959 53960 |
# File 'lib/ovirtsdk4/types.rb', line 53958 def numa_nodes @numa_nodes end |
#numa_nodes=(list) ⇒ Object
Sets the value of the numa_nodes attribute.
53967 53968 53969 53970 53971 53972 53973 53974 53975 53976 53977 |
# File 'lib/ovirtsdk4/types.rb', line 53967 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.
53984 53985 53986 |
# File 'lib/ovirtsdk4/types.rb', line 53984 def numa_tune_mode @numa_tune_mode end |
#numa_tune_mode=(value) ⇒ Object
Sets the value of the numa_tune_mode attribute.
53993 53994 53995 |
# File 'lib/ovirtsdk4/types.rb', line 53993 def numa_tune_mode=(value) @numa_tune_mode = value end |
#origin ⇒ String
Returns the value of the origin attribute.
54002 54003 54004 |
# File 'lib/ovirtsdk4/types.rb', line 54002 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
54011 54012 54013 |
# File 'lib/ovirtsdk4/types.rb', line 54011 def origin=(value) @origin = value end |
#original_template ⇒ Template
Returns the value of the original_template attribute.
54020 54021 54022 |
# File 'lib/ovirtsdk4/types.rb', line 54020 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.
54033 54034 54035 54036 54037 54038 |
# File 'lib/ovirtsdk4/types.rb', line 54033 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.
54045 54046 54047 |
# File 'lib/ovirtsdk4/types.rb', line 54045 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.
54058 54059 54060 54061 54062 54063 |
# File 'lib/ovirtsdk4/types.rb', line 54058 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.
54070 54071 54072 |
# File 'lib/ovirtsdk4/types.rb', line 54070 def payloads @payloads end |
#payloads=(list) ⇒ Object
Sets the value of the payloads attribute.
54079 54080 54081 54082 54083 54084 54085 54086 54087 54088 54089 |
# File 'lib/ovirtsdk4/types.rb', line 54079 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.
54096 54097 54098 |
# File 'lib/ovirtsdk4/types.rb', line 54096 def @permissions end |
#permissions=(list) ⇒ Object
Sets the value of the permissions attribute.
54105 54106 54107 54108 54109 54110 54111 54112 54113 54114 54115 |
# File 'lib/ovirtsdk4/types.rb', line 54105 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 |
#persist_memorystate ⇒ Boolean
Returns the value of the persist_memorystate attribute.
54122 54123 54124 |
# File 'lib/ovirtsdk4/types.rb', line 54122 def persist_memorystate @persist_memorystate end |
#persist_memorystate=(value) ⇒ Object
Sets the value of the persist_memorystate attribute.
54131 54132 54133 |
# File 'lib/ovirtsdk4/types.rb', line 54131 def persist_memorystate=(value) @persist_memorystate = value end |
#placement_policy ⇒ VmPlacementPolicy
Returns the value of the placement_policy attribute.
54140 54141 54142 |
# File 'lib/ovirtsdk4/types.rb', line 54140 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 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.
54153 54154 54155 54156 54157 54158 |
# File 'lib/ovirtsdk4/types.rb', line 54153 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.
54165 54166 54167 |
# File 'lib/ovirtsdk4/types.rb', line 54165 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.
54178 54179 54180 54181 54182 54183 |
# File 'lib/ovirtsdk4/types.rb', line 54178 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.
54190 54191 54192 |
# File 'lib/ovirtsdk4/types.rb', line 54190 def reported_devices @reported_devices end |
#reported_devices=(list) ⇒ Object
Sets the value of the reported_devices attribute.
54199 54200 54201 54202 54203 54204 54205 54206 54207 54208 54209 |
# File 'lib/ovirtsdk4/types.rb', line 54199 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.
54216 54217 54218 |
# File 'lib/ovirtsdk4/types.rb', line 54216 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.
54229 54230 54231 54232 54233 54234 |
# File 'lib/ovirtsdk4/types.rb', line 54229 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.
54241 54242 54243 |
# File 'lib/ovirtsdk4/types.rb', line 54241 def run_once @run_once end |
#run_once=(value) ⇒ Object
Sets the value of the run_once attribute.
54250 54251 54252 |
# File 'lib/ovirtsdk4/types.rb', line 54250 def run_once=(value) @run_once = value end |
#serial_number ⇒ SerialNumber
Returns the value of the serial_number attribute.
54259 54260 54261 |
# File 'lib/ovirtsdk4/types.rb', line 54259 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 OvirtSDK4::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.
54272 54273 54274 54275 54276 54277 |
# File 'lib/ovirtsdk4/types.rb', line 54272 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.
54284 54285 54286 |
# File 'lib/ovirtsdk4/types.rb', line 54284 def sessions @sessions end |
#sessions=(list) ⇒ Object
Sets the value of the sessions attribute.
54293 54294 54295 54296 54297 54298 54299 54300 54301 54302 54303 |
# File 'lib/ovirtsdk4/types.rb', line 54293 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.
54310 54311 54312 |
# File 'lib/ovirtsdk4/types.rb', line 54310 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.
54323 54324 54325 54326 54327 54328 |
# File 'lib/ovirtsdk4/types.rb', line 54323 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |
#snapshot_status ⇒ SnapshotStatus
Returns the value of the snapshot_status attribute.
54335 54336 54337 |
# File 'lib/ovirtsdk4/types.rb', line 54335 def snapshot_status @snapshot_status end |
#snapshot_status=(value) ⇒ Object
Sets the value of the snapshot_status attribute.
54344 54345 54346 |
# File 'lib/ovirtsdk4/types.rb', line 54344 def snapshot_status=(value) @snapshot_status = value end |
#snapshot_type ⇒ SnapshotType
Returns the value of the snapshot_type attribute.
54353 54354 54355 |
# File 'lib/ovirtsdk4/types.rb', line 54353 def snapshot_type @snapshot_type end |
#snapshot_type=(value) ⇒ Object
Sets the value of the snapshot_type attribute.
54362 54363 54364 |
# File 'lib/ovirtsdk4/types.rb', line 54362 def snapshot_type=(value) @snapshot_type = value end |
#snapshots ⇒ Array<Snapshot>
Returns the value of the snapshots attribute.
54371 54372 54373 |
# File 'lib/ovirtsdk4/types.rb', line 54371 def snapshots @snapshots end |
#snapshots=(list) ⇒ Object
Sets the value of the snapshots attribute.
54380 54381 54382 54383 54384 54385 54386 54387 54388 54389 54390 |
# File 'lib/ovirtsdk4/types.rb', line 54380 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.
54397 54398 54399 |
# File 'lib/ovirtsdk4/types.rb', line 54397 def soundcard_enabled @soundcard_enabled end |
#soundcard_enabled=(value) ⇒ Object
Sets the value of the soundcard_enabled attribute.
54406 54407 54408 |
# File 'lib/ovirtsdk4/types.rb', line 54406 def soundcard_enabled=(value) @soundcard_enabled = value end |
#sso ⇒ Sso
Returns the value of the sso attribute.
54415 54416 54417 |
# File 'lib/ovirtsdk4/types.rb', line 54415 def sso @sso end |
#sso=(value) ⇒ Object
Sets the value of the sso attribute.
The value parameter can be an instance of OvirtSDK4::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.
54428 54429 54430 54431 54432 54433 |
# File 'lib/ovirtsdk4/types.rb', line 54428 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.
54440 54441 54442 |
# File 'lib/ovirtsdk4/types.rb', line 54440 def start_paused @start_paused end |
#start_paused=(value) ⇒ Object
Sets the value of the start_paused attribute.
54449 54450 54451 |
# File 'lib/ovirtsdk4/types.rb', line 54449 def start_paused=(value) @start_paused = value end |
#start_time ⇒ DateTime
Returns the value of the start_time attribute.
54458 54459 54460 |
# File 'lib/ovirtsdk4/types.rb', line 54458 def start_time @start_time end |
#start_time=(value) ⇒ Object
Sets the value of the start_time attribute.
54467 54468 54469 |
# File 'lib/ovirtsdk4/types.rb', line 54467 def start_time=(value) @start_time = value end |
#stateless ⇒ Boolean
Returns the value of the stateless attribute.
54476 54477 54478 |
# File 'lib/ovirtsdk4/types.rb', line 54476 def stateless @stateless end |
#stateless=(value) ⇒ Object
Sets the value of the stateless attribute.
54485 54486 54487 |
# File 'lib/ovirtsdk4/types.rb', line 54485 def stateless=(value) @stateless = value end |
#statistics ⇒ Array<Statistic>
Returns the value of the statistics attribute.
54494 54495 54496 |
# File 'lib/ovirtsdk4/types.rb', line 54494 def statistics @statistics end |
#statistics=(list) ⇒ Object
Sets the value of the statistics attribute.
54503 54504 54505 54506 54507 54508 54509 54510 54511 54512 54513 |
# File 'lib/ovirtsdk4/types.rb', line 54503 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.
54520 54521 54522 |
# File 'lib/ovirtsdk4/types.rb', line 54520 def status @status end |
#status=(value) ⇒ Object
Sets the value of the status attribute.
54529 54530 54531 |
# File 'lib/ovirtsdk4/types.rb', line 54529 def status=(value) @status = value end |
#status_detail ⇒ String
Returns the value of the status_detail attribute.
54538 54539 54540 |
# File 'lib/ovirtsdk4/types.rb', line 54538 def status_detail @status_detail end |
#status_detail=(value) ⇒ Object
Sets the value of the status_detail attribute.
54547 54548 54549 |
# File 'lib/ovirtsdk4/types.rb', line 54547 def status_detail=(value) @status_detail = value end |
#stop_reason ⇒ String
Returns the value of the stop_reason attribute.
54556 54557 54558 |
# File 'lib/ovirtsdk4/types.rb', line 54556 def stop_reason @stop_reason end |
#stop_reason=(value) ⇒ Object
Sets the value of the stop_reason attribute.
54565 54566 54567 |
# File 'lib/ovirtsdk4/types.rb', line 54565 def stop_reason=(value) @stop_reason = value end |
#stop_time ⇒ DateTime
Returns the value of the stop_time attribute.
54574 54575 54576 |
# File 'lib/ovirtsdk4/types.rb', line 54574 def stop_time @stop_time end |
#stop_time=(value) ⇒ Object
Sets the value of the stop_time attribute.
54583 54584 54585 |
# File 'lib/ovirtsdk4/types.rb', line 54583 def stop_time=(value) @stop_time = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
54592 54593 54594 |
# File 'lib/ovirtsdk4/types.rb', line 54592 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 OvirtSDK4::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.
54605 54606 54607 54608 54609 54610 |
# File 'lib/ovirtsdk4/types.rb', line 54605 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.
54617 54618 54619 |
# File 'lib/ovirtsdk4/types.rb', line 54617 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.
54626 54627 54628 |
# File 'lib/ovirtsdk4/types.rb', line 54626 def storage_error_resume_behaviour=(value) @storage_error_resume_behaviour = value end |
#tags ⇒ Array<Tag>
Returns the value of the tags attribute.
54635 54636 54637 |
# File 'lib/ovirtsdk4/types.rb', line 54635 def @tags end |
#tags=(list) ⇒ Object
Sets the value of the tags attribute.
54644 54645 54646 54647 54648 54649 54650 54651 54652 54653 54654 |
# File 'lib/ovirtsdk4/types.rb', line 54644 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.
54661 54662 54663 |
# File 'lib/ovirtsdk4/types.rb', line 54661 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.
54674 54675 54676 54677 54678 54679 |
# File 'lib/ovirtsdk4/types.rb', line 54674 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.
54686 54687 54688 |
# File 'lib/ovirtsdk4/types.rb', line 54686 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.
54699 54700 54701 54702 54703 54704 |
# File 'lib/ovirtsdk4/types.rb', line 54699 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.
54711 54712 54713 |
# File 'lib/ovirtsdk4/types.rb', line 54711 def tunnel_migration @tunnel_migration end |
#tunnel_migration=(value) ⇒ Object
Sets the value of the tunnel_migration attribute.
54720 54721 54722 |
# File 'lib/ovirtsdk4/types.rb', line 54720 def tunnel_migration=(value) @tunnel_migration = value end |
#type ⇒ VmType
Returns the value of the type attribute.
54729 54730 54731 |
# File 'lib/ovirtsdk4/types.rb', line 54729 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
54738 54739 54740 |
# File 'lib/ovirtsdk4/types.rb', line 54738 def type=(value) @type = value end |
#usb ⇒ Usb
Returns the value of the usb attribute.
54747 54748 54749 |
# File 'lib/ovirtsdk4/types.rb', line 54747 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.
54760 54761 54762 54763 54764 54765 |
# File 'lib/ovirtsdk4/types.rb', line 54760 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.
54772 54773 54774 |
# File 'lib/ovirtsdk4/types.rb', line 54772 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.
54781 54782 54783 |
# File 'lib/ovirtsdk4/types.rb', line 54781 def use_latest_template_version=(value) @use_latest_template_version = value end |
#virtio_scsi ⇒ VirtioScsi
Returns the value of the virtio_scsi attribute.
54790 54791 54792 |
# File 'lib/ovirtsdk4/types.rb', line 54790 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 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.
54803 54804 54805 54806 54807 54808 |
# File 'lib/ovirtsdk4/types.rb', line 54803 def virtio_scsi=(value) if value.is_a?(Hash) value = VirtioScsi.new(value) end @virtio_scsi = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
54815 54816 54817 |
# File 'lib/ovirtsdk4/types.rb', line 54815 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm attribute.
The value parameter can be an instance of Vm 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.
54828 54829 54830 54831 54832 54833 |
# File 'lib/ovirtsdk4/types.rb', line 54828 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |
#vm_pool ⇒ VmPool
Returns the value of the vm_pool attribute.
54840 54841 54842 |
# File 'lib/ovirtsdk4/types.rb', line 54840 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 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.
54853 54854 54855 54856 54857 54858 |
# File 'lib/ovirtsdk4/types.rb', line 54853 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.
54865 54866 54867 |
# File 'lib/ovirtsdk4/types.rb', line 54865 def watchdogs @watchdogs end |
#watchdogs=(list) ⇒ Object
Sets the value of the watchdogs attribute.
54874 54875 54876 54877 54878 54879 54880 54881 54882 54883 54884 |
# File 'lib/ovirtsdk4/types.rb', line 54874 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 |