class OvirtSDK4::Cluster

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {Cluster} 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 [Array<AffinityGroup>, Array<Hash>] :affinity_groups The values of attribute ‘affinity_groups`.

@option opts [Boolean] :ballooning_enabled The value of attribute ‘ballooning_enabled`.

@option opts [BiosType] :bios_type The value of attribute ‘bios_type`.

@option opts [String] :comment The value of attribute ‘comment`.

@option opts [Cpu, Hash] :cpu The value of attribute ‘cpu`.

@option opts [Array<CpuProfile>, Array<Hash>] :cpu_profiles The values of attribute ‘cpu_profiles`.

@option opts [Array<Property>, Array<Hash>] :custom_scheduling_policy_properties The values of attribute ‘custom_scheduling_policy_properties`.

@option opts [DataCenter, Hash] :data_center The value of attribute ‘data_center`.

@option opts [String] :description The value of attribute ‘description`.

@option opts [Display, Hash] :display The value of attribute ‘display`.

@option opts [Array<ClusterFeature>, Array<Hash>] :enabled_features The values of attribute ‘enabled_features`.

@option opts [ErrorHandling, Hash] :error_handling The value of attribute ‘error_handling`.

@option opts [Array<ExternalProvider>, Array<Hash>] :external_network_providers The values of attribute ‘external_network_providers`.

@option opts [FencingPolicy, Hash] :fencing_policy The value of attribute ‘fencing_policy`.

@option opts [FipsMode] :fips_mode The value of attribute ‘fips_mode`.

@option opts [FirewallType] :firewall_type The value of attribute ‘firewall_type`.

@option opts [Array<GlusterHook>, Array<Hash>] :gluster_hooks The values of attribute ‘gluster_hooks`.

@option opts [Boolean] :gluster_service The value of attribute ‘gluster_service`.

@option opts [String] :gluster_tuned_profile The value of attribute ‘gluster_tuned_profile`.

@option opts [Array<GlusterVolume>, Array<Hash>] :gluster_volumes The values of attribute ‘gluster_volumes`.

@option opts [Boolean] :ha_reservation The value of attribute ‘ha_reservation`.

@option opts [String] :id The value of attribute ‘id`.

@option opts [Ksm, Hash] :ksm The value of attribute ‘ksm`.

@option opts [Integer] :log_max_memory_used_threshold The value of attribute ‘log_max_memory_used_threshold`.

@option opts [LogMaxMemoryUsedThresholdType] :log_max_memory_used_threshold_type The value of attribute ‘log_max_memory_used_threshold_type`.

@option opts [MacPool, Hash] :mac_pool The value of attribute ‘mac_pool`.

@option opts [Boolean] :maintenance_reason_required The value of attribute ‘maintenance_reason_required`.

@option opts [Network, Hash] :management_network The value of attribute ‘management_network`.

@option opts [MemoryPolicy, Hash] :memory_policy The value of attribute ‘memory_policy`.

@option opts [MigrationOptions, Hash] :migration The value of attribute ‘migration`.

@option opts [String] :name The value of attribute ‘name`.

@option opts [Array<NetworkFilter>, Array<Hash>] :network_filters The values of attribute ‘network_filters`.

@option opts [Array<Network>, Array<Hash>] :networks The values of attribute ‘networks`.

@option opts [Boolean] :optional_reason The value of attribute ‘optional_reason`.

@option opts [Array<Permission>, Array<Hash>] :permissions The values of attribute ‘permissions`.

@option opts [Array<RngSource>, Array<Hash>] :required_rng_sources The values of attribute ‘required_rng_sources`.

@option opts [SchedulingPolicy, Hash] :scheduling_policy The value of attribute ‘scheduling_policy`.

@option opts [SerialNumber, Hash] :serial_number The value of attribute ‘serial_number`.

@option opts [Array<Version>, Array<Hash>] :supported_versions The values of attribute ‘supported_versions`.

@option opts [SwitchType] :switch_type The value of attribute ‘switch_type`.

@option opts [Boolean] :threads_as_cores The value of attribute ‘threads_as_cores`.

@option opts [Boolean] :trusted_service The value of attribute ‘trusted_service`.

@option opts [Boolean] :tunnel_migration The value of attribute ‘tunnel_migration`.

@option opts [String] :upgrade_correlation_id The value of attribute ‘upgrade_correlation_id`.

