Class: OvirtSDK4::OpenStackNetworkProvider

Inherits:
OpenStackProvider show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ OpenStackNetworkProvider

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

  • :agent_configuration (AgentConfiguration, Hash)

    The value of attribute agent_configuration.

  • :authentication_url (String)

    The value of attribute authentication_url.

  • :auto_sync (Boolean)

    The value of attribute auto_sync.

  • :certificates (Array<Certificate>, Array<Hash>)

    The values of attribute certificates.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :external_plugin_type (String)

    The value of attribute external_plugin_type.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :networks (Array<OpenStackNetwork>, Array<Hash>)

    The values of attribute networks.

  • :password (String)

    The value of attribute password.

  • :plugin_type (NetworkPluginType)

    The value of attribute plugin_type.

  • :project_domain_name (String)

    The value of attribute project_domain_name.

  • :project_name (String)

    The value of attribute project_name.

  • :properties (Array<Property>, Array<Hash>)

    The values of attribute properties.

  • :read_only (Boolean)

    The value of attribute read_only.

  • :requires_authentication (Boolean)

    The value of attribute requires_authentication.

  • :subnets (Array<OpenStackSubnet>, Array<Hash>)

    The values of attribute subnets.

  • :tenant_name (String)

    The value of attribute tenant_name.

  • :type (OpenStackNetworkProviderType)

    The value of attribute type.

  • :unmanaged (Boolean)

    The value of attribute unmanaged.

  • :url (String)

    The value of attribute url.

  • :user_domain_name (String)

    The value of attribute user_domain_name.

  • :username (String)

    The value of attribute username.


54488
54489
54490
54491
54492
54493
54494
54495
54496
54497
54498
54499
54500
54501
54502
54503
# File 'lib/ovirtsdk4/types.rb', line 54488

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.


54508
54509
54510
54511
54512
54513
54514
54515
54516
54517
54518
54519
54520
54521
54522
54523
# File 'lib/ovirtsdk4/types.rb', line 54508

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_configurationAgentConfiguration

Returns the value of the agent_configuration attribute.

Returns:


53966
53967
53968
# File 'lib/ovirtsdk4/types.rb', line 53966

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.

Parameters:


53979
53980
53981
53982
53983
53984
# File 'lib/ovirtsdk4/types.rb', line 53979

def agent_configuration=(value)
  if value.is_a?(Hash)
    value = AgentConfiguration.new(value)
  end
  @agent_configuration = value
end

#authentication_urlString

Returns the value of the authentication_url attribute.

Returns:

  • (String)

53991
53992
53993
# File 'lib/ovirtsdk4/types.rb', line 53991

def authentication_url
  @authentication_url
end

#authentication_url=(value) ⇒ Object

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)

54000
54001
54002
# File 'lib/ovirtsdk4/types.rb', line 54000

def authentication_url=(value)
  @authentication_url = value
end

#auto_syncBoolean

Returns the value of the auto_sync attribute.

Returns:

  • (Boolean)

54009
54010
54011
# File 'lib/ovirtsdk4/types.rb', line 54009

def auto_sync
  @auto_sync
end

#auto_sync=(value) ⇒ Object

Sets the value of the auto_sync attribute.

Parameters:

  • value (Boolean)

54018
54019
54020
# File 'lib/ovirtsdk4/types.rb', line 54018

def auto_sync=(value)
  @auto_sync = value
end

#certificatesArray<Certificate>

Returns the value of the certificates attribute.

Returns:


54027
54028
54029
# File 'lib/ovirtsdk4/types.rb', line 54027

def certificates
  @certificates
end

#certificates=(list) ⇒ Object

Sets the value of the certificates attribute.

Parameters:


54036
54037
54038
54039
54040
54041
54042
54043
54044
54045
54046
# File 'lib/ovirtsdk4/types.rb', line 54036

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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

