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.

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.

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


33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097
33098
33099
33100
33101
33102
33103
33104
33105
33106
33107
33108
33109
33110
33111
33112
33113
33114
33115
33116
33117
33118
33119
33120
33121
33122
33123
33124
33125
33126
33127
33128
33129
# File 'lib/ovirtsdk4/types.rb', line 33087

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.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]
end

Instance Method Details

#==(other) ⇒ Object

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


33134
33135
33136
33137
33138
33139
33140
33141
33142
33143
33144
33145
33146
33147
33148
33149
33150
33151
33152
33153
33154
33155
33156
33157
33158
33159
33160
33161
33162
33163
33164
33165
33166
33167
33168
33169
33170
33171
33172
33173
33174
33175
33176
# File 'lib/ovirtsdk4/types.rb', line 33134

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 &&
  @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
end

#affinity_groupsArray<AffinityGroup>

Returns the value of the affinity_groups attribute.


32025
32026
32027
# File 'lib/ovirtsdk4/types.rb', line 32025

def affinity_groups
  @affinity_groups
end

#affinity_groups=(list) ⇒ Object

Sets the value of the affinity_groups attribute.


32034
32035
32036
32037
32038
32039
32040
32041
32042
32043
32044
# File 'lib/ovirtsdk4/types.rb', line 32034

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.


32051
32052
32053
# File 'lib/ovirtsdk4/types.rb', line 32051

def ballooning_enabled
  @ballooning_enabled
end

#ballooning_enabled=(value) ⇒ Object

Sets the value of the ballooning_enabled attribute.


32060
32061
32062
# File 'lib/ovirtsdk4/types.rb', line 32060

def ballooning_enabled=(value)
  @ballooning_enabled = value
end

#bios_typeBiosType

Returns the value of the bios_type attribute.


32069
32070
32071
# File 'lib/ovirtsdk4/types.rb', line 32069

def bios_type
  @bios_type
end

#bios_type=(value) ⇒ Object

Sets the value of the bios_type attribute.


32078
32079
32080
# File 'lib/ovirtsdk4/types.rb', line 32078

def bios_type=(value)
  @bios_type = value
end

#commentString

Returns the value of the comment attribute.


32087
32088
32089
# File 'lib/ovirtsdk4/types.rb', line 32087

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.


32096
32097
32098
# File 'lib/ovirtsdk4/types.rb', line 32096

def comment=(value)
  @comment = value
end

#cpuCpu

Returns the value of the cpu attribute.


32105
32106
32107
# File 'lib/ovirtsdk4/types.rb', line 32105

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.


32118
32119
32120
32121
32122
32123
# File 'lib/ovirtsdk4/types.rb', line 32118

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.


32130
32131
32132
# File 'lib/ovirtsdk4/types.rb', line 32130

def cpu_profiles
  @cpu_profiles
end

#cpu_profiles=(list) ⇒ Object

Sets the value of the cpu_profiles attribute.


32139
32140
32141
32142
32143
32144
32145
32146
32147
32148
32149
# File 'lib/ovirtsdk4/types.rb', line 32139

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.


32156
32157
32158
# File 'lib/ovirtsdk4/types.rb', line 32156

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.


32165
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
# File 'lib/ovirtsdk4/types.rb', line 32165

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.


32182
32183
32184
# File 'lib/ovirtsdk4/types.rb', line 32182

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.


32195
32196
32197
32198
32199
32200
# File 'lib/ovirtsdk4/types.rb', line 32195

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.


32207
32208
32209
# File 'lib/ovirtsdk4/types.rb', line 32207

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.


32216
32217
32218
# File 'lib/ovirtsdk4/types.rb', line 32216

def description=(value)
  @description = value
end

#displayDisplay

Returns the value of the display attribute.


32225
32226
32227
# File 'lib/ovirtsdk4/types.rb', line 32225

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.


