Creates a new instance of the {StorageDomain} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Integer] :available The value of attribute `available`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [Integer] :committed The value of attribute `committed`.
@option opts [Integer] :critical_space_action_blocker The value of attribute `critical_space_action_blocker`.
@option opts [DataCenter, Hash] :data_center The value of attribute `data_center`.
@option opts [Array<DataCenter>, Array<Hash>] :data_centers The values of attribute `data_centers`.
@option opts [String] :description The value of attribute `description`.
@option opts [ExternalStatus] :external_status The value of attribute `external_status`.
@option opts [Host, Hash] :host The value of attribute `host`.
@option opts [String] :id The value of attribute `id`.
@option opts [Boolean] :import The value of attribute `import`.
@option opts [Boolean] :master The value of attribute `master`.
@option opts [String] :name The value of attribute `name`.
@option opts [StorageDomainStatus] :status The value of attribute `status`.
@option opts [HostStorage, Hash] :storage The value of attribute `storage`.
@option opts [StorageFormat] :storage_format The value of attribute `storage_format`.
@option opts [StorageDomainType] :type The value of attribute `type`.
@option opts [Integer] :used The value of attribute `used`.
@option opts [Integer] :warning_low_space_indicator The value of attribute `warning_low_space_indicator`.
@option opts [Boolean] :wipe_after_delete The value of attribute `wipe_after_delete`.
# File lib/ovirtsdk4/types.rb, line 15911 def initialize(opts = {}) super(opts) self.available = opts[:available] self.comment = opts[:comment] self.committed = opts[:committed] self.critical_space_action_blocker = opts[:critical_space_action_blocker] self.data_center = opts[:data_center] self.data_centers = opts[:data_centers] self.description = opts[:description] self.external_status = opts[:external_status] self.host = opts[:host] self.id = opts[:id] self.import = opts[:import] self.master = opts[:master] self.name = opts[:name] self.status = opts[:status] self.storage = opts[:storage] self.storage_format = opts[:storage_format] self.type = opts[:type] self.used = opts[:used] self.warning_low_space_indicator = opts[:warning_low_space_indicator] self.wipe_after_delete = opts[:wipe_after_delete] end
Returns the value of the `available` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15480 def available return @available end
Sets the value of the `available` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15489 def available=(value) @available = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 15498 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 15507 def comment=(value) @comment = value end
Returns the value of the `committed` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15516 def committed return @committed end
Sets the value of the `committed` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15525 def committed=(value) @committed = value end
Returns the value of the `critical_space_action_blocker` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15534 def critical_space_action_blocker return @critical_space_action_blocker end
Sets the value of the `critical_space_action_blocker` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15543 def critical_space_action_blocker=(value) @critical_space_action_blocker = value end
Returns the value of the `data_center` attribute.
@return [DataCenter]
# File lib/ovirtsdk4/types.rb, line 15552 def data_center return @data_center end
Sets the value of the `data_center` attribute.
@param value [DataCenter, Hash]
The `value` parameter can be an instance of {OvirtSDK4::DataCenter} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 15565 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end
Returns the value of the `data_centers` attribute.
@return [Array<DataCenter>]
# File lib/ovirtsdk4/types.rb, line 15577 def data_centers return @data_centers end
Sets the value of the `data_centers` attribute.
@param list [Array<DataCenter>]
# File lib/ovirtsdk4/types.rb, line 15585 def data_centers=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = DataCenter.new(value) end end end @data_centers = list end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 15602 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 15611 def description=(value) @description = value end
Returns the value of the `external_status` attribute.
@return [ExternalStatus]
# File lib/ovirtsdk4/types.rb, line 15620 def external_status return @external_status end
Sets the value of the `external_status` attribute.
@param value [ExternalStatus]
# File lib/ovirtsdk4/types.rb, line 15629 def external_status=(value) @external_status = value end
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 15638 def host return @host end
Sets the value of the `host` attribute.
@param value [Host, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Host} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 15651 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 15663 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 15672 def id=(value) @id = value end
Returns the value of the `import` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 15681 def import return @import end
Sets the value of the `import` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 15690 def import=(value) @import = value end
Returns the value of the `master` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 15699 def master return @master end
Sets the value of the `master` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 15708 def master=(value) @master = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 15717 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 15726 def name=(value) @name = value end
Returns the value of the `status` attribute.
@return [StorageDomainStatus]
# File lib/ovirtsdk4/types.rb, line 15735 def status return @status end
Sets the value of the `status` attribute.
@param value [StorageDomainStatus]
# File lib/ovirtsdk4/types.rb, line 15744 def status=(value) @status = value end
Returns the value of the `storage` attribute.
@return [HostStorage]
# File lib/ovirtsdk4/types.rb, line 15753 def storage return @storage end
Sets the value of the `storage` attribute.
@param value [HostStorage, Hash]
The `value` parameter can be an instance of {OvirtSDK4::HostStorage} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.
# File lib/ovirtsdk4/types.rb, line 15766 def storage=(value) if value.is_a?(Hash) value = HostStorage.new(value) end @storage = value end
Returns the value of the `storage_format` attribute.
@return [StorageFormat]
# File lib/ovirtsdk4/types.rb, line 15778 def storage_format return @storage_format end
Sets the value of the `storage_format` attribute.
@param value [StorageFormat]
# File lib/ovirtsdk4/types.rb, line 15787 def storage_format=(value) @storage_format = value end
Returns the value of the `type` attribute.
@return [StorageDomainType]
# File lib/ovirtsdk4/types.rb, line 15796 def type return @type end
Sets the value of the `type` attribute.
@param value [StorageDomainType]
# File lib/ovirtsdk4/types.rb, line 15805 def type=(value) @type = value end
Returns the value of the `used` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15814 def used return @used end
Sets the value of the `used` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15823 def used=(value) @used = value end
Returns the value of the `warning_low_space_indicator` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15832 def warning_low_space_indicator return @warning_low_space_indicator end
Sets the value of the `warning_low_space_indicator` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15841 def warning_low_space_indicator=(value) @warning_low_space_indicator = value end
Returns the value of the `wipe_after_delete` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 15850 def wipe_after_delete return @wipe_after_delete end
Sets the value of the `wipe_after_delete` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 15859 def wipe_after_delete=(value) @wipe_after_delete = value end