Creates a new instance of the {OpenStackSubnet} class.
@param opts [Hash] 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.
@option opts [String] :cidr The value of attribute `cidr`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [Array<String>, Array<Hash>] :dns_servers The values of attribute `dns_servers`.
@option opts [String] :gateway The value of attribute `gateway`.
@option opts [String] :id The value of attribute `id`.
@option opts [String] :ip_version The value of attribute `ip_version`.
@option opts [String] :name The value of attribute `name`.
@option opts [OpenStackNetwork, Hash] :openstack_network The value of attribute `openstack_network`.
# File lib/ovirtsdk4/types.rb, line 9281 def initialize(opts = {}) super(opts) self.cidr = opts[:cidr] self.comment = opts[:comment] self.description = opts[:description] self.dns_servers = opts[:dns_servers] self.gateway = opts[:gateway] self.id = opts[:id] self.ip_version = opts[:ip_version] self.name = opts[:name] self.openstack_network = opts[:openstack_network] end
Returns the value of the `cidr` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9092 def cidr return @cidr end
Sets the value of the `cidr` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9101 def cidr=(value) @cidr = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9110 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9119 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9128 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9137 def description=(value) @description = value end
Returns the value of the `dns_servers` attribute.
@return [Array<String>]
# File lib/ovirtsdk4/types.rb, line 9146 def dns_servers return @dns_servers end
Sets the value of the `dns_servers` attribute.
@param list [Array<String>]
# File lib/ovirtsdk4/types.rb, line 9154 def dns_servers=(list) @dns_servers = list end
Returns the value of the `gateway` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9163 def gateway return @gateway end
Sets the value of the `gateway` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9172 def gateway=(value) @gateway = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9181 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9190 def id=(value) @id = value end
Returns the value of the `ip_version` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9199 def ip_version return @ip_version end
Sets the value of the `ip_version` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9208 def ip_version=(value) @ip_version = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9217 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9226 def name=(value) @name = value end
Returns the value of the `openstack_network` attribute.
@return [OpenStackNetwork]
# File lib/ovirtsdk4/types.rb, line 9235 def openstack_network return @openstack_network end
Sets the value of the `openstack_network` attribute.
@param value [OpenStackNetwork, Hash]
The `value` parameter can be an instance of {OvirtSDK4::OpenStackNetwork} 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.
# File lib/ovirtsdk4/types.rb, line 9248 def openstack_network=(value) if value.is_a?(Hash) value = OpenStackNetwork.new(value) end @openstack_network = value end