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

#href, #href=

Constructor Details

- (OpenStackNetworkProvider) initialize(opts = {})

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.

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

    The values of attribute certificates.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :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.

  • :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.

  • :url (String)

    The value of attribute url.

  • :username (String)

    The value of attribute username.



43325
43326
43327
43328
43329
43330
43331
43332
43333
43334
43335
43336
43337
43338
43339
43340
43341
43342
43343
43344
43345
# File 'lib/ovirtsdk4/types.rb', line 43325

def initialize(opts = {})
  super(opts)
  self.agent_configuration = opts[:agent_configuration]
  self.authentication_url = opts[:authentication_url]
  self.certificates = opts[:certificates]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.id = opts[:id]
  self.name = opts[:name]
  self.networks = opts[:networks]
  self.password = opts[:password]
  self.plugin_type = opts[:plugin_type]
  self.properties = opts[:properties]
  self.read_only = opts[:read_only]
  self.requires_authentication = opts[:requires_authentication]
  self.subnets = opts[:subnets]
  self.tenant_name = opts[:tenant_name]
  self.type = opts[:type]
  self.url = opts[:url]
  self.username = opts[:username]
end

Instance Method Details

- (AgentConfiguration) agent_configuration

Returns the value of the agent_configuration attribute.

Returns:



42927
42928
42929
# File 'lib/ovirtsdk4/types.rb', line 42927

def agent_configuration
  return @agent_configuration
end

- (Object) agent_configuration=(value)

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:



42940
42941
42942
42943
42944
42945
# File 'lib/ovirtsdk4/types.rb', line 42940

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

- (String) authentication_url

Returns the value of the authentication_url attribute.

Returns:

  • (String)


42952
42953
42954
# File 'lib/ovirtsdk4/types.rb', line 42952

def authentication_url
  return @authentication_url
end

- (Object) authentication_url=(value)

Sets the value of the authentication_url attribute.

Parameters:

  • value (String)


42961
42962
42963
# File 'lib/ovirtsdk4/types.rb', line 42961

def authentication_url=(value)
  @authentication_url = value
end

- (Array<Certificate>) certificates

Returns the value of the certificates attribute.

Returns:



42970
42971
42972
# File 'lib/ovirtsdk4/types.rb', line 42970

def certificates
  return @certificates
end

- (Object) certificates=(list)

Sets the value of the certificates attribute.

Parameters:



42978
42979
42980
42981
42982
42983
42984
42985
42986
42987
42988
# File 'lib/ovirtsdk4/types.rb', line 42978

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

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


42995
42996
42997
# File 'lib/ovirtsdk4/types.rb', line 42995

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


43004
43005
43006
# File 'lib/ovirtsdk4/types.rb', line 43004

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


43013
43014
43015
# File 'lib/ovirtsdk4/types.rb', line 43013

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


43022
43023
43024
# File 'lib/ovirtsdk4/types.rb', line 43022

def description=(value)
  @description = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


43031
43032
43033
# File 'lib/ovirtsdk4/types.rb', line 43031

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


43040
43041
43042
# File 'lib/ovirtsdk4/types.rb', line 43040

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


43049
43050
43051
# File 'lib/ovirtsdk4/types.rb', line 43049

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


43058
43059
43060
# File 'lib/ovirtsdk4/types.rb', line 43058

def name=(value)
  @name = value
end

- (Array<OpenStackNetwork>) networks

Returns the value of the networks attribute.

Returns:



43067
43068
43069
# File 'lib/ovirtsdk4/types.rb', line 43067

def networks
  return @networks
end

- (Object) networks=(list)

Sets the value of the networks attribute.

Parameters:



43075
43076
43077
43078
43079
43080
43081
43082
43083
43084
43085
# File 'lib/ovirtsdk4/types.rb', line 43075

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

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


43092
43093
43094
# File 'lib/ovirtsdk4/types.rb', line 43092

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


43101
43102
43103
# File 'lib/ovirtsdk4/types.rb', line 43101

def password=(value)
  @password = value
end

- (NetworkPluginType) plugin_type

Returns the value of the plugin_type attribute.

Returns:



43110
43111
43112
# File 'lib/ovirtsdk4/types.rb', line 43110

def plugin_type
  return @plugin_type
end

- (Object) plugin_type=(value)

Sets the value of the plugin_type attribute.

Parameters:



43119
43120
43121
# File 'lib/ovirtsdk4/types.rb', line 43119

def plugin_type=(value)
  @plugin_type = value
end

- (Array<Property>) properties

Returns the value of the properties attribute.

Returns:



43128
43129
43130
# File 'lib/ovirtsdk4/types.rb', line 43128

def properties
  return @properties
end

- (Object) properties=(list)

Sets the value of the properties attribute.

Parameters:



43136
43137
43138
43139
43140
43141
43142
43143
43144
43145
43146
# File 'lib/ovirtsdk4/types.rb', line 43136

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

- (Boolean) read_only

Returns the value of the read_only attribute.

Returns:

  • (Boolean)


43153
43154
43155
# File 'lib/ovirtsdk4/types.rb', line 43153

def read_only
  return @read_only
end

- (Object) read_only=(value)

Sets the value of the read_only attribute.

Parameters:

  • value (Boolean)


43162
43163
43164
# File 'lib/ovirtsdk4/types.rb', line 43162

def read_only=(value)
  @read_only = value
end

- (Boolean) requires_authentication

Returns the value of the requires_authentication attribute.

Returns:

  • (Boolean)


43171
43172
43173
# File 'lib/ovirtsdk4/types.rb', line 43171

def requires_authentication
  return @requires_authentication
end

- (Object) requires_authentication=(value)

Sets the value of the requires_authentication attribute.

Parameters:

  • value (Boolean)


43180
43181
43182
# File 'lib/ovirtsdk4/types.rb', line 43180

def requires_authentication=(value)
  @requires_authentication = value
end

- (Array<OpenStackSubnet>) subnets

Returns the value of the subnets attribute.

Returns:



43189
43190
43191
# File 'lib/ovirtsdk4/types.rb', line 43189

def subnets
  return @subnets
end

- (Object) subnets=(list)

Sets the value of the subnets attribute.

Parameters:



43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
# File 'lib/ovirtsdk4/types.rb', line 43197

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

- (String) tenant_name

Returns the value of the tenant_name attribute.

Returns:

  • (String)


43214
43215
43216
# File 'lib/ovirtsdk4/types.rb', line 43214

def tenant_name
  return @tenant_name
end

- (Object) tenant_name=(value)

Sets the value of the tenant_name attribute.

Parameters:

  • value (String)


43223
43224
43225
# File 'lib/ovirtsdk4/types.rb', line 43223

def tenant_name=(value)
  @tenant_name = value
end

- (OpenStackNetworkProviderType) type

Returns the value of the type attribute.



43232
43233
43234
# File 'lib/ovirtsdk4/types.rb', line 43232

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



43241
43242
43243
# File 'lib/ovirtsdk4/types.rb', line 43241

def type=(value)
  @type = value
end

- (String) url

Returns the value of the url attribute.

Returns:

  • (String)


43250
43251
43252
# File 'lib/ovirtsdk4/types.rb', line 43250

def url
  return @url
end

- (Object) url=(value)

Sets the value of the url attribute.

Parameters:

  • value (String)


43259
43260
43261
# File 'lib/ovirtsdk4/types.rb', line 43259

def url=(value)
  @url = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


43268
43269
43270
# File 'lib/ovirtsdk4/types.rb', line 43268

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


43277
43278
43279
# File 'lib/ovirtsdk4/types.rb', line 43277

def username=(value)
  @username = value
end