Class: OvirtSDK4::Cluster

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Cluster

Creates a new instance of the OvirtSDK4::Cluster class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :affinity_groups (Array<AffinityGroup>, Array<Hash>)

    The values of attribute affinity_groups.

  • :ballooning_enabled (Boolean)

    The value of attribute ballooning_enabled.

  • :bios_type (BiosType)

    The value of attribute bios_type.

  • :comment (String)

    The value of attribute comment.

  • :cpu (Cpu, Hash)

    The value of attribute cpu.

  • :cpu_profiles (Array<CpuProfile>, Array<Hash>)

    The values of attribute cpu_profiles.

  • :custom_scheduling_policy_properties (Array<Property>, Array<Hash>)

    The values of attribute custom_scheduling_policy_properties.

  • :data_center (DataCenter, Hash)

    The value of attribute data_center.

  • :description (String)

    The value of attribute description.

  • :display (Display, Hash)

    The value of attribute display.

  • :enabled_features (Array<ClusterFeature>, Array<Hash>)

    The values of attribute enabled_features.

  • :error_handling (ErrorHandling, Hash)

    The value of attribute error_handling.

  • :external_network_providers (Array<ExternalProvider>, Array<Hash>)

    The values of attribute external_network_providers.

  • :fencing_policy (FencingPolicy, Hash)

    The value of attribute fencing_policy.

  • :fips_mode (FipsMode)

    The value of attribute fips_mode.

  • :firewall_type (FirewallType)

    The value of attribute firewall_type.

  • :gluster_hooks (Array<GlusterHook>, Array<Hash>)

    The values of attribute gluster_hooks.

  • :gluster_service (Boolean)

    The value of attribute gluster_service.

  • :gluster_tuned_profile (String)

    The value of attribute gluster_tuned_profile.

  • :gluster_volumes (Array<GlusterVolume>, Array<Hash>)

    The values of attribute gluster_volumes.

  • :ha_reservation (Boolean)

    The value of attribute ha_reservation.

  • :id (String)

    The value of attribute id.

  • :ksm (Ksm, Hash)

    The value of attribute ksm.

  • :log_max_memory_used_threshold (Integer)

    The value of attribute log_max_memory_used_threshold.

  • :log_max_memory_used_threshold_type (LogMaxMemoryUsedThresholdType)

    The value of attribute log_max_memory_used_threshold_type.

  • :mac_pool (MacPool, Hash)

    The value of attribute mac_pool.

  • :maintenance_reason_required (Boolean)

    The value of attribute maintenance_reason_required.

  • :management_network (Network, Hash)

    The value of attribute management_network.

  • :memory_policy (MemoryPolicy, Hash)

    The value of attribute memory_policy.

  • :migration (MigrationOptions, Hash)

    The value of attribute migration.

  • :name (String)

    The value of attribute name.

  • :network_filters (Array<NetworkFilter>, Array<Hash>)

    The values of attribute network_filters.

  • :networks (Array<Network>, Array<Hash>)

    The values of attribute networks.

  • :optional_reason (Boolean)

    The value of attribute optional_reason.

  • :permissions (Array<Permission>, Array<Hash>)

    The values of attribute permissions.

  • :required_rng_sources (Array<RngSource>, Array<Hash>)

    The values of attribute required_rng_sources.

  • :scheduling_policy (SchedulingPolicy, Hash)

    The value of attribute scheduling_policy.

  • :serial_number (SerialNumber, Hash)

    The value of attribute serial_number.

  • :supported_versions (Array<Version>, Array<Hash>)

    The values of attribute supported_versions.

  • :switch_type (SwitchType)

    The value of attribute switch_type.

  • :threads_as_cores (Boolean)

    The value of attribute threads_as_cores.

  • :trusted_service (Boolean)

    The value of attribute trusted_service.

  • :tunnel_migration (Boolean)

    The value of attribute tunnel_migration.

  • :version (Version, Hash)

    The value of attribute version.

  • :virt_service (Boolean)

    The value of attribute virt_service.

  • :vnc_encryption (Boolean)

    The value of attribute vnc_encryption.