@option opts [Boolean] :upgrade_in_progress The value of attribute ‘upgrade_in_progress`.

@option opts [Integer] :upgrade_percent_complete The value of attribute ‘upgrade_percent_complete`.

@option opts [Version, Hash] :version The value of attribute ‘version`.

@option opts [Boolean] :virt_service The value of attribute ‘virt_service`.

@option opts [Boolean] :vnc_encryption The value of attribute ‘vnc_encryption`.

Calls superclass method OvirtSDK4::Identified::new
# File lib/ovirtsdk4/types.rb, line 34928
def initialize(opts = {})
  super(opts)
  self.affinity_groups = opts[:affinity_groups]
  self.ballooning_enabled = opts[:ballooning_enabled]
  self.bios_type = opts[:bios_type]
  self.cpu = opts[:cpu]
  self.cpu_profiles = opts[:cpu_profiles]
  self.custom_scheduling_policy_properties = opts[:custom_scheduling_policy_properties]
  self.data_center = opts[:data_center]
  self.display = opts[:display]
  self.enabled_features = opts[:enabled_features]
  self.error_handling = opts[:error_handling]
  self.external_network_providers = opts[:external_network_providers]
  self.fencing_policy = opts[:fencing_policy]
  self.fips_mode = opts[:fips_mode]
  self.firewall_type = opts[:firewall_type]
  self.gluster_hooks = opts[:gluster_hooks]
  self.gluster_service = opts[:gluster_service]
  self.gluster_tuned_profile = opts[:gluster_tuned_profile]
  self.gluster_volumes = opts[:gluster_volumes]
  self.ha_reservation = opts[:ha_reservation]
  self.ksm = opts[:ksm]
  self.log_max_memory_used_threshold = opts[:log_max_memory_used_threshold]
  self.log_max_memory_used_threshold_type = opts[:log_max_memory_used_threshold_type]
  self.mac_pool = opts[:mac_pool]
  self.maintenance_reason_required = opts[:maintenance_reason_required]
  self.management_network = opts[:management_network]
  self.memory_policy = opts[:memory_policy]
  self.migration = opts[:migration]
  self.network_filters = opts[:network_filters]
  self.networks = opts[:networks]
  self.optional_reason = opts[:optional_reason]
  self.permissions = opts[:permissions]
  self.required_rng_sources = opts[:required_rng_sources]
  self.scheduling_policy = opts[:scheduling_policy]
  self.serial_number = opts[:serial_number]
  self.supported_versions = opts[:supported_versions]
  self.switch_type = opts[:switch_type]
  self.threads_as_cores = opts[:threads_as_cores]
  self.trusted_service = opts[:trusted_service]
  self.tunnel_migration = opts[:tunnel_migration]
  self.upgrade_correlation_id = opts[:upgrade_correlation_id]
  self.upgrade_in_progress = opts[:upgrade_in_progress]
  self.upgrade_percent_complete = opts[:upgrade_percent_complete]
  self.version = opts[:version]
  self.virt_service = opts[:virt_service]
  self.vnc_encryption = opts[:vnc_encryption]
end

Public Instance Methods

==(other) click to toggle source

Returns ‘true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Identified#==
# File lib/ovirtsdk4/types.rb, line 34980
def ==(other)
  super &&
  @affinity_groups == other.affinity_groups &&
  @ballooning_enabled == other.ballooning_enabled &&
  @bios_type == other.bios_type &&
  @cpu == other.cpu &&
  @cpu_profiles == other.cpu_profiles &&
  @custom_scheduling_policy_properties == other.custom_scheduling_policy_properties &&
  @data_center == other.data_center &&
  @display == other.display &&
  @enabled_features == other.enabled_features &&
  @error_handling == other.error_handling &&
  @external_network_providers == other.external_network_providers &&
  @fencing_policy == other.fencing_policy &&
  @fips_mode == other.fips_mode &&
  @firewall_type == other.firewall_type &&
  @gluster_hooks == other.gluster_hooks &&
  @gluster_service == other.gluster_service &&
  @gluster_tuned_profile == other.gluster_tuned_profile &&
  @gluster_volumes == other.gluster_volumes &&
  @ha_reservation == other.ha_reservation &&
  @ksm == other.ksm &&
  @log_max_memory_used_threshold == other.log_max_memory_used_threshold &&
  @log_max_memory_used_threshold_type == other.log_max_memory_used_threshold_type &&
  @mac_pool == other.mac_pool &&
  @maintenance_reason_required == other.maintenance_reason_required &&
  @management_network == other.management_network &&
  @memory_policy == other.memory_policy &&
  @migration == other.migration &&
  @network_filters == other.network_filters &&
  @networks == other.networks &&
  @optional_reason == other.optional_reason &&
  @permissions == other.permissions &&
  @required_rng_sources == other.required_rng_sources &&
  @scheduling_policy == other.scheduling_policy &&
  @serial_number == other.serial_number &&
  @supported_versions == other.supported_versions &&
  @switch_type == other.switch_type &&
  @threads_as_cores == other.threads_as_cores &&
  @trusted_service == other.trusted_service &&
  @tunnel_migration == other.tunnel_migration &&
  @upgrade_correlation_id == other.upgrade_correlation_id &&
  @upgrade_in_progress == other.upgrade_in_progress &&
  @upgrade_percent_complete == other.upgrade_percent_complete &&
  @version == other.version &&
  @virt_service == other.virt_service &&
  @vnc_encryption == other.vnc_encryption
end
affinity_groups() click to toggle source

Returns the value of the ‘affinity_groups` attribute.

