Class: OvirtSDK4::Initialization

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Initialization) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Initialization class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :active_directory_ou (String)

    The value of attribute active_directory_ou.

  • :authorized_ssh_keys (String)

    The value of attribute authorized_ssh_keys.

  • :cloud_init (CloudInit, Hash)

    The value of attribute cloud_init.

  • :configuration (Configuration, Hash)

    The value of attribute configuration.

  • :custom_script (String)

    The value of attribute custom_script.

  • :dns_search (String)

    The value of attribute dns_search.

  • :dns_servers (String)

    The value of attribute dns_servers.

  • :domain (String)

    The value of attribute domain.

  • :host_name (String)

    The value of attribute host_name.

  • :input_locale (String)

    The value of attribute input_locale.

  • :nic_configurations (Array<NicConfiguration>, Array<Hash>)

    The values of attribute nic_configurations.

  • :org_name (String)

    The value of attribute org_name.

  • :regenerate_ids (Boolean)

    The value of attribute regenerate_ids.

  • :regenerate_ssh_keys (Boolean)

    The value of attribute regenerate_ssh_keys.

  • :root_password (String)

    The value of attribute root_password.

  • :system_locale (String)

    The value of attribute system_locale.

  • :timezone (String)

    The value of attribute timezone.

  • :ui_language (String)

    The value of attribute ui_language.

  • :user_locale (String)

    The value of attribute user_locale.

  • :user_name (String)

    The value of attribute user_name.

  • :windows_license_key (String)

    The value of attribute windows_license_key.



4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
# 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

Instance Method Details

- (String) active_directory_ou

Returns the value of the active_directory_ou attribute.

Returns:

  • (String)


3848
3849
3850
# File 'lib/ovirtsdk4/types.rb', line 3848

def active_directory_ou
  return @active_directory_ou
end

- (Object) active_directory_ou=(value)

Sets the value of the active_directory_ou attribute.

Parameters:

  • value (String)


3857
3858
3859
# File 'lib/ovirtsdk4/types.rb', line 3857

def active_directory_ou=(value)
  @active_directory_ou = value
end

- (String) authorized_ssh_keys

Returns the value of the authorized_ssh_keys attribute.

Returns:

  • (String)


3866
3867
3868
# File 'lib/ovirtsdk4/types.rb', line 3866

def authorized_ssh_keys
  return @authorized_ssh_keys
end

- (Object) authorized_ssh_keys=(value)

Sets the value of the authorized_ssh_keys attribute.

Parameters:

  • value (String)


3875
3876
3877
# File 'lib/ovirtsdk4/types.rb', line 3875

def authorized_ssh_keys=(value)
  @authorized_ssh_keys = value
end

- (CloudInit) cloud_init

Returns the value of the cloud_init attribute.

Returns:



3884
3885
3886
# File 'lib/ovirtsdk4/types.rb', line 3884

def cloud_init
  return @cloud_init
end

- (Object) cloud_init=(value)

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.

Parameters:



3897
3898
3899
3900
3901
3902
# 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

- (Configuration) configuration

Returns the value of the configuration attribute.

Returns:



3909
3910
3911
# File 'lib/ovirtsdk4/types.rb', line 3909

def configuration
  return @configuration
end

- (Object) configuration=(value)

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.

Parameters:



3922
3923
3924
3925
3926
3927
# File 'lib/ovirtsdk4/types.rb', line 3922

def configuration=(value)
  if value.is_a?(Hash)
    value = Configuration.new(value)
  end
  @configuration = value
end

- (String) custom_script

Returns the value of the custom_script attribute.

Returns:

  • (String)


3934
3935
3936
# File 'lib/ovirtsdk4/types.rb', line 3934

def custom_script
  return @custom_script
end

- (Object) custom_script=(value)

Sets the value of the custom_script attribute.

Parameters:

  • value (String)


3943
3944
3945
# File 'lib/ovirtsdk4/types.rb', line 3943

def custom_script=(value)
  @custom_script = value
end

- (String) dns_search

Returns the value of the dns_search attribute.

Returns:

  • (String)


3952
3953
3954
# File 'lib/ovirtsdk4/types.rb', line 3952

def dns_search
  return @dns_search
end

- (Object) dns_search=(value)

Sets the value of the dns_search attribute.

Parameters:

  • value (String)


3961
3962
3963
# File 'lib/ovirtsdk4/types.rb', line 3961

def dns_search=(value)
  @dns_search = value
end

- (String) dns_servers

Returns the value of the dns_servers attribute.

Returns:

  • (String)


3970
3971
3972
# File 'lib/ovirtsdk4/types.rb', line 3970

def dns_servers
  return @dns_servers
end

- (Object) dns_servers=(value)

Sets the value of the dns_servers attribute.

Parameters:

  • value (String)


3979
3980
3981
# File 'lib/ovirtsdk4/types.rb', line 3979

def dns_servers=(value)
  @dns_servers = value
end

- (String) domain

Returns the value of the domain attribute.

Returns:

  • (String)


3988
3989
3990
# File 'lib/ovirtsdk4/types.rb', line 3988

def domain
  return @domain
end

- (Object) domain=(value)

Sets the value of the domain attribute.

Parameters:

  • value (String)


3997
3998
3999
# File 'lib/ovirtsdk4/types.rb', line 3997

def domain=(value)
  @domain = value
end

- (String) host_name

Returns the value of the host_name attribute.

Returns:

  • (String)


4006
4007
4008
# File 'lib/ovirtsdk4/types.rb', line 4006

def host_name
  return @host_name
end

- (Object) host_name=(value)

Sets the value of the host_name attribute.

Parameters:

  • value (String)


4015
4016
4017
# File 'lib/ovirtsdk4/types.rb', line 4015

def host_name=(value)
  @host_name = value
end

- (String) input_locale

Returns the value of the input_locale attribute.

Returns:

  • (String)


4024
4025
4026
# File 'lib/ovirtsdk4/types.rb', line 4024

def input_locale
  return @input_locale
end

- (Object) input_locale=(value)

Sets the value of the input_locale attribute.

Parameters:

  • value (String)


4033
4034
4035
# File 'lib/ovirtsdk4/types.rb', line 4033

def input_locale=(value)
  @input_locale = value
end

- (Array<NicConfiguration>) nic_configurations

Returns the value of the nic_configurations attribute.

Returns:



4042
4043
4044
# File 'lib/ovirtsdk4/types.rb', line 4042

def nic_configurations
  return @nic_configurations
end

- (Object) nic_configurations=(list)

Sets the value of the nic_configurations attribute.

Parameters:



4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
# 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

- (String) org_name

Returns the value of the org_name attribute.

Returns:

  • (String)


4067
4068
4069
# File 'lib/ovirtsdk4/types.rb', line 4067

def org_name
  return @org_name
end

- (Object) org_name=(value)

Sets the value of the org_name attribute.

Parameters:

  • value (String)


4076
4077
4078
# File 'lib/ovirtsdk4/types.rb', line 4076

def org_name=(value)
  @org_name = value
end

- (Boolean) regenerate_ids

Returns the value of the regenerate_ids attribute.

Returns:

  • (Boolean)


4085
4086
4087
# File 'lib/ovirtsdk4/types.rb', line 4085

def regenerate_ids
  return @regenerate_ids
end

- (Object) regenerate_ids=(value)

Sets the value of the regenerate_ids attribute.

Parameters:

  • value (Boolean)


4094
4095
4096
# File 'lib/ovirtsdk4/types.rb', line 4094

def regenerate_ids=(value)
  @regenerate_ids = value
end

- (Boolean) regenerate_ssh_keys

Returns the value of the regenerate_ssh_keys attribute.

Returns:

  • (Boolean)


4103
4104
4105
# File 'lib/ovirtsdk4/types.rb', line 4103

def regenerate_ssh_keys
  return @regenerate_ssh_keys
end

- (Object) regenerate_ssh_keys=(value)

Sets the value of the regenerate_ssh_keys attribute.

Parameters:

  • value (Boolean)


4112
4113
4114
# File 'lib/ovirtsdk4/types.rb', line 4112

def regenerate_ssh_keys=(value)
  @regenerate_ssh_keys = value
end

- (String) root_password

Returns the value of the root_password attribute.

Returns:

  • (String)


4121
4122
4123
# File 'lib/ovirtsdk4/types.rb', line 4121

def root_password
  return @root_password
end

- (Object) root_password=(value)

Sets the value of the root_password attribute.

Parameters:

  • value (String)


4130
4131
4132
# File 'lib/ovirtsdk4/types.rb', line 4130

def root_password=(value)
  @root_password = value
end

- (String) system_locale

Returns the value of the system_locale attribute.

Returns:

  • (String)


4139
4140
4141
# File 'lib/ovirtsdk4/types.rb', line 4139

def system_locale
  return @system_locale
end

- (Object) system_locale=(value)

Sets the value of the system_locale attribute.

Parameters:

  • value (String)


4148
4149
4150
# File 'lib/ovirtsdk4/types.rb', line 4148

def system_locale=(value)
  @system_locale = value
end

- (String) timezone

Returns the value of the timezone attribute.

Returns:

  • (String)


4157
4158
4159
# File 'lib/ovirtsdk4/types.rb', line 4157

def timezone
  return @timezone
end

- (Object) timezone=(value)

Sets the value of the timezone attribute.

Parameters:

  • value (String)


4166
4167
4168
# File 'lib/ovirtsdk4/types.rb', line 4166

def timezone=(value)
  @timezone = value
end

- (String) ui_language

Returns the value of the ui_language attribute.

Returns:

  • (String)


4175
4176
4177
# File 'lib/ovirtsdk4/types.rb', line 4175

def ui_language
  return @ui_language
end

- (Object) ui_language=(value)

Sets the value of the ui_language attribute.

Parameters:

  • value (String)


4184
4185
4186
# File 'lib/ovirtsdk4/types.rb', line 4184

def ui_language=(value)
  @ui_language = value
end

- (String) user_locale

Returns the value of the user_locale attribute.

Returns:

  • (String)


4193
4194
4195
# File 'lib/ovirtsdk4/types.rb', line 4193

def user_locale
  return @user_locale
end

- (Object) user_locale=(value)

Sets the value of the user_locale attribute.

Parameters:

  • value (String)


4202
4203
4204
# File 'lib/ovirtsdk4/types.rb', line 4202

def user_locale=(value)
  @user_locale = value
end

- (String) user_name

Returns the value of the user_name attribute.

Returns:

  • (String)


4211
4212
4213
# File 'lib/ovirtsdk4/types.rb', line 4211

def user_name
  return @user_name
end

- (Object) user_name=(value)

Sets the value of the user_name attribute.

Parameters:

  • value (String)


4220
4221
4222
# File 'lib/ovirtsdk4/types.rb', line 4220

def user_name=(value)
  @user_name = value
end

- (String) windows_license_key

Returns the value of the windows_license_key attribute.

Returns:

  • (String)


4229
4230
4231
# File 'lib/ovirtsdk4/types.rb', line 4229

def windows_license_key
  return @windows_license_key
end

- (Object) windows_license_key=(value)

Sets the value of the windows_license_key attribute.

Parameters:

  • value (String)


4238
4239
4240
# File 'lib/ovirtsdk4/types.rb', line 4238

def windows_license_key=(value)
  @windows_license_key = value
end