Creates a new instance of the {Initialization} 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] :active_directory_ou The value of attribute `active_directory_ou`.
@option opts [String] :authorized_ssh_keys The value of attribute `authorized_ssh_keys`.
@option opts [CloudInit, Hash] :cloud_init The value of attribute `cloud_init`.
@option opts [Configuration, Hash] :configuration The value of attribute `configuration`.
@option opts [String] :custom_script The value of attribute `custom_script`.
@option opts [String] :dns_search The value of attribute `dns_search`.
@option opts [String] :dns_servers The value of attribute `dns_servers`.
@option opts [String] :domain The value of attribute `domain`.
@option opts [String] :host_name The value of attribute `host_name`.
@option opts [String] :input_locale The value of attribute `input_locale`.
@option opts [Array<NicConfiguration>, Array<Hash>] :nic_configurations The values of attribute `nic_configurations`.
@option opts [String] :org_name The value of attribute `org_name`.
@option opts [Boolean] :regenerate_ids The value of attribute `regenerate_ids`.
@option opts [Boolean] :regenerate_ssh_keys The value of attribute `regenerate_ssh_keys`.
@option opts [String] :root_password The value of attribute `root_password`.
@option opts [String] :system_locale The value of attribute `system_locale`.
@option opts [String] :timezone The value of attribute `timezone`.
@option opts [String] :ui_language The value of attribute `ui_language`.
@option opts [String] :user_locale The value of attribute `user_locale`.
@option opts [String] :user_name The value of attribute `user_name`.
@option opts [String] :windows_license_key The value of attribute `windows_license_key`.
# File lib/ovirtsdk4/types.rb, line 6250 def initialize(opts = {}) super(opts) self.active_directory_ou = opts[:active_directory_ou] self.authorized_ssh_keys = opts[:authorized_ssh_keys] self.cloud_init = opts[:cloud_init] self.configuration = opts[:configuration] self.custom_script = opts[:custom_script] self.dns_search = opts[:dns_search] self.dns_servers = opts[:dns_servers] self.domain = opts[:domain] self.host_name = opts[:host_name] self.input_locale = opts[:input_locale] self.nic_configurations = opts[:nic_configurations] self.org_name = opts[:org_name] self.regenerate_ids = opts[:regenerate_ids] self.regenerate_ssh_keys = opts[:regenerate_ssh_keys] self.root_password = opts[:root_password] self.system_locale = opts[:system_locale] self.timezone = opts[:timezone] self.ui_language = opts[:ui_language] self.user_locale = opts[:user_locale] self.user_name = opts[:user_name] self.windows_license_key = opts[:windows_license_key] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 6278 def ==(other) super && @active_directory_ou == other.active_directory_ou && @authorized_ssh_keys == other.authorized_ssh_keys && @cloud_init == other.cloud_init && @configuration == other.configuration && @custom_script == other.custom_script && @dns_search == other.dns_search && @dns_servers == other.dns_servers && @domain == other.domain && @host_name == other.host_name && @input_locale == other.input_locale && @nic_configurations == other.nic_configurations && @org_name == other.org_name && @regenerate_ids == other.regenerate_ids && @regenerate_ssh_keys == other.regenerate_ssh_keys && @root_password == other.root_password && @system_locale == other.system_locale && @timezone == other.timezone && @ui_language == other.ui_language && @user_locale == other.user_locale && @user_name == other.user_name && @windows_license_key == other.windows_license_key end
Returns the value of the `active_directory_ou` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5805 def active_directory_ou @active_directory_ou end
Sets the value of the `active_directory_ou` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5814 def active_directory_ou=(value) @active_directory_ou = value end
Returns the value of the `cloud_init` attribute.
@return [CloudInit]
# File lib/ovirtsdk4/types.rb, line 5841 def cloud_init @cloud_init end
Sets the value of the `cloud_init` attribute.
@param value [CloudInit, Hash]
The `value` parameter can be an instance of {OvirtSDK4::CloudInit} 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 5854 def cloud_init=(value) if value.is_a?(Hash) value = CloudInit.new(value) end @cloud_init = value end
Returns the value of the `configuration` attribute.
@return [Configuration]
# File lib/ovirtsdk4/types.rb, line 5866 def configuration @configuration end
Sets the value of the `configuration` attribute.
@param value [Configuration, Hash]
The `value` parameter can be an instance of {OvirtSDK4::Configuration} 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 5879 def configuration=(value) if value.is_a?(Hash) value = Configuration.new(value) end @configuration = value end
Returns the value of the `custom_script` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5891 def custom_script @custom_script end
Sets the value of the `custom_script` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5900 def custom_script=(value) @custom_script = value end
Returns the value of the `dns_search` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5909 def dns_search @dns_search end
Sets the value of the `dns_search` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5918 def dns_search=(value) @dns_search = value end
Returns the value of the `dns_servers` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5927 def dns_servers @dns_servers end
Sets the value of the `dns_servers` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5936 def dns_servers=(value) @dns_servers = value end
Returns the value of the `domain` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5945 def domain @domain end
Sets the value of the `domain` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5954 def domain=(value) @domain = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 6306 def hash super + @active_directory_ou.hash + @authorized_ssh_keys.hash + @cloud_init.hash + @configuration.hash + @custom_script.hash + @dns_search.hash + @dns_servers.hash + @domain.hash + @host_name.hash + @input_locale.hash + @nic_configurations.hash + @org_name.hash + @regenerate_ids.hash + @regenerate_ssh_keys.hash + @root_password.hash + @system_locale.hash + @timezone.hash + @ui_language.hash + @user_locale.hash + @user_name.hash + @windows_license_key.hash end
Returns the value of the `host_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5963 def host_name @host_name end
Sets the value of the `host_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5972 def host_name=(value) @host_name = value end
Returns the value of the `input_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 5981 def input_locale @input_locale end
Sets the value of the `input_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 5990 def input_locale=(value) @input_locale = value end
Returns the value of the `nic_configurations` attribute.
@return [Array<NicConfiguration>]
# File lib/ovirtsdk4/types.rb, line 5999 def nic_configurations @nic_configurations end
Sets the value of the `nic_configurations` attribute.
@param list [Array<NicConfiguration>]
# File lib/ovirtsdk4/types.rb, line 6008 def nic_configurations=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = NicConfiguration.new(value) end end end @nic_configurations = list end
Returns the value of the `org_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6025 def org_name @org_name end
Sets the value of the `org_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6034 def org_name=(value) @org_name = value end
Returns the value of the `regenerate_ids` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 6043 def regenerate_ids @regenerate_ids end
Sets the value of the `regenerate_ids` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 6052 def regenerate_ids=(value) @regenerate_ids = value end
Returns the value of the `regenerate_ssh_keys` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 6061 def regenerate_ssh_keys @regenerate_ssh_keys end
Sets the value of the `regenerate_ssh_keys` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 6070 def regenerate_ssh_keys=(value) @regenerate_ssh_keys = value end
Returns the value of the `root_password` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6079 def root_password @root_password end
Sets the value of the `root_password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6088 def root_password=(value) @root_password = value end
Returns the value of the `system_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6097 def system_locale @system_locale end
Sets the value of the `system_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6106 def system_locale=(value) @system_locale = value end
Returns the value of the `timezone` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6115 def timezone @timezone end
Sets the value of the `timezone` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6124 def timezone=(value) @timezone = value end
Returns the value of the `ui_language` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6133 def ui_language @ui_language end
Sets the value of the `ui_language` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6142 def ui_language=(value) @ui_language = value end
Returns the value of the `user_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6151 def user_locale @user_locale end
Sets the value of the `user_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6160 def user_locale=(value) @user_locale = value end
Returns the value of the `user_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6169 def user_name @user_name end
Sets the value of the `user_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6178 def user_name=(value) @user_name = value end
Returns the value of the `windows_license_key` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6187 def windows_license_key @windows_license_key end
Sets the value of the `windows_license_key` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6196 def windows_license_key=(value) @windows_license_key = value end