@return [Array<AffinityGroup>]

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

Sets the value of the ‘affinity_groups` attribute.

@param list [Array<AffinityGroup>]

# File lib/ovirtsdk4/types.rb, line 33775
def affinity_groups=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = AffinityGroup.new(value)
      end
    end
  end
  @affinity_groups = list
end
ballooning_enabled() click to toggle source

Returns the value of the ‘ballooning_enabled` attribute.

@return [Boolean]

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

Sets the value of the ‘ballooning_enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 33801
def ballooning_enabled=(value)
  @ballooning_enabled = value
end
bios_type() click to toggle source

Returns the value of the ‘bios_type` attribute.

@return [BiosType]

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

Sets the value of the ‘bios_type` attribute.

@param value [BiosType]

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

Returns the value of the ‘comment` attribute.

@return [String]

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

Sets the value of the ‘comment` attribute.

@param value [String]

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

Returns the value of the ‘cpu` attribute.

@return [Cpu]

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

Sets the value of the ‘cpu` attribute.

@param value [Cpu, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33859
def cpu=(value)
  if value.is_a?(Hash)
    value = Cpu.new(value)
  end
  @cpu = value
end
cpu_profiles() click to toggle source

Returns the value of the ‘cpu_profiles` attribute.

@return [Array<CpuProfile>]

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

Sets the value of the ‘cpu_profiles` attribute.

@param list [Array<CpuProfile>]

# File lib/ovirtsdk4/types.rb, line 33880
def cpu_profiles=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = CpuProfile.new(value)
      end
    end
  end
  @cpu_profiles = list
end
custom_scheduling_policy_properties() click to toggle source

Returns the value of the ‘custom_scheduling_policy_properties` attribute.

@return [Array<Property>]

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

Sets the value of the ‘custom_scheduling_policy_properties` attribute.

@param list [Array<Property>]

# File lib/ovirtsdk4/types.rb, line 33906
def custom_scheduling_policy_properties=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Property.new(value)
      end
    end
  end
  @custom_scheduling_policy_properties = list
end
data_center() click to toggle source

Returns the value of the ‘data_center` attribute.

@return [DataCenter]

# File lib/ovirtsdk4/types.rb, line 33923
def data_center
  @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 33936
def data_center=(value)
  if value.is_a?(Hash)
    value = DataCenter.new(value)
  end
  @data_center = value
end
description() click to toggle source

Returns the value of the ‘description` attribute.

@return [String]

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

Sets the value of the ‘description` attribute.

@param value [String]

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

Returns the value of the ‘display` attribute.

@return [Display]

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

Sets the value of the ‘display` attribute.

@param value [Display, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 33979
def display=(value)
  if value.is_a?(Hash)
    value = Display.new(value)
  end
  @display = value
end
enabled_features() click to toggle source

Returns the value of the ‘enabled_features` attribute.

@return [Array<ClusterFeature>]

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

Sets the value of the ‘enabled_features` attribute.

@param list [Array<ClusterFeature>]

# File lib/ovirtsdk4/types.rb, line 34000
def enabled_features=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = ClusterFeature.new(value)
      end
    end
  end
  @enabled_features = list
end
error_handling() click to toggle source

Returns the value of the ‘error_handling` attribute.

@return [ErrorHandling]

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

Sets the value of the ‘error_handling` attribute.

@param value [ErrorHandling, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::ErrorHandling} 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 34030
def error_handling=(value)
  if value.is_a?(Hash)
    value = ErrorHandling.new(value)
  end
  @error_handling = value
end
external_network_providers() click to toggle source

Returns the value of the ‘external_network_providers` attribute.

@return [Array<ExternalProvider>]

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

Sets the value of the ‘external_network_providers` attribute.

@param list [Array<ExternalProvider>]

# File lib/ovirtsdk4/types.rb, line 34051
def external_network_providers=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = ExternalProvider.new(value)
      end
    end
  end
  @external_network_providers = list
end
fencing_policy() click to toggle source

Returns the value of the ‘fencing_policy` attribute.

@return [FencingPolicy]

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

Sets the value of the ‘fencing_policy` attribute.

@param value [FencingPolicy, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::FencingPolicy} 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 34081
def fencing_policy=(value)
  if value.is_a?(Hash)
    value = FencingPolicy.new(value)
  end
  @fencing_policy = value
end
fips_mode() click to toggle source

Returns the value of the ‘fips_mode` attribute.

@return [FipsMode]

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

Sets the value of the ‘fips_mode` attribute.

@param value [FipsMode]

# File lib/ovirtsdk4/types.rb, line 34102
def fips_mode=(value)
  @fips_mode = value
end
firewall_type() click to toggle source

Returns the value of the ‘firewall_type` attribute.

@return [FirewallType]

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

Sets the value of the ‘firewall_type` attribute.

@param value [FirewallType]

# File lib/ovirtsdk4/types.rb, line 34120
def firewall_type=(value)
  @firewall_type = value
end
gluster_hooks() click to toggle source

Returns the value of the ‘gluster_hooks` attribute.

@return [Array<GlusterHook>]

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

Sets the value of the ‘gluster_hooks` attribute.

@param list [Array<GlusterHook>]

# File lib/ovirtsdk4/types.rb, line 34138
def gluster_hooks=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = GlusterHook.new(value)
      end
    end
  end
  @gluster_hooks = list
end
gluster_service() click to toggle source

Returns the value of the ‘gluster_service` attribute.

@return [Boolean]

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

Sets the value of the ‘gluster_service` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34164
def gluster_service=(value)
  @gluster_service = value
end
gluster_tuned_profile() click to toggle source

Returns the value of the ‘gluster_tuned_profile` attribute.

@return [String]

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

Sets the value of the ‘gluster_tuned_profile` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 34182
def gluster_tuned_profile=(value)
  @gluster_tuned_profile = value
end
gluster_volumes() click to toggle source

Returns the value of the ‘gluster_volumes` attribute.

@return [Array<GlusterVolume>]

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

Sets the value of the ‘gluster_volumes` attribute.

@param list [Array<GlusterVolume>]

# File lib/ovirtsdk4/types.rb, line 34200
def gluster_volumes=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = GlusterVolume.new(value)
      end
    end
  end
  @gluster_volumes = list
end
ha_reservation() click to toggle source

Returns the value of the ‘ha_reservation` attribute.

@return [Boolean]

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

Sets the value of the ‘ha_reservation` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34226
def ha_reservation=(value)
  @ha_reservation = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Identified#hash
# File lib/ovirtsdk4/types.rb, line 35032
def hash
  super +
  @affinity_groups.hash +
  @ballooning_enabled.hash +
  @bios_type.hash +
  @cpu.hash +
  @cpu_profiles.hash +
  @custom_scheduling_policy_properties.hash +
  @data_center.hash +
  @display.hash +
  @enabled_features.hash +
  @error_handling.hash +
  @external_network_providers.hash +
  @fencing_policy.hash +
  @fips_mode.hash +
  @firewall_type.hash +
  @gluster_hooks.hash +
  @gluster_service.hash +
  @gluster_tuned_profile.hash +
  @gluster_volumes.hash +
  @ha_reservation.hash +
  @ksm.hash +
  @log_max_memory_used_threshold.hash +
  @log_max_memory_used_threshold_type.hash +
  @mac_pool.hash +
  @maintenance_reason_required.hash +
  @management_network.hash +
  @memory_policy.hash +
  @migration.hash +
  @network_filters.hash +
  @networks.hash +
  @optional_reason.hash +
  @permissions.hash +
  @required_rng_sources.hash +
  @scheduling_policy.hash +
  @serial_number.hash +
  @supported_versions.hash +
  @switch_type.hash +
  @threads_as_cores.hash +
  @trusted_service.hash +
  @tunnel_migration.hash +
  @upgrade_correlation_id.hash +
  @upgrade_in_progress.hash +
  @upgrade_percent_complete.hash +
  @version.hash +
  @virt_service.hash +
  @vnc_encryption.hash
end
id() click to toggle source

Returns the value of the ‘id` attribute.

@return [String]

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

Sets the value of the ‘id` attribute.

@param value [String]

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

Returns the value of the ‘ksm` attribute.

@return [Ksm]

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

Sets the value of the ‘ksm` attribute.

@param value [Ksm, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::Ksm} 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 34266
def ksm=(value)
  if value.is_a?(Hash)
    value = Ksm.new(value)
  end
  @ksm = value
end
log_max_memory_used_threshold() click to toggle source

Returns the value of the ‘log_max_memory_used_threshold` attribute.

@return [Integer]

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

Sets the value of the ‘log_max_memory_used_threshold` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 34287
def log_max_memory_used_threshold=(value)
  @log_max_memory_used_threshold = value
end
log_max_memory_used_threshold_type() click to toggle source

Returns the value of the ‘log_max_memory_used_threshold_type` attribute.

@return [LogMaxMemoryUsedThresholdType]

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

Sets the value of the ‘log_max_memory_used_threshold_type` attribute.

@param value [LogMaxMemoryUsedThresholdType]

# File lib/ovirtsdk4/types.rb, line 34305
def log_max_memory_used_threshold_type=(value)
  @log_max_memory_used_threshold_type = value
end
mac_pool() click to toggle source

Returns the value of the ‘mac_pool` attribute.

@return [MacPool]

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

Sets the value of the ‘mac_pool` attribute.

@param value [MacPool, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::MacPool} 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 34327
def mac_pool=(value)
  if value.is_a?(Hash)
    value = MacPool.new(value)
  end
  @mac_pool = value
end
maintenance_reason_required() click to toggle source

Returns the value of the ‘maintenance_reason_required` attribute.

@return [Boolean]

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

Sets the value of the ‘maintenance_reason_required` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34348
def maintenance_reason_required=(value)
  @maintenance_reason_required = value
end
management_network() click to toggle source

Returns the value of the ‘management_network` attribute.

@return [Network]

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

Sets the value of the ‘management_network` attribute.

@param value [Network, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::Network} 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 34370
def management_network=(value)
  if value.is_a?(Hash)
    value = Network.new(value)
  end
  @management_network = value
end
memory_policy() click to toggle source

Returns the value of the ‘memory_policy` attribute.

@return [MemoryPolicy]

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

Sets the value of the ‘memory_policy` attribute.

@param value [MemoryPolicy, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 34395
def memory_policy=(value)
  if value.is_a?(Hash)
    value = MemoryPolicy.new(value)
  end
  @memory_policy = value
end
migration() click to toggle source

Returns the value of the ‘migration` attribute.

@return [MigrationOptions]

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

Sets the value of the ‘migration` attribute.

@param value [MigrationOptions, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::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.

# File lib/ovirtsdk4/types.rb, line 34420
def migration=(value)
  if value.is_a?(Hash)
    value = MigrationOptions.new(value)
  end
  @migration = value
end
name() click to toggle source

Returns the value of the ‘name` attribute.

@return [String]

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

Sets the value of the ‘name` attribute.

@param value [String]

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

Returns the value of the ‘network_filters` attribute.

@return [Array<NetworkFilter>]

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

Sets the value of the ‘network_filters` attribute.

@param list [Array<NetworkFilter>]

# File lib/ovirtsdk4/types.rb, line 34459
def network_filters=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = NetworkFilter.new(value)
      end
    end
  end
  @network_filters = list
end
networks() click to toggle source

Returns the value of the ‘networks` attribute.

@return [Array<Network>]

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

Sets the value of the ‘networks` attribute.

@param list [Array<Network>]

# File lib/ovirtsdk4/types.rb, line 34485
def networks=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Network.new(value)
      end
    end
  end
  @networks = list
end
optional_reason() click to toggle source

Returns the value of the ‘optional_reason` attribute.

@return [Boolean]

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

Sets the value of the ‘optional_reason` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34511
def optional_reason=(value)
  @optional_reason = value
end
permissions() click to toggle source

Returns the value of the ‘permissions` attribute.

@return [Array<Permission>]

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

Sets the value of the ‘permissions` attribute.

@param list [Array<Permission>]

# File lib/ovirtsdk4/types.rb, line 34529
def permissions=(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
required_rng_sources() click to toggle source

Returns the value of the ‘required_rng_sources` attribute.

@return [Array<RngSource>]

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

Sets the value of the ‘required_rng_sources` attribute.

@param list [Array<RngSource>]

# File lib/ovirtsdk4/types.rb, line 34555
def required_rng_sources=(list)
  @required_rng_sources = list
end
scheduling_policy() click to toggle source

Returns the value of the ‘scheduling_policy` attribute.

@return [SchedulingPolicy]

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

Sets the value of the ‘scheduling_policy` attribute.

@param value [SchedulingPolicy, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::SchedulingPolicy} 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 34577
def scheduling_policy=(value)
  if value.is_a?(Hash)
    value = SchedulingPolicy.new(value)
  end
  @scheduling_policy = value
end
serial_number() click to toggle source

Returns the value of the ‘serial_number` attribute.

@return [SerialNumber]

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

Sets the value of the ‘serial_number` attribute.

@param value [SerialNumber, Hash]

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.

# File lib/ovirtsdk4/types.rb, line 34602
def serial_number=(value)
  if value.is_a?(Hash)
    value = SerialNumber.new(value)
  end
  @serial_number = value
end
supported_versions() click to toggle source

Returns the value of the ‘supported_versions` attribute.

@return [Array<Version>]

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

Sets the value of the ‘supported_versions` attribute.

@param list [Array<Version>]

# File lib/ovirtsdk4/types.rb, line 34623
def supported_versions=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Version.new(value)
      end
    end
  end
  @supported_versions = list
end
switch_type() click to toggle source

Returns the value of the ‘switch_type` attribute.

@return [SwitchType]

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

Sets the value of the ‘switch_type` attribute.

@param value [SwitchType]

# File lib/ovirtsdk4/types.rb, line 34649
def switch_type=(value)
  @switch_type = value
end
threads_as_cores() click to toggle source

Returns the value of the ‘threads_as_cores` attribute.

@return [Boolean]

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

Sets the value of the ‘threads_as_cores` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34667
def threads_as_cores=(value)
  @threads_as_cores = value
end
trusted_service() click to toggle source

Returns the value of the ‘trusted_service` attribute.

@return [Boolean]

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

Sets the value of the ‘trusted_service` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34685
def trusted_service=(value)
  @trusted_service = value
end
tunnel_migration() click to toggle source

Returns the value of the ‘tunnel_migration` attribute.

@return [Boolean]

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

Sets the value of the ‘tunnel_migration` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34703
def tunnel_migration=(value)
  @tunnel_migration = value
end
upgrade_correlation_id() click to toggle source

Returns the value of the ‘upgrade_correlation_id` attribute.

@return [String]

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

Sets the value of the ‘upgrade_correlation_id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 34721
def upgrade_correlation_id=(value)
  @upgrade_correlation_id = value
end
upgrade_in_progress() click to toggle source

Returns the value of the ‘upgrade_in_progress` attribute.

@return [Boolean]

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

Sets the value of the ‘upgrade_in_progress` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34739
def upgrade_in_progress=(value)
  @upgrade_in_progress = value
end
upgrade_percent_complete() click to toggle source

Returns the value of the ‘upgrade_percent_complete` attribute.

@return [Integer]

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

Sets the value of the ‘upgrade_percent_complete` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 34757
def upgrade_percent_complete=(value)
  @upgrade_percent_complete = value
end
version() click to toggle source

Returns the value of the ‘version` attribute.

@return [Version]

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

Sets the value of the ‘version` attribute.

@param value [Version, Hash]

The ‘value` parameter can be an instance of {OvirtSDK4::Version} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.

# File lib/ovirtsdk4/types.rb, line 34779
def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end
virt_service() click to toggle source

Returns the value of the ‘virt_service` attribute.

@return [Boolean]

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

Sets the value of the ‘virt_service` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34800
def virt_service=(value)
  @virt_service = value
end
vnc_encryption() click to toggle source

Returns the value of the ‘vnc_encryption` attribute.

@return [Boolean]

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

Sets the value of the ‘vnc_encryption` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 34818
def vnc_encryption=(value)
  @vnc_encryption = value
end