# File lib/ovirtsdk4/types.rb, line 26013 def maintenance_enabled @maintenance_enabled end
Creates a new instance of the {Action} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Boolean] :allow_partial_import The value of attribute `allow_partial_import`.
@option opts [Boolean] :async The value of attribute `async`.
@option opts [Array<GlusterBrick>, Array<Hash>] :bricks The values of attribute `bricks`.
@option opts [Array<Certificate>, Array<Hash>] :certificates The values of attribute `certificates`.
@option opts [Boolean] :check_connectivity The value of attribute `check_connectivity`.
@option opts [Boolean] :clone The value of attribute `clone`.
@option opts [Cluster, Hash] :cluster The value of attribute `cluster`.
@option opts [Boolean] :collapse_snapshots The value of attribute `collapse_snapshots`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [Integer] :connectivity_timeout The value of attribute `connectivity_timeout`.
@option opts [DataCenter, Hash] :data_center The value of attribute `data_center`.
@option opts [Boolean] :deploy_hosted_engine The value of attribute `deploy_hosted_engine`.
@option opts [String] :description The value of attribute `description`.
@option opts [GlusterVolumeProfileDetails, Hash] :details The value of attribute `details`.
@option opts [Boolean] :discard_snapshots The value of attribute `discard_snapshots`.
@option opts [Disk, Hash] :disk The value of attribute `disk`.
@option opts [Array<Disk>, Array<Hash>] :disks The values of attribute `disks`.
@option opts [Boolean] :exclusive The value of attribute `exclusive`.
@option opts [Fault, Hash] :fault The value of attribute `fault`.
@option opts [String] :fence_type The value of attribute `fence_type`.
@option opts [Boolean] :filter The value of attribute `filter`.
@option opts [Boolean] :fix_layout The value of attribute `fix_layout`.
@option opts [Boolean] :force The value of attribute `force`.
@option opts [GracePeriod, Hash] :grace_period The value of attribute `grace_period`.
@option opts [Host, Hash] :host The value of attribute `host`.
@option opts [String] :id The value of attribute `id`.
@option opts [String] :image The value of attribute `image`.
@option opts [Boolean] :import_as_template The value of attribute `import_as_template`.
@option opts [Boolean] :is_attached The value of attribute `is_attached`.
@option opts [IscsiDetails, Hash] :iscsi The value of attribute `iscsi`.
@option opts [Array<String>, Array<Hash>] :iscsi_targets The values of attribute `iscsi_targets`.
@option opts [Job, Hash] :job The value of attribute `job`.
@option opts [Array<LogicalUnit>, Array<Hash>] :logical_units The values of attribute `logical_units`.
@option opts [Boolean] :maintenance_enabled The value of attribute `maintenance_enabled`.
@option opts [Array<HostNic>, Array<Hash>] :modified_bonds The values of attribute `modified_bonds`.
@option opts [Array<NetworkLabel>, Array<Hash>] :modified_labels The values of attribute `modified_labels`.
@option opts [Array<NetworkAttachment>, Array<Hash>] :modified_network_attachments The values of attribute `modified_network_attachments`.
@option opts [String] :name The value of attribute `name`.
@option opts [Option, Hash] :option The value of attribute `option`.
@option opts [Boolean] :pause The value of attribute `pause`.
@option opts [PowerManagement, Hash] :power_management The value of attribute `power_management`.
@option opts [ProxyTicket, Hash] :proxy_ticket The value of attribute `proxy_ticket`.
@option opts [String] :reason The value of attribute `reason`.
@option opts [Boolean] :reassign_bad_macs The value of attribute `reassign_bad_macs`.
@option opts [String] :remote_viewer_connection_file The value of attribute `remote_viewer_connection_file`.
@option opts [Array<HostNic>, Array<Hash>] :removed_bonds The values of attribute `removed_bonds`.
@option opts [Array<NetworkLabel>, Array<Hash>] :removed_labels The values of attribute `removed_labels`.
@option opts [Array<NetworkAttachment>, Array<Hash>] :removed_network_attachments The values of attribute `removed_network_attachments`.
@option opts [String] :resolution_type The value of attribute `resolution_type`.
@option opts [Boolean] :restore_memory The value of attribute `restore_memory`.
@option opts [String] :root_password The value of attribute `root_password`.
@option opts [Snapshot, Hash] :snapshot The value of attribute `snapshot`.
@option opts [Ssh, Hash] :ssh The value of attribute `ssh`.
@option opts [String] :status The value of attribute `status`.
@option opts [Boolean] :stop_gluster_service The value of attribute `stop_gluster_service`.
@option opts [StorageDomain, Hash] :storage_domain The value of attribute `storage_domain`.
@option opts [Array<StorageDomain>, Array<Hash>] :storage_domains The values of attribute `storage_domains`.
@option opts [Boolean] :succeeded The value of attribute `succeeded`.
@option opts [Array<NetworkAttachment>, Array<Hash>] :synchronized_network_attachments The values of attribute `synchronized_network_attachments`.
@option opts [Template, Hash] :template The value of attribute `template`.
@option opts [Ticket, Hash] :ticket The value of attribute `ticket`.
@option opts [Boolean] :undeploy_hosted_engine The value of attribute `undeploy_hosted_engine`.
@option opts [Boolean] :use_cloud_init The value of attribute `use_cloud_init`.
@option opts [Boolean] :use_sysprep The value of attribute `use_sysprep`.
@option opts [HostNicVirtualFunctionsConfiguration, Hash] :virtual_functions_configuration The value of attribute `virtual_functions_configuration`.
@option opts [Vm, Hash] :vm The value of attribute `vm`.
@option opts [Array<VnicProfileMapping>, Array<Hash>] :vnic_profile_mappings The values of attribute `vnic_profile_mappings`.
# File lib/ovirtsdk4/types.rb, line 26904 def initialize(opts = {}) super(opts) self.allow_partial_import = opts[:allow_partial_import] self.async = opts[:async] self.bricks = opts[:bricks] self.certificates = opts[:certificates] self.check_connectivity = opts[:check_connectivity] self.clone = opts[:clone] self.cluster = opts[:cluster] self.collapse_snapshots = opts[:collapse_snapshots] self.connectivity_timeout = opts[:connectivity_timeout] self.data_center = opts[:data_center] self.deploy_hosted_engine = opts[:deploy_hosted_engine] self.details = opts[:details] self.discard_snapshots = opts[:discard_snapshots] self.disk = opts[:disk] self.disks = opts[:disks] self.exclusive = opts[:exclusive] self.fault = opts[:fault] self.fence_type = opts[:fence_type] self.filter = opts[:filter] self.fix_layout = opts[:fix_layout] self.force = opts[:force] self.grace_period = opts[:grace_period] self.host = opts[:host] self.image = opts[:image] self.import_as_template = opts[:import_as_template] self.is_attached = opts[:is_attached] self.iscsi = opts[:iscsi] self.iscsi_targets = opts[:iscsi_targets] self.job = opts[:job] self.logical_units = opts[:logical_units] self.maintenance_enabled = opts[:maintenance_enabled] self.modified_bonds = opts[:modified_bonds] self.modified_labels = opts[:modified_labels] self.modified_network_attachments = opts[:modified_network_attachments] self.option = opts[:option] self.pause = opts[:pause] self.power_management = opts[:power_management] self.proxy_ticket = opts[:proxy_ticket] self.reason = opts[:reason] self.reassign_bad_macs = opts[:reassign_bad_macs] self.remote_viewer_connection_file = opts[:remote_viewer_connection_file] self.removed_bonds = opts[:removed_bonds] self.removed_labels = opts[:removed_labels] self.removed_network_attachments = opts[:removed_network_attachments] self.resolution_type = opts[:resolution_type] self.restore_memory = opts[:restore_memory] self.root_password = opts[:root_password] self.snapshot = opts[:snapshot] self.ssh = opts[:ssh] self.status = opts[:status] self.stop_gluster_service = opts[:stop_gluster_service] self.storage_domain = opts[:storage_domain] self.storage_domains = opts[:storage_domains] self.succeeded = opts[:succeeded] self.synchronized_network_attachments = opts[:synchronized_network_attachments] self.template = opts[:template] self.ticket = opts[:ticket] self.undeploy_hosted_engine = opts[:undeploy_hosted_engine] self.use_cloud_init = opts[:use_cloud_init] self.use_sysprep = opts[:use_sysprep] self.virtual_functions_configuration = opts[:virtual_functions_configuration] self.vm = opts[:vm] self.vnic_profile_mappings = opts[:vnic_profile_mappings] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 26974 def ==(other) super && @allow_partial_import == other.allow_partial_import && @async == other.async && @bricks == other.bricks && @certificates == other.certificates && @check_connectivity == other.check_connectivity && @clone == other.clone && @cluster == other.cluster && @collapse_snapshots == other.collapse_snapshots && @connectivity_timeout == other.connectivity_timeout && @data_center == other.data_center && @deploy_hosted_engine == other.deploy_hosted_engine && @details == other.details && @discard_snapshots == other.discard_snapshots && @disk == other.disk && @disks == other.disks && @exclusive == other.exclusive && @fault == other.fault && @fence_type == other.fence_type && @filter == other.filter && @fix_layout == other.fix_layout && @force == other.force && @grace_period == other.grace_period && @host == other.host && @image == other.image && @import_as_template == other.import_as_template && @is_attached == other.is_attached && @iscsi == other.iscsi && @iscsi_targets == other.iscsi_targets && @job == other.job && @logical_units == other.logical_units && @maintenance_enabled == other.maintenance_enabled && @modified_bonds == other.modified_bonds && @modified_labels == other.modified_labels && @modified_network_attachments == other.modified_network_attachments && @option == other.option && @pause == other.pause && @power_management == other.power_management && @proxy_ticket == other.proxy_ticket && @reason == other.reason && @reassign_bad_macs == other.reassign_bad_macs && @remote_viewer_connection_file == other.remote_viewer_connection_file && @removed_bonds == other.removed_bonds && @removed_labels == other.removed_labels && @removed_network_attachments == other.removed_network_attachments && @resolution_type == other.resolution_type && @restore_memory == other.restore_memory && @root_password == other.root_password && @snapshot == other.snapshot && @ssh == other.ssh && @status == other.status && @stop_gluster_service == other.stop_gluster_service && @storage_domain == other.storage_domain && @storage_domains == other.storage_domains && @succeeded == other.succeeded && @synchronized_network_attachments == other.synchronized_network_attachments && @template == other.template && @ticket == other.ticket && @undeploy_hosted_engine == other.undeploy_hosted_engine && @use_cloud_init == other.use_cloud_init && @use_sysprep == other.use_sysprep && @virtual_functions_configuration == other.virtual_functions_configuration && @vm == other.vm && @vnic_profile_mappings == other.vnic_profile_mappings end
Returns the value of the `allow_partial_import` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25324 def allow_partial_import @allow_partial_import end
Sets the value of the `allow_partial_import` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25333 def allow_partial_import=(value) @allow_partial_import = value end
Returns the value of the `async` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25342 def async @async end
Sets the value of the `async` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25351 def async=(value) @async = value end
Returns the value of the `bricks` attribute.
@return [Array<GlusterBrick>]
# File lib/ovirtsdk4/types.rb, line 25360 def bricks @bricks end
Sets the value of the `bricks` attribute.
@param list [Array<GlusterBrick>]
# File lib/ovirtsdk4/types.rb, line 25369 def bricks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = GlusterBrick.new(value) end end end @bricks = list end
Returns the value of the `certificates` attribute.
@return [Array<Certificate>]
# File lib/ovirtsdk4/types.rb, line 25386 def certificates @certificates end
Sets the value of the `certificates` attribute.
@param list [Array<Certificate>]
# File lib/ovirtsdk4/types.rb, line 25395 def certificates=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Certificate.new(value) end end end @certificates = list end
Returns the value of the `check_connectivity` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25412 def check_connectivity @check_connectivity end
Sets the value of the `check_connectivity` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25421 def check_connectivity=(value) @check_connectivity = value end
Returns the value of the `clone` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25430 def clone @clone end
Sets the value of the `clone` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25439 def clone=(value) @clone = value end
Returns the value of the `cluster` attribute.
@return [Cluster]
# File lib/ovirtsdk4/types.rb, line 25448 def cluster @cluster end
Sets the value of the `cluster` attribute.
@param value [Cluster, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 25461 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end
Returns the value of the `collapse_snapshots` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25473 def collapse_snapshots @collapse_snapshots end
Sets the value of the `collapse_snapshots` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25482 def collapse_snapshots=(value) @collapse_snapshots = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25491 def comment @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25500 def comment=(value) @comment = value end
Returns the value of the `connectivity_timeout` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 25509 def connectivity_timeout @connectivity_timeout end
Sets the value of the `connectivity_timeout` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 25518 def connectivity_timeout=(value) @connectivity_timeout = value end
Returns the value of the `data_center` attribute.
@return [DataCenter]
# File lib/ovirtsdk4/types.rb, line 25527 def data_center @data_center end
Sets the value of the `data_center` attribute.
@param value [DataCenter, Hash]
The `value` parameter can be an instance of {OvirtSDK4::DataCenter} 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.
# File lib/ovirtsdk4/types.rb, line 25540 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end
Returns the value of the `deploy_hosted_engine` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25552 def deploy_hosted_engine @deploy_hosted_engine end
Sets the value of the `deploy_hosted_engine` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25561 def deploy_hosted_engine=(value) @deploy_hosted_engine = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25570 def description @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25579 def description=(value) @description = value end
Returns the value of the `details` attribute.
@return [GlusterVolumeProfileDetails]
# File lib/ovirtsdk4/types.rb, line 25588 def details @details end
Sets the value of the `details` attribute.
@param value [GlusterVolumeProfileDetails, Hash]
The `value` parameter can be an instance of {OvirtSDK4::GlusterVolumeProfileDetails} 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.
# File lib/ovirtsdk4/types.rb, line 25601 def details=(value) if value.is_a?(Hash) value = GlusterVolumeProfileDetails.new(value) end @details = value end
Returns the value of the `discard_snapshots` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25613 def discard_snapshots @discard_snapshots end
Sets the value of the `discard_snapshots` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25622 def discard_snapshots=(value) @discard_snapshots = value end
Returns the value of the `disk` attribute.
@return [Disk]
# File lib/ovirtsdk4/types.rb, line 25631 def disk @disk end
Sets the value of the `disk` attribute.
@param value [Disk, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Disk} 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.
# File lib/ovirtsdk4/types.rb, line 25644 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end
Returns the value of the `disks` attribute.
@return [Array<Disk>]
# File lib/ovirtsdk4/types.rb, line 25656 def disks @disks end
Sets the value of the `disks` attribute.
@param list [Array<Disk>]
# File lib/ovirtsdk4/types.rb, line 25665 def disks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Disk.new(value) end end end @disks = list end
Returns the value of the `exclusive` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25682 def exclusive @exclusive end
Sets the value of the `exclusive` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25691 def exclusive=(value) @exclusive = value end
Returns the value of the `fault` attribute.
@return [Fault]
# File lib/ovirtsdk4/types.rb, line 25700 def fault @fault end
Sets the value of the `fault` attribute.
@param value [Fault, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Fault} 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.
# File lib/ovirtsdk4/types.rb, line 25713 def fault=(value) if value.is_a?(Hash) value = Fault.new(value) end @fault = value end
Returns the value of the `fence_type` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25725 def fence_type @fence_type end
Sets the value of the `fence_type` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25734 def fence_type=(value) @fence_type = value end
Returns the value of the `filter` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25743 def filter @filter end
Sets the value of the `filter` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25752 def filter=(value) @filter = value end
Returns the value of the `fix_layout` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25761 def fix_layout @fix_layout end
Sets the value of the `fix_layout` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25770 def fix_layout=(value) @fix_layout = value end
Returns the value of the `force` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25779 def force @force end
Sets the value of the `force` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25788 def force=(value) @force = value end
Returns the value of the `grace_period` attribute.
@return [GracePeriod]
# File lib/ovirtsdk4/types.rb, line 25797 def grace_period @grace_period end
Sets the value of the `grace_period` attribute.
@param value [GracePeriod, Hash]
The `value` parameter can be an instance of {OvirtSDK4::GracePeriod} 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.
# File lib/ovirtsdk4/types.rb, line 25810 def grace_period=(value) if value.is_a?(Hash) value = GracePeriod.new(value) end @grace_period = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 27044 def hash super + @allow_partial_import.hash + @async.hash + @bricks.hash + @certificates.hash + @check_connectivity.hash + @clone.hash + @cluster.hash + @collapse_snapshots.hash + @connectivity_timeout.hash + @data_center.hash + @deploy_hosted_engine.hash + @details.hash + @discard_snapshots.hash + @disk.hash + @disks.hash + @exclusive.hash + @fault.hash + @fence_type.hash + @filter.hash + @fix_layout.hash + @force.hash + @grace_period.hash + @host.hash + @image.hash + @import_as_template.hash + @is_attached.hash + @iscsi.hash + @iscsi_targets.hash + @job.hash + @logical_units.hash + @maintenance_enabled.hash + @modified_bonds.hash + @modified_labels.hash + @modified_network_attachments.hash + @option.hash + @pause.hash + @power_management.hash + @proxy_ticket.hash + @reason.hash + @reassign_bad_macs.hash + @remote_viewer_connection_file.hash + @removed_bonds.hash + @removed_labels.hash + @removed_network_attachments.hash + @resolution_type.hash + @restore_memory.hash + @root_password.hash + @snapshot.hash + @ssh.hash + @status.hash + @stop_gluster_service.hash + @storage_domain.hash + @storage_domains.hash + @succeeded.hash + @synchronized_network_attachments.hash + @template.hash + @ticket.hash + @undeploy_hosted_engine.hash + @use_cloud_init.hash + @use_sysprep.hash + @virtual_functions_configuration.hash + @vm.hash + @vnic_profile_mappings.hash end
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 25822 def host @host end
Sets the value of the `host` attribute.
@param value [Host, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 25835 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25847 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25856 def id=(value) @id = value end
Returns the value of the `image` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 25865 def image @image end
Sets the value of the `image` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 25874 def image=(value) @image = value end
Returns the value of the `import_as_template` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25883 def import_as_template @import_as_template end
Sets the value of the `import_as_template` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25892 def import_as_template=(value) @import_as_template = value end
Returns the value of the `is_attached` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 25901 def is_attached @is_attached end
Sets the value of the `is_attached` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 25910 def is_attached=(value) @is_attached = value end
Returns the value of the `iscsi` attribute.
@return [IscsiDetails]
# File lib/ovirtsdk4/types.rb, line 25919 def iscsi @iscsi end
Sets the value of the `iscsi` attribute.
@param value [IscsiDetails, Hash]
The `value` parameter can be an instance of {OvirtSDK4::IscsiDetails} 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.
# File lib/ovirtsdk4/types.rb, line 25932 def iscsi=(value) if value.is_a?(Hash) value = IscsiDetails.new(value) end @iscsi = value end
Returns the value of the `iscsi_targets` attribute.
@return [Array<String>]
# File lib/ovirtsdk4/types.rb, line 25944 def iscsi_targets @iscsi_targets end
Sets the value of the `iscsi_targets` attribute.
@param list [Array<String>]
# File lib/ovirtsdk4/types.rb, line 25953 def iscsi_targets=(list) @iscsi_targets = list end
Returns the value of the `job` attribute.
@return [Job]
# File lib/ovirtsdk4/types.rb, line 25962 def job @job end
Sets the value of the `job` attribute.
@param value [Job, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Job} 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.
# File lib/ovirtsdk4/types.rb, line 25975 def job=(value) if value.is_a?(Hash) value = Job.new(value) end @job = value end
Returns the value of the `logical_units` attribute.
@return [Array<LogicalUnit>]
# File lib/ovirtsdk4/types.rb, line 25987 def logical_units @logical_units end
Sets the value of the `logical_units` attribute.
@param list [Array<LogicalUnit>]
# File lib/ovirtsdk4/types.rb, line 25996 def logical_units=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = LogicalUnit.new(value) end end end @logical_units = list end
Returns the value of the `maintenance_enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26013 def maintenance_enabled @maintenance_enabled end
Sets the value of the `maintenance_enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26022 def maintenance_enabled=(value) @maintenance_enabled = value end
Returns the value of the `modified_bonds` attribute.
@return [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 26031 def modified_bonds @modified_bonds end
Sets the value of the `modified_bonds` attribute.
@param list [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 26040 def modified_bonds=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostNic.new(value) end end end @modified_bonds = list end
Returns the value of the `modified_labels` attribute.
@return [Array<NetworkLabel>]
# File lib/ovirtsdk4/types.rb, line 26057 def modified_labels @modified_labels end
Sets the value of the `modified_labels` attribute.
@param list [Array<NetworkLabel>]
# File lib/ovirtsdk4/types.rb, line 26066 def modified_labels=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkLabel.new(value) end end end @modified_labels = list end
Returns the value of the `modified_network_attachments` attribute.
@return [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 26083 def modified_network_attachments @modified_network_attachments end
Sets the value of the `modified_network_attachments` attribute.
@param list [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 26092 def modified_network_attachments=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkAttachment.new(value) end end end @modified_network_attachments = list end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 26109 def name @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 26118 def name=(value) @name = value end
Returns the value of the `option` attribute.
@return [Option]
# File lib/ovirtsdk4/types.rb, line 26127 def option @option end
Sets the value of the `option` attribute.
@param value [Option, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Option} 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.
# File lib/ovirtsdk4/types.rb, line 26140 def option=(value) if value.is_a?(Hash) value = Option.new(value) end @option = value end
Returns the value of the `pause` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26152 def pause @pause end
Sets the value of the `pause` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26161 def pause=(value) @pause = value end
Returns the value of the `power_management` attribute.
@return [PowerManagement]
# File lib/ovirtsdk4/types.rb, line 26170 def power_management @power_management end
Sets the value of the `power_management` attribute.
@param value [PowerManagement, Hash]
The `value` parameter can be an instance of {OvirtSDK4::PowerManagement} 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.
# File lib/ovirtsdk4/types.rb, line 26183 def power_management=(value) if value.is_a?(Hash) value = PowerManagement.new(value) end @power_management = value end
Returns the value of the `proxy_ticket` attribute.
@return [ProxyTicket]
# File lib/ovirtsdk4/types.rb, line 26195 def proxy_ticket @proxy_ticket end
Sets the value of the `proxy_ticket` attribute.
@param value [ProxyTicket, Hash]
The `value` parameter can be an instance of {OvirtSDK4::ProxyTicket} 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.
# File lib/ovirtsdk4/types.rb, line 26208 def proxy_ticket=(value) if value.is_a?(Hash) value = ProxyTicket.new(value) end @proxy_ticket = value end
Returns the value of the `reason` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 26220 def reason @reason end
Sets the value of the `reason` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 26229 def reason=(value) @reason = value end
Returns the value of the `reassign_bad_macs` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26238 def reassign_bad_macs @reassign_bad_macs end
Sets the value of the `reassign_bad_macs` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26247 def reassign_bad_macs=(value) @reassign_bad_macs = value end
Returns the value of the `remote_viewer_connection_file` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 26256 def remote_viewer_connection_file @remote_viewer_connection_file end
Sets the value of the `remote_viewer_connection_file` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 26265 def remote_viewer_connection_file=(value) @remote_viewer_connection_file = value end
Returns the value of the `removed_bonds` attribute.
@return [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 26274 def removed_bonds @removed_bonds end
Sets the value of the `removed_bonds` attribute.
@param list [Array<HostNic>]
# File lib/ovirtsdk4/types.rb, line 26283 def removed_bonds=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = HostNic.new(value) end end end @removed_bonds = list end
Returns the value of the `removed_labels` attribute.
@return [Array<NetworkLabel>]
# File lib/ovirtsdk4/types.rb, line 26300 def removed_labels @removed_labels end
Sets the value of the `removed_labels` attribute.
@param list [Array<NetworkLabel>]
# File lib/ovirtsdk4/types.rb, line 26309 def removed_labels=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkLabel.new(value) end end end @removed_labels = list end
Returns the value of the `removed_network_attachments` attribute.
@return [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 26326 def removed_network_attachments @removed_network_attachments end
Sets the value of the `removed_network_attachments` attribute.
@param list [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 26335 def removed_network_attachments=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkAttachment.new(value) end end end @removed_network_attachments = list end
Returns the value of the `resolution_type` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 26352 def resolution_type @resolution_type end
Sets the value of the `resolution_type` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 26361 def resolution_type=(value) @resolution_type = value end
Returns the value of the `restore_memory` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26370 def restore_memory @restore_memory end
Sets the value of the `restore_memory` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26379 def restore_memory=(value) @restore_memory = value end
Returns the value of the `root_password` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 26388 def root_password @root_password end
Sets the value of the `root_password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 26397 def root_password=(value) @root_password = value end
Returns the value of the `snapshot` attribute.
@return [Snapshot]
# File lib/ovirtsdk4/types.rb, line 26406 def snapshot @snapshot end
Sets the value of the `snapshot` attribute.
@param value [Snapshot, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Snapshot} 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.
# File lib/ovirtsdk4/types.rb, line 26419 def snapshot=(value) if value.is_a?(Hash) value = Snapshot.new(value) end @snapshot = value end
Returns the value of the `ssh` attribute.
@return [Ssh]
# File lib/ovirtsdk4/types.rb, line 26431 def ssh @ssh end
Sets the value of the `ssh` attribute.
@param value [Ssh, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Ssh} 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.
# File lib/ovirtsdk4/types.rb, line 26444 def ssh=(value) if value.is_a?(Hash) value = Ssh.new(value) end @ssh = value end
Returns the value of the `status` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 26456 def status @status end
Sets the value of the `status` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 26465 def status=(value) @status = value end
Returns the value of the `stop_gluster_service` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26474 def stop_gluster_service @stop_gluster_service end
Sets the value of the `stop_gluster_service` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26483 def stop_gluster_service=(value) @stop_gluster_service = value end
Returns the value of the `storage_domain` attribute.
@return [StorageDomain]
# File lib/ovirtsdk4/types.rb, line 26492 def storage_domain @storage_domain end
Sets the value of the `storage_domain` attribute.
@param value [StorageDomain, Hash]
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.
# File lib/ovirtsdk4/types.rb, line 26505 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end
Returns the value of the `storage_domains` attribute.
@return [Array<StorageDomain>]
# File lib/ovirtsdk4/types.rb, line 26517 def storage_domains @storage_domains end
Sets the value of the `storage_domains` attribute.
@param list [Array<StorageDomain>]
# File lib/ovirtsdk4/types.rb, line 26526 def storage_domains=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = StorageDomain.new(value) end end end @storage_domains = list end
Returns the value of the `succeeded` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26543 def succeeded @succeeded end
Sets the value of the `succeeded` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26552 def succeeded=(value) @succeeded = value end
Returns the value of the `synchronized_network_attachments` attribute.
@return [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 26561 def synchronized_network_attachments @synchronized_network_attachments end
Sets the value of the `synchronized_network_attachments` attribute.
@param list [Array<NetworkAttachment>]
# File lib/ovirtsdk4/types.rb, line 26570 def synchronized_network_attachments=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NetworkAttachment.new(value) end end end @synchronized_network_attachments = list end
Returns the value of the `template` attribute.
@return [Template]
# File lib/ovirtsdk4/types.rb, line 26587 def template @template end
Sets the value of the `template` attribute.
@param value [Template, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 26600 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end
Returns the value of the `ticket` attribute.
@return [Ticket]
# File lib/ovirtsdk4/types.rb, line 26612 def ticket @ticket end
Sets the value of the `ticket` attribute.
@param value [Ticket, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Ticket} 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.
# File lib/ovirtsdk4/types.rb, line 26625 def ticket=(value) if value.is_a?(Hash) value = Ticket.new(value) end @ticket = value end
Returns the value of the `undeploy_hosted_engine` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26637 def undeploy_hosted_engine @undeploy_hosted_engine end
Sets the value of the `undeploy_hosted_engine` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26646 def undeploy_hosted_engine=(value) @undeploy_hosted_engine = value end
Returns the value of the `use_cloud_init` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26655 def use_cloud_init @use_cloud_init end
Sets the value of the `use_cloud_init` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26664 def use_cloud_init=(value) @use_cloud_init = value end
Returns the value of the `use_sysprep` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 26673 def use_sysprep @use_sysprep end
Sets the value of the `use_sysprep` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 26682 def use_sysprep=(value) @use_sysprep = value end
Returns the value of the `virtual_functions_configuration` attribute.
@return [HostNicVirtualFunctionsConfiguration]
# File lib/ovirtsdk4/types.rb, line 26691 def virtual_functions_configuration @virtual_functions_configuration end
Sets the value of the `virtual_functions_configuration` attribute.
@param value [HostNicVirtualFunctionsConfiguration, Hash]
The `value` parameter can be an instance of {OvirtSDK4::HostNicVirtualFunctionsConfiguration} 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.
# File lib/ovirtsdk4/types.rb, line 26704 def virtual_functions_configuration=(value) if value.is_a?(Hash) value = HostNicVirtualFunctionsConfiguration.new(value) end @virtual_functions_configuration = value end
Returns the value of the `vm` attribute.
@return [Vm]
# File lib/ovirtsdk4/types.rb, line 26716 def vm @vm end
Sets the value of the `vm` attribute.
@param value [Vm, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 26729 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end
Returns the value of the `vnic_profile_mappings` attribute.
@return [Array<VnicProfileMapping>]
# File lib/ovirtsdk4/types.rb, line 26741 def vnic_profile_mappings @vnic_profile_mappings end
Sets the value of the `vnic_profile_mappings` attribute.
@param list [Array<VnicProfileMapping>]
# File lib/ovirtsdk4/types.rb, line 26750 def vnic_profile_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = VnicProfileMapping.new(value) end end end @vnic_profile_mappings = list end