Class: OvirtSDK4::ExternalHostProvider
- Inherits:
-
ExternalProvider
- Object
- Struct
- Identified
- ExternalProvider
- OvirtSDK4::ExternalHostProvider
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#authentication_url ⇒ String
Returns the value of the
authentication_url
attribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_url
attribute. -
#certificates ⇒ Array<Certificate>
Returns the value of the
certificates
attribute. -
#certificates=(list) ⇒ Object
Sets the value of the
certificates
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the
compute_resources
attribute. -
#compute_resources=(list) ⇒ Object
Sets the value of the
compute_resources
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the
discovered_hosts
attribute. -
#discovered_hosts=(list) ⇒ Object
Sets the value of the
discovered_hosts
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_groups ⇒ Array<ExternalHostGroup>
Returns the value of the
host_groups
attribute. -
#host_groups=(list) ⇒ Object
Sets the value of the
host_groups
attribute. -
#hosts ⇒ Array<Host>
Returns the value of the
hosts
attribute. -
#hosts=(list) ⇒ Object
Sets the value of the
hosts
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ ExternalHostProvider
constructor
Creates a new instance of the ExternalHostProvider class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authentication
attribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authentication
attribute. -
#url ⇒ String
Returns the value of the
url
attribute. -
#url=(value) ⇒ Object
Sets the value of the
url
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ ExternalHostProvider
Creates a new instance of the OvirtSDK4::ExternalHostProvider class.
50235 50236 50237 50238 50239 50240 50241 50242 |
# File 'lib/ovirtsdk4/types.rb', line 50235 def initialize(opts = {}) super(opts) self.certificates = opts[:certificates] self.compute_resources = opts[:compute_resources] self.discovered_hosts = opts[:discovered_hosts] self.host_groups = opts[:host_groups] self.hosts = opts[:hosts] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
50247 50248 50249 50250 50251 50252 50253 50254 |
# File 'lib/ovirtsdk4/types.rb', line 50247 def ==(other) super && @certificates == other.certificates && @compute_resources == other.compute_resources && @discovered_hosts == other.discovered_hosts && @host_groups == other.host_groups && @hosts == other.hosts end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
49884 49885 49886 |
# File 'lib/ovirtsdk4/types.rb', line 49884 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
49893 49894 49895 |
# File 'lib/ovirtsdk4/types.rb', line 49893 def authentication_url=(value) @authentication_url = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
49902 49903 49904 |
# File 'lib/ovirtsdk4/types.rb', line 49902 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
49911 49912 49913 49914 49915 49916 49917 49918 49919 49920 49921 |
# File 'lib/ovirtsdk4/types.rb', line 49911 def certificates=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Certificate.new(value) end end end @certificates = list end |
#comment ⇒ String
Returns the value of the comment
attribute.
49928 49929 49930 |
# File 'lib/ovirtsdk4/types.rb', line 49928 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
49937 49938 49939 |
# File 'lib/ovirtsdk4/types.rb', line 49937 def comment=(value) @comment = value end |
#compute_resources ⇒ Array<ExternalComputeResource>
Returns the value of the compute_resources
attribute.
49946 49947 49948 |
# File 'lib/ovirtsdk4/types.rb', line 49946 def compute_resources @compute_resources end |
#compute_resources=(list) ⇒ Object
Sets the value of the compute_resources
attribute.
49955 49956 49957 49958 49959 49960 49961 49962 49963 49964 49965 |
# File 'lib/ovirtsdk4/types.rb', line 49955 def compute_resources=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalComputeResource.new(value) end end end @compute_resources = list end |
#description ⇒ String
Returns the value of the description
attribute.
49972 49973 49974 |
# File 'lib/ovirtsdk4/types.rb', line 49972 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
49981 49982 49983 |
# File 'lib/ovirtsdk4/types.rb', line 49981 def description=(value) @description = value end |
#discovered_hosts ⇒ Array<ExternalDiscoveredHost>
Returns the value of the discovered_hosts
attribute.
49990 49991 49992 |
# File 'lib/ovirtsdk4/types.rb', line 49990 def discovered_hosts @discovered_hosts end |
#discovered_hosts=(list) ⇒ Object
Sets the value of the discovered_hosts
attribute.
49999 50000 50001 50002 50003 50004 50005 50006 50007 50008 50009 |
# File 'lib/ovirtsdk4/types.rb', line 49999 def discovered_hosts=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalDiscoveredHost.new(value) end end end @discovered_hosts = list end |
#hash ⇒ Object
Generates a hash value for this object.
50259 50260 50261 50262 50263 50264 50265 50266 |
# File 'lib/ovirtsdk4/types.rb', line 50259 def hash super + @certificates.hash + @compute_resources.hash + @discovered_hosts.hash + @host_groups.hash + @hosts.hash end |
#host_groups ⇒ Array<ExternalHostGroup>
Returns the value of the host_groups
attribute.
50016 50017 50018 |
# File 'lib/ovirtsdk4/types.rb', line 50016 def host_groups @host_groups end |
#host_groups=(list) ⇒ Object
Sets the value of the host_groups
attribute.
50025 50026 50027 50028 50029 50030 50031 50032 50033 50034 50035 |
# File 'lib/ovirtsdk4/types.rb', line 50025 def host_groups=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ExternalHostGroup.new(value) end end end @host_groups = list end |
#hosts ⇒ Array<Host>
Returns the value of the hosts
attribute.
50042 50043 50044 |
# File 'lib/ovirtsdk4/types.rb', line 50042 def hosts @hosts end |
#hosts=(list) ⇒ Object
Sets the value of the hosts
attribute.
50051 50052 50053 50054 50055 50056 50057 50058 50059 50060 50061 |
# File 'lib/ovirtsdk4/types.rb', line 50051 def hosts=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Host.new(value) end end end @hosts = list end |
#id ⇒ String
Returns the value of the id
attribute.
50068 50069 50070 |
# File 'lib/ovirtsdk4/types.rb', line 50068 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
50077 50078 50079 |
# File 'lib/ovirtsdk4/types.rb', line 50077 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
50086 50087 50088 |
# File 'lib/ovirtsdk4/types.rb', line 50086 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
50095 50096 50097 |
# File 'lib/ovirtsdk4/types.rb', line 50095 def name=(value) @name = value end |
#password ⇒ String
Returns the value of the password
attribute.
50104 50105 50106 |
# File 'lib/ovirtsdk4/types.rb', line 50104 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
50113 50114 50115 |
# File 'lib/ovirtsdk4/types.rb', line 50113 def password=(value) @password = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
50122 50123 50124 |
# File 'lib/ovirtsdk4/types.rb', line 50122 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
50131 50132 50133 50134 50135 50136 50137 50138 50139 50140 50141 |
# File 'lib/ovirtsdk4/types.rb', line 50131 def 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 @properties = list end |
#requires_authentication ⇒ Boolean
Returns the value of the requires_authentication
attribute.
50148 50149 50150 |
# File 'lib/ovirtsdk4/types.rb', line 50148 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
50157 50158 50159 |
# File 'lib/ovirtsdk4/types.rb', line 50157 def requires_authentication=(value) @requires_authentication = value end |
#url ⇒ String
Returns the value of the url
attribute.
50166 50167 50168 |
# File 'lib/ovirtsdk4/types.rb', line 50166 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
50175 50176 50177 |
# File 'lib/ovirtsdk4/types.rb', line 50175 def url=(value) @url = value end |
#username ⇒ String
Returns the value of the username
attribute.
50184 50185 50186 |
# File 'lib/ovirtsdk4/types.rb', line 50184 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
50193 50194 50195 |
# File 'lib/ovirtsdk4/types.rb', line 50193 def username=(value) @username = value end |