class OvirtSDK4::Initialization
Public Class Methods
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 [CloudInitNetworkProtocol] :cloud_init_network_protocol The value of attribute `cloud_init_network_protocol`.
@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 6384 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.cloud_init_network_protocol = opts[:cloud_init_network_protocol] 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
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 6413 def ==(other) super && @active_directory_ou == other.active_directory_ou && @authorized_ssh_keys == other.authorized_ssh_keys && @cloud_init == other.cloud_init && @cloud_init_network_protocol == other.cloud_init_network_protocol && @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 5919 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 5928 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 5955 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 5968 def cloud_init=(value) if value.is_a?(Hash) value = CloudInit.new(value) end @cloud_init = value end
Returns the value of the `cloud_init_network_protocol` attribute.
@return [CloudInitNetworkProtocol]
# File lib/ovirtsdk4/types.rb, line 5980 def cloud_init_network_protocol @cloud_init_network_protocol end
Sets the value of the `cloud_init_network_protocol` attribute.
@param value [CloudInitNetworkProtocol]
# File lib/ovirtsdk4/types.rb, line 5989 def cloud_init_network_protocol=(value) @cloud_init_network_protocol = value end
Returns the value of the `configuration` attribute.
@return [Configuration]
# File lib/ovirtsdk4/types.rb, line 5998 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 6011 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 6023 def custom_script @custom_script end
Sets the value of the `custom_script` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6032 def custom_script=(value) @custom_script = value end
Returns the value of the `dns_search` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6041 def dns_search @dns_search end
Sets the value of the `dns_search` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6050 def dns_search=(value) @dns_search = value end
Returns the value of the `dns_servers` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6059 def dns_servers @dns_servers end
Sets the value of the `dns_servers` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6068 def dns_servers=(value) @dns_servers = value end
Returns the value of the `domain` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6077 def domain @domain end
Sets the value of the `domain` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6086 def domain=(value) @domain = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 6442 def hash super + @active_directory_ou.hash + @authorized_ssh_keys.hash + @cloud_init.hash + @cloud_init_network_protocol.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 6095 def host_name @host_name end
Sets the value of the `host_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6104 def host_name=(value) @host_name = value end
Returns the value of the `input_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6113 def input_locale @input_locale end
Sets the value of the `input_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6122 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 6131 def nic_configurations @nic_configurations end
Sets the value of the `nic_configurations` attribute.
@param list [Array<NicConfiguration>]
# File lib/ovirtsdk4/types.rb, line 6140 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 6157 def org_name @org_name end
Sets the value of the `org_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6166 def org_name=(value) @org_name = value end
Returns the value of the `regenerate_ids` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 6175 def regenerate_ids @regenerate_ids end
Sets the value of the `regenerate_ids` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 6184 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 6193 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 6202 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 6211 def root_password @root_password end
Sets the value of the `root_password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6220 def root_password=(value) @root_password = value end
Returns the value of the `system_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6229 def system_locale @system_locale end
Sets the value of the `system_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6238 def system_locale=(value) @system_locale = value end
Returns the value of the `timezone` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6247 def timezone @timezone end
Sets the value of the `timezone` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6256 def timezone=(value) @timezone = value end
Returns the value of the `ui_language` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6265 def ui_language @ui_language end
Sets the value of the `ui_language` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6274 def ui_language=(value) @ui_language = value end
Returns the value of the `user_locale` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6283 def user_locale @user_locale end
Sets the value of the `user_locale` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6292 def user_locale=(value) @user_locale = value end
Returns the value of the `user_name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 6301 def user_name @user_name end
Sets the value of the `user_name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 6310 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 6319 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 6328 def windows_license_key=(value) @windows_license_key = value end