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.

  • :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.

  • :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.

  • :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.



32013
32014
32015
32016
32017
32018
32019
32020
32021
32022
32023
32024
32025
32026
32027
32028
32029
32030
32031
32032
32033
32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
32045
32046
32047
32048
32049
32050
32051
32052
# File 'lib/ovirtsdk4/types.rb', line 32013

def initialize(opts = {})
  super(opts)
  self.affinity_groups = opts[:affinity_groups]
  self.ballooning_enabled = opts[:ballooning_enabled]
  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.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.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]
end

Instance Method Details

#==(other) ⇒ Object

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



32057
32058
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075
32076
32077
32078
32079
32080
32081
32082
32083
32084
32085
32086
32087
32088
32089
32090
32091
32092
32093
32094
32095
32096
# File 'lib/ovirtsdk4/types.rb', line 32057

def ==(other)
  super &&
  @affinity_groups == other.affinity_groups &&
  @ballooning_enabled == other.ballooning_enabled &&
  @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 &&
  @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 &&
  @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
end

#affinity_groupsArray<AffinityGroup>

Returns the value of the affinity_groups attribute.

Returns:



31011
31012
31013
# File 'lib/ovirtsdk4/types.rb', line 31011

def affinity_groups
  @affinity_groups
end

#affinity_groups=(list) ⇒ Object

Sets the value of the affinity_groups attribute.

Parameters:



31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
# File 'lib/ovirtsdk4/types.rb', line 31020

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)


31037
31038
31039
# File 'lib/ovirtsdk4/types.rb', line 31037

def ballooning_enabled
  @ballooning_enabled
end

#ballooning_enabled=(value) ⇒ Object

Sets the value of the ballooning_enabled attribute.

Parameters:

  • value (Boolean)


31046
31047
31048
# File 'lib/ovirtsdk4/types.rb', line 31046

def ballooning_enabled=(value)
  @ballooning_enabled = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


31055
31056
31057
# File 'lib/ovirtsdk4/types.rb', line 31055

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


31064
31065
31066
# File 'lib/ovirtsdk4/types.rb', line 31064

def comment=(value)
  @comment = value
end

#cpuCpu

Returns the value of the cpu attribute.

Returns:



31073
31074
31075
# File 'lib/ovirtsdk4/types.rb', line 31073

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)


31086
31087
31088
31089
31090
31091
# File 'lib/ovirtsdk4/types.rb', line 31086

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:



31098
31099
31100
# File 'lib/ovirtsdk4/types.rb', line 31098

def cpu_profiles
  @cpu_profiles
end

#cpu_profiles=(list) ⇒ Object

Sets the value of the cpu_profiles attribute.

Parameters:



31107
31108
31109
31110
31111
31112
31113
31114
31115
31116
31117
# File 'lib/ovirtsdk4/types.rb', line 31107

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:



31124
31125
31126
# File 'lib/ovirtsdk4/types.rb', line 31124

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:



31133
31134
31135
31136
31137
31138
31139
31140
31141
31142
31143
# File 'lib/ovirtsdk4/types.rb', line 31133

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:



31150
31151
31152
# File 'lib/ovirtsdk4/types.rb', line 31150

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:



31163
31164
31165
31166
31167
31168
# File 'lib/ovirtsdk4/types.rb', line 31163

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)


31175
31176
31177
# File 'lib/ovirtsdk4/types.rb', line 31175

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


31184
31185
31186
# File 'lib/ovirtsdk4/types.rb', line 31184

def description=(value)
  @description = value
end

#displayDisplay

Returns the value of the display attribute.

Returns:



31193
31194
31195
# File 'lib/ovirtsdk4/types.rb', line 31193

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:



31206
31207
31208
31209
31210
31211
# File 'lib/ovirtsdk4/types.rb', line 31206

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:



31218
31219
31220
# File 'lib/ovirtsdk4/types.rb', line 31218

def enabled_features
  @enabled_features
end

#enabled_features=(list) ⇒ Object

Sets the value of the enabled_features attribute.

Parameters:



31227
31228
31229
31230
31231
31232
31233
31234
31235
31236
31237
# File 'lib/ovirtsdk4/types.rb', line 31227

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:



31244
31245
31246
# File 'lib/ovirtsdk4/types.rb', line 31244

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:



31257
31258
31259
31260
31261
31262
# File 'lib/ovirtsdk4/types.rb', line 31257

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:



31269
31270
31271
# File 'lib/ovirtsdk4/types.rb', line 31269

def external_network_providers
  @external_network_providers
end

#external_network_providers=(list) ⇒ Object

Sets the value of the external_network_providers attribute.

Parameters:



31278
31279
31280
31281
31282
31283
31284
31285
31286
31287
31288
# File 'lib/ovirtsdk4/types.rb', line 31278

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:



31295
31296
31297
# File 'lib/ovirtsdk4/types.rb', line 31295

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:



31308
31309
31310
31311
31312
31313
# File 'lib/ovirtsdk4/types.rb', line 31308

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

#firewall_typeFirewallType

Returns the value of the firewall_type attribute.

Returns:



31320
31321
31322
# File 'lib/ovirtsdk4/types.rb', line 31320

def firewall_type
  @firewall_type
end

#firewall_type=(value) ⇒ Object

Sets the value of the firewall_type attribute.

Parameters:



31329
31330
31331
# File 'lib/ovirtsdk4/types.rb', line 31329

def firewall_type=(value)
  @firewall_type = value
end

#gluster_hooksArray<GlusterHook>

Returns the value of the gluster_hooks attribute.

Returns:



31338
31339
31340
# File 'lib/ovirtsdk4/types.rb', line 31338

def gluster_hooks
  @gluster_hooks
end

#gluster_hooks=(list) ⇒ Object

Sets the value of the gluster_hooks attribute.

Parameters:



31347
31348
31349
31350
31351
31352
31353
31354
31355
31356
31357
# File 'lib/ovirtsdk4/types.rb', line 31347

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)


31364
31365
31366
# File 'lib/ovirtsdk4/types.rb', line 31364

def gluster_service
  @gluster_service
end

#gluster_service=(value) ⇒ Object

Sets the value of the gluster_service attribute.

Parameters:

  • value (Boolean)


31373
31374
31375
# File 'lib/ovirtsdk4/types.rb', line 31373

def gluster_service=(value)
  @gluster_service = value
end

#gluster_tuned_profileString

Returns the value of the gluster_tuned_profile attribute.

Returns:

  • (String)


31382
31383
31384
# File 'lib/ovirtsdk4/types.rb', line 31382

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)


31391
31392
31393
# File 'lib/ovirtsdk4/types.rb', line 31391

def gluster_tuned_profile=(value)
  @gluster_tuned_profile = value
end

#gluster_volumesArray<GlusterVolume>

Returns the value of the gluster_volumes attribute.

Returns:



31400
31401
31402
# File 'lib/ovirtsdk4/types.rb', line 31400

def gluster_volumes
  @gluster_volumes
end

#gluster_volumes=(list) ⇒ Object

Sets the value of the gluster_volumes attribute.

Parameters:



31409
31410
31411
31412
31413
31414
31415
31416
31417
31418
31419
# File 'lib/ovirtsdk4/types.rb', line 31409

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)


31426
31427
31428
# File 'lib/ovirtsdk4/types.rb', line 31426

def ha_reservation
  @ha_reservation
end

#ha_reservation=(value) ⇒ Object

Sets the value of the ha_reservation attribute.

Parameters:

  • value (Boolean)


31435
31436
31437
# File 'lib/ovirtsdk4/types.rb', line 31435

def ha_reservation=(value)
  @ha_reservation = value
end

#hashObject

Generates a hash value for this object.



32101
32102
32103
32104
32105
32106
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116
32117
32118
32119
32120
32121
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131
32132
32133
32134
32135
32136
32137
32138
32139
32140
# File 'lib/ovirtsdk4/types.rb', line 32101

def hash
  super +
  @affinity_groups.hash +
  @ballooning_enabled.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 +
  @firewall_type.hash +
  @gluster_hooks.hash +
  @gluster_service.hash +
  @gluster_tuned_profile.hash +
  @gluster_volumes.hash +
  @ha_reservation.hash +
  @ksm.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
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)


31444
31445
31446
# File 'lib/ovirtsdk4/types.rb', line 31444

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


31453
31454
31455
# File 'lib/ovirtsdk4/types.rb', line 31453

def id=(value)
  @id = value
end

#ksmKsm

Returns the value of the ksm attribute.

Returns:



31462
31463
31464
# File 'lib/ovirtsdk4/types.rb', line 31462

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)


31475
31476
31477
31478
31479
31480
# File 'lib/ovirtsdk4/types.rb', line 31475

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

#mac_poolMacPool

Returns the value of the mac_pool attribute.

Returns:



31487
31488
31489
# File 'lib/ovirtsdk4/types.rb', line 31487

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:



31500
31501
31502
31503
31504
31505
# File 'lib/ovirtsdk4/types.rb', line 31500

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)


31512
31513
31514
# File 'lib/ovirtsdk4/types.rb', line 31512

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)


31521
31522
31523
# File 'lib/ovirtsdk4/types.rb', line 31521

def maintenance_reason_required=(value)
  @maintenance_reason_required = value
end

#management_networkNetwork

Returns the value of the management_network attribute.

Returns:



31530
31531
31532
# File 'lib/ovirtsdk4/types.rb', line 31530

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:



31543
31544
31545
31546
31547
31548
# File 'lib/ovirtsdk4/types.rb', line 31543

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:



31555
31556
31557
# File 'lib/ovirtsdk4/types.rb', line 31555

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:



31568
31569
31570
31571
31572
31573
# File 'lib/ovirtsdk4/types.rb', line 31568

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:



31580
31581
31582
# File 'lib/ovirtsdk4/types.rb', line 31580

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:



31593
31594
31595
31596
31597
31598
# File 'lib/ovirtsdk4/types.rb', line 31593

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)


31605
31606
31607
# File 'lib/ovirtsdk4/types.rb', line 31605

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


31614
31615
31616
# File 'lib/ovirtsdk4/types.rb', line 31614

