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.
55454 55455 55456 55457 55458 55459 55460 55461 55462 55463 55464 55465 55466 55467 55468 55469 |
# File 'lib/ovirtsdk4/types.rb', line 55454 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.
55474 55475 55476 55477 55478 55479 55480 55481 55482 55483 55484 55485 55486 55487 55488 55489 |
# File 'lib/ovirtsdk4/types.rb', line 55474 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.
54932 54933 54934 |
# File 'lib/ovirtsdk4/types.rb', line 54932 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.
54945 54946 54947 54948 54949 54950 |
# File 'lib/ovirtsdk4/types.rb', line 54945 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.
54957 54958 54959 |
# File 'lib/ovirtsdk4/types.rb', line 54957 def authentication_url @authentication_url end |
#authentication_url=(value) ⇒ Object
Sets the value of the authentication_url
attribute.
54966 54967 54968 |
# File 'lib/ovirtsdk4/types.rb', line 54966 def authentication_url=(value) @authentication_url = value end |
#auto_sync ⇒ Boolean
Returns the value of the auto_sync
attribute.
54975 54976 54977 |
# File 'lib/ovirtsdk4/types.rb', line 54975 def auto_sync @auto_sync end |
#auto_sync=(value) ⇒ Object
Sets the value of the auto_sync
attribute.
54984 54985 54986 |
# File 'lib/ovirtsdk4/types.rb', line 54984 def auto_sync=(value) @auto_sync = value end |
#certificates ⇒ Array<Certificate>
Returns the value of the certificates
attribute.
54993 54994 54995 |
# File 'lib/ovirtsdk4/types.rb', line 54993 def certificates @certificates end |
#certificates=(list) ⇒ Object
Sets the value of the certificates
attribute.
55002 55003 55004 55005 55006 55007 55008 55009 55010 55011 55012 |
# File 'lib/ovirtsdk4/types.rb', line 55002 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.
55019 55020 55021 |
# File 'lib/ovirtsdk4/types.rb', line 55019 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
55028 55029 55030 |
# File 'lib/ovirtsdk4/types.rb', line 55028 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
55037 55038 55039 |
# File 'lib/ovirtsdk4/types.rb', line 55037 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
55046 55047 55048 |
# File 'lib/ovirtsdk4/types.rb', line 55046 def description=(value) @description = value end |
#external_plugin_type ⇒ String
Returns the value of the external_plugin_type
attribute.
55055 55056 55057 |
# File 'lib/ovirtsdk4/types.rb', line 55055 def external_plugin_type @external_plugin_type end |
#external_plugin_type=(value) ⇒ Object
Sets the value of the external_plugin_type
attribute.
55064 55065 55066 |
# File 'lib/ovirtsdk4/types.rb', line 55064 def external_plugin_type=(value) @external_plugin_type = value end |
#hash ⇒ Object
Generates a hash value for this object.
55494 55495 55496 55497 55498 55499 55500 55501 55502 55503 55504 55505 55506 55507 55508 55509 |
# File 'lib/ovirtsdk4/types.rb', line 55494 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.
55073 55074 55075 |
# File 'lib/ovirtsdk4/types.rb', line 55073 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
55082 55083 55084 |
# File 'lib/ovirtsdk4/types.rb', line 55082 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
55091 55092 55093 |
# File 'lib/ovirtsdk4/types.rb', line 55091 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
55100 55101 55102 |
# File 'lib/ovirtsdk4/types.rb', line 55100 def name=(value) @name = value end |
#networks ⇒ Array<OpenStackNetwork>
Returns the value of the networks
attribute.
55109 55110 55111 |
# File 'lib/ovirtsdk4/types.rb', line 55109 def networks @networks end |
#networks=(list) ⇒ Object
Sets the value of the networks
attribute.
55118 55119 55120 55121 55122 55123 55124 55125 55126 55127 55128 |
# File 'lib/ovirtsdk4/types.rb', line 55118 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.
55135 55136 55137 |
# File 'lib/ovirtsdk4/types.rb', line 55135 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
55144 55145 55146 |
# File 'lib/ovirtsdk4/types.rb', line 55144 def password=(value) @password = value end |
#plugin_type ⇒ NetworkPluginType
Returns the value of the plugin_type
attribute.
55153 55154 55155 |
# File 'lib/ovirtsdk4/types.rb', line 55153 def plugin_type @plugin_type end |
#plugin_type=(value) ⇒ Object
Sets the value of the plugin_type
attribute.
55162 55163 55164 |
# File 'lib/ovirtsdk4/types.rb', line 55162 def plugin_type=(value) @plugin_type = value end |
#project_domain_name ⇒ String
Returns the value of the project_domain_name
attribute.
55171 55172 55173 |
# File 'lib/ovirtsdk4/types.rb', line 55171 def project_domain_name @project_domain_name end |
#project_domain_name=(value) ⇒ Object
Sets the value of the project_domain_name
attribute.
55180 55181 55182 |
# File 'lib/ovirtsdk4/types.rb', line 55180 def project_domain_name=(value) @project_domain_name = value end |
#project_name ⇒ String
Returns the value of the project_name
attribute.
55189 55190 55191 |
# File 'lib/ovirtsdk4/types.rb', line 55189 def project_name @project_name end |
#project_name=(value) ⇒ Object
Sets the value of the project_name
attribute.
55198 55199 55200 |
# File 'lib/ovirtsdk4/types.rb', line 55198 def project_name=(value) @project_name = value end |
#properties ⇒ Array<Property>
Returns the value of the properties
attribute.
55207 55208 55209 |
# File 'lib/ovirtsdk4/types.rb', line 55207 def properties @properties end |
#properties=(list) ⇒ Object
Sets the value of the properties
attribute.
55216 55217 55218 55219 55220 55221 55222 55223 55224 55225 55226 |
# File 'lib/ovirtsdk4/types.rb', line 55216 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.
55233 55234 55235 |
# File 'lib/ovirtsdk4/types.rb', line 55233 def read_only @read_only end |
#read_only=(value) ⇒ Object
Sets the value of the read_only
attribute.
55242 55243 55244 |
# File 'lib/ovirtsdk4/types.rb', line 55242 def read_only=(value) @read_only = value end |
#requires_authentication ⇒ Boolean
Returns the value of the requires_authentication
attribute.
55251 55252 55253 |
# File 'lib/ovirtsdk4/types.rb', line 55251 def requires_authentication @requires_authentication end |
#requires_authentication=(value) ⇒ Object
Sets the value of the requires_authentication
attribute.
55260 55261 55262 |
# File 'lib/ovirtsdk4/types.rb', line 55260 def requires_authentication=(value) @requires_authentication = value end |
#subnets ⇒ Array<OpenStackSubnet>
Returns the value of the subnets
attribute.
55269 55270 55271 |
# File 'lib/ovirtsdk4/types.rb', line 55269 def subnets @subnets end |
#subnets=(list) ⇒ Object
Sets the value of the subnets
attribute.
55278 55279 55280 55281 55282 55283 55284 55285 55286 55287 55288 |
# File 'lib/ovirtsdk4/types.rb', line 55278 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.
55295 55296 55297 |
# File 'lib/ovirtsdk4/types.rb', line 55295 def tenant_name @tenant_name end |
#tenant_name=(value) ⇒ Object
Sets the value of the tenant_name
attribute.
55304 55305 55306 |
# File 'lib/ovirtsdk4/types.rb', line 55304 def tenant_name=(value) @tenant_name = value end |
#type ⇒ OpenStackNetworkProviderType
Returns the value of the type
attribute.
55313 55314 55315 |
# File 'lib/ovirtsdk4/types.rb', line 55313 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
55322 55323 55324 |
# File 'lib/ovirtsdk4/types.rb', line 55322 def type=(value) @type = value end |
#unmanaged ⇒ Boolean
Returns the value of the unmanaged
attribute.
55331 55332 55333 |
# File 'lib/ovirtsdk4/types.rb', line 55331 def unmanaged @unmanaged end |
#unmanaged=(value) ⇒ Object
Sets the value of the unmanaged
attribute.
55340 55341 55342 |
# File 'lib/ovirtsdk4/types.rb', line 55340 def unmanaged=(value) @unmanaged = value end |
#url ⇒ String
Returns the value of the url
attribute.
55349 55350 55351 |
# File 'lib/ovirtsdk4/types.rb', line 55349 def url @url end |
#url=(value) ⇒ Object
Sets the value of the url
attribute.
55358 55359 55360 |
# File 'lib/ovirtsdk4/types.rb', line 55358 def url=(value) @url = value end |
#user_domain_name ⇒ String
Returns the value of the user_domain_name
attribute.
55367 55368 55369 |
# File 'lib/ovirtsdk4/types.rb', line 55367 def user_domain_name @user_domain_name end |
#user_domain_name=(value) ⇒ Object
Sets the value of the user_domain_name
attribute.
55376 55377 55378 |
# File 'lib/ovirtsdk4/types.rb', line 55376 def user_domain_name=(value) @user_domain_name = value end |
#username ⇒ String
Returns the value of the username
attribute.
55385 55386 55387 |
# File 'lib/ovirtsdk4/types.rb', line 55385 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
55394 55395 55396 |
# File 'lib/ovirtsdk4/types.rb', line 55394 def username=(value) @username = value end |