54053
54054
54055
# File 'lib/ovirtsdk4/types.rb', line 54053

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

54062
54063
54064
# File 'lib/ovirtsdk4/types.rb', line 54062

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

54071
54072
54073
# File 'lib/ovirtsdk4/types.rb', line 54071

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

54080
54081
54082
# File 'lib/ovirtsdk4/types.rb', line 54080

def description=(value)
  @description = value
end

#external_plugin_typeString

Returns the value of the external_plugin_type attribute.

Returns:

  • (String)

54089
54090
54091
# File 'lib/ovirtsdk4/types.rb', line 54089

def external_plugin_type
  @external_plugin_type
end

#external_plugin_type=(value) ⇒ Object

Sets the value of the external_plugin_type attribute.

Parameters:

  • value (String)

54098
54099
54100
# File 'lib/ovirtsdk4/types.rb', line 54098

def external_plugin_type=(value)
  @external_plugin_type = value
end

#hashObject

Generates a hash value for this object.


54528
54529
54530
54531
54532
54533
54534
54535
54536
54537
54538
54539
54540
54541
54542
54543
# File 'lib/ovirtsdk4/types.rb', line 54528

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)

54107
54108
54109
# File 'lib/ovirtsdk4/types.rb', line 54107

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

54116
54117
54118
# File 'lib/ovirtsdk4/types.rb', line 54116

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

54125
54126
54127
# File 'lib/ovirtsdk4/types.rb', line 54125

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

54134
54135
54136
# File 'lib/ovirtsdk4/types.rb', line 54134

def name=(value)
  @name = value
end

#networksArray<OpenStackNetwork>

Returns the value of the networks attribute.

Returns:


54143
54144
54145
# File 'lib/ovirtsdk4/types.rb', line 54143

def networks
  @networks
end

#networks=(list) ⇒ Object

Sets the value of the networks attribute.

Parameters:


54152
54153
54154
54155
54156
54157
54158
54159
54160
54161
54162
# File 'lib/ovirtsdk4/types.rb', line 54152

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

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)

54169
54170
54171
# File 'lib/ovirtsdk4/types.rb', line 54169

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)

54178
54179
54180
# File 'lib/ovirtsdk4/types.rb', line 54178

def password=(value)
  @password = value
end

#plugin_typeNetworkPluginType

Returns the value of the plugin_type attribute.

Returns:


54187
54188
54189
# File 'lib/ovirtsdk4/types.rb', line 54187

def plugin_type
  @plugin_type
end

#plugin_type=(value) ⇒ Object

Sets the value of the plugin_type attribute.

Parameters:


54196
54197
54198
# File 'lib/ovirtsdk4/types.rb', line 54196

def plugin_type=(value)
  @plugin_type = value
end

#project_domain_nameString

Returns the value of the project_domain_name attribute.

Returns:

  • (String)

54205
54206
54207
# File 'lib/ovirtsdk4/types.rb', line 54205

def project_domain_name
  @project_domain_name
end

#project_domain_name=(value) ⇒ Object

Sets the value of the project_domain_name attribute.

Parameters:

  • value (String)

54214
54215
54216
# File 'lib/ovirtsdk4/types.rb', line 54214

def project_domain_name=(value)
  @project_domain_name = value
end

#project_nameString

Returns the value of the project_name attribute.

Returns:

  • (String)

54223
54224
54225
# File 'lib/ovirtsdk4/types.rb', line 54223

def project_name
  @project_name
end

#project_name=(value) ⇒ Object

Sets the value of the project_name attribute.

Parameters:

  • value (String)

54232
54233
54234
# File 'lib/ovirtsdk4/types.rb', line 54232

def project_name=(value)
  @project_name = value
end

#propertiesArray<Property>

Returns the value of the properties attribute.

Returns:


54241
54242
54243
# File 'lib/ovirtsdk4/types.rb', line 54241

def properties
  @properties
end

#properties=(list) ⇒ Object