def name=(value)
  @name = value
end

#network_filtersArray<NetworkFilter>

Returns the value of the network_filters attribute.

Returns:



31623
31624
31625
# File 'lib/ovirtsdk4/types.rb', line 31623

def network_filters
  @network_filters
end

#network_filters=(list) ⇒ Object

Sets the value of the network_filters attribute.

Parameters:



31632
31633
31634
31635
31636
31637
31638
31639
31640
31641
31642
# File 'lib/ovirtsdk4/types.rb', line 31632

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:



31649
31650
31651
# File 'lib/ovirtsdk4/types.rb', line 31649

def networks
  @networks
end

#networks=(list) ⇒ Object

Sets the value of the networks attribute.

Parameters:



31658
31659
31660
31661
31662
31663
31664
31665
31666
31667
31668
# File 'lib/ovirtsdk4/types.rb', line 31658

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)


31675
31676
31677
# File 'lib/ovirtsdk4/types.rb', line 31675

def optional_reason
  @optional_reason
end

#optional_reason=(value) ⇒ Object

Sets the value of the optional_reason attribute.

Parameters:

  • value (Boolean)


31684
31685
31686
# File 'lib/ovirtsdk4/types.rb', line 31684

def optional_reason=(value)
  @optional_reason = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.

Returns:



31693
31694
31695
# File 'lib/ovirtsdk4/types.rb', line 31693

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.

Parameters:



31702
31703
31704
31705
31706
31707
31708
31709
31710
31711
31712
# File 'lib/ovirtsdk4/types.rb', line 31702

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:



31719
31720
31721
# File 'lib/ovirtsdk4/types.rb', line 31719

def required_rng_sources
  @required_rng_sources
end

#required_rng_sources=(list) ⇒ Object

Sets the value of the required_rng_sources attribute.

Parameters:



31728
31729
31730
# File 'lib/ovirtsdk4/types.rb', line 31728

def required_rng_sources=(list)
  @required_rng_sources = list
end

#scheduling_policySchedulingPolicy

Returns the value of the scheduling_policy attribute.

Returns:



31737
31738
31739
# File 'lib/ovirtsdk4/types.rb', line 31737

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:



31750
31751
31752
31753
31754
31755
# File 'lib/ovirtsdk4/types.rb', line 31750

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:



31762
31763
31764
# File 'lib/ovirtsdk4/types.rb', line 31762

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:



31775
31776
31777
31778
31779
31780
# File 'lib/ovirtsdk4/types.rb', line 31775

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:



31787
31788
31789
# File 'lib/ovirtsdk4/types.rb', line 31787

def supported_versions
  @supported_versions
end

#supported_versions=(list) ⇒ Object

Sets the value of the supported_versions attribute.

Parameters:



31796
31797
31798
31799
31800
31801
31802
31803
31804
31805
31806
# File 'lib/ovirtsdk4/types.rb', line 31796

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:



31813
31814
31815
# File 'lib/ovirtsdk4/types.rb', line 31813

def switch_type
  @switch_type
end

#switch_type=(value) ⇒ Object

Sets the value of the switch_type attribute.

Parameters:



31822
31823
31824
# File 'lib/ovirtsdk4/types.rb', line 31822

def switch_type=(value)
  @switch_type = value
end

#threads_as_coresBoolean

Returns the value of the threads_as_cores attribute.

Returns:

  • (Boolean)


31831
31832
31833
# File 'lib/ovirtsdk4/types.rb', line 31831

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)


31840
31841
31842
# File 'lib/ovirtsdk4/types.rb', line 31840

def threads_as_cores=(value)
  @threads_as_cores = value
end

#trusted_serviceBoolean

Returns the value of the trusted_service attribute.

Returns:

  • (Boolean)


31849
31850
31851
# File 'lib/ovirtsdk4/types.rb', line 31849

def trusted_service
  @trusted_service
end

#trusted_service=(value) ⇒ Object

Sets the value of the trusted_service attribute.

Parameters:

  • value (Boolean)


31858
31859
31860
# File 'lib/ovirtsdk4/types.rb', line 31858

def trusted_service=(value)
  @trusted_service = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.

Returns:

  • (Boolean)


31867
31868
31869
# File 'lib/ovirtsdk4/types.rb', line 31867

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.

Parameters:

  • value (Boolean)


31876
31877
31878
# File 'lib/ovirtsdk4/types.rb', line 31876

def tunnel_migration=(value)
  @tunnel_migration = value
end

#versionVersion

Returns the value of the version attribute.

Returns:



31885
31886
31887
# File 'lib/ovirtsdk4/types.rb', line 31885

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:



31898
31899
31900
31901
31902
31903
# File 'lib/ovirtsdk4/types.rb', line 31898

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)


31910
31911
31912
# File 'lib/ovirtsdk4/types.rb', line 31910

def virt_service
  @virt_service
end

#virt_service=(value) ⇒ Object

Sets the value of the virt_service attribute.

Parameters:

  • value (Boolean)


31919
31920
31921
# File 'lib/ovirtsdk4/types.rb', line 31919

def virt_service=(value)
  @virt_service = value
end