Class: OvirtSDK4::ApiSummary
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::ApiSummary
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (ApiSummaryItem) hosts
Returns the value of the
hosts
attribute. -
- (Object) hosts=(value)
Sets the value of the
hosts
attribute. -
- (ApiSummary) initialize(opts = {})
constructor
Creates a new instance of the ApiSummary class.
-
- (ApiSummaryItem) storage_domains
Returns the value of the
storage_domains
attribute. -
- (Object) storage_domains=(value)
Sets the value of the
storage_domains
attribute. -
- (ApiSummaryItem) users
Returns the value of the
users
attribute. -
- (Object) users=(value)
Sets the value of the
users
attribute. -
- (ApiSummaryItem) vms
Returns the value of the
vms
attribute. -
- (Object) vms=(value)
Sets the value of the
vms
attribute.
Methods included from Type
Constructor Details
- (ApiSummary) initialize(opts = {})
Creates a new instance of the OvirtSDK4::ApiSummary class.
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.
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.
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.
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.
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.
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.
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.
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.
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 |