32238
32239
32240
32241
32242
32243
# File 'lib/ovirtsdk4/types.rb', line 32238

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.


32250
32251
32252
# File 'lib/ovirtsdk4/types.rb', line 32250

def enabled_features
  @enabled_features
end

#enabled_features=(list) ⇒ Object

Sets the value of the enabled_features attribute.


32259
32260
32261
32262
32263
32264
32265
32266
32267
32268
32269
# File 'lib/ovirtsdk4/types.rb', line 32259

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.


32276
32277
32278
# File 'lib/ovirtsdk4/types.rb', line 32276

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.


32289
32290
32291
32292
32293
32294
# File 'lib/ovirtsdk4/types.rb', line 32289

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.


32301
32302
32303
# File 'lib/ovirtsdk4/types.rb', line 32301

def external_network_providers
  @external_network_providers
end

#external_network_providers=(list) ⇒ Object

Sets the value of the external_network_providers attribute.


32310
32311
32312
32313
32314
32315
32316
32317
32318
32319
32320
# File 'lib/ovirtsdk4/types.rb', line 32310

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.


32327
32328
32329
# File 'lib/ovirtsdk4/types.rb', line 32327

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.


32340
32341
32342
32343
32344
32345
# File 'lib/ovirtsdk4/types.rb', line 32340

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.


32352
32353
32354
# File 'lib/ovirtsdk4/types.rb', line 32352

def firewall_type
  @firewall_type
end

#firewall_type=(value) ⇒ Object

Sets the value of the firewall_type attribute.


32361
32362
32363
# File 'lib/ovirtsdk4/types.rb', line 32361

def firewall_type=(value)
  @firewall_type = value
end

#gluster_hooksArray<GlusterHook>

Returns the value of the gluster_hooks attribute.


32370
32371
32372
# File 'lib/ovirtsdk4/types.rb', line 32370

def gluster_hooks
  @gluster_hooks
end

#gluster_hooks=(list) ⇒ Object

Sets the value of the gluster_hooks attribute.


32379
32380
32381
32382
32383
32384
32385
32386
32387
32388
32389
# File 'lib/ovirtsdk4/types.rb', line 32379

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.


32396
32397
32398
# File 'lib/ovirtsdk4/types.rb', line 32396

def gluster_service
  @gluster_service
end

#gluster_service=(value) ⇒ Object

Sets the value of the gluster_service attribute.


32405
32406
32407
# File 'lib/ovirtsdk4/types.rb', line 32405

def gluster_service=(value)
  @gluster_service = value
end

#gluster_tuned_profileString

Returns the value of the gluster_tuned_profile attribute.


32414
32415
32416
# File 'lib/ovirtsdk4/types.rb', line 32414

def gluster_tuned_profile
  @gluster_tuned_profile
end

#gluster_tuned_profile=(value) ⇒ Object

Sets the value of the gluster_tuned_profile attribute.


32423
32424
32425
# File 'lib/ovirtsdk4/types.rb', line 32423

def gluster_tuned_profile=(value)
  @gluster_tuned_profile = value
end

#gluster_volumesArray<GlusterVolume>

Returns the value of the gluster_volumes attribute.


32432
32433
32434
# File 'lib/ovirtsdk4/types.rb', line 32432

def gluster_volumes
  @gluster_volumes
end

#gluster_volumes=(list) ⇒ Object

Sets the value of the gluster_volumes attribute.


32441
32442
32443
32444
32445
32446
32447
32448
32449
32450
32451
# File 'lib/ovirtsdk4/types.rb', line 32441

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.


32458
32459
32460
# File 'lib/ovirtsdk4/types.rb', line 32458

def ha_reservation
  @ha_reservation
end

#ha_reservation=(value) ⇒ Object

Sets the value of the ha_reservation attribute.


32467
32468
32469
# File 'lib/ovirtsdk4/types.rb', line 32467

def ha_reservation=(value)
  @ha_reservation = value
end

