class OvirtSDK4::Initialization

Public Class Methods

new(opts = {}) click to toggle source

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`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 4661
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

Public Instance Methods

active_directory_ou() click to toggle source

Returns the value of the `active_directory_ou` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4217
def active_directory_ou
  return @active_directory_ou
end
active_directory_ou=(value) click to toggle source

Sets the value of the `active_directory_ou` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4226
def active_directory_ou=(value)
  @active_directory_ou = value
end
authorized_ssh_keys() click to toggle source

Returns the value of the `authorized_ssh_keys` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4235
def authorized_ssh_keys
  return @authorized_ssh_keys
end
authorized_ssh_keys=(value) click to toggle source

Sets the value of the `authorized_ssh_keys` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4244
def authorized_ssh_keys=(value)
  @authorized_ssh_keys = value
end
cloud_init() click to toggle source

Returns the value of the `cloud_init` attribute.

@return [CloudInit]

# File lib/ovirtsdk4/types.rb, line 4253
def cloud_init
  return @cloud_init
end
cloud_init=(value) click to toggle source

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 4266
def cloud_init=(value)
  if value.is_a?(Hash)
    value = CloudInit.new(value)
  end
  @cloud_init = value
end
configuration() click to toggle source

Returns the value of the `configuration` attribute.

@return [Configuration]

# File lib/ovirtsdk4/types.rb, line 4278
def configuration
  return @configuration
end
configuration=(value) click to toggle source

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 4291
def configuration=(value)
  if value.is_a?(Hash)
    value = Configuration.new(value)
  end
  @configuration = value
end
custom_script() click to toggle source

Returns the value of the `custom_script` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4303
def custom_script
  return @custom_script
end
custom_script=(value) click to toggle source

Sets the value of the `custom_script` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4312
def custom_script=(value)
  @custom_script = value
end
dns_search=(value) click to toggle source

Sets the value of the `dns_search` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4330
def dns_search=(value)
  @dns_search = value
end
dns_servers() click to toggle source

Returns the value of the `dns_servers` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4339
def dns_servers
  return @dns_servers
end
dns_servers=(value) click to toggle source

Sets the value of the `dns_servers` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4348
def dns_servers=(value)
  @dns_servers = value
end
domain() click to toggle source

Returns the value of the `domain` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4357
def domain
  return @domain
end
domain=(value) click to toggle source

Sets the value of the `domain` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4366
def domain=(value)
  @domain = value
end
host_name() click to toggle source

Returns the value of the `host_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4375
def host_name
  return @host_name
end
host_name=(value) click to toggle source

Sets the value of the `host_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4384
def host_name=(value)
  @host_name = value
end
input_locale() click to toggle source

Returns the value of the `input_locale` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4393
def input_locale
  return @input_locale
end
input_locale=(value) click to toggle source

Sets the value of the `input_locale` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4402
def input_locale=(value)
  @input_locale = value
end
nic_configurations() click to toggle source

Returns the value of the `nic_configurations` attribute.

@return [Array<NicConfiguration>]

# File lib/ovirtsdk4/types.rb, line 4411
def nic_configurations
  return @nic_configurations
end
nic_configurations=(list) click to toggle source

Sets the value of the `nic_configurations` attribute.

@param list [Array<NicConfiguration>]

# File lib/ovirtsdk4/types.rb, line 4419
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() click to toggle source

Returns the value of the `org_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4436
def org_name
  return @org_name
end
org_name=(value) click to toggle source

Sets the value of the `org_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4445
def org_name=(value)
  @org_name = value
end
regenerate_ids() click to toggle source

Returns the value of the `regenerate_ids` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 4454
def regenerate_ids
  return @regenerate_ids
end
regenerate_ids=(value) click to toggle source

Sets the value of the `regenerate_ids` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 4463
def regenerate_ids=(value)
  @regenerate_ids = value
end
regenerate_ssh_keys() click to toggle source

Returns the value of the `regenerate_ssh_keys` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 4472
def regenerate_ssh_keys
  return @regenerate_ssh_keys
end
regenerate_ssh_keys=(value) click to toggle source

Sets the value of the `regenerate_ssh_keys` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 4481
def regenerate_ssh_keys=(value)
  @regenerate_ssh_keys = value
end
root_password() click to toggle source

Returns the value of the `root_password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4490
def root_password
  return @root_password
end
root_password=(value) click to toggle source

Sets the value of the `root_password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4499
def root_password=(value)
  @root_password = value
end
system_locale() click to toggle source

Returns the value of the `system_locale` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4508
def system_locale
  return @system_locale
end
system_locale=(value) click to toggle source

Sets the value of the `system_locale` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4517
def system_locale=(value)
  @system_locale = value
end
timezone() click to toggle source

Returns the value of the `timezone` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4526
def timezone
  return @timezone
end
timezone=(value) click to toggle source

Sets the value of the `timezone` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4535
def timezone=(value)
  @timezone = value
end
ui_language() click to toggle source

Returns the value of the `ui_language` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4544
def ui_language
  return @ui_language
end
ui_language=(value) click to toggle source

Sets the value of the `ui_language` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4553
def ui_language=(value)
  @ui_language = value
end
user_locale() click to toggle source

Returns the value of the `user_locale` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4562
def user_locale
  return @user_locale
end
user_locale=(value) click to toggle source

Sets the value of the `user_locale` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4571
def user_locale=(value)
  @user_locale = value
end
user_name() click to toggle source

Returns the value of the `user_name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4580
def user_name
  return @user_name
end
user_name=(value) click to toggle source

Sets the value of the `user_name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4589
def user_name=(value)
  @user_name = value
end
windows_license_key() click to toggle source

Returns the value of the `windows_license_key` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 4598
def windows_license_key
  return @windows_license_key
end
windows_license_key=(value) click to toggle source

Sets the value of the `windows_license_key` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 4607
def windows_license_key=(value)
  @windows_license_key = value
end