33789
33790
33791
33792
33793
33794
33795
33796
33797
33798
33799
33800
33801
33802
33803
33804
33805
33806
33807
33808
33809
33810
33811
33812
33813
33814
33815
33816
33817
33818
33819
33820
33821
33822
33823
33824
33825
33826
33827
33828
33829
33830
33831
33832
33833
# File 'lib/ovirtsdk4/types.rb', line 33789

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.version = opts[:version]
  self.virt_service = opts[:virt_service]
  self.vnc_encryption = opts[:vnc_encryption]
end

Instance Method Details

#==(other) ⇒ Object

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


33838
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
# File 'lib/ovirtsdk4/types.rb', line 33838

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 &&
  @version == other.version &&
  @virt_service == other.virt_service &&
  @vnc_encryption == other.vnc_encryption
end

#affinity_groupsArray<AffinityGroup>

Returns the value of the affinity_groups attribute.

Returns:


32687
32688
32689
# File 'lib/ovirtsdk4/types.rb', line 32687

def affinity_groups
  @affinity_groups
end

#affinity_groups=(list) ⇒ Object

Sets the value of the affinity_groups attribute.

Parameters:


32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
# File 'lib/ovirtsdk4/types.rb', line 32696

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_enabledBoolean

Returns the value of the ballooning_enabled attribute.

Returns:

  • (Boolean)

32713
32714
32715
# File 'lib/ovirtsdk4/types.rb', line 32713

def ballooning_enabled
  @ballooning_enabled
end

#ballooning_enabled=(value) ⇒ Object

Sets the value of the ballooning_enabled attribute.

Parameters:

  • value (Boolean)

32722
32723
32724
# File 'lib/ovirtsdk4/types.rb', line 32722

def ballooning_enabled=(value)
  @ballooning_enabled = value
end

#bios_typeBiosType

Returns the value of the bios_type attribute.

Returns:


32731
32732
32733
# File 'lib/ovirtsdk4/types.rb', line 32731

def bios_type
  @bios_type
end

#bios_type=(value) ⇒ Object

Sets the value of the bios_type attribute.

Parameters:


32740
32741
32742
# File 'lib/ovirtsdk4/types.rb', line 32740

def bios_type=(value)
  @bios_type = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

32749
32750
32751
# File 'lib/ovirtsdk4/types.rb', line 32749

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

32758
32759
32760
# File 'lib/ovirtsdk4/types.rb', line 32758

def comment=(value)
  @comment = value
end

#cpuCpu

Returns the value of the cpu attribute.

Returns:


32767
32768
32769
# File 'lib/ovirtsdk4/types.rb', line 32767

def cpu
  @cpu
end

#cpu=(value) ⇒ Object

Sets the value of the cpu attribute.

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.

Parameters:

  • value (Cpu, Hash)

32780
32781
32782
32783
32784
32785
# File 'lib/ovirtsdk4/types.rb', line 32780

def cpu=(value)
  if value.is_a?(Hash)
    value = Cpu.new(value)
  end
  @cpu = value
end

#cpu_profilesArray<CpuProfile>

Returns the value of the cpu_profiles attribute.

Returns:


32792
32793
32794
# File 'lib/ovirtsdk4/types.rb', line 32792

def cpu_profiles
  @cpu_profiles
end

#cpu_profiles=(list) ⇒ Object

Sets the value of the cpu_profiles attribute.

Parameters:


32801
32802
32803
32804
32805
32806
32807
32808
32809
32810
32811
# File 'lib/ovirtsdk4/types.rb', line 32801

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_propertiesArray<Property>

Returns the value of the custom_scheduling_policy_properties attribute.

Returns:


32818
32819
32820
# File 'lib/ovirtsdk4/types.rb', line 32818

def custom_scheduling_policy_properties
  @custom_scheduling_policy_properties
end

#custom_scheduling_policy_properties=(list) ⇒ Object

