Class: OvirtSDK4::UnmanagedNetwork

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

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (UnmanagedNetwork) initialize(opts = {})

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

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :host (Host, Hash)

    The value of attribute host.

  • :host_nic (HostNic, Hash)

    The value of attribute host_nic.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.



17247
17248
17249
17250
17251
17252
17253
17254
17255
# File 'lib/ovirtsdk4/types.rb', line 17247

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.host = opts[:host]
  self.host_nic = opts[:host_nic]
  self.id = opts[:id]
  self.name = opts[:name]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


17110
17111
17112
# File 'lib/ovirtsdk4/types.rb', line 17110

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


17119
17120
17121
# File 'lib/ovirtsdk4/types.rb', line 17119

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


17128
17129
17130
# File 'lib/ovirtsdk4/types.rb', line 17128

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


17137
17138
17139
# File 'lib/ovirtsdk4/types.rb', line 17137

def description=(value)
  @description = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



17146
17147
17148
# File 'lib/ovirtsdk4/types.rb', line 17146

def host
  return @host
end

- (Object) host=(value)

Sets the value of the host attribute.

The value parameter can be an instance of Host 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:

  • value (Host, Hash)


17159
17160
17161
17162
17163
17164
# File 'lib/ovirtsdk4/types.rb', line 17159

def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

- (HostNic) host_nic

Returns the value of the host_nic attribute.

Returns:



17171
17172
17173
# File 'lib/ovirtsdk4/types.rb', line 17171

def host_nic
  return @host_nic
end

- (Object) host_nic=(value)

Sets the value of the host_nic attribute.

The value parameter can be an instance of HostNic 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:



17184
17185
17186
17187
17188
17189
# File 'lib/ovirtsdk4/types.rb', line 17184

def host_nic=(value)
  if value.is_a?(Hash)
    value = HostNic.new(value)
  end
  @host_nic = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


17196
17197
17198
# File 'lib/ovirtsdk4/types.rb', line 17196

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


17205
17206
17207
# File 'lib/ovirtsdk4/types.rb', line 17205

def id=(value)
  @id = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


17214
17215
17216
# File 'lib/ovirtsdk4/types.rb', line 17214

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


17223
17224
17225
# File 'lib/ovirtsdk4/types.rb', line 17223

def name=(value)
  @name = value
end