Class: OvirtSDK4::IpAddressAssignment
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::IpAddressAssignment
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (BootProtocol) assignment_method
Returns the value of the
assignment_method
attribute. -
- (Object) assignment_method=(value)
Sets the value of the
assignment_method
attribute. -
- (IpAddressAssignment) initialize(opts = {})
constructor
Creates a new instance of the IpAddressAssignment class.
-
- (Ip) ip
Returns the value of the
ip
attribute. -
- (Object) ip=(value)
Sets the value of the
ip
attribute.
Methods included from Type
Constructor Details
- (IpAddressAssignment) initialize(opts = {})
Creates a new instance of the OvirtSDK4::IpAddressAssignment class.
4513 4514 4515 4516 4517 |
# File 'lib/ovirtsdk4/types.rb', line 4513 def initialize(opts = {}) super(opts) self.assignment_method = opts[:assignment_method] self.ip = opts[:ip] end |
Instance Method Details
- (BootProtocol) assignment_method
Returns the value of the assignment_method
attribute.
4463 4464 4465 |
# File 'lib/ovirtsdk4/types.rb', line 4463 def assignment_method return @assignment_method end |
- (Object) assignment_method=(value)
Sets the value of the assignment_method
attribute.
4472 4473 4474 |
# File 'lib/ovirtsdk4/types.rb', line 4472 def assignment_method=(value) @assignment_method = value end |
- (Ip) ip
Returns the value of the ip
attribute.
4481 4482 4483 |
# File 'lib/ovirtsdk4/types.rb', line 4481 def ip return @ip end |
- (Object) ip=(value)
Sets the value of the ip
attribute.
The value
parameter can be an instance of OvirtSDK4::Ip 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.
4494 4495 4496 4497 4498 4499 |
# File 'lib/ovirtsdk4/types.rb', line 4494 def ip=(value) if value.is_a?(Hash) value = Ip.new(value) end @ip = value end |