Class: OvirtSDK4::ApiSummary

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (ApiSummary) initialize(opts = {})

Creates a new instance of the OvirtSDK4::ApiSummary 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):



974
975
976
977
978
979
980
# File 'lib/ovirtsdk4/types.rb', line 974

def initialize(opts = {})
  super(opts)
  self.hosts = opts[:hosts]
  self.storage_domains = opts[:storage_domains]
  self.users = opts[:users]
  self.vms = opts[:vms]
end

Instance Method Details

- (ApiSummaryItem) hosts

Returns the value of the hosts attribute.

Returns:



863
864
865
# File 'lib/ovirtsdk4/types.rb', line 863

def hosts
  return @hosts
end

- (Object) hosts=(value)

Sets the value of the hosts attribute.

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.

Parameters:



876
877
878
879
880
881
# File 'lib/ovirtsdk4/types.rb', line 876

def hosts=(value)
  if value.is_a?(Hash)
    value = ApiSummaryItem.new(value)
  end
  @hosts = value
end

- (ApiSummaryItem) storage_domains

Returns the value of the storage_domains attribute.

Returns:



888
889
890
# File 'lib/ovirtsdk4/types.rb', line 888

def storage_domains
  return @storage_domains
end

- (Object) storage_domains=(value)

Sets the value of the storage_domains attribute.

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.

Parameters:



901
902
903
904
905
906
# File 'lib/ovirtsdk4/types.rb', line 901

def storage_domains=(value)
  if value.is_a?(Hash)
    value = ApiSummaryItem.new(value)
  end
  @storage_domains = value
end

- (ApiSummaryItem) users

Returns the value of the users attribute.

Returns:



913
914
915
# File 'lib/ovirtsdk4/types.rb', line 913

def users
  return @users
end

- (Object) users=(value)

Sets the value of the users attribute.

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.

Parameters:



926
927
928
929
930
931
# File 'lib/ovirtsdk4/types.rb', line 926

def users=(value)
  if value.is_a?(Hash)
    value = ApiSummaryItem.new(value)
  end
  @users = value
end

- (ApiSummaryItem) vms

Returns the value of the vms attribute.

Returns:



938
939
940
# File 'lib/ovirtsdk4/types.rb', line 938

def vms
  return @vms
end

- (Object) vms=(value)

Sets the value of the vms attribute.

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.

Parameters:



951
952
953
954
955
956
# File 'lib/ovirtsdk4/types.rb', line 951

def vms=(value)
  if value.is_a?(Hash)
    value = ApiSummaryItem.new(value)
  end
  @vms = value
end