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 4292 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 the value of the `active_directory_ou` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 3848 def active_directory_ou return @active_directory_ou end
Sets the value of the `active_directory_ou` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3857 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 3884 def cloud_init return @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 3897 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 3909 def configuration return @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 3922 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 3934 def custom_script return @custom_script end
Sets the value of the `custom_script` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3943 def custom_script=(value) @custom_script = value end
Returns the value of the `dns_search` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 3952 def dns_search return @dns_search end
Sets the value of the `dns_search` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3961 def dns_search=(value) @dns_search = value end
Returns the value of the `dns_servers` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 3970 def dns_servers return @dns_servers end
Sets the value of the `dns_servers` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3979 def dns_servers=(value) @dns_servers = value end
Returns the value of the `domain` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 3988 def domain return @domain end
Sets the value of the `domain` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 3997 def domain=(value) @domain = value end
Returns the value of the `host_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4006 def host_name return @host_name end
Sets the value of the `host_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4015 def host_name=(value) @host_name = value end
Returns the value of the `input_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4024 def input_locale return @input_locale end
Sets the value of the `input_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4033 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 4042 def nic_configurations return @nic_configurations end
Sets the value of the `nic_configurations` attribute.
@param list [Array<NicConfiguration>]
# File lib/ovirtsdk4/types.rb, line 4050 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 4067 def org_name return @org_name end
Sets the value of the `org_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4076 def org_name=(value) @org_name = value end
Returns the value of the `regenerate_ids` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 4085 def regenerate_ids return @regenerate_ids end
Sets the value of the `regenerate_ids` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 4094 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 4103 def regenerate_ssh_keys return @regenerate_ssh_keys end
Sets the value of the `regenerate_ssh_keys` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 4112 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 4121 def root_password return @root_password end
Sets the value of the `root_password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4130 def root_password=(value) @root_password = value end
Returns the value of the `system_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4139 def system_locale return @system_locale end
Sets the value of the `system_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4148 def system_locale=(value) @system_locale = value end
Returns the value of the `timezone` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4157 def timezone return @timezone end
Sets the value of the `timezone` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4166 def timezone=(value) @timezone = value end
Returns the value of the `ui_language` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4175 def ui_language return @ui_language end
Sets the value of the `ui_language` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4184 def ui_language=(value) @ui_language = value end
Returns the value of the `user_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4193 def user_locale return @user_locale end
Sets the value of the `user_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4202 def user_locale=(value) @user_locale = value end
Returns the value of the `user_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 4211 def user_name return @user_name end
Sets the value of the `user_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4220 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 4229 def windows_license_key return @windows_license_key end
Sets the value of the `windows_license_key` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 4238 def windows_license_key=(value) @windows_license_key = value end