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.


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_configurationAgentConfiguration

Returns the value of the agent_configuration attribute.

Returns:


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.

Parameters:


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_urlString

Returns the value of the authentication_url attribute.

Returns:

  • (String)

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.

Parameters:

  • value (String)

54966
54967
54968
# File 'lib/ovirtsdk4/types.rb', line 54966

def authentication_url=(value)
  @authentication_url = value
end

#auto_syncBoolean

Returns the value of the auto_sync attribute.

Returns:

  • (Boolean)

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.

Parameters:

  • value (Boolean)

54984
54985
54986
# File 'lib/ovirtsdk4/types.rb', line 54984

def auto_sync=(value)
  @auto_sync = value
end

#certificatesArray<Certificate>

Returns the value of the certificates attribute.

Returns:


54993
54994
54995
# File 'lib/ovirtsdk4/types.rb', line 54993

def certificates
  @certificates
end

#certificates=(list) ⇒ Object

Sets the value of the certificates attribute.

Parameters:


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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

55019
55020
55021
# File 'lib/ovirtsdk4/types.rb', line 55019

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

55028
55029
55030
# File 'lib/ovirtsdk4/types.rb', line 55028

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

55037
55038
55039
# File 'lib/ovirtsdk4/types.rb', line 55037

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

55046
55047
55048
# File 'lib/ovirtsdk4/types.rb', line 55046

def description=(value)
  @description = value
end

#external_plugin_typeString

Returns the value of the external_plugin_type attribute.

Returns:

  • (String)

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.

Parameters:

  • value (String)

55064
55065
55066
# File 'lib/ovirtsdk4/types.rb', line 55064

def external_plugin_type=(value)
  @external_plugin_type = value
end

#hashObject

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)

55073
55074
55075
# File 'lib/ovirtsdk4/types.rb', line 55073

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

55082
55083
55084
# File 'lib/ovirtsdk4/types.rb', line 55082

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

55091
55092
55093
# File 'lib/ovirtsdk4/types.rb', line 55091

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

55100
55101
55102
# File 'lib/ovirtsdk4/types.rb', line 55100

def name=(value)
  @name = value
end

#networksArray<OpenStackNetwork>

Returns the value of the networks attribute.

Returns:


55109
55110
55111
# File 'lib/ovirtsdk4/types.rb', line 55109

def networks
  @networks
end

#networks=(list) ⇒ Object

Sets the value of the networks attribute.

Parameters:


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

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)

55135
55136
55137
# File 'lib/ovirtsdk4/types.rb', line 55135

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)

55144
55145
55146
# File 'lib/ovirtsdk4/types.rb', line 55144

def password=(value)
  @password = value
end

#plugin_typeNetworkPluginType

Returns the value of the plugin_type attribute.

Returns:


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.

Parameters:


55162
55163
55164
# File 'lib/ovirtsdk4/types.rb', line 55162

def plugin_type=(value)
  @plugin_type = value
end

#project_domain_nameString

Returns the value of the project_domain_name attribute.

Returns:

  • (String)

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.

Parameters:

  • value (String)

55180
55181
55182
# File 'lib/ovirtsdk4/types.rb', line 55180

def project_domain_name=(value)
  @project_domain_name = value
end

#project_nameString

Returns the value of the project_name attribute.

Returns:

  • (String)

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.

Parameters:

  • value (String)

55198
55199
55200
# File 'lib/ovirtsdk4/types.rb', line 55198

def project_name=(value)
  @project_name = value
end

#propertiesArray<Property>

Returns the value of the properties attribute.

Returns:


55207
55208
55209
# File 'lib/ovirtsdk4/types.rb', line 55207

def properties
  @properties
end

#properties=(list) ⇒ Object

Sets the value of the properties attribute.

Parameters:


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_onlyBoolean

Returns the value of the read_only attribute.

Returns:

  • (Boolean)

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.

Parameters:

  • value (Boolean)

55242
55243
55244
# File 'lib/ovirtsdk4/types.rb', line 55242

def read_only=(value)
  @read_only = value
end

#requires_authenticationBoolean

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)

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.

Parameters:

  • value (Boolean)

55260
55261
55262
# File 'lib/ovirtsdk4/types.rb', line 55260

def requires_authentication=(value)
  @requires_authentication = value
end

#subnetsArray<OpenStackSubnet>

Returns the value of the subnets attribute.

Returns:


55269
55270
55271
# File 'lib/ovirtsdk4/types.rb', line 55269

def subnets
  @subnets
end

#subnets=(list) ⇒ Object

Sets the value of the subnets attribute.

Parameters:


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_nameString

Returns the value of the tenant_name attribute.

Returns:

  • (String)

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.

Parameters:

  • value (String)

55304
55305
55306
# File 'lib/ovirtsdk4/types.rb', line 55304

def tenant_name=(value)
  @tenant_name = value
end

#typeOpenStackNetworkProviderType

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.

Parameters:


55322
55323
55324
# File 'lib/ovirtsdk4/types.rb', line 55322

def type=(value)
  @type = value
end

#unmanagedBoolean

Returns the value of the unmanaged attribute.

Returns:

  • (Boolean)

55331
55332
55333
# File 'lib/ovirtsdk4/types.rb', line 55331

def unmanaged
  @unmanaged
end

#unmanaged=(value) ⇒ Object

Sets the value of the unmanaged attribute.

Parameters:

  • value (Boolean)

55340
55341
55342
# File 'lib/ovirtsdk4/types.rb', line 55340

def unmanaged=(value)
  @unmanaged = value
end

#urlString

Returns the value of the url attribute.

Returns:

  • (String)

55349
55350
55351
# File 'lib/ovirtsdk4/types.rb', line 55349

def url
  @url
end

#url=(value) ⇒ Object

Sets the value of the url attribute.

Parameters:

  • value (String)

55358
55359
55360
# File 'lib/ovirtsdk4/types.rb', line 55358

def url=(value)
  @url = value
end

#user_domain_nameString

Returns the value of the user_domain_name attribute.

Returns:

  • (String)

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.

Parameters:

  • value (String)

55376
55377
55378
# File 'lib/ovirtsdk4/types.rb', line 55376

def user_domain_name=(value)
  @user_domain_name = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)

55385
55386
55387
# File 'lib/ovirtsdk4/types.rb', line 55385

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)

55394
55395
55396
# File 'lib/ovirtsdk4/types.rb', line 55394

def username=(value)
  @username = value
end