#hashObject

Generates a hash value for this object.


33181
33182
33183
33184
33185
33186
33187
33188
33189
33190
33191
33192
33193
33194
33195
33196
33197
33198
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209
33210
33211
33212
33213
33214
33215
33216
33217
33218
33219
33220
33221
33222
33223
# File 'lib/ovirtsdk4/types.rb', line 33181

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 +
  @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
end

#idString

Returns the value of the id attribute.


32476
32477
32478
# File 'lib/ovirtsdk4/types.rb', line 32476

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.


32485
32486
32487
# File 'lib/ovirtsdk4/types.rb', line 32485

def id=(value)
  @id = value
end

#ksmKsm

Returns the value of the ksm attribute.


32494
32495
32496
# File 'lib/ovirtsdk4/types.rb', line 32494

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.


32507
32508
32509
32510
32511
32512
# File 'lib/ovirtsdk4/types.rb', line 32507

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.


32519
32520
32521
# File 'lib/ovirtsdk4/types.rb', line 32519

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.


32528
32529
32530
# File 'lib/ovirtsdk4/types.rb', line 32528

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.


32537
32538
32539
# File 'lib/ovirtsdk4/types.rb', line 32537

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.


32546
32547
32548
# File 'lib/ovirtsdk4/types.rb', line 32546

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.


32555
32556
32557
# File 'lib/ovirtsdk4/types.rb', line 32555

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.


32568
32569
32570
32571
32572
32573
# File 'lib/ovirtsdk4/types.rb', line 32568

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.


32580
32581
32582
# File 'lib/ovirtsdk4/types.rb', line 32580

def maintenance_reason_required
  @maintenance_reason_required
end

#maintenance_reason_required=(value) ⇒ Object

Sets the value of the maintenance_reason_required attribute.


32589
32590
32591
# File 'lib/ovirtsdk4/types.rb', line 32589

def maintenance_reason_required=(value)
  @maintenance_reason_required = value
end

#management_networkNetwork

Returns the value of the management_network attribute.


32598
32599
32600
# File 'lib/ovirtsdk4/types.rb', line 32598

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.


32611
32612
32613
32614
32615
32616
# File 'lib/ovirtsdk4/types.rb', line 32611

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.


32623
32624
32625
# File 'lib/ovirtsdk4/types.rb', line 32623

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.


32636
32637
32638
32639
32640
32641
# File 'lib/ovirtsdk4/types.rb', line 32636

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.


32648
32649
32650
# File 'lib/ovirtsdk4/types.rb', line 32648

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.


32661
32662
32663
32664
32665
32666
# File 'lib/ovirtsdk4/types.rb', line 32661

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

#nameString

Returns the value of the name attribute.


32673
32674
32675
# File 'lib/ovirtsdk4/types.rb', line 32673

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.


32682
32683
32684
# File 'lib/ovirtsdk4/types.rb', line 32682

def name=(value)
  @name = value
end

#network_filtersArray<NetworkFilter>

Returns the value of the network_filters attribute.


32691
32692
32693
# File 'lib/ovirtsdk4/types.rb', line 32691

def network_filters
  @network_filters
end

#network_filters=(list) ⇒ Object

Sets the value of the network_filters attribute.


32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710
# File 'lib/ovirtsdk4/types.rb', line 32700

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.


32717
32718
32719
# File 'lib/ovirtsdk4/types.rb', line 32717

def networks
  @networks
end

#networks=(list) ⇒ Object

Sets the value of the networks attribute.


32726
32727
32728
32729
32730
32731
32732
32733
32734
32735
32736
# File 'lib/ovirtsdk4/types.rb', line 32726

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.


32743
32744
32745
# File 'lib/ovirtsdk4/types.rb', line 32743

def optional_reason
  @optional_reason
end

#optional_reason=(value) ⇒ Object

Sets the value of the optional_reason attribute.


32752
32753
32754
# File 'lib/ovirtsdk4/types.rb', line 32752

def optional_reason=(value)
  @optional_reason = value
end

#permissionsArray<Permission>

Returns the value of the permissions attribute.


32761
32762
32763
# File 'lib/ovirtsdk4/types.rb', line 32761

def permissions
  @permissions
end

#permissions=(list) ⇒ Object

Sets the value of the permissions attribute.


32770
32771
32772
32773
32774
32775
32776
32777
32778
32779
32780
# File 'lib/ovirtsdk4/types.rb', line 32770

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.


32787
32788
32789
# File 'lib/ovirtsdk4/types.rb', line 32787

def required_rng_sources
  @required_rng_sources
end

#required_rng_sources=(list) ⇒ Object

Sets the value of the required_rng_sources attribute.


32796
32797
32798
# File 'lib/ovirtsdk4/types.rb', line 32796

def required_rng_sources=(list)
  @required_rng_sources = list
end

#scheduling_policySchedulingPolicy

Returns the value of the scheduling_policy attribute.


32805
32806
32807
# File 'lib/ovirtsdk4/types.rb', line 32805

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.


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

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.


32830
32831
32832
# File 'lib/ovirtsdk4/types.rb', line 32830

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.


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

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.


32855
32856
32857
# File 'lib/ovirtsdk4/types.rb', line 32855

def supported_versions
  @supported_versions
end

#supported_versions=(list) ⇒ Object

Sets the value of the supported_versions attribute.


32864
32865
32866
32867
32868
32869
32870
32871
32872
32873
32874
# File 'lib/ovirtsdk4/types.rb', line 32864

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.


32881
32882
32883
# File 'lib/ovirtsdk4/types.rb', line 32881

def switch_type
  @switch_type
end

#switch_type=(value) ⇒ Object

Sets the value of the switch_type attribute.


32890
32891
32892
# File 'lib/ovirtsdk4/types.rb', line 32890

def switch_type=(value)
  @switch_type = value
end

#threads_as_coresBoolean

Returns the value of the threads_as_cores attribute.


32899
32900
32901
# File 'lib/ovirtsdk4/types.rb', line 32899

def threads_as_cores
  @threads_as_cores
end

#threads_as_cores=(value) ⇒ Object

Sets the value of the threads_as_cores attribute.


32908
32909
32910
# File 'lib/ovirtsdk4/types.rb', line 32908

def threads_as_cores=(value)
  @threads_as_cores = value
end

#trusted_serviceBoolean

Returns the value of the trusted_service attribute.


32917
32918
32919
# File 'lib/ovirtsdk4/types.rb', line 32917

def trusted_service
  @trusted_service
end

#trusted_service=(value) ⇒ Object

Sets the value of the trusted_service attribute.


32926
32927
32928
# File 'lib/ovirtsdk4/types.rb', line 32926

def trusted_service=(value)
  @trusted_service = value
end

#tunnel_migrationBoolean

Returns the value of the tunnel_migration attribute.


32935
32936
32937
# File 'lib/ovirtsdk4/types.rb', line 32935

def tunnel_migration
  @tunnel_migration
end

#tunnel_migration=(value) ⇒ Object

Sets the value of the tunnel_migration attribute.


32944
32945
32946
# File 'lib/ovirtsdk4/types.rb', line 32944

def tunnel_migration=(value)
  @tunnel_migration = value
end

#versionVersion

Returns the value of the version attribute.


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

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.


32966
32967
32968
32969
32970
32971
# File 'lib/ovirtsdk4/types.rb', line 32966

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.


32978
32979
32980
# File 'lib/ovirtsdk4/types.rb', line 32978

def virt_service
  @virt_service
end

#virt_service=(value) ⇒ Object

Sets the value of the virt_service attribute.


32987
32988
32989
# File 'lib/ovirtsdk4/types.rb', line 32987

def virt_service=(value)
  @virt_service = value
end