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.



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_configurationAgentConfiguration

Returns the value of the agent_configuration attribute.

Returns:



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.

Parameters:



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_urlString

Returns the value of the authentication_url attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


53256
53257
53258
# File 'lib/ovirtsdk4/types.rb', line 53256

def authentication_url=(value)
  @authentication_url = value
end

#auto_syncBoolean

Returns the value of the auto_sync attribute.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


53274
53275
53276
# File 'lib/ovirtsdk4/types.rb', line 53274

def auto_sync=(value)
  @auto_sync = value
end

#certificatesArray<Certificate>

Returns the value of the certificates attribute.

Returns:



53283
53284
53285
# File 'lib/ovirtsdk4/types.rb', line 53283

def certificates
  @certificates
end

#certificates=(list) ⇒ Object

Sets the value of the certificates attribute.

Parameters:



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

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)


53309
53310
53311
# File 'lib/ovirtsdk4/types.rb', line 53309

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)


53318
53319
53320
# File 'lib/ovirtsdk4/types.rb', line 53318

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)


53327
53328
53329
# File 'lib/ovirtsdk4/types.rb', line 53327

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)


53336
53337
53338
# File 'lib/ovirtsdk4/types.rb', line 53336

def description=(value)
  @description = value
end

#external_plugin_typeString

Returns the value of the external_plugin_type attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


53354
53355
53356
# File 'lib/ovirtsdk4/types.rb', line 53354

def external_plugin_type=(value)
  @external_plugin_type = value
end

#hashObject

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

#idString

Returns the value of the id attribute.

Returns:

  • (String)


53363
53364
53365
# File 'lib/ovirtsdk4/types.rb', line 53363

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)


53372
53373
53374
# File 'lib/ovirtsdk4/types.rb', line 53372

def id=(value)
  @id = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)


53381
53382
53383
# File 'lib/ovirtsdk4/types.rb', line 53381

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)


53390
53391
53392
# File 'lib/ovirtsdk4/types.rb', line 53390

def name=(value)
  @name = value
end

#networksArray<OpenStackNetwork>

Returns the value of the networks attribute.

Returns:



53399
53400
53401
# File 'lib/ovirtsdk4/types.rb', line 53399

def networks
  @networks
end

#networks=(list) ⇒ Object

Sets the value of the networks attribute.

Parameters:



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

#passwordString

Returns the value of the password attribute.

Returns:

  • (String)


53425
53426
53427
# File 'lib/ovirtsdk4/types.rb', line 53425

def password
  @password
end

#password=(value) ⇒ Object

Sets the value of the password attribute.

Parameters:

  • value (String)


53434
53435
53436
# File 'lib/ovirtsdk4/types.rb', line 53434

def password=(value)
  @password = value
end

#plugin_typeNetworkPluginType

Returns the value of the plugin_type attribute.

Returns:



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.

Parameters:



53452
53453
53454
# File 'lib/ovirtsdk4/types.rb', line 53452

def plugin_type=(value)
  @plugin_type = value
end

#project_domain_nameString

Returns the value of the project_domain_name attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


53470
53471
53472
# File 'lib/ovirtsdk4/types.rb', line 53470

def project_domain_name=(value)
  @project_domain_name = value
end

#project_nameString

Returns the value of the project_name attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


53488
53489
53490
# File 'lib/ovirtsdk4/types.rb', line 53488

def project_name=(value)
  @project_name = value
end

#propertiesArray<Property>

Returns the value of the properties attribute.

Returns:



53497
53498
53499
# File 'lib/ovirtsdk4/types.rb', line 53497

def properties
  @properties
end

#properties=(list) ⇒ Object

Sets the value of the properties attribute.

Parameters:



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_onlyBoolean

Returns the value of the read_only attribute.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


53532
53533
53534
# File 'lib/ovirtsdk4/types.rb', line 53532

def read_only=(value)
  @read_only = value
end

#requires_authenticationBoolean

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


53550
53551
53552
# File 'lib/ovirtsdk4/types.rb', line 53550

def requires_authentication=(value)
  @requires_authentication = value
end

#subnetsArray<OpenStackSubnet>

Returns the value of the subnets attribute.

Returns:



53559
53560
53561
# File 'lib/ovirtsdk4/types.rb', line 53559

def subnets
  @subnets
end

#subnets=(list) ⇒ Object

Sets the value of the subnets attribute.

Parameters:



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_nameString

Returns the value of the tenant_name attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


53594
53595
53596
# File 'lib/ovirtsdk4/types.rb', line 53594

def tenant_name=(value)
  @tenant_name = value
end

#typeOpenStackNetworkProviderType

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.

Parameters:



53612
53613
53614
# File 'lib/ovirtsdk4/types.rb', line 53612

def type=(value)
  @type = value
end

#unmanagedBoolean

Returns the value of the unmanaged attribute.

Returns:

  • (Boolean)


53621
53622
53623
# File 'lib/ovirtsdk4/types.rb', line 53621

def unmanaged
  @unmanaged
end

#unmanaged=(value) ⇒ Object

Sets the value of the unmanaged attribute.

Parameters:

  • value (Boolean)


53630
53631
53632
# File 'lib/ovirtsdk4/types.rb', line 53630

def unmanaged=(value)
  @unmanaged = value
end

#urlString

Returns the value of the url attribute.

Returns:

  • (String)


53639
53640
53641
# File 'lib/ovirtsdk4/types.rb', line 53639

def url
  @url
end

#url=(value) ⇒ Object

Sets the value of the url attribute.

Parameters:

  • value (String)


53648
53649
53650
# File 'lib/ovirtsdk4/types.rb', line 53648

def url=(value)
  @url = value
end

#user_domain_nameString

Returns the value of the user_domain_name attribute.

Returns:

  • (String)


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.

Parameters:

  • value (String)


53666
53667
53668
# File 'lib/ovirtsdk4/types.rb', line 53666

def user_domain_name=(value)
  @user_domain_name = value
end

#usernameString

Returns the value of the username attribute.

Returns:

  • (String)


53675
53676
53677
# File 'lib/ovirtsdk4/types.rb', line 53675

def username
  @username
end

#username=(value) ⇒ Object

Sets the value of the username attribute.

Parameters:

  • value (String)


53684
53685
53686
# File 'lib/ovirtsdk4/types.rb', line 53684

def username=(value)
  @username = value
end