class OvirtSDK4::ApiSummary

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {ApiSummary} 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 [ApiSummaryItem, Hash] :hosts The value of attribute `hosts`.

@option opts [ApiSummaryItem, Hash] :storage_domains The value of attribute `storage_domains`.

@option opts [ApiSummaryItem, Hash] :users The value of attribute `users`.

@option opts [ApiSummaryItem, Hash] :vms The value of attribute `vms`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 980
def initialize(opts = {})
  super(opts)
  self.hosts = opts[:hosts]
  self.storage_domains = opts[:storage_domains]
  self.users = opts[:users]
  self.vms = opts[:vms]
end

Public Instance Methods

hosts() click to toggle source

Returns the value of the `hosts` attribute.

@return [ApiSummaryItem]

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

Sets the value of the `hosts` attribute.

@param value [ApiSummaryItem, Hash]

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

Returns the value of the `storage_domains` attribute.

@return [ApiSummaryItem]

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

Sets the value of the `storage_domains` attribute.

@param value [ApiSummaryItem, Hash]

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

Returns the value of the `users` attribute.

@return [ApiSummaryItem]

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

Sets the value of the `users` attribute.

@param value [ApiSummaryItem, Hash]

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

Returns the value of the `vms` attribute.

@return [ApiSummaryItem]

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

Sets the value of the `vms` attribute.

@param value [ApiSummaryItem, Hash]

The `value` parameter can be an instance of {OvirtSDK4::ApiSummaryItem} 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 957
def vms=(value)
  if value.is_a?(Hash)
    value = ApiSummaryItem.new(value)
  end
  @vms = value
end