Sets the value of the properties attribute.

Parameters:


54250
54251
54252
54253
54254
54255
54256
54257
54258
54259
54260
# File 'lib/ovirtsdk4/types.rb', line 54250

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_onlyBoolean

Returns the value of the read_only attribute.

Returns:

  • (Boolean)

54267
54268
54269
# File 'lib/ovirtsdk4/types.rb', line 54267

def read_only
  @read_only
end

#read_only=(value) ⇒ Object

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)

54276
54277
54278
# File 'lib/ovirtsdk4/types.rb', line 54276

def read_only=(value)
  @read_only = value
end

#requires_authenticationBoolean

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)

54285
54286
54287
# File 'lib/ovirtsdk4/types.rb', line 54285

def requires_authentication
  @requires_authentication
end

#requires_authentication=(value) ⇒ Object

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)

54294
54295
54296
# File 'lib/ovirtsdk4/types.rb', line 54294

def requires_authentication=(value)
  @requires_authentication = value
end

#subnetsArray<OpenStackSubnet>

Returns the value of the subnets attribute.

Returns:


54303
54304
54305
# File 'lib/ovirtsdk4/types.rb', line 54303

def subnets
  @subnets
end

#subnets=(list) ⇒ Object

Sets the value of the subnets attribute.

Parameters:


54312
54313
54314
54315
54316
54317
54318
54319
54320
54321
54322
# File 'lib/ovirtsdk4/types.rb', line 54312

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_nameString

Returns the value of the tenant_name attribute.

Returns:

  • (String)

54329
54330
54331
# File 'lib/ovirtsdk4/types.rb', line 54329

def tenant_name
  @tenant_name
end

#tenant_name=(value) ⇒ Object

Sets the value of the tenant_name attribute.

Parameters:

  • value (String)

54338
54339
54340
# File 'lib/ovirtsdk4/types.rb', line 54338

def tenant_name=(value)
  @tenant_name = value
end

#typeOpenStackNetworkProviderType

Returns the value of the type attribute.


54347
54348
54349
# File 'lib/ovirtsdk4/types.rb', line 54347

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:


54356
54357
54358
# File 'lib/ovirtsdk4/types.rb', line 54356

def type=(value)
  @type = value
end

#unmanagedBoolean

Returns the value of the unmanaged attribute.

Returns:

  • (Boolean)

54365
54366
54367
# File 'lib/ovirtsdk4/types.rb', line 54365

def unmanaged
  @unmanaged
end

#unmanaged=(value) ⇒ Object

Sets the value of the unmanaged attribute.

Parameters:

  • value (Boolean)

54374
54375
54376
# File 'lib/ovirtsdk4/types.rb', line 54374

def unmanaged=(value)
  @unmanaged = value
end

#urlString

Returns the value of the url attribute.

Returns:

  • (String)

54383
54384
54385
# File 'lib/ovirtsdk4/types.rb', line 54383

def url
  @url
end

#url=(value) ⇒ Object

Sets the value of the url attribute.

Parameters:

  • value (String)

54392
54393
54394
# File 'lib/ovirtsdk4/types.rb', line 54392

def url=(value)
  @url = value
end

#user_domain_nameString

Returns the value of the user_domain_name attribute.

Returns:

  • (String)

54401
54402
54403
# File 'lib/ovirtsdk4/types.rb', line 54401

def user_domain_name
  @user_domain_name
end

#user_domain_name=(value) ⇒ Object

Sets the value of the user_domain_name attribute.

Parameters:

  • value (String)

54410
54411
54412
# File 'lib/ovirtsdk4/types.rb', line 54410

def user_domain_name=(value)
  @user_domain_name = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)

54419
54420
54421
# File 'lib/ovirtsdk4/types.rb', line 54419

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)

54428
54429
54430
# File 'lib/ovirtsdk4/types.rb', line 54428

def username=(value)
  @username = value
end