class OvirtSDK4::Action

Public Class Methods

new(opts = {}) click to toggle source

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] :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 [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 [Boolean] :exclussive The value of attribute `exclussive`.

@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 [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`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 21459
def initialize(opts = {})
  super(opts)
  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.comment = opts[:comment]
  self.connectivity_timeout = opts[:connectivity_timeout]
  self.data_center = opts[:data_center]
  self.deploy_hosted_engine = opts[:deploy_hosted_engine]
  self.description = opts[:description]
  self.details = opts[:details]
  self.discard_snapshots = opts[:discard_snapshots]
  self.disk = opts[:disk]
  self.disks = opts[:disks]
  self.exclusive = opts[:exclusive]
  self.exclussive = opts[:exclussive]
  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.id = opts[:id]
  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.name = opts[:name]
  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.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]
end

Public Instance Methods

async() click to toggle source

Returns the value of the `async` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 19980
def async
  return @async
end
async=(value) click to toggle source

Sets the value of the `async` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 19989
def async=(value)
  @async = value
end
bricks() click to toggle source

Returns the value of the `bricks` attribute.

@return [Array<GlusterBrick>]

# File lib/ovirtsdk4/types.rb, line 19998
def bricks
  return @bricks
end
bricks=(list) click to toggle source

Sets the value of the `bricks` attribute.

@param list [Array<GlusterBrick>]

# File lib/ovirtsdk4/types.rb, line 20006
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
certificates() click to toggle source

Returns the value of the `certificates` attribute.

@return [Array<Certificate>]

# File lib/ovirtsdk4/types.rb, line 20023
def certificates
  return @certificates
end
certificates=(list) click to toggle source

Sets the value of the `certificates` attribute.

@param list [Array<Certificate>]

# File lib/ovirtsdk4/types.rb, line 20031
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
check_connectivity() click to toggle source

Returns the value of the `check_connectivity` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20048
def check_connectivity
  return @check_connectivity
end
check_connectivity=(value) click to toggle source

Sets the value of the `check_connectivity` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20057
def check_connectivity=(value)
  @check_connectivity = value
end
clone() click to toggle source

Returns the value of the `clone` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20066
def clone
  return @clone
end
clone=(value) click to toggle source

Sets the value of the `clone` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20075
def clone=(value)
  @clone = value
end
cluster() click to toggle source

Returns the value of the `cluster` attribute.

@return [Cluster]

# File lib/ovirtsdk4/types.rb, line 20084
def cluster
  return @cluster
end
cluster=(value) click to toggle source

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 20097
def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20109
def comment
  return @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20118
def comment=(value)
  @comment = value
end
connectivity_timeout() click to toggle source

Returns the value of the `connectivity_timeout` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 20127
def connectivity_timeout
  return @connectivity_timeout
end
connectivity_timeout=(value) click to toggle source

Sets the value of the `connectivity_timeout` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 20136
def connectivity_timeout=(value)
  @connectivity_timeout = value
end
data_center() click to toggle source

Returns the value of the `data_center` attribute.

@return [DataCenter]

# File lib/ovirtsdk4/types.rb, line 20145
def data_center
  return @data_center
end
data_center=(value) click to toggle source

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 20158
def data_center=(value)
  if value.is_a?(Hash)
    value = DataCenter.new(value)
  end
  @data_center = value
end
deploy_hosted_engine() click to toggle source

Returns the value of the `deploy_hosted_engine` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20170
def deploy_hosted_engine
  return @deploy_hosted_engine
end
deploy_hosted_engine=(value) click to toggle source

Sets the value of the `deploy_hosted_engine` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20179
def deploy_hosted_engine=(value)
  @deploy_hosted_engine = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20188
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20197
def description=(value)
  @description = value
end
details() click to toggle source

Returns the value of the `details` attribute.

@return [GlusterVolumeProfileDetails]

# File lib/ovirtsdk4/types.rb, line 20206
def details
  return @details
end
details=(value) click to toggle source

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 20219
def details=(value)
  if value.is_a?(Hash)
    value = GlusterVolumeProfileDetails.new(value)
  end
  @details = value
end
discard_snapshots() click to toggle source

Returns the value of the `discard_snapshots` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20231
def discard_snapshots
  return @discard_snapshots
end
discard_snapshots=(value) click to toggle source

Sets the value of the `discard_snapshots` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20240
def discard_snapshots=(value)
  @discard_snapshots = value
end
disk() click to toggle source

Returns the value of the `disk` attribute.

@return [Disk]

# File lib/ovirtsdk4/types.rb, line 20249
def disk
  return @disk
end
disk=(value) click to toggle source

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 20262
def disk=(value)
  if value.is_a?(Hash)
    value = Disk.new(value)
  end
  @disk = value
end
disks() click to toggle source

Returns the value of the `disks` attribute.

@return [Array<Disk>]

# File lib/ovirtsdk4/types.rb, line 20274
def disks
  return @disks
end
disks=(list) click to toggle source

Sets the value of the `disks` attribute.

@param list [Array<Disk>]

# File lib/ovirtsdk4/types.rb, line 20282
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
exclusive() click to toggle source

Returns the value of the `exclusive` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20299
def exclusive
  return @exclusive
end
exclusive=(value) click to toggle source

Sets the value of the `exclusive` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20308
def exclusive=(value)
  @exclusive = value
end
exclussive() click to toggle source

Returns the value of the `exclussive` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20317
def exclussive
  return @exclussive
end
exclussive=(value) click to toggle source

Sets the value of the `exclussive` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20326
def exclussive=(value)
  @exclussive = value
end
fault() click to toggle source

Returns the value of the `fault` attribute.

@return [Fault]

# File lib/ovirtsdk4/types.rb, line 20335
def fault
  return @fault
end
fault=(value) click to toggle source

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 20348
def fault=(value)
  if value.is_a?(Hash)
    value = Fault.new(value)
  end
  @fault = value
end
fence_type() click to toggle source

Returns the value of the `fence_type` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20360
def fence_type
  return @fence_type
end
fence_type=(value) click to toggle source

Sets the value of the `fence_type` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20369
def fence_type=(value)
  @fence_type = value
end
filter() click to toggle source

Returns the value of the `filter` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20378
def filter
  return @filter
end
filter=(value) click to toggle source

Sets the value of the `filter` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20387
def filter=(value)
  @filter = value
end
fix_layout() click to toggle source

Returns the value of the `fix_layout` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20396
def fix_layout
  return @fix_layout
end
fix_layout=(value) click to toggle source

Sets the value of the `fix_layout` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20405
def fix_layout=(value)
  @fix_layout = value
end
force() click to toggle source

Returns the value of the `force` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20414
def force
  return @force
end
force=(value) click to toggle source

Sets the value of the `force` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20423
def force=(value)
  @force = value
end
grace_period() click to toggle source

Returns the value of the `grace_period` attribute.

@return [GracePeriod]

# File lib/ovirtsdk4/types.rb, line 20432
def grace_period
  return @grace_period
end
grace_period=(value) click to toggle source

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 20445
def grace_period=(value)
  if value.is_a?(Hash)
    value = GracePeriod.new(value)
  end
  @grace_period = value
end
host() click to toggle source

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 20457
def host
  return @host
end
host=(value) click to toggle source

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 20470
def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20482
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20491
def id=(value)
  @id = value
end
image() click to toggle source

Returns the value of the `image` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20500
def image
  return @image
end
image=(value) click to toggle source

Sets the value of the `image` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20509
def image=(value)
  @image = value
end
import_as_template() click to toggle source

Returns the value of the `import_as_template` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20518
def import_as_template
  return @import_as_template
end
import_as_template=(value) click to toggle source

Sets the value of the `import_as_template` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20527
def import_as_template=(value)
  @import_as_template = value
end
is_attached() click to toggle source

Returns the value of the `is_attached` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20536
def is_attached
  return @is_attached
end
is_attached=(value) click to toggle source

Sets the value of the `is_attached` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20545
def is_attached=(value)
  @is_attached = value
end
iscsi() click to toggle source

Returns the value of the `iscsi` attribute.

@return [IscsiDetails]

# File lib/ovirtsdk4/types.rb, line 20554
def iscsi
  return @iscsi
end
iscsi=(value) click to toggle source

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 20567
def iscsi=(value)
  if value.is_a?(Hash)
    value = IscsiDetails.new(value)
  end
  @iscsi = value
end
iscsi_targets() click to toggle source

Returns the value of the `iscsi_targets` attribute.

@return [Array<String>]

# File lib/ovirtsdk4/types.rb, line 20579
def iscsi_targets
  return @iscsi_targets
end
iscsi_targets=(list) click to toggle source

Sets the value of the `iscsi_targets` attribute.

@param list [Array<String>]

# File lib/ovirtsdk4/types.rb, line 20587
def iscsi_targets=(list)
  @iscsi_targets = list
end
job() click to toggle source

Returns the value of the `job` attribute.

@return [Job]

# File lib/ovirtsdk4/types.rb, line 20596
def job
  return @job
end
job=(value) click to toggle source

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 20609
def job=(value)
  if value.is_a?(Hash)
    value = Job.new(value)
  end
  @job = value
end
logical_units() click to toggle source

Returns the value of the `logical_units` attribute.

@return [Array<LogicalUnit>]

# File lib/ovirtsdk4/types.rb, line 20621
def logical_units
  return @logical_units
end
logical_units=(list) click to toggle source

Sets the value of the `logical_units` attribute.

@param list [Array<LogicalUnit>]

# File lib/ovirtsdk4/types.rb, line 20629
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
maintenance_enabled() click to toggle source

Returns the value of the `maintenance_enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20646
def maintenance_enabled
  return @maintenance_enabled
end
maintenance_enabled=(value) click to toggle source

Sets the value of the `maintenance_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20655
def maintenance_enabled=(value)
  @maintenance_enabled = value
end
modified_bonds() click to toggle source

Returns the value of the `modified_bonds` attribute.

@return [Array<HostNic>]

# File lib/ovirtsdk4/types.rb, line 20664
def modified_bonds
  return @modified_bonds
end
modified_bonds=(list) click to toggle source

Sets the value of the `modified_bonds` attribute.

@param list [Array<HostNic>]

# File lib/ovirtsdk4/types.rb, line 20672
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
modified_labels() click to toggle source

Returns the value of the `modified_labels` attribute.

@return [Array<NetworkLabel>]

# File lib/ovirtsdk4/types.rb, line 20689
def modified_labels
  return @modified_labels
end
modified_labels=(list) click to toggle source

Sets the value of the `modified_labels` attribute.

@param list [Array<NetworkLabel>]

# File lib/ovirtsdk4/types.rb, line 20697
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
modified_network_attachments() click to toggle source

Returns the value of the `modified_network_attachments` attribute.

@return [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 20714
def modified_network_attachments
  return @modified_network_attachments
end
modified_network_attachments=(list) click to toggle source

Sets the value of the `modified_network_attachments` attribute.

@param list [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 20722
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
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20739
def name
  return @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20748
def name=(value)
  @name = value
end
option() click to toggle source

Returns the value of the `option` attribute.

@return [Option]

# File lib/ovirtsdk4/types.rb, line 20757
def option
  return @option
end
option=(value) click to toggle source

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 20770
def option=(value)
  if value.is_a?(Hash)
    value = Option.new(value)
  end
  @option = value
end
pause() click to toggle source

Returns the value of the `pause` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20782
def pause
  return @pause
end
pause=(value) click to toggle source

Sets the value of the `pause` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20791
def pause=(value)
  @pause = value
end
power_management() click to toggle source

Returns the value of the `power_management` attribute.

@return [PowerManagement]

# File lib/ovirtsdk4/types.rb, line 20800
def power_management
  return @power_management
end
power_management=(value) click to toggle source

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 20813
def power_management=(value)
  if value.is_a?(Hash)
    value = PowerManagement.new(value)
  end
  @power_management = value
end
proxy_ticket() click to toggle source

Returns the value of the `proxy_ticket` attribute.

@return [ProxyTicket]

# File lib/ovirtsdk4/types.rb, line 20825
def proxy_ticket
  return @proxy_ticket
end
proxy_ticket=(value) click to toggle source

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 20838
def proxy_ticket=(value)
  if value.is_a?(Hash)
    value = ProxyTicket.new(value)
  end
  @proxy_ticket = value
end
reason() click to toggle source

Returns the value of the `reason` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20850
def reason
  return @reason
end
reason=(value) click to toggle source

Sets the value of the `reason` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20859
def reason=(value)
  @reason = value
end
removed_bonds() click to toggle source

Returns the value of the `removed_bonds` attribute.

@return [Array<HostNic>]

# File lib/ovirtsdk4/types.rb, line 20868
def removed_bonds
  return @removed_bonds
end
removed_bonds=(list) click to toggle source

Sets the value of the `removed_bonds` attribute.

@param list [Array<HostNic>]

# File lib/ovirtsdk4/types.rb, line 20876
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
removed_labels() click to toggle source

Returns the value of the `removed_labels` attribute.

@return [Array<NetworkLabel>]

# File lib/ovirtsdk4/types.rb, line 20893
def removed_labels
  return @removed_labels
end
removed_labels=(list) click to toggle source

Sets the value of the `removed_labels` attribute.

@param list [Array<NetworkLabel>]

# File lib/ovirtsdk4/types.rb, line 20901
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
removed_network_attachments() click to toggle source

Returns the value of the `removed_network_attachments` attribute.

@return [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 20918
def removed_network_attachments
  return @removed_network_attachments
end
removed_network_attachments=(list) click to toggle source

Sets the value of the `removed_network_attachments` attribute.

@param list [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 20926
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
resolution_type() click to toggle source

Returns the value of the `resolution_type` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20943
def resolution_type
  return @resolution_type
end
resolution_type=(value) click to toggle source

Sets the value of the `resolution_type` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20952
def resolution_type=(value)
  @resolution_type = value
end
restore_memory() click to toggle source

Returns the value of the `restore_memory` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 20961
def restore_memory
  return @restore_memory
end
restore_memory=(value) click to toggle source

Sets the value of the `restore_memory` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 20970
def restore_memory=(value)
  @restore_memory = value
end
root_password() click to toggle source

Returns the value of the `root_password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 20979
def root_password
  return @root_password
end
root_password=(value) click to toggle source

Sets the value of the `root_password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 20988
def root_password=(value)
  @root_password = value
end
snapshot() click to toggle source

Returns the value of the `snapshot` attribute.

@return [Snapshot]

# File lib/ovirtsdk4/types.rb, line 20997
def snapshot
  return @snapshot
end
snapshot=(value) click to toggle source

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 21010
def snapshot=(value)
  if value.is_a?(Hash)
    value = Snapshot.new(value)
  end
  @snapshot = value
end
ssh() click to toggle source

Returns the value of the `ssh` attribute.

@return [Ssh]

# File lib/ovirtsdk4/types.rb, line 21022
def ssh
  return @ssh
end
ssh=(value) click to toggle source

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 21035
def ssh=(value)
  if value.is_a?(Hash)
    value = Ssh.new(value)
  end
  @ssh = value
end
status() click to toggle source

Returns the value of the `status` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 21047
def status
  return @status
end
status=(value) click to toggle source

Sets the value of the `status` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 21056
def status=(value)
  @status = value
end
stop_gluster_service() click to toggle source

Returns the value of the `stop_gluster_service` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 21065
def stop_gluster_service
  return @stop_gluster_service
end
stop_gluster_service=(value) click to toggle source

Sets the value of the `stop_gluster_service` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 21074
def stop_gluster_service=(value)
  @stop_gluster_service = value
end
storage_domain() click to toggle source

Returns the value of the `storage_domain` attribute.

@return [StorageDomain]

# File lib/ovirtsdk4/types.rb, line 21083
def storage_domain
  return @storage_domain
end
storage_domain=(value) click to toggle source

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 21096
def storage_domain=(value)
  if value.is_a?(Hash)
    value = StorageDomain.new(value)
  end
  @storage_domain = value
end
storage_domains() click to toggle source

Returns the value of the `storage_domains` attribute.

@return [Array<StorageDomain>]

# File lib/ovirtsdk4/types.rb, line 21108
def storage_domains
  return @storage_domains
end
storage_domains=(list) click to toggle source

Sets the value of the `storage_domains` attribute.

@param list [Array<StorageDomain>]

# File lib/ovirtsdk4/types.rb, line 21116
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
succeeded() click to toggle source

Returns the value of the `succeeded` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 21133
def succeeded
  return @succeeded
end
succeeded=(value) click to toggle source

Sets the value of the `succeeded` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 21142
def succeeded=(value)
  @succeeded = value
end
synchronized_network_attachments() click to toggle source

Returns the value of the `synchronized_network_attachments` attribute.

@return [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 21151
def synchronized_network_attachments
  return @synchronized_network_attachments
end
synchronized_network_attachments=(list) click to toggle source

Sets the value of the `synchronized_network_attachments` attribute.

@param list [Array<NetworkAttachment>]

# File lib/ovirtsdk4/types.rb, line 21159
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
template() click to toggle source

Returns the value of the `template` attribute.

@return [Template]

# File lib/ovirtsdk4/types.rb, line 21176
def template
  return @template
end
template=(value) click to toggle source

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 21189
def template=(value)
  if value.is_a?(Hash)
    value = Template.new(value)
  end
  @template = value
end
ticket() click to toggle source

Returns the value of the `ticket` attribute.

@return [Ticket]

# File lib/ovirtsdk4/types.rb, line 21201
def ticket
  return @ticket
end
ticket=(value) click to toggle source

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 21214
def ticket=(value)
  if value.is_a?(Hash)
    value = Ticket.new(value)
  end
  @ticket = value
end
undeploy_hosted_engine() click to toggle source

Returns the value of the `undeploy_hosted_engine` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 21226
def undeploy_hosted_engine
  return @undeploy_hosted_engine
end
undeploy_hosted_engine=(value) click to toggle source

Sets the value of the `undeploy_hosted_engine` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 21235
def undeploy_hosted_engine=(value)
  @undeploy_hosted_engine = value
end
use_cloud_init() click to toggle source

Returns the value of the `use_cloud_init` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 21244
def use_cloud_init
  return @use_cloud_init
end
use_cloud_init=(value) click to toggle source

Sets the value of the `use_cloud_init` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 21253
def use_cloud_init=(value)
  @use_cloud_init = value
end
use_sysprep() click to toggle source

Returns the value of the `use_sysprep` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 21262
def use_sysprep
  return @use_sysprep
end
use_sysprep=(value) click to toggle source

Sets the value of the `use_sysprep` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 21271
def use_sysprep=(value)
  @use_sysprep = value
end
virtual_functions_configuration() click to toggle source

Returns the value of the `virtual_functions_configuration` attribute.

@return [HostNicVirtualFunctionsConfiguration]

# File lib/ovirtsdk4/types.rb, line 21280
def virtual_functions_configuration
  return @virtual_functions_configuration
end
virtual_functions_configuration=(value) click to toggle source

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 21293
def virtual_functions_configuration=(value)
  if value.is_a?(Hash)
    value = HostNicVirtualFunctionsConfiguration.new(value)
  end
  @virtual_functions_configuration = value
end
vm() click to toggle source

Returns the value of the `vm` attribute.

@return [Vm]

# File lib/ovirtsdk4/types.rb, line 21305
def vm
  return @vm
end
vm=(value) click to toggle source

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 21318
def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end