Class: OvirtSDK4::Initialization
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#active_directory_ou ⇒ String
Returns the value of the
active_directory_ou
attribute. -
#active_directory_ou=(value) ⇒ Object
Sets the value of the
active_directory_ou
attribute. -
#authorized_ssh_keys ⇒ String
Returns the value of the
authorized_ssh_keys
attribute. -
#authorized_ssh_keys=(value) ⇒ Object
Sets the value of the
authorized_ssh_keys
attribute. -
#cloud_init ⇒ CloudInit
Returns the value of the
cloud_init
attribute. -
#cloud_init=(value) ⇒ Object
Sets the value of the
cloud_init
attribute. -
#cloud_init_network_protocol ⇒ CloudInitNetworkProtocol
Returns the value of the
cloud_init_network_protocol
attribute. -
#cloud_init_network_protocol=(value) ⇒ Object
Sets the value of the
cloud_init_network_protocol
attribute. -
#configuration ⇒ Configuration
Returns the value of the
configuration
attribute. -
#configuration=(value) ⇒ Object
Sets the value of the
configuration
attribute. -
#custom_script ⇒ String
Returns the value of the
custom_script
attribute. -
#custom_script=(value) ⇒ Object
Sets the value of the
custom_script
attribute. -
#dns_search ⇒ String
Returns the value of the
dns_search
attribute. -
#dns_search=(value) ⇒ Object
Sets the value of the
dns_search
attribute. -
#dns_servers ⇒ String
Returns the value of the
dns_servers
attribute. -
#dns_servers=(value) ⇒ Object
Sets the value of the
dns_servers
attribute. -
#domain ⇒ String
Returns the value of the
domain
attribute. -
#domain=(value) ⇒ Object
Sets the value of the
domain
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host_name ⇒ String
Returns the value of the
host_name
attribute. -
#host_name=(value) ⇒ Object
Sets the value of the
host_name
attribute. -
#initialize(opts = {}) ⇒ Initialization
constructor
Creates a new instance of the Initialization class.
-
#input_locale ⇒ String
Returns the value of the
input_locale
attribute. -
#input_locale=(value) ⇒ Object
Sets the value of the
input_locale
attribute. -
#nic_configurations ⇒ Array<NicConfiguration>
Returns the value of the
nic_configurations
attribute. -
#nic_configurations=(list) ⇒ Object
Sets the value of the
nic_configurations
attribute. -
#org_name ⇒ String
Returns the value of the
org_name
attribute. -
#org_name=(value) ⇒ Object
Sets the value of the
org_name
attribute. -
#regenerate_ids ⇒ Boolean
Returns the value of the
regenerate_ids
attribute. -
#regenerate_ids=(value) ⇒ Object
Sets the value of the
regenerate_ids
attribute. -
#regenerate_ssh_keys ⇒ Boolean
Returns the value of the
regenerate_ssh_keys
attribute. -
#regenerate_ssh_keys=(value) ⇒ Object
Sets the value of the
regenerate_ssh_keys
attribute. -
#root_password ⇒ String
Returns the value of the
root_password
attribute. -
#root_password=(value) ⇒ Object
Sets the value of the
root_password
attribute. -
#system_locale ⇒ String
Returns the value of the
system_locale
attribute. -
#system_locale=(value) ⇒ Object
Sets the value of the
system_locale
attribute. -
#timezone ⇒ String
Returns the value of the
timezone
attribute. -
#timezone=(value) ⇒ Object
Sets the value of the
timezone
attribute. -
#ui_language ⇒ String
Returns the value of the
ui_language
attribute. -
#ui_language=(value) ⇒ Object
Sets the value of the
ui_language
attribute. -
#user_locale ⇒ String
Returns the value of the
user_locale
attribute. -
#user_locale=(value) ⇒ Object
Sets the value of the
user_locale
attribute. -
#user_name ⇒ String
Returns the value of the
user_name
attribute. -
#user_name=(value) ⇒ Object
Sets the value of the
user_name
attribute. -
#windows_license_key ⇒ String
Returns the value of the
windows_license_key
attribute. -
#windows_license_key=(value) ⇒ Object
Sets the value of the
windows_license_key
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Initialization
Creates a new instance of the OvirtSDK4::Initialization class.
6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 |
# File 'lib/ovirtsdk4/types.rb', line 6384 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.
6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 |
# File 'lib/ovirtsdk4/types.rb', line 6413 def ==(other) super && @active_directory_ou == other.active_directory_ou && @authorized_ssh_keys == 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.
5919 5920 5921 |
# File 'lib/ovirtsdk4/types.rb', line 5919 def active_directory_ou @active_directory_ou end |
#active_directory_ou=(value) ⇒ Object
Sets the value of the active_directory_ou
attribute.
5928 5929 5930 |
# File 'lib/ovirtsdk4/types.rb', line 5928 def active_directory_ou=(value) @active_directory_ou = value end |
#authorized_ssh_keys ⇒ String
Returns the value of the authorized_ssh_keys
attribute.
5937 5938 5939 |
# File 'lib/ovirtsdk4/types.rb', line 5937 def @authorized_ssh_keys end |
#authorized_ssh_keys=(value) ⇒ Object
Sets the value of the authorized_ssh_keys
attribute.
5946 5947 5948 |
# File 'lib/ovirtsdk4/types.rb', line 5946 def (value) @authorized_ssh_keys = value end |
#cloud_init ⇒ CloudInit
Returns the value of the cloud_init
attribute.
5955 5956 5957 |
# File 'lib/ovirtsdk4/types.rb', line 5955 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.
5968 5969 5970 5971 5972 5973 |
# 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 |
#cloud_init_network_protocol ⇒ CloudInitNetworkProtocol
Returns the value of the cloud_init_network_protocol
attribute.
5980 5981 5982 |
# File 'lib/ovirtsdk4/types.rb', line 5980 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.
5989 5990 5991 |
# File 'lib/ovirtsdk4/types.rb', line 5989 def cloud_init_network_protocol=(value) @cloud_init_network_protocol = value end |
#configuration ⇒ Configuration
Returns the value of the configuration
attribute.
5998 5999 6000 |
# File 'lib/ovirtsdk4/types.rb', line 5998 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.
6011 6012 6013 6014 6015 6016 |
# File 'lib/ovirtsdk4/types.rb', line 6011 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.
6023 6024 6025 |
# File 'lib/ovirtsdk4/types.rb', line 6023 def custom_script @custom_script end |
#custom_script=(value) ⇒ Object
Sets the value of the custom_script
attribute.
6032 6033 6034 |
# File 'lib/ovirtsdk4/types.rb', line 6032 def custom_script=(value) @custom_script = value end |
#dns_search ⇒ String
Returns the value of the dns_search
attribute.
6041 6042 6043 |
# File 'lib/ovirtsdk4/types.rb', line 6041 def dns_search @dns_search end |
#dns_search=(value) ⇒ Object
Sets the value of the dns_search
attribute.
6050 6051 6052 |
# File 'lib/ovirtsdk4/types.rb', line 6050 def dns_search=(value) @dns_search = value end |
#dns_servers ⇒ String
Returns the value of the dns_servers
attribute.
6059 6060 6061 |
# File 'lib/ovirtsdk4/types.rb', line 6059 def dns_servers @dns_servers end |
#dns_servers=(value) ⇒ Object
Sets the value of the dns_servers
attribute.
6068 6069 6070 |
# File 'lib/ovirtsdk4/types.rb', line 6068 def dns_servers=(value) @dns_servers = value end |
#domain ⇒ String
Returns the value of the domain
attribute.
6077 6078 6079 |
# File 'lib/ovirtsdk4/types.rb', line 6077 def domain @domain end |
#domain=(value) ⇒ Object
Sets the value of the domain
attribute.
6086 6087 6088 |
# File 'lib/ovirtsdk4/types.rb', line 6086 def domain=(value) @domain = value end |
#hash ⇒ Object
Generates a hash value for this object.
6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 |
# 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 |
#host_name ⇒ String
Returns the value of the host_name
attribute.
6095 6096 6097 |
# File 'lib/ovirtsdk4/types.rb', line 6095 def host_name @host_name end |
#host_name=(value) ⇒ Object
Sets the value of the host_name
attribute.
6104 6105 6106 |
# File 'lib/ovirtsdk4/types.rb', line 6104 def host_name=(value) @host_name = value end |
#input_locale ⇒ String
Returns the value of the input_locale
attribute.
6113 6114 6115 |
# File 'lib/ovirtsdk4/types.rb', line 6113 def input_locale @input_locale end |
#input_locale=(value) ⇒ Object
Sets the value of the input_locale
attribute.
6122 6123 6124 |
# File 'lib/ovirtsdk4/types.rb', line 6122 def input_locale=(value) @input_locale = value end |
#nic_configurations ⇒ Array<NicConfiguration>
Returns the value of the nic_configurations
attribute.
6131 6132 6133 |
# File 'lib/ovirtsdk4/types.rb', line 6131 def nic_configurations @nic_configurations end |
#nic_configurations=(list) ⇒ Object
Sets the value of the nic_configurations
attribute.
6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 |
# 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 |
#org_name ⇒ String
Returns the value of the org_name
attribute.
6157 6158 6159 |
# File 'lib/ovirtsdk4/types.rb', line 6157 def org_name @org_name end |
#org_name=(value) ⇒ Object
Sets the value of the org_name
attribute.
6166 6167 6168 |
# File 'lib/ovirtsdk4/types.rb', line 6166 def org_name=(value) @org_name = value end |
#regenerate_ids ⇒ Boolean
Returns the value of the regenerate_ids
attribute.
6175 6176 6177 |
# File 'lib/ovirtsdk4/types.rb', line 6175 def regenerate_ids @regenerate_ids end |
#regenerate_ids=(value) ⇒ Object
Sets the value of the regenerate_ids
attribute.
6184 6185 6186 |
# File 'lib/ovirtsdk4/types.rb', line 6184 def regenerate_ids=(value) @regenerate_ids = value end |
#regenerate_ssh_keys ⇒ Boolean
Returns the value of the regenerate_ssh_keys
attribute.
6193 6194 6195 |
# File 'lib/ovirtsdk4/types.rb', line 6193 def regenerate_ssh_keys @regenerate_ssh_keys end |
#regenerate_ssh_keys=(value) ⇒ Object
Sets the value of the regenerate_ssh_keys
attribute.
6202 6203 6204 |
# File 'lib/ovirtsdk4/types.rb', line 6202 def regenerate_ssh_keys=(value) @regenerate_ssh_keys = value end |
#root_password ⇒ String
Returns the value of the root_password
attribute.
6211 6212 6213 |
# File 'lib/ovirtsdk4/types.rb', line 6211 def root_password @root_password end |
#root_password=(value) ⇒ Object
Sets the value of the root_password
attribute.
6220 6221 6222 |
# File 'lib/ovirtsdk4/types.rb', line 6220 def root_password=(value) @root_password = value end |
#system_locale ⇒ String
Returns the value of the system_locale
attribute.
6229 6230 6231 |
# File 'lib/ovirtsdk4/types.rb', line 6229 def system_locale @system_locale end |
#system_locale=(value) ⇒ Object
Sets the value of the system_locale
attribute.
6238 6239 6240 |
# File 'lib/ovirtsdk4/types.rb', line 6238 def system_locale=(value) @system_locale = value end |
#timezone ⇒ String
Returns the value of the timezone
attribute.
6247 6248 6249 |
# File 'lib/ovirtsdk4/types.rb', line 6247 def timezone @timezone end |
#timezone=(value) ⇒ Object
Sets the value of the timezone
attribute.
6256 6257 6258 |
# File 'lib/ovirtsdk4/types.rb', line 6256 def timezone=(value) @timezone = value end |
#ui_language ⇒ String
Returns the value of the ui_language
attribute.
6265 6266 6267 |
# File 'lib/ovirtsdk4/types.rb', line 6265 def ui_language @ui_language end |
#ui_language=(value) ⇒ Object
Sets the value of the ui_language
attribute.
6274 6275 6276 |
# File 'lib/ovirtsdk4/types.rb', line 6274 def ui_language=(value) @ui_language = value end |
#user_locale ⇒ String
Returns the value of the user_locale
attribute.
6283 6284 6285 |
# File 'lib/ovirtsdk4/types.rb', line 6283 def user_locale @user_locale end |
#user_locale=(value) ⇒ Object
Sets the value of the user_locale
attribute.
6292 6293 6294 |
# File 'lib/ovirtsdk4/types.rb', line 6292 def user_locale=(value) @user_locale = value end |
#user_name ⇒ String
Returns the value of the user_name
attribute.
6301 6302 6303 |
# File 'lib/ovirtsdk4/types.rb', line 6301 def user_name @user_name end |
#user_name=(value) ⇒ Object
Sets the value of the user_name
attribute.
6310 6311 6312 |
# File 'lib/ovirtsdk4/types.rb', line 6310 def user_name=(value) @user_name = value end |
#windows_license_key ⇒ String
Returns the value of the windows_license_key
attribute.
6319 6320 6321 |
# File 'lib/ovirtsdk4/types.rb', line 6319 def windows_license_key @windows_license_key end |
#windows_license_key=(value) ⇒ Object
Sets the value of the windows_license_key
attribute.
6328 6329 6330 |
# File 'lib/ovirtsdk4/types.rb', line 6328 def windows_license_key=(value) @windows_license_key = value end |