Sets the value of the custom_scheduling_policy_properties attribute.

Parameters:


32827
32828
32829
32830
32831
32832
32833
32834
32835
32836
32837
# File 'lib/ovirtsdk4/types.rb', line 32827

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_centerDataCenter

Returns the value of the data_center attribute.

Returns:


32844
32845
32846
# File 'lib/ovirtsdk4/types.rb', line 32844

def data_center
  @data_center
end

#data_center=(value) ⇒ Object

Sets the value of the data_center attribute.

The value parameter can be an instance of 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.

Parameters:


32857
32858
32859
32860
32861
32862
# File 'lib/ovirtsdk4/types.rb', line 32857

def data_center=(value)
  if value.is_a?(Hash)
    value = DataCenter.new(value)
  end
  @data_center = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

32869
32870
32871
# File 'lib/ovirtsdk4/types.rb', line 32869

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

32878
32879
32880
# File 'lib/ovirtsdk4/types.rb', line 32878

def description=(value)
  @description = value
end

#displayDisplay

Returns the value of the display attribute.

Returns:


32887
32888
32889
# File 'lib/ovirtsdk4/types.rb', line 32887

def display
  @display
end

#display=(value) ⇒ Object

Sets the value of the display attribute.

The value parameter can be an instance of Display or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:


32900
32901
32902
32903
32904
32905
# File 'lib/ovirtsdk4/types.rb', line 32900

def display=(value)
  if value.is_a?(Hash)
    value = Display.new(value)
  end
  @display = value
end

#enabled_featuresArray<ClusterFeature>

Returns the value of the enabled_features attribute.

Returns:


32912
32913
32914
# File 'lib/ovirtsdk4/types.rb', line 32912

def enabled_features
  @enabled_features
end

#enabled_features=(list) ⇒ Object

Sets the value of the enabled_features attribute.

Parameters:


32921
32922
32923
32924
32925
32926
32927
32928
32929
32930
32931
# File 'lib/ovirtsdk4/types.rb', line 32921

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_handlingErrorHandling

Returns the value of the error_handling attribute.

Returns:


32938
32939
32940
# File 'lib/ovirtsdk4/types.rb', line 32938

def error_handling
  @error_handling
end

#error_handling=(value) ⇒ Object

Sets the value of the error_handling attribute.

The value parameter can be an instance of 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.

Parameters:


32951
32952
32953
32954
32955
32956
# File 'lib/ovirtsdk4/types.rb', line 32951

def error_handling=(value)
  if value.is_a?(Hash)
    value = ErrorHandling.new(value)
  end
  @error_handling = value
end

#external_network_providersArray<ExternalProvider>

Returns the value of the external_network_providers attribute.

Returns:


32963
32964
32965
# File 'lib/ovirtsdk4/types.rb', line 32963

def external_network_providers
  @external_network_providers
end

#external_network_providers=(list) ⇒ Object

Sets the value of the external_network_providers attribute.

Parameters:


32972
32973
32974
32975
32976
32977
32978
32979
32980
32981
32982
# File 'lib/ovirtsdk4/types.rb', line 32972

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_policyFencingPolicy

Returns the value of the fencing_policy attribute.

Returns:


32989
32990
32991
# File 'lib/ovirtsdk4/types.rb', line 32989

def fencing_policy
  @fencing_policy
end

#fencing_policy=(value) ⇒ Object

Sets the value of the fencing_policy attribute.

The value parameter can be an instance of 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.

Parameters:


33002
33003
33004
33005
33006
33007
# File 'lib/ovirtsdk4/types.rb', line 33002

def fencing_policy=(value)
  if value.is_a?(Hash)
    value = FencingPolicy.new(value)
  end
  @fencing_policy = value
end

#fips_modeFipsMode

Returns the value of the fips_mode attribute.

Returns:


33014
33015
33016
# File 'lib/ovirtsdk4/types.rb', line 33014

def fips_mode
  @fips_mode
end

#fips_mode=(value) ⇒ Object

Sets the value of the fips_mode attribute.

Parameters:


33023
33024
33025
# File 'lib/ovirtsdk4/types.rb', line 33023

def fips_mode=(value)
  @fips_mode = value
end

#firewall_typeFirewallType

Returns the value of the firewall_type attribute.

Returns:


33032
33033
33034
# File 'lib/ovirtsdk4/types.rb', line 33032

def firewall_type
  @firewall_type
end

#firewall_type=(value) ⇒ Object

Sets the value of the firewall_type attribute.

Parameters:


33041
33042
33043
# File 'lib/ovirtsdk4/types.rb', line 33041

def firewall_type=(value)
  @firewall_type = value
end

#gluster_hooksArray<GlusterHook>

Returns the value of the gluster_hooks attribute.

Returns:


33050
33051
33052
# File 'lib/ovirtsdk4/types.rb', line 33050

def gluster_hooks
  @gluster_hooks
end

#gluster_hooks=(list) ⇒ Object

Sets the value of the gluster_hooks attribute.

Parameters:


33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
# File 'lib/ovirtsdk4/types.rb', line 33059

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_serviceBoolean

Returns the value of the gluster_service attribute.

Returns:

  • (Boolean)

33076
33077
33078
# File 'lib/ovirtsdk4/types.rb', line 33076

def gluster_service
  @gluster_service
end

#gluster_service=(value) ⇒ Object

Sets the value of the gluster_service attribute.

Parameters:

  • value (Boolean)

33085
33086
33087
# File 'lib/ovirtsdk4/types.rb', line 33085

def gluster_service=(value)
  @gluster_service = value
end

#gluster_tuned_profileString

Returns the value of the gluster_tuned_profile attribute.

Returns:

  • (String)

33094
33095
33096
# File 'lib/ovirtsdk4/types.rb', line 33094

def gluster_tuned_profile
  @gluster_tuned_profile
end

#gluster_tuned_profile=(value) ⇒ Object

Sets the value of the gluster_tuned_profile attribute.

Parameters:

  • value (String)

33103
33104
33105
# File 'lib/ovirtsdk4/types.rb', line 33103

def gluster_tuned_profile=(value)
  @gluster_tuned_profile = value
end

#gluster_volumesArray<GlusterVolume>

Returns the value of the gluster_volumes attribute.

Returns:


33112
33113
33114
# File 'lib/ovirtsdk4/types.rb', line 33112

def gluster_volumes
  @gluster_volumes
end

#gluster_volumes=(list) ⇒ Object

Sets the value of the gluster_volumes attribute.

Parameters:


33121
33122
33123
33124
33125
33126
33127
33128
33129
33130
33131
# File 'lib/ovirtsdk4/types.rb', line 33121

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_reservationBoolean

Returns the value of the ha_reservation attribute.

Returns:

  • (Boolean)

33138
33139
33140
# File 'lib/ovirtsdk4/types.rb', line 33138

def ha_reservation
  @ha_reservation
end

#ha_reservation=(value) ⇒ Object

Sets the value of the ha_reservation attribute.

Parameters:

  • value (Boolean)

33147
33148
33149
# File 'lib/ovirtsdk4/types.rb', line 33147

def ha_reservation=(value)
  @ha_reservation = value
end

#hashObject

Generates a hash value for this object.


33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914
33915
33916
33917
33918
33919
33920
33921
33922
33923
33924
33925
33926
33927
33928
33929
33930
33931
# File 'lib/ovirtsdk4/types.rb', line 33887

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 +
  @version.hash +
  @virt_service.hash +
  @vnc_encryption.hash
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

33156
33157
33158
# File 'lib/ovirtsdk4/types.rb', line 33156

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

33165
33166
33167
# File 'lib/ovirtsdk4/types.rb', line 33165

def id=(value)
  @id = value
end

#ksmKsm

Returns the value of the ksm attribute.

Returns:


33174
33175
33176
# File 'lib/ovirtsdk4/types.rb', line 33174

def ksm
  @ksm
end

#ksm=(value) ⇒ Object

Sets the value of the ksm attribute.

The value parameter can be an instance of 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.

Parameters:

  • value (Ksm, Hash)

33187
33188
33189
33190
33191
33192
# File 'lib/ovirtsdk4/types.rb', line 33187

def ksm=(value)
  if value.is_a?(Hash)
    value = Ksm.new(value)
  end
  @ksm = value
end

#log_max_memory_used_thresholdInteger

Returns the value of the log_max_memory_used_threshold attribute.

Returns:

  • (Integer)

33199
33200
33201
# File 'lib/ovirtsdk4/types.rb', line 33199

def log_max_memory_used_threshold
  @log_max_memory_used_threshold
end

#log_max_memory_used_threshold=(value) ⇒ Object

Sets the value of the log_max_memory_used_threshold attribute.

Parameters:

  • value (Integer)

33208
33209
33210
# File 'lib/ovirtsdk4/types.rb', line 33208

def log_max_memory_used_threshold=(value)
  @log_max_memory_used_threshold = value
end

#log_max_memory_used_threshold_typeLogMaxMemoryUsedThresholdType

Returns the value of the log_max_memory_used_threshold_type attribute.


33217
33218
33219
# File 'lib/ovirtsdk4/types.rb', line 33217

def log_max_memory_used_threshold_type
  @log_max_memory_used_threshold_type
end

#log_max_memory_used_threshold_type=(value) ⇒ Object

Sets the value of the log_max_memory_used_threshold_type attribute.

Parameters:


33226
33227
33228
# File 'lib/ovirtsdk4/types.rb', line 33226

def log_max_memory_used_threshold_type=(value)
  @log_max_memory_used_threshold_type = value
end

#mac_poolMacPool

Returns the value of the mac_pool attribute.

Returns:


33235
33236
33237
# File 'lib/ovirtsdk4/types.rb', line 33235

def mac_pool
  @mac_pool
end

#mac_pool=(value) ⇒ Object

Sets the value of the mac_pool attribute.

The value parameter can be an instance of 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.

Parameters:


33248
33249
33250
33251
33252
33253
# File 'lib/ovirtsdk4/types.rb', line 33248

def mac_pool=(value)
  if value.is_a?(Hash)
    value = MacPool.new(value)
  end
  @mac_pool = value
end

#maintenance_reason_requiredBoolean

Returns the value of the maintenance_reason_required attribute.

Returns:

  • (Boolean)

33260
33261
33262
# File 'lib/ovirtsdk4/types.rb', line 33260

def maintenance_reason_required
  @maintenance_reason_required
end

#maintenance_reason_required=(value) ⇒ Object

Sets the value of the maintenance_reason_required attribute.

Parameters:

  • value (Boolean)

33269
33270
33271
# File 'lib/ovirtsdk4/types.rb', line 33269

def maintenance_reason_required=(value)
  @maintenance_reason_required = value
end

#management_networkNetwork

Returns the value of the management_network attribute.

Returns:


33278
33279
33280
# File 'lib/ovirtsdk4/types.rb', line 33278

def management_network
  @management_network
end

#management_network=(value) ⇒ Object

Sets the value of the management_network attribute.

The value parameter can be an instance of 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.

Parameters:


33291
33292
33293
33294
33295
33296
# File 'lib/ovirtsdk4/types.rb', line 33291

def management_network=(value)
  if value.is_a?(Hash)
    value = Network.new(value)
  end
  @management_network = value
end

#memory_policyMemoryPolicy

Returns the value of the memory_policy attribute.

Returns:


33303
33304
33305
# File 'lib/ovirtsdk4/types.rb', line 33303

def memory_policy
  @memory_policy
end

#memory_policy=(value) ⇒ Object

Sets the value of the memory_policy attribute.

The value parameter can be an instance of MemoryPolicy or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:


33316
33317
33318
33319
33320
33321
# File 'lib/ovirtsdk4/types.rb', line 33316

def memory_policy=(value)
  if value.is_a?(Hash)
    value = MemoryPolicy.new(value)
  end
  @memory_policy = value
end

#migrationMigrationOptions

Returns the value of the migration attribute.

Returns:


33328
33329
33330
# File 'lib/ovirtsdk4/types.rb', line 33328

def migration
  @migration
end

#migration=(value) ⇒ Object

Sets the value of the migration attribute.

The value parameter can be an instance of MigrationOptions or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:


33341
33342
33343
33344
33345
33346
# File 'lib/ovirtsdk4/types.rb', line 33341

def migration=(value)
  if value.is_a?(Hash)
    value = MigrationOptions.new(value)
  end
  @migration = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

33353
33354
33355
# File 'lib/ovirtsdk4/types.rb', line 33353

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

33362
33363
33364
# File 'lib/ovirtsdk4/types.rb', line 33362

def name=(value)
  @name = value
end

#network_filtersArray<NetworkFilter>

Returns the value of the network_filters attribute.

Returns:


33371
33372
33373
# File 'lib/ovirtsdk4/types.rb', line 33371

def network_filters
  @network_filters
end

#network_filters=(list) ⇒ Object

Sets the value of the network_filters attribute.

Parameters:


33380
33381
33382
33383
33384
33385
33386
33387
33388
33389
33390
# File 'lib/ovirtsdk4/types.rb', line 33380

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

#networksArray<Network>

Returns the value of the networks attribute.

Returns:


33397
33398
33399
# File 'lib/ovirtsdk4/types.rb', line 33397

def networks
  @networks
end

#networks=(list) ⇒ Object

Sets the value of the networks attribute.

Parameters:


33406
33407
33408
33409
33410
33411
33412
33413
33414
33415
33416
# File 'lib/ovirtsdk4/types.rb', line 33406

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_reasonBoolean

Returns the value of the optional_reason attribute.

Returns:

  • (Boolean)

33423
33424
33425
# File 'lib/ovirtsdk4/types.rb', line 33423

def optional_reason
  @optional_reason
end

#optional_reason=(value) ⇒ Object

Sets the value of the optional_reason attribute.

Parameters:

  • value (Boolean)

33432
33433
33434
# File 'lib/ovirtsdk4/types.rb', line 33432

def optional_reason=(value)
  @optional_reason = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:


33441
33442
33443
# File 'lib/ovirtsdk4/types.rb', line 33441

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:


33450
33451
33452
33453
33454
33455
33456
33457
33458
33459
33460
# File 'lib/ovirtsdk4/types.rb', line 33450

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_sourcesArray<RngSource>

Returns the value of the required_rng_sources attribute.

Returns:


33467
33468
33469
# File 'lib/ovirtsdk4/types.rb', line 33467

def required_rng_sources
  @required_rng_sources
end

#required_rng_sources=(list) ⇒ Object

Sets the value of the required_rng_sources attribute.

Parameters:


33476
33477
33478
# File 'lib/ovirtsdk4/types.rb', line 33476

def required_rng_sources=(list)
  @required_rng_sources = list
end

#scheduling_policySchedulingPolicy

Returns the value of the scheduling_policy attribute.

Returns:


33485
33486
33487
# File 'lib/ovirtsdk4/types.rb', line 33485

def scheduling_policy
  @scheduling_policy
end

#scheduling_policy=(value) ⇒ Object

Sets the value of the scheduling_policy attribute.

The value parameter can be an instance of 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.

Parameters:


33498
33499
33500
33501
33502
33503
# File 'lib/ovirtsdk4/types.rb', line 33498

def scheduling_policy=(value)
  if value.is_a?(Hash)
    value = SchedulingPolicy.new(value)
  end
  @scheduling_policy = value
end

#serial_numberSerialNumber

Returns the value of the serial_number attribute.

Returns:


33510
33511
33512
# File 'lib/ovirtsdk4/types.rb', line 33510

def serial_number
  @serial_number
end

#serial_number=(value) ⇒ Object

Sets the value of the serial_number attribute.

The value parameter can be an instance of SerialNumber or a hash. If it is a hash then a new instance will be created passing the hash as the opts parameter to the constructor.

Parameters:


33523
33524
33525
33526
33527
33528
# File 'lib/ovirtsdk4/types.rb', line 33523

def serial_number=(value)
  if value.is_a?(Hash)
    value = SerialNumber.new(value)
  end
  @serial_number = value
end

#supported_versionsArray<Version>

Returns the value of the supported_versions attribute.

Returns:


33535
33536
33537
# File 'lib/ovirtsdk4/types.rb', line 33535

def supported_versions
  @supported_versions
end

#supported_versions=(list) ⇒ Object

Sets the value of the supported_versions attribute.

Parameters:


33544
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554
# File 'lib/ovirtsdk4/types.rb', line 33544

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_typeSwitchType

Returns the value of the switch_type attribute.

Returns:


33561
33562
33563
# File 'lib/ovirtsdk4/types.rb', line 33561

def switch_type
  @switch_type
end

#switch_type=(value) ⇒ Object

Sets the value of the switch_type attribute.

Parameters:


33570
33571
33572
# File 'lib/ovirtsdk4/types.rb', line 33570

def switch_type=(value)
  @switch_type = value
end

#threads_as_coresBoolean

Returns the value of the threads_as_cores attribute.

Returns:

  • (Boolean)

33579
33580
33581
# File 'lib/ovirtsdk4/types.rb', line 33579

def threads_as_cores
  @threads_as_cores
end

#threads_as_cores=(value) ⇒ Object

Sets the value of the threads_as_cores attribute.

Parameters:

  • value (Boolean)

33588
33589
33590
# File 'lib/ovirtsdk4/types.rb', line 33588

def threads_as_cores=(value)
  @threads_as_cores = value
end

#trusted_serviceBoolean

Returns the value of the trusted_service attribute.

Returns:

  • (Boolean)

33597
33598
33599
# File 'lib/ovirtsdk4/types.rb', line 33597

def trusted_service
  @trusted_service
end

#trusted_service=(value) ⇒ Object

Sets the value of the trusted_service attribute.

Parameters:

  • value (Boolean)

33606
33607
33608
# File 'lib/ovirtsdk4/types.rb', line 33606

def trusted_service=(value)
  @trusted_service = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)

33615
33616
33617
# File 'lib/ovirtsdk4/types.rb', line 33615

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)

33624
33625
33626
# File 'lib/ovirtsdk4/types.rb', line 33624

def tunnel_migration=(value)
  @tunnel_migration = value
end

#versionVersion

Returns the value of the version attribute.

Returns:


33633
33634
33635
# File 'lib/ovirtsdk4/types.rb', line 33633

def version
  @version
end

#version=(value) ⇒ Object

Sets the value of the version attribute.

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

Parameters:


33646
33647
33648
33649
33650
33651
# File 'lib/ovirtsdk4/types.rb', line 33646

def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end

#virt_serviceBoolean

Returns the value of the virt_service attribute.

Returns:

  • (Boolean)

33658
33659
33660
# File 'lib/ovirtsdk4/types.rb', line 33658

def virt_service
  @virt_service
end

#virt_service=(value) ⇒ Object

Sets the value of the virt_service attribute.

Parameters:

  • value (Boolean)

33667
33668
33669
# File 'lib/ovirtsdk4/types.rb', line 33667

def virt_service=(value)
  @virt_service = value
end

#vnc_encryptionBoolean

Returns the value of the vnc_encryption attribute.

Returns:

  • (Boolean)

33676
33677
33678
# File 'lib/ovirtsdk4/types.rb', line 33676

def vnc_encryption
  @vnc_encryption
end

#vnc_encryption=(value) ⇒ Object

Sets the value of the vnc_encryption attribute.

Parameters:

  • value (Boolean)

33685
33686
33687
# File 'lib/ovirtsdk4/types.rb', line 33685

def vnc_encryption=(value)
  @vnc_encryption = value
end