Class: OvirtSDK4::OpenStackNetworkProvider
- Inherits:
-
OpenStackProvider
- Object
- Struct
- Identified
- ExternalProvider
- OpenStackProvider
- OvirtSDK4::OpenStackNetworkProvider
- 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. -
#agent_configuration ⇒ AgentConfiguration
Returns the value of the
agent_configuration
attribute. -
#agent_configuration=(value) ⇒ Object
Sets the value of the
agent_configuration
attribute. -
#authentication_url ⇒ String
Returns the value of the
authentication_url
attribute. -
#authentication_url=(value) ⇒ Object
Sets the value of the
authentication_url
attribute. -
#auto_sync ⇒ Boolean
Returns the value of the
auto_sync
attribute. -
#auto_sync=(value) ⇒ Object
Sets the value of the
auto_sync
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. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#external_plugin_type ⇒ String
Returns the value of the
external_plugin_type
attribute. -
#external_plugin_type=(value) ⇒ Object
Sets the value of the
external_plugin_type
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ OpenStackNetworkProvider
constructor
Creates a new instance of the OpenStackNetworkProvider class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#networks ⇒ Array<OpenStackNetwork>
Returns the value of the
networks
attribute. -
#networks=(list) ⇒ Object
Sets the value of the
networks
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#plugin_type ⇒ NetworkPluginType
Returns the value of the
plugin_type
attribute. -
#plugin_type=(value) ⇒ Object
Sets the value of the
plugin_type
attribute. -
#project_domain_name ⇒ String
Returns the value of the
project_domain_name
attribute. -
#project_domain_name=(value) ⇒ Object
Sets the value of the
project_domain_name
attribute. -
#project_name ⇒ String
Returns the value of the
project_name
attribute. -
#project_name=(value) ⇒ Object
Sets the value of the
project_name
attribute. -
#properties ⇒ Array<Property>
Returns the value of the
properties
attribute. -
#properties=(list) ⇒ Object
Sets the value of the
properties
attribute. -
#read_only ⇒ Boolean
Returns the value of the
read_only
attribute. -
#read_only=(value) ⇒ Object
Sets the value of the
read_only
attribute. -
#requires_authentication ⇒ Boolean
Returns the value of the
requires_authentication
attribute. -
#requires_authentication=(value) ⇒ Object
Sets the value of the
requires_authentication
attribute. -
#subnets ⇒ Array<OpenStackSubnet>
Returns the value of the
subnets
attribute. -
#subnets=(list) ⇒ Object
Sets the value of the
subnets
attribute. -
#tenant_name ⇒ String
Returns the value of the
tenant_name
attribute. -
#tenant_name=(value) ⇒ Object
Sets the value of the
tenant_name
attribute. -
#type ⇒ OpenStackNetworkProviderType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#unmanaged ⇒ Boolean
Returns the value of the
unmanaged
attribute. -
#unmanaged=(value) ⇒ Object
Sets the value of the
unmanaged
attribute. -
#url ⇒ String
Returns the value of the
url
attribute. -
#url=(value) ⇒ Object
Sets the value of the
url
attribute. -
#user_domain_name ⇒ String
Returns the value of the
user_domain_name
attribute. -
#user_domain_name=(value) ⇒ Object
Sets the value of the
user_domain_name
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 = {}) ⇒ OpenStackNetworkProvider
Creates a new instance of the OvirtSDK4::OpenStackNetworkProvider class.
53744 53745 53746 53747 53748 53749 53750 53751 53752 53753 53754 53755 53756 53757 53758 53759 |
# File 'lib/ovirtsdk4/types.rb', line 53744 def initialize(opts = {}) super(opts) self.agent_configuration = opts[:agent_configuration] self.auto_sync = opts[:auto_sync] self.certificates = opts[:certificates] self.external_plugin_type = opts[:external_plugin_type] self.networks = opts[:networks] self.plugin_type = opts[:plugin_type] self.project_domain_name = opts[:project_domain_name] self.project_name = opts[:project_name] self.read_only = opts[:read_only] self.subnets = opts[:subnets] self.type = opts[:type] self.unmanaged = opts[:unmanaged] self.user_domain_name = opts[:user_domain_name] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
53764 53765 53766 53767 53768 53769 53770 53771 53772 53773 53774 53775 53776 53777 53778 53779 |
# File 'lib/ovirtsdk4/types.rb', line 53764 def ==(other) super && @agent_configuration == other.agent_configuration && @auto_sync == other.auto_sync && @certificates == other.certificates && @external_plugin_type == other.external_plugin_type && @networks == other.networks && @plugin_type == other.plugin_type && @project_domain_name == other.project_domain_name && @project_name == other.project_name && @read_only == other.read_only && @subnets == other.subnets && @type == other.type && @unmanaged == other.unmanaged && @user_domain_name == other.user_domain_name end |
#agent_configuration ⇒ AgentConfiguration
Returns the value of the agent_configuration
attribute.
53222 53223 53224 |
# File 'lib/ovirtsdk4/types.rb', line 53222 def agent_configuration @agent_configuration end |
#agent_configuration=(value) ⇒ Object
Sets the value of the agent_configuration
attribute.
The value
parameter can be an instance of AgentConfiguration 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.
53235 53236 53237 53238 53239 53240 |
# File 'lib/ovirtsdk4/types.rb', line 53235 def agent_configuration=(value) if value.is_a?(Hash) value = AgentConfiguration.new(value) end @agent_configuration = value end |
#authentication_url ⇒ String
Returns the value of the authentication_url
attribute.
53247 53248 53249 |
# File 'lib/ovirtsdk4/types.rb', line 53247 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
53256 53257 53258 |
# File 'lib/ovirtsdk4/types.rb', line 53256 def authentication_url=(value) @authentication_url = value end |
#auto_sync ⇒ Boolean
Returns the value of the auto_sync
attribute.
53265 53266 53267 |
# File 'lib/ovirtsdk4/types.rb', line 53265 def auto_sync @auto_sync end |
#auto_sync=(value) ⇒ Object
Sets the value of the auto_sync
attribute.
53274 53275 53276 |
# File 'lib/ovirtsdk4/types.rb', line 53274 def auto_sync=(value) @auto_sync = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
53283 53284 53285 |
# File 'lib/ovirtsdk4/types.rb', line 53283 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
53292 53293 53294 53295 53296 53297 53298 53299 53300 53301 53302 |
# File 'lib/ovirtsdk4/types.rb', line 53292 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.
53309 53310 53311 |
# File 'lib/ovirtsdk4/types.rb', line 53309 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
53318 53319 53320 |
# File 'lib/ovirtsdk4/types.rb', line 53318 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
53327 53328 53329 |
# File 'lib/ovirtsdk4/types.rb', line 53327 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
53336 53337 53338 |
# File 'lib/ovirtsdk4/types.rb', line 53336 def description=(value) @description = value end |
#external_plugin_type ⇒ String
Returns the value of the external_plugin_type
attribute.
53345 53346 53347 |
# File 'lib/ovirtsdk4/types.rb', line 53345 def external_plugin_type @external_plugin_type end |
#external_plugin_type=(value) ⇒ Object
Sets the value of the external_plugin_type
attribute.
53354 53355 53356 |
# File 'lib/ovirtsdk4/types.rb', line 53354 def external_plugin_type=(value) @external_plugin_type = value end |
#hash ⇒ Object
Generates a hash value for this object.
53784 53785 53786 53787 53788 53789 53790 53791 53792 53793 53794 53795 53796 53797 53798 53799 |
# File 'lib/ovirtsdk4/types.rb', line 53784 def hash super + @agent_configuration.hash + @auto_sync.hash + @certificates.hash + @external_plugin_type.hash + @networks.hash + @plugin_type.hash + @project_domain_name.hash + @project_name.hash + @read_only.hash + @subnets.hash + @type.hash + @unmanaged.hash + @user_domain_name.hash end |
#id ⇒ String
Returns the value of the id
attribute.
53363 53364 53365 |
# File 'lib/ovirtsdk4/types.rb', line 53363 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
53372 53373 53374 |
# File 'lib/ovirtsdk4/types.rb', line 53372 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
53381 53382 53383 |
# File 'lib/ovirtsdk4/types.rb', line 53381 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
53390 53391 53392 |
# File 'lib/ovirtsdk4/types.rb', line 53390 def name=(value) @name = value end |
#networks ⇒ Array<OpenStackNetwork>
Returns the value of the networks
attribute.
53399 53400 53401 |
# File 'lib/ovirtsdk4/types.rb', line 53399 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks
attribute.
53408 53409 53410 53411 53412 53413 53414 53415 53416 53417 53418 |
# File 'lib/ovirtsdk4/types.rb', line 53408 def networks=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = OpenStackNetwork.new(value) end end end @networks = list end |
#password ⇒ String
Returns the value of the password
attribute.
53425 53426 53427 |
# File 'lib/ovirtsdk4/types.rb', line 53425 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
53434 53435 53436 |
# File 'lib/ovirtsdk4/types.rb', line 53434 def password=(value) @password = value end |
#plugin_type ⇒ NetworkPluginType
Returns the value of the plugin_type
attribute.
53443 53444 53445 |
# File 'lib/ovirtsdk4/types.rb', line 53443 def plugin_type @plugin_type end |
#plugin_type=(value) ⇒ Object
Sets the value of the plugin_type
attribute.
53452 53453 53454 |
# File 'lib/ovirtsdk4/types.rb', line 53452 def plugin_type=(value) @plugin_type = value end |
#project_domain_name ⇒ String
Returns the value of the project_domain_name
attribute.
53461 53462 53463 |
# File 'lib/ovirtsdk4/types.rb', line 53461 def project_domain_name @project_domain_name end |
#project_domain_name=(value) ⇒ Object
Sets the value of the project_domain_name
attribute.
53470 53471 53472 |
# File 'lib/ovirtsdk4/types.rb', line 53470 def project_domain_name=(value) @project_domain_name = value end |
#project_name ⇒ String
Returns the value of the project_name
attribute.
53479 53480 53481 |
# File 'lib/ovirtsdk4/types.rb', line 53479 def project_name @project_name end |
#project_name=(value) ⇒ Object
Sets the value of the project_name
attribute.
53488 53489 53490 |
# File 'lib/ovirtsdk4/types.rb', line 53488 def project_name=(value) @project_name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
53497 53498 53499 |
# File 'lib/ovirtsdk4/types.rb', line 53497 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
53506 53507 53508 53509 53510 53511 53512 53513 53514 53515 53516 |
# File 'lib/ovirtsdk4/types.rb', line 53506 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 |
#read_only ⇒ Boolean
Returns the value of the read_only
attribute.
53523 53524 53525 |
# File 'lib/ovirtsdk4/types.rb', line 53523 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
53532 53533 53534 |
# File 'lib/ovirtsdk4/types.rb', line 53532 def read_only=(value) @read_only = value end |
#requires_authentication ⇒ Boolean
Returns the value of the requires_authentication
attribute.
53541 53542 53543 |
# File 'lib/ovirtsdk4/types.rb', line 53541 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
53550 53551 53552 |
# File 'lib/ovirtsdk4/types.rb', line 53550 def requires_authentication=(value) @requires_authentication = value end |
#subnets ⇒ Array<OpenStackSubnet>
Returns the value of the subnets
attribute.
53559 53560 53561 |
# File 'lib/ovirtsdk4/types.rb', line 53559 def subnets @subnets end |
#subnets=(list) ⇒ Object
Sets the value of the subnets
attribute.
53568 53569 53570 53571 53572 53573 53574 53575 53576 53577 53578 |
# File 'lib/ovirtsdk4/types.rb', line 53568 def subnets=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = OpenStackSubnet.new(value) end end end @subnets = list end |
#tenant_name ⇒ String
Returns the value of the tenant_name
attribute.
53585 53586 53587 |
# File 'lib/ovirtsdk4/types.rb', line 53585 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
53594 53595 53596 |
# File 'lib/ovirtsdk4/types.rb', line 53594 def tenant_name=(value) @tenant_name = value end |
#type ⇒ OpenStackNetworkProviderType
Returns the value of the type
attribute.
53603 53604 53605 |
# File 'lib/ovirtsdk4/types.rb', line 53603 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
53612 53613 53614 |
# File 'lib/ovirtsdk4/types.rb', line 53612 def type=(value) @type = value end |
#unmanaged ⇒ Boolean
Returns the value of the unmanaged
attribute.
53621 53622 53623 |
# File 'lib/ovirtsdk4/types.rb', line 53621 def unmanaged @unmanaged end |
#unmanaged=(value) ⇒ Object
Sets the value of the unmanaged
attribute.
53630 53631 53632 |
# File 'lib/ovirtsdk4/types.rb', line 53630 def unmanaged=(value) @unmanaged = value end |
#url ⇒ String
Returns the value of the url
attribute.
53639 53640 53641 |
# File 'lib/ovirtsdk4/types.rb', line 53639 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
53648 53649 53650 |
# File 'lib/ovirtsdk4/types.rb', line 53648 def url=(value) @url = value end |
#user_domain_name ⇒ String
Returns the value of the user_domain_name
attribute.
53657 53658 53659 |
# File 'lib/ovirtsdk4/types.rb', line 53657 def user_domain_name @user_domain_name end |
#user_domain_name=(value) ⇒ Object
Sets the value of the user_domain_name
attribute.
53666 53667 53668 |
# File 'lib/ovirtsdk4/types.rb', line 53666 def user_domain_name=(value) @user_domain_name = value end |
#username ⇒ String
Returns the value of the username
attribute.
53675 53676 53677 |
# File 'lib/ovirtsdk4/types.rb', line 53675 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
53684 53685 53686 |
# File 'lib/ovirtsdk4/types.rb', line 53684 def username=(value) @username = value end |