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

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ Initialization

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.

  • :cloud_init_network_protocol (CloudInitNetworkProtocol)

    The value of attribute cloud_init_network_protocol.

  • :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.


6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
# File 'lib/ovirtsdk4/types.rb', line 6355

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

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


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 ==(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

#active_directory_ouString

Returns the value of the active_directory_ou attribute.

Returns:

  • (String)

5890
5891
5892
# File 'lib/ovirtsdk4/types.rb', line 5890

def active_directory_ou
  @active_directory_ou
end

#active_directory_ou=(value) ⇒ Object

Sets the value of the active_directory_ou attribute.

Parameters:

  • value (String)

5899
5900
5901
# File 'lib/ovirtsdk4/types.rb', line 5899

def active_directory_ou=(value)
  @active_directory_ou = value
end

#authorized_ssh_keysString

Returns the value of the authorized_ssh_keys attribute.

Returns:

  • (String)

5908
5909
5910
# File 'lib/ovirtsdk4/types.rb', line 5908

def authorized_ssh_keys
  @authorized_ssh_keys
end

#authorized_ssh_keys=(value) ⇒ Object

Sets the value of the authorized_ssh_keys attribute.

Parameters:

  • value (String)

5917
5918
5919
# File 'lib/ovirtsdk4/types.rb', line 5917

def authorized_ssh_keys=(value)
  @authorized_ssh_keys = value
end

#cloud_initCloudInit

Returns the value of the cloud_init attribute.

Returns:


5926
5927
5928
# File 'lib/ovirtsdk4/types.rb', line 5926

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.

Parameters:


5939
5940
5941
5942
5943
5944
# File 'lib/ovirtsdk4/types.rb', line 5939

def cloud_init=(value)
  if value.is_a?(Hash)
    value = CloudInit.new(value)
  end
  @cloud_init = value
end

#cloud_init_network_protocolCloudInitNetworkProtocol

Returns the value of the cloud_init_network_protocol attribute.


5951
5952
5953
# File 'lib/ovirtsdk4/types.rb', line 5951

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.

Parameters:


5960
5961
5962
# File 'lib/ovirtsdk4/types.rb', line 5960

def cloud_init_network_protocol=(value)
  @cloud_init_network_protocol = value
end

#configurationConfiguration

Returns the value of the configuration attribute.

Returns:


5969
5970
5971
# File 'lib/ovirtsdk4/types.rb', line 5969

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.

Parameters:


5982
5983
5984
5985
5986
5987
# File 'lib/ovirtsdk4/types.rb', line 5982

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

#custom_scriptString

Returns the value of the custom_script attribute.

Returns:

  • (String)

5994
5995
5996
# File 'lib/ovirtsdk4/types.rb', line 5994

def custom_script
  @custom_script
end

#custom_script=(value) ⇒ Object

Sets the value of the custom_script attribute.

Parameters:

  • value (String)

6003
6004
6005
# File 'lib/ovirtsdk4/types.rb', line 6003

def custom_script=(value)
  @custom_script = value
end

#dns_searchString

Returns the value of the dns_search attribute.

Returns:

  • (String)

6012
6013
6014
# File 'lib/ovirtsdk4/types.rb', line 6012

def dns_search
  @dns_search
end

#dns_search=(value) ⇒ Object

Sets the value of the dns_search attribute.

Parameters:

  • value (String)

6021
6022
6023
# File 'lib/ovirtsdk4/types.rb', line 6021

def dns_search=(value)
  @dns_search = value
end

#dns_serversString

Returns the value of the dns_servers attribute.

Returns:

  • (String)

6030
6031
6032
# File 'lib/ovirtsdk4/types.rb', line 6030

def dns_servers
  @dns_servers
end

#dns_servers=(value) ⇒ Object

Sets the value of the dns_servers attribute.

Parameters:

  • value (String)

6039
6040
6041
# File 'lib/ovirtsdk4/types.rb', line 6039

def dns_servers=(value)
  @dns_servers = value
end

#domainString

Returns the value of the domain attribute.

Returns:

  • (String)

6048
6049
6050
# File 'lib/ovirtsdk4/types.rb', line 6048

def domain
  @domain
end

#domain=(value) ⇒ Object

Sets the value of the domain attribute.

Parameters:

  • value (String)

6057
6058
6059
# File 'lib/ovirtsdk4/types.rb', line 6057

def domain=(value)
  @domain = value
end

#hashObject

Generates a hash value for this object.


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 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_nameString

Returns the value of the host_name attribute.

Returns:

  • (String)

6066
6067
6068
# File 'lib/ovirtsdk4/types.rb', line 6066

def host_name
  @host_name
end

#host_name=(value) ⇒ Object

Sets the value of the host_name attribute.

Parameters:

  • value (String)

6075
6076
6077
# File 'lib/ovirtsdk4/types.rb', line 6075

def host_name=(value)
  @host_name = value
end

#input_localeString

Returns the value of the input_locale attribute.

Returns:

  • (String)

6084
6085
6086
# File 'lib/ovirtsdk4/types.rb', line 6084

def input_locale
  @input_locale
end

#input_locale=(value) ⇒ Object

Sets the value of the input_locale attribute.

Parameters:

  • value (String)

6093
6094
6095
# File 'lib/ovirtsdk4/types.rb', line 6093

def input_locale=(value)
  @input_locale = value
end

#nic_configurationsArray<NicConfiguration>

Returns the value of the nic_configurations attribute.

Returns:


6102
6103
6104
# File 'lib/ovirtsdk4/types.rb', line 6102

def nic_configurations
  @nic_configurations
end

#nic_configurations=(list) ⇒ Object

Sets the value of the nic_configurations attribute.

Parameters:


6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
# File 'lib/ovirtsdk4/types.rb', line 6111

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_nameString

Returns the value of the org_name attribute.

Returns:

  • (String)

6128
6129
6130
# File 'lib/ovirtsdk4/types.rb', line 6128

def org_name
  @org_name
end

#org_name=(value) ⇒ Object

Sets the value of the org_name attribute.

Parameters:

  • value (String)

6137
6138
6139
# File 'lib/ovirtsdk4/types.rb', line 6137

def org_name=(value)
  @org_name = value
end

#regenerate_idsBoolean

Returns the value of the regenerate_ids attribute.

Returns:

  • (Boolean)

6146
6147
6148
# File 'lib/ovirtsdk4/types.rb', line 6146

def regenerate_ids
  @regenerate_ids
end

#regenerate_ids=(value) ⇒ Object

Sets the value of the regenerate_ids attribute.

Parameters:

  • value (Boolean)

6155
6156
6157
# File 'lib/ovirtsdk4/types.rb', line 6155

def regenerate_ids=(value)
  @regenerate_ids = value
end

#regenerate_ssh_keysBoolean

Returns the value of the regenerate_ssh_keys attribute.

Returns:

  • (Boolean)

6164
6165
6166
# File 'lib/ovirtsdk4/types.rb', line 6164

def regenerate_ssh_keys
  @regenerate_ssh_keys
end

#regenerate_ssh_keys=(value) ⇒ Object

Sets the value of the regenerate_ssh_keys attribute.

Parameters:

  • value (Boolean)

6173
6174
6175
# File 'lib/ovirtsdk4/types.rb', line 6173

def regenerate_ssh_keys=(value)
  @regenerate_ssh_keys = value
end

#root_passwordString

Returns the value of the root_password attribute.

Returns:

  • (String)

6182
6183
6184
# File 'lib/ovirtsdk4/types.rb', line 6182

def root_password
  @root_password
end

#root_password=(value) ⇒ Object

Sets the value of the root_password attribute.

Parameters:

  • value (String)

6191
6192
6193
# File 'lib/ovirtsdk4/types.rb', line 6191

def root_password=(value)
  @root_password = value
end

#system_localeString

Returns the value of the system_locale attribute.

Returns:

  • (String)

6200
6201
6202
# File 'lib/ovirtsdk4/types.rb', line 6200

def system_locale
  @system_locale
end

#system_locale=(value) ⇒ Object

Sets the value of the system_locale attribute.

Parameters:

  • value (String)

6209
6210
6211
# File 'lib/ovirtsdk4/types.rb', line 6209

def system_locale=(value)
  @system_locale = value
end

#timezoneString

Returns the value of the timezone attribute.

Returns:

  • (String)

6218
6219
6220
# File 'lib/ovirtsdk4/types.rb', line 6218

def timezone
  @timezone
end

#timezone=(value) ⇒ Object

Sets the value of the timezone attribute.

Parameters:

  • value (String)

6227
6228
6229
# File 'lib/ovirtsdk4/types.rb', line 6227

def timezone=(value)
  @timezone = value
end

#ui_languageString

Returns the value of the ui_language attribute.

Returns:

  • (String)

6236
6237
6238
# File 'lib/ovirtsdk4/types.rb', line 6236

def ui_language
  @ui_language
end

#ui_language=(value) ⇒ Object

Sets the value of the ui_language attribute.

Parameters:

  • value (String)

6245
6246
6247
# File 'lib/ovirtsdk4/types.rb', line 6245

def ui_language=(value)
  @ui_language = value
end

#user_localeString

Returns the value of the user_locale attribute.

Returns:

  • (String)

6254
6255
6256
# File 'lib/ovirtsdk4/types.rb', line 6254

def user_locale
  @user_locale
end

#user_locale=(value) ⇒ Object

Sets the value of the user_locale attribute.

Parameters:

  • value (String)

6263
6264
6265
# File 'lib/ovirtsdk4/types.rb', line 6263

def user_locale=(value)
  @user_locale = value
end

#user_nameString

Returns the value of the user_name attribute.

Returns:

  • (String)

6272
6273
6274
# File 'lib/ovirtsdk4/types.rb', line 6272

def user_name
  @user_name
end

#user_name=(value) ⇒ Object

Sets the value of the user_name attribute.

Parameters:

  • value (String)

6281
6282
6283
# File 'lib/ovirtsdk4/types.rb', line 6281

def user_name=(value)
  @user_name = value
end

#windows_license_keyString

Returns the value of the windows_license_key attribute.

Returns:

  • (String)

6290
6291
6292
# File 'lib/ovirtsdk4/types.rb', line 6290

def windows_license_key
  @windows_license_key
end

#windows_license_key=(value) ⇒ Object

Sets the value of the windows_license_key attribute.

Parameters:

  • value (String)

6299
6300
6301
# File 'lib/ovirtsdk4/types.rb', line 6299

def windows_license_key=(value)
  @windows_license_key = value
end