Class: OvirtSDK4::Initialization
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#active_directory_ou ⇒ String
Returns the value of the
active_directory_ouattribute. -
#active_directory_ou=(value) ⇒ Object
Sets the value of the
active_directory_ouattribute. -
#authorized_ssh_keys ⇒ String
Returns the value of the
authorized_ssh_keysattribute. -
#authorized_ssh_keys=(value) ⇒ Object
Sets the value of the
authorized_ssh_keysattribute. -
#cloud_init ⇒ CloudInit
Returns the value of the
cloud_initattribute. -
#cloud_init=(value) ⇒ Object
Sets the value of the
cloud_initattribute. -
#cloud_init_network_protocol ⇒ CloudInitNetworkProtocol
Returns the value of the
cloud_init_network_protocolattribute. -
#cloud_init_network_protocol=(value) ⇒ Object
Sets the value of the
cloud_init_network_protocolattribute. -
#configuration ⇒ Configuration
Returns the value of the
configurationattribute. -
#configuration=(value) ⇒ Object
Sets the value of the
configurationattribute. -
#custom_script ⇒ String
Returns the value of the
custom_scriptattribute. -
#custom_script=(value) ⇒ Object
Sets the value of the
custom_scriptattribute. -
#dns_search ⇒ String
Returns the value of the
dns_searchattribute. -
#dns_search=(value) ⇒ Object
Sets the value of the
dns_searchattribute. -
#dns_servers ⇒ String
Returns the value of the
dns_serversattribute. -
#dns_servers=(value) ⇒ Object
Sets the value of the
dns_serversattribute. -
#domain ⇒ String
Returns the value of the
domainattribute. -
#domain=(value) ⇒ Object
Sets the value of the
domainattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_name ⇒ String
Returns the value of the
host_nameattribute. -
#host_name=(value) ⇒ Object
Sets the value of the
host_nameattribute. -
#initialize(opts = {}) ⇒ Initialization
constructor
Creates a new instance of the Initialization class.
-
#input_locale ⇒ String
Returns the value of the
input_localeattribute. -
#input_locale=(value) ⇒ Object
Sets the value of the
input_localeattribute. -
#nic_configurations ⇒ Array<NicConfiguration>
Returns the value of the
nic_configurationsattribute. -
#nic_configurations=(list) ⇒ Object
Sets the value of the
nic_configurationsattribute. -
#org_name ⇒ String
Returns the value of the
org_nameattribute. -
#org_name=(value) ⇒ Object
Sets the value of the
org_nameattribute. -
#regenerate_ids ⇒ Boolean
Returns the value of the
regenerate_idsattribute. -
#regenerate_ids=(value) ⇒ Object
Sets the value of the
regenerate_idsattribute. -
#regenerate_ssh_keys ⇒ Boolean
Returns the value of the
regenerate_ssh_keysattribute. -
#regenerate_ssh_keys=(value) ⇒ Object
Sets the value of the
regenerate_ssh_keysattribute. -
#root_password ⇒ String
Returns the value of the
root_passwordattribute. -
#root_password=(value) ⇒ Object
Sets the value of the
root_passwordattribute. -
#system_locale ⇒ String
Returns the value of the
system_localeattribute. -
#system_locale=(value) ⇒ Object
Sets the value of the
system_localeattribute. -
#timezone ⇒ String
Returns the value of the
timezoneattribute. -
#timezone=(value) ⇒ Object
Sets the value of the
timezoneattribute. -
#ui_language ⇒ String
Returns the value of the
ui_languageattribute. -
#ui_language=(value) ⇒ Object
Sets the value of the
ui_languageattribute. -
#user_locale ⇒ String
Returns the value of the
user_localeattribute. -
#user_locale=(value) ⇒ Object
Sets the value of the
user_localeattribute. -
#user_name ⇒ String
Returns the value of the
user_nameattribute. -
#user_name=(value) ⇒ Object
Sets the value of the
user_nameattribute. -
#windows_license_key ⇒ String
Returns the value of the
windows_license_keyattribute. -
#windows_license_key=(value) ⇒ Object
Sets the value of the
windows_license_keyattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Initialization
Creates a new instance of the OvirtSDK4::Initialization class.
6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 |
# File 'lib/ovirtsdk4/types.rb', line 6989 def initialize(opts = {}) super(opts) self.active_directory_ou = opts[:active_directory_ou] self. = 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 |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 |
# File 'lib/ovirtsdk4/types.rb', line 7018 def ==(other) super && @active_directory_ou == other.active_directory_ou && == other. && @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 |
#active_directory_ou ⇒ String
Returns the value of the active_directory_ou attribute.
6524 6525 6526 |
# File 'lib/ovirtsdk4/types.rb', line 6524 def active_directory_ou @active_directory_ou end |
#active_directory_ou=(value) ⇒ Object
Sets the value of the active_directory_ou attribute.
6533 6534 6535 |
# File 'lib/ovirtsdk4/types.rb', line 6533 def active_directory_ou=(value) @active_directory_ou = value end |
#authorized_ssh_keys ⇒ String
Returns the value of the authorized_ssh_keys attribute.
6542 6543 6544 |
# File 'lib/ovirtsdk4/types.rb', line 6542 def end |
#authorized_ssh_keys=(value) ⇒ Object
Sets the value of the authorized_ssh_keys attribute.
6551 6552 6553 |
# File 'lib/ovirtsdk4/types.rb', line 6551 def (value) = value end |
#cloud_init ⇒ CloudInit
Returns the value of the cloud_init attribute.
6560 6561 6562 |
# File 'lib/ovirtsdk4/types.rb', line 6560 def cloud_init @cloud_init end |
#cloud_init=(value) ⇒ Object
Sets the value of the cloud_init attribute.
The value parameter can be an instance of 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.
6573 6574 6575 6576 6577 6578 |
# File 'lib/ovirtsdk4/types.rb', line 6573 def cloud_init=(value) if value.is_a?(Hash) value = CloudInit.new(value) end @cloud_init = value end |
#cloud_init_network_protocol ⇒ CloudInitNetworkProtocol
Returns the value of the cloud_init_network_protocol attribute.
6585 6586 6587 |
# File 'lib/ovirtsdk4/types.rb', line 6585 def cloud_init_network_protocol @cloud_init_network_protocol end |
#cloud_init_network_protocol=(value) ⇒ Object
Sets the value of the cloud_init_network_protocol attribute.
6594 6595 6596 |
# File 'lib/ovirtsdk4/types.rb', line 6594 def cloud_init_network_protocol=(value) @cloud_init_network_protocol = value end |
#configuration ⇒ Configuration
Returns the value of the configuration attribute.
6603 6604 6605 |
# File 'lib/ovirtsdk4/types.rb', line 6603 def configuration @configuration end |
#configuration=(value) ⇒ Object
Sets the value of the configuration attribute.
The value parameter can be an instance of 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.
6616 6617 6618 6619 6620 6621 |
# File 'lib/ovirtsdk4/types.rb', line 6616 def configuration=(value) if value.is_a?(Hash) value = Configuration.new(value) end @configuration = value end |
#custom_script ⇒ String
Returns the value of the custom_script attribute.
6628 6629 6630 |
# File 'lib/ovirtsdk4/types.rb', line 6628 def custom_script @custom_script end |
#custom_script=(value) ⇒ Object
Sets the value of the custom_script attribute.
6637 6638 6639 |
# File 'lib/ovirtsdk4/types.rb', line 6637 def custom_script=(value) @custom_script = value end |
#dns_search ⇒ String
Returns the value of the dns_search attribute.
6646 6647 6648 |
# File 'lib/ovirtsdk4/types.rb', line 6646 def dns_search @dns_search end |
#dns_search=(value) ⇒ Object
Sets the value of the dns_search attribute.
6655 6656 6657 |
# File 'lib/ovirtsdk4/types.rb', line 6655 def dns_search=(value) @dns_search = value end |
#dns_servers ⇒ String
Returns the value of the dns_servers attribute.
6664 6665 6666 |
# File 'lib/ovirtsdk4/types.rb', line 6664 def dns_servers @dns_servers end |
#dns_servers=(value) ⇒ Object
Sets the value of the dns_servers attribute.
6673 6674 6675 |
# File 'lib/ovirtsdk4/types.rb', line 6673 def dns_servers=(value) @dns_servers = value end |
#domain ⇒ String
Returns the value of the domain attribute.
6682 6683 6684 |
# File 'lib/ovirtsdk4/types.rb', line 6682 def domain @domain end |
#domain=(value) ⇒ Object
Sets the value of the domain attribute.
6691 6692 6693 |
# File 'lib/ovirtsdk4/types.rb', line 6691 def domain=(value) @domain = value end |
#hash ⇒ Object
Generates a hash value for this object.
7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 |
# File 'lib/ovirtsdk4/types.rb', line 7047 def hash super + @active_directory_ou.hash + .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 |
#host_name ⇒ String
Returns the value of the host_name attribute.
6700 6701 6702 |
# File 'lib/ovirtsdk4/types.rb', line 6700 def host_name @host_name end |
#host_name=(value) ⇒ Object
Sets the value of the host_name attribute.
6709 6710 6711 |
# File 'lib/ovirtsdk4/types.rb', line 6709 def host_name=(value) @host_name = value end |
#input_locale ⇒ String
Returns the value of the input_locale attribute.
6718 6719 6720 |
# File 'lib/ovirtsdk4/types.rb', line 6718 def input_locale @input_locale end |
#input_locale=(value) ⇒ Object
Sets the value of the input_locale attribute.
6727 6728 6729 |
# File 'lib/ovirtsdk4/types.rb', line 6727 def input_locale=(value) @input_locale = value end |
#nic_configurations ⇒ Array<NicConfiguration>
Returns the value of the nic_configurations attribute.
6736 6737 6738 |
# File 'lib/ovirtsdk4/types.rb', line 6736 def nic_configurations @nic_configurations end |
#nic_configurations=(list) ⇒ Object
Sets the value of the nic_configurations attribute.
6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 |
# File 'lib/ovirtsdk4/types.rb', line 6745 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 |
#org_name ⇒ String
Returns the value of the org_name attribute.
6762 6763 6764 |
# File 'lib/ovirtsdk4/types.rb', line 6762 def org_name @org_name end |
#org_name=(value) ⇒ Object
Sets the value of the org_name attribute.
6771 6772 6773 |
# File 'lib/ovirtsdk4/types.rb', line 6771 def org_name=(value) @org_name = value end |
#regenerate_ids ⇒ Boolean
Returns the value of the regenerate_ids attribute.
6780 6781 6782 |
# File 'lib/ovirtsdk4/types.rb', line 6780 def regenerate_ids @regenerate_ids end |
#regenerate_ids=(value) ⇒ Object
Sets the value of the regenerate_ids attribute.
6789 6790 6791 |
# File 'lib/ovirtsdk4/types.rb', line 6789 def regenerate_ids=(value) @regenerate_ids = value end |
#regenerate_ssh_keys ⇒ Boolean
Returns the value of the regenerate_ssh_keys attribute.
6798 6799 6800 |
# File 'lib/ovirtsdk4/types.rb', line 6798 def regenerate_ssh_keys @regenerate_ssh_keys end |
#regenerate_ssh_keys=(value) ⇒ Object
Sets the value of the regenerate_ssh_keys attribute.
6807 6808 6809 |
# File 'lib/ovirtsdk4/types.rb', line 6807 def regenerate_ssh_keys=(value) @regenerate_ssh_keys = value end |
#root_password ⇒ String
Returns the value of the root_password attribute.
6816 6817 6818 |
# File 'lib/ovirtsdk4/types.rb', line 6816 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password attribute.
6825 6826 6827 |
# File 'lib/ovirtsdk4/types.rb', line 6825 def root_password=(value) @root_password = value end |
#system_locale ⇒ String
Returns the value of the system_locale attribute.
6834 6835 6836 |
# File 'lib/ovirtsdk4/types.rb', line 6834 def system_locale @system_locale end |
#system_locale=(value) ⇒ Object
Sets the value of the system_locale attribute.
6843 6844 6845 |
# File 'lib/ovirtsdk4/types.rb', line 6843 def system_locale=(value) @system_locale = value end |
#timezone ⇒ String
Returns the value of the timezone attribute.
6852 6853 6854 |
# File 'lib/ovirtsdk4/types.rb', line 6852 def timezone @timezone end |
#timezone=(value) ⇒ Object
Sets the value of the timezone attribute.
6861 6862 6863 |
# File 'lib/ovirtsdk4/types.rb', line 6861 def timezone=(value) @timezone = value end |
#ui_language ⇒ String
Returns the value of the ui_language attribute.
6870 6871 6872 |
# File 'lib/ovirtsdk4/types.rb', line 6870 def ui_language @ui_language end |
#ui_language=(value) ⇒ Object
Sets the value of the ui_language attribute.
6879 6880 6881 |
# File 'lib/ovirtsdk4/types.rb', line 6879 def ui_language=(value) @ui_language = value end |
#user_locale ⇒ String
Returns the value of the user_locale attribute.
6888 6889 6890 |
# File 'lib/ovirtsdk4/types.rb', line 6888 def user_locale @user_locale end |
#user_locale=(value) ⇒ Object
Sets the value of the user_locale attribute.
6897 6898 6899 |
# File 'lib/ovirtsdk4/types.rb', line 6897 def user_locale=(value) @user_locale = value end |
#user_name ⇒ String
Returns the value of the user_name attribute.
6906 6907 6908 |
# File 'lib/ovirtsdk4/types.rb', line 6906 def user_name @user_name end |
#user_name=(value) ⇒ Object
Sets the value of the user_name attribute.
6915 6916 6917 |
# File 'lib/ovirtsdk4/types.rb', line 6915 def user_name=(value) @user_name = value end |
#windows_license_key ⇒ String
Returns the value of the windows_license_key attribute.
6924 6925 6926 |
# File 'lib/ovirtsdk4/types.rb', line 6924 def windows_license_key @windows_license_key end |
#windows_license_key=(value) ⇒ Object
Sets the value of the windows_license_key attribute.
6933 6934 6935 |
# File 'lib/ovirtsdk4/types.rb', line 6933 def windows_license_key=(value) @windows_license_key = value end |