Class: OCI::Mysql::Models::ConfigurationVariables

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/mysql/models/configuration_variables.rb

Overview

User controllable service variables.

Constant Summary collapse

COMPLETION_TYPE_ENUM =
[
  COMPLETION_TYPE_NO_CHAIN = 'NO_CHAIN'.freeze,
  COMPLETION_TYPE_CHAIN = 'CHAIN'.freeze,
  COMPLETION_TYPE_RELEASE = 'RELEASE'.freeze,
  COMPLETION_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
DEFAULT_AUTHENTICATION_PLUGIN_ENUM =
[
  DEFAULT_AUTHENTICATION_PLUGIN_MYSQL_NATIVE_PASSWORD = 'mysql_native_password'.freeze,
  DEFAULT_AUTHENTICATION_PLUGIN_SHA256_PASSWORD = 'sha256_password'.freeze,
  DEFAULT_AUTHENTICATION_PLUGIN_CACHING_SHA2_PASSWORD = 'caching_sha2_password'.freeze,
  DEFAULT_AUTHENTICATION_PLUGIN_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
TRANSACTION_ISOLATION_ENUM =
[
  TRANSACTION_ISOLATION_READ_UNCOMMITTED = 'READ-UNCOMMITTED'.freeze,
  TRANSACTION_ISOLATION_READ_COMMITED = 'READ-COMMITED'.freeze,
  TRANSACTION_ISOLATION_REPEATABLE_READ = 'REPEATABLE-READ'.freeze,
  TRANSACTION_ISOLATION_SERIALIZABLE = 'SERIALIZABLE'.freeze,
  TRANSACTION_ISOLATION_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ ConfigurationVariables

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
# File 'lib/oci/mysql/models/configuration_variables.rb', line 398

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.completion_type = attributes[:'completionType'] if attributes[:'completionType']
  self.completion_type = "NO_CHAIN" if completion_type.nil? && !attributes.key?(:'completionType') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :completionType and :completion_type' if attributes.key?(:'completionType') && attributes.key?(:'completion_type')

  self.completion_type = attributes[:'completion_type'] if attributes[:'completion_type']
  self.completion_type = "NO_CHAIN" if completion_type.nil? && !attributes.key?(:'completionType') && !attributes.key?(:'completion_type') # rubocop:disable Style/StringLiterals

  self.default_authentication_plugin = attributes[:'defaultAuthenticationPlugin'] if attributes[:'defaultAuthenticationPlugin']
  self.default_authentication_plugin = "caching_sha2_password" if default_authentication_plugin.nil? && !attributes.key?(:'defaultAuthenticationPlugin') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :defaultAuthenticationPlugin and :default_authentication_plugin' if attributes.key?(:'defaultAuthenticationPlugin') && attributes.key?(:'default_authentication_plugin')

  self.default_authentication_plugin = attributes[:'default_authentication_plugin'] if attributes[:'default_authentication_plugin']
  self.default_authentication_plugin = "caching_sha2_password" if default_authentication_plugin.nil? && !attributes.key?(:'defaultAuthenticationPlugin') && !attributes.key?(:'default_authentication_plugin') # rubocop:disable Style/StringLiterals

  self.transaction_isolation = attributes[:'transactionIsolation'] if attributes[:'transactionIsolation']
  self.transaction_isolation = "REPEATABLE-READ" if transaction_isolation.nil? && !attributes.key?(:'transactionIsolation') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :transactionIsolation and :transaction_isolation' if attributes.key?(:'transactionIsolation') && attributes.key?(:'transaction_isolation')

  self.transaction_isolation = attributes[:'transaction_isolation'] if attributes[:'transaction_isolation']
  self.transaction_isolation = "REPEATABLE-READ" if transaction_isolation.nil? && !attributes.key?(:'transactionIsolation') && !attributes.key?(:'transaction_isolation') # rubocop:disable Style/StringLiterals

  self.innodb_ft_server_stopword_table = attributes[:'innodbFtServerStopwordTable'] if attributes[:'innodbFtServerStopwordTable']
  self.innodb_ft_server_stopword_table = "null" if innodb_ft_server_stopword_table.nil? && !attributes.key?(:'innodbFtServerStopwordTable') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :innodbFtServerStopwordTable and :innodb_ft_server_stopword_table' if attributes.key?(:'innodbFtServerStopwordTable') && attributes.key?(:'innodb_ft_server_stopword_table')

  self.innodb_ft_server_stopword_table = attributes[:'innodb_ft_server_stopword_table'] if attributes[:'innodb_ft_server_stopword_table']
  self.innodb_ft_server_stopword_table = "null" if innodb_ft_server_stopword_table.nil? && !attributes.key?(:'innodbFtServerStopwordTable') && !attributes.key?(:'innodb_ft_server_stopword_table') # rubocop:disable Style/StringLiterals

  self.mandatory_roles = attributes[:'mandatoryRoles'] if attributes[:'mandatoryRoles']
  self.mandatory_roles = "" if mandatory_roles.nil? && !attributes.key?(:'mandatoryRoles') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :mandatoryRoles and :mandatory_roles' if attributes.key?(:'mandatoryRoles') && attributes.key?(:'mandatory_roles')

  self.mandatory_roles = attributes[:'mandatory_roles'] if attributes[:'mandatory_roles']
  self.mandatory_roles = "" if mandatory_roles.nil? && !attributes.key?(:'mandatoryRoles') && !attributes.key?(:'mandatory_roles') # rubocop:disable Style/StringLiterals

  self.autocommit = attributes[:'autocommit'] unless attributes[:'autocommit'].nil?
  self.autocommit = true if autocommit.nil? && !attributes.key?(:'autocommit') # rubocop:disable Style/StringLiterals

  self.foreign_key_checks = attributes[:'foreignKeyChecks'] unless attributes[:'foreignKeyChecks'].nil?
  self.foreign_key_checks = true if foreign_key_checks.nil? && !attributes.key?(:'foreignKeyChecks') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :foreignKeyChecks and :foreign_key_checks' if attributes.key?(:'foreignKeyChecks') && attributes.key?(:'foreign_key_checks')

  self.foreign_key_checks = attributes[:'foreign_key_checks'] unless attributes[:'foreign_key_checks'].nil?
  self.foreign_key_checks = true if foreign_key_checks.nil? && !attributes.key?(:'foreignKeyChecks') && !attributes.key?(:'foreign_key_checks') # rubocop:disable Style/StringLiterals

  self.innodb_ft_enable_stopword = attributes[:'innodbFtEnableStopword'] unless attributes[:'innodbFtEnableStopword'].nil?
  self.innodb_ft_enable_stopword = true if innodb_ft_enable_stopword.nil? && !attributes.key?(:'innodbFtEnableStopword') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :innodbFtEnableStopword and :innodb_ft_enable_stopword' if attributes.key?(:'innodbFtEnableStopword') && attributes.key?(:'innodb_ft_enable_stopword')

  self.innodb_ft_enable_stopword = attributes[:'innodb_ft_enable_stopword'] unless attributes[:'innodb_ft_enable_stopword'].nil?
  self.innodb_ft_enable_stopword = true if innodb_ft_enable_stopword.nil? && !attributes.key?(:'innodbFtEnableStopword') && !attributes.key?(:'innodb_ft_enable_stopword') # rubocop:disable Style/StringLiterals

  self.local_infile = attributes[:'localInfile'] unless attributes[:'localInfile'].nil?
  self.local_infile = false if local_infile.nil? && !attributes.key?(:'localInfile') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :localInfile and :local_infile' if attributes.key?(:'localInfile') && attributes.key?(:'local_infile')

  self.local_infile = attributes[:'local_infile'] unless attributes[:'local_infile'].nil?
  self.local_infile = false if local_infile.nil? && !attributes.key?(:'localInfile') && !attributes.key?(:'local_infile') # rubocop:disable Style/StringLiterals

  self.mysql_firewall_mode = attributes[:'mysqlFirewallMode'] unless attributes[:'mysqlFirewallMode'].nil?
  self.mysql_firewall_mode = true if mysql_firewall_mode.nil? && !attributes.key?(:'mysqlFirewallMode') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :mysqlFirewallMode and :mysql_firewall_mode' if attributes.key?(:'mysqlFirewallMode') && attributes.key?(:'mysql_firewall_mode')

  self.mysql_firewall_mode = attributes[:'mysql_firewall_mode'] unless attributes[:'mysql_firewall_mode'].nil?
  self.mysql_firewall_mode = true if mysql_firewall_mode.nil? && !attributes.key?(:'mysqlFirewallMode') && !attributes.key?(:'mysql_firewall_mode') # rubocop:disable Style/StringLiterals

  self.mysqlx_enable_hello_notice = attributes[:'mysqlxEnableHelloNotice'] unless attributes[:'mysqlxEnableHelloNotice'].nil?
  self.mysqlx_enable_hello_notice = true if mysqlx_enable_hello_notice.nil? && !attributes.key?(:'mysqlxEnableHelloNotice') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :mysqlxEnableHelloNotice and :mysqlx_enable_hello_notice' if attributes.key?(:'mysqlxEnableHelloNotice') && attributes.key?(:'mysqlx_enable_hello_notice')

  self.mysqlx_enable_hello_notice = attributes[:'mysqlx_enable_hello_notice'] unless attributes[:'mysqlx_enable_hello_notice'].nil?
  self.mysqlx_enable_hello_notice = true if mysqlx_enable_hello_notice.nil? && !attributes.key?(:'mysqlxEnableHelloNotice') && !attributes.key?(:'mysqlx_enable_hello_notice') # rubocop:disable Style/StringLiterals

  self.sql_require_primary_key = attributes[:'sqlRequirePrimaryKey'] unless attributes[:'sqlRequirePrimaryKey'].nil?
  self.sql_require_primary_key = false if sql_require_primary_key.nil? && !attributes.key?(:'sqlRequirePrimaryKey') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :sqlRequirePrimaryKey and :sql_require_primary_key' if attributes.key?(:'sqlRequirePrimaryKey') && attributes.key?(:'sql_require_primary_key')

  self.sql_require_primary_key = attributes[:'sql_require_primary_key'] unless attributes[:'sql_require_primary_key'].nil?
  self.sql_require_primary_key = false if sql_require_primary_key.nil? && !attributes.key?(:'sqlRequirePrimaryKey') && !attributes.key?(:'sql_require_primary_key') # rubocop:disable Style/StringLiterals

  self.sql_warnings = attributes[:'sqlWarnings'] unless attributes[:'sqlWarnings'].nil?
  self.sql_warnings = false if sql_warnings.nil? && !attributes.key?(:'sqlWarnings') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :sqlWarnings and :sql_warnings' if attributes.key?(:'sqlWarnings') && attributes.key?(:'sql_warnings')

  self.sql_warnings = attributes[:'sql_warnings'] unless attributes[:'sql_warnings'].nil?
  self.sql_warnings = false if sql_warnings.nil? && !attributes.key?(:'sqlWarnings') && !attributes.key?(:'sql_warnings') # rubocop:disable Style/StringLiterals

  self.binlog_expire_logs_seconds = attributes[:'binlogExpireLogsSeconds'] if attributes[:'binlogExpireLogsSeconds']

  raise 'You cannot provide both :binlogExpireLogsSeconds and :binlog_expire_logs_seconds' if attributes.key?(:'binlogExpireLogsSeconds') && attributes.key?(:'binlog_expire_logs_seconds')

  self.binlog_expire_logs_seconds = attributes[:'binlog_expire_logs_seconds'] if attributes[:'binlog_expire_logs_seconds']

  self.innodb_buffer_pool_size = attributes[:'innodbBufferPoolSize'] if attributes[:'innodbBufferPoolSize']
  self.innodb_buffer_pool_size = 134217728 if innodb_buffer_pool_size.nil? && !attributes.key?(:'innodbBufferPoolSize') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :innodbBufferPoolSize and :innodb_buffer_pool_size' if attributes.key?(:'innodbBufferPoolSize') && attributes.key?(:'innodb_buffer_pool_size')

  self.innodb_buffer_pool_size = attributes[:'innodb_buffer_pool_size'] if attributes[:'innodb_buffer_pool_size']
  self.innodb_buffer_pool_size = 134217728 if innodb_buffer_pool_size.nil? && !attributes.key?(:'innodbBufferPoolSize') && !attributes.key?(:'innodb_buffer_pool_size') # rubocop:disable Style/StringLiterals

  self.innodb_ft_result_cache_limit = attributes[:'innodbFtResultCacheLimit'] if attributes[:'innodbFtResultCacheLimit']

  raise 'You cannot provide both :innodbFtResultCacheLimit and :innodb_ft_result_cache_limit' if attributes.key?(:'innodbFtResultCacheLimit') && attributes.key?(:'innodb_ft_result_cache_limit')

  self.innodb_ft_result_cache_limit = attributes[:'innodb_ft_result_cache_limit'] if attributes[:'innodb_ft_result_cache_limit']

  self.max_connections = attributes[:'maxConnections'] if attributes[:'maxConnections']

  raise 'You cannot provide both :maxConnections and :max_connections' if attributes.key?(:'maxConnections') && attributes.key?(:'max_connections')

  self.max_connections = attributes[:'max_connections'] if attributes[:'max_connections']

  self.max_prepared_stmt_count = attributes[:'maxPreparedStmtCount'] if attributes[:'maxPreparedStmtCount']

  raise 'You cannot provide both :maxPreparedStmtCount and :max_prepared_stmt_count' if attributes.key?(:'maxPreparedStmtCount') && attributes.key?(:'max_prepared_stmt_count')

  self.max_prepared_stmt_count = attributes[:'max_prepared_stmt_count'] if attributes[:'max_prepared_stmt_count']

  self.connect_timeout = attributes[:'connectTimeout'] if attributes[:'connectTimeout']

  raise 'You cannot provide both :connectTimeout and :connect_timeout' if attributes.key?(:'connectTimeout') && attributes.key?(:'connect_timeout')

  self.connect_timeout = attributes[:'connect_timeout'] if attributes[:'connect_timeout']

  self.cte_max_recursion_depth = attributes[:'cteMaxRecursionDepth'] if attributes[:'cteMaxRecursionDepth']

  raise 'You cannot provide both :cteMaxRecursionDepth and :cte_max_recursion_depth' if attributes.key?(:'cteMaxRecursionDepth') && attributes.key?(:'cte_max_recursion_depth')

  self.cte_max_recursion_depth = attributes[:'cte_max_recursion_depth'] if attributes[:'cte_max_recursion_depth']

  self.generated_random_password_length = attributes[:'generatedRandomPasswordLength'] if attributes[:'generatedRandomPasswordLength']

  raise 'You cannot provide both :generatedRandomPasswordLength and :generated_random_password_length' if attributes.key?(:'generatedRandomPasswordLength') && attributes.key?(:'generated_random_password_length')

  self.generated_random_password_length = attributes[:'generated_random_password_length'] if attributes[:'generated_random_password_length']

  self.information_schema_stats_expiry = attributes[:'informationSchemaStatsExpiry'] if attributes[:'informationSchemaStatsExpiry']

  raise 'You cannot provide both :informationSchemaStatsExpiry and :information_schema_stats_expiry' if attributes.key?(:'informationSchemaStatsExpiry') && attributes.key?(:'information_schema_stats_expiry')

  self.information_schema_stats_expiry = attributes[:'information_schema_stats_expiry'] if attributes[:'information_schema_stats_expiry']

  self.innodb_buffer_pool_instances = attributes[:'innodbBufferPoolInstances'] if attributes[:'innodbBufferPoolInstances']

  raise 'You cannot provide both :innodbBufferPoolInstances and :innodb_buffer_pool_instances' if attributes.key?(:'innodbBufferPoolInstances') && attributes.key?(:'innodb_buffer_pool_instances')

  self.innodb_buffer_pool_instances = attributes[:'innodb_buffer_pool_instances'] if attributes[:'innodb_buffer_pool_instances']

  self.innodb_ft_max_token_size = attributes[:'innodbFtMaxTokenSize'] if attributes[:'innodbFtMaxTokenSize']

  raise 'You cannot provide both :innodbFtMaxTokenSize and :innodb_ft_max_token_size' if attributes.key?(:'innodbFtMaxTokenSize') && attributes.key?(:'innodb_ft_max_token_size')

  self.innodb_ft_max_token_size = attributes[:'innodb_ft_max_token_size'] if attributes[:'innodb_ft_max_token_size']

  self.innodb_ft_min_token_size = attributes[:'innodbFtMinTokenSize'] if attributes[:'innodbFtMinTokenSize']

  raise 'You cannot provide both :innodbFtMinTokenSize and :innodb_ft_min_token_size' if attributes.key?(:'innodbFtMinTokenSize') && attributes.key?(:'innodb_ft_min_token_size')

  self.innodb_ft_min_token_size = attributes[:'innodb_ft_min_token_size'] if attributes[:'innodb_ft_min_token_size']

  self.innodb_ft_num_word_optimize = attributes[:'innodbFtNumWordOptimize'] if attributes[:'innodbFtNumWordOptimize']

  raise 'You cannot provide both :innodbFtNumWordOptimize and :innodb_ft_num_word_optimize' if attributes.key?(:'innodbFtNumWordOptimize') && attributes.key?(:'innodb_ft_num_word_optimize')

  self.innodb_ft_num_word_optimize = attributes[:'innodb_ft_num_word_optimize'] if attributes[:'innodb_ft_num_word_optimize']

  self.innodb_lock_wait_timeout = attributes[:'innodbLockWaitTimeout'] if attributes[:'innodbLockWaitTimeout']

  raise 'You cannot provide both :innodbLockWaitTimeout and :innodb_lock_wait_timeout' if attributes.key?(:'innodbLockWaitTimeout') && attributes.key?(:'innodb_lock_wait_timeout')

  self.innodb_lock_wait_timeout = attributes[:'innodb_lock_wait_timeout'] if attributes[:'innodb_lock_wait_timeout']

  self.innodb_max_purge_lag = attributes[:'innodbMaxPurgeLag'] if attributes[:'innodbMaxPurgeLag']

  raise 'You cannot provide both :innodbMaxPurgeLag and :innodb_max_purge_lag' if attributes.key?(:'innodbMaxPurgeLag') && attributes.key?(:'innodb_max_purge_lag')

  self.innodb_max_purge_lag = attributes[:'innodb_max_purge_lag'] if attributes[:'innodb_max_purge_lag']

  self.innodb_max_purge_lag_delay = attributes[:'innodbMaxPurgeLagDelay'] if attributes[:'innodbMaxPurgeLagDelay']

  raise 'You cannot provide both :innodbMaxPurgeLagDelay and :innodb_max_purge_lag_delay' if attributes.key?(:'innodbMaxPurgeLagDelay') && attributes.key?(:'innodb_max_purge_lag_delay')

  self.innodb_max_purge_lag_delay = attributes[:'innodb_max_purge_lag_delay'] if attributes[:'innodb_max_purge_lag_delay']

  self.max_execution_time = attributes[:'maxExecutionTime'] if attributes[:'maxExecutionTime']

  raise 'You cannot provide both :maxExecutionTime and :max_execution_time' if attributes.key?(:'maxExecutionTime') && attributes.key?(:'max_execution_time')

  self.max_execution_time = attributes[:'max_execution_time'] if attributes[:'max_execution_time']

  self.mysqlx_connect_timeout = attributes[:'mysqlxConnectTimeout'] if attributes[:'mysqlxConnectTimeout']

  raise 'You cannot provide both :mysqlxConnectTimeout and :mysqlx_connect_timeout' if attributes.key?(:'mysqlxConnectTimeout') && attributes.key?(:'mysqlx_connect_timeout')

  self.mysqlx_connect_timeout = attributes[:'mysqlx_connect_timeout'] if attributes[:'mysqlx_connect_timeout']

  self.mysqlx_document_id_unique_prefix = attributes[:'mysqlxDocumentIdUniquePrefix'] if attributes[:'mysqlxDocumentIdUniquePrefix']

  raise 'You cannot provide both :mysqlxDocumentIdUniquePrefix and :mysqlx_document_id_unique_prefix' if attributes.key?(:'mysqlxDocumentIdUniquePrefix') && attributes.key?(:'mysqlx_document_id_unique_prefix')

  self.mysqlx_document_id_unique_prefix = attributes[:'mysqlx_document_id_unique_prefix'] if attributes[:'mysqlx_document_id_unique_prefix']

  self.mysqlx_idle_worker_thread_timeout = attributes[:'mysqlxIdleWorkerThreadTimeout'] if attributes[:'mysqlxIdleWorkerThreadTimeout']

  raise 'You cannot provide both :mysqlxIdleWorkerThreadTimeout and :mysqlx_idle_worker_thread_timeout' if attributes.key?(:'mysqlxIdleWorkerThreadTimeout') && attributes.key?(:'mysqlx_idle_worker_thread_timeout')

  self.mysqlx_idle_worker_thread_timeout = attributes[:'mysqlx_idle_worker_thread_timeout'] if attributes[:'mysqlx_idle_worker_thread_timeout']

  self.mysqlx_interactive_timeout = attributes[:'mysqlxInteractiveTimeout'] if attributes[:'mysqlxInteractiveTimeout']

  raise 'You cannot provide both :mysqlxInteractiveTimeout and :mysqlx_interactive_timeout' if attributes.key?(:'mysqlxInteractiveTimeout') && attributes.key?(:'mysqlx_interactive_timeout')

  self.mysqlx_interactive_timeout = attributes[:'mysqlx_interactive_timeout'] if attributes[:'mysqlx_interactive_timeout']

  self.mysqlx_max_allowed_packet = attributes[:'mysqlxMaxAllowedPacket'] if attributes[:'mysqlxMaxAllowedPacket']

  raise 'You cannot provide both :mysqlxMaxAllowedPacket and :mysqlx_max_allowed_packet' if attributes.key?(:'mysqlxMaxAllowedPacket') && attributes.key?(:'mysqlx_max_allowed_packet')

  self.mysqlx_max_allowed_packet = attributes[:'mysqlx_max_allowed_packet'] if attributes[:'mysqlx_max_allowed_packet']

  self.mysqlx_min_worker_threads = attributes[:'mysqlxMinWorkerThreads'] if attributes[:'mysqlxMinWorkerThreads']

  raise 'You cannot provide both :mysqlxMinWorkerThreads and :mysqlx_min_worker_threads' if attributes.key?(:'mysqlxMinWorkerThreads') && attributes.key?(:'mysqlx_min_worker_threads')

  self.mysqlx_min_worker_threads = attributes[:'mysqlx_min_worker_threads'] if attributes[:'mysqlx_min_worker_threads']

  self.mysqlx_read_timeout = attributes[:'mysqlxReadTimeout'] if attributes[:'mysqlxReadTimeout']

  raise 'You cannot provide both :mysqlxReadTimeout and :mysqlx_read_timeout' if attributes.key?(:'mysqlxReadTimeout') && attributes.key?(:'mysqlx_read_timeout')

  self.mysqlx_read_timeout = attributes[:'mysqlx_read_timeout'] if attributes[:'mysqlx_read_timeout']

  self.mysqlx_wait_timeout = attributes[:'mysqlxWaitTimeout'] if attributes[:'mysqlxWaitTimeout']

  raise 'You cannot provide both :mysqlxWaitTimeout and :mysqlx_wait_timeout' if attributes.key?(:'mysqlxWaitTimeout') && attributes.key?(:'mysqlx_wait_timeout')

  self.mysqlx_wait_timeout = attributes[:'mysqlx_wait_timeout'] if attributes[:'mysqlx_wait_timeout']

  self.mysqlx_write_timeout = attributes[:'mysqlxWriteTimeout'] if attributes[:'mysqlxWriteTimeout']

  raise 'You cannot provide both :mysqlxWriteTimeout and :mysqlx_write_timeout' if attributes.key?(:'mysqlxWriteTimeout') && attributes.key?(:'mysqlx_write_timeout')

  self.mysqlx_write_timeout = attributes[:'mysqlx_write_timeout'] if attributes[:'mysqlx_write_timeout']

  self.parser_max_mem_size = attributes[:'parserMaxMemSize'] if attributes[:'parserMaxMemSize']

  raise 'You cannot provide both :parserMaxMemSize and :parser_max_mem_size' if attributes.key?(:'parserMaxMemSize') && attributes.key?(:'parser_max_mem_size')

  self.parser_max_mem_size = attributes[:'parser_max_mem_size'] if attributes[:'parser_max_mem_size']

  self.query_alloc_block_size = attributes[:'queryAllocBlockSize'] if attributes[:'queryAllocBlockSize']

  raise 'You cannot provide both :queryAllocBlockSize and :query_alloc_block_size' if attributes.key?(:'queryAllocBlockSize') && attributes.key?(:'query_alloc_block_size')

  self.query_alloc_block_size = attributes[:'query_alloc_block_size'] if attributes[:'query_alloc_block_size']

  self.query_prealloc_size = attributes[:'queryPreallocSize'] if attributes[:'queryPreallocSize']

  raise 'You cannot provide both :queryPreallocSize and :query_prealloc_size' if attributes.key?(:'queryPreallocSize') && attributes.key?(:'query_prealloc_size')

  self.query_prealloc_size = attributes[:'query_prealloc_size'] if attributes[:'query_prealloc_size']

  self.sql_mode = attributes[:'sqlMode'] if attributes[:'sqlMode']
  self.sql_mode = "ONLY_FULL_GROUP_BY,\nSTRICT_TRANS_TABLES,\nNO_ZERO_IN_DATE,\nNO_ZERO_DATE,\nERROR_FOR_DIVISION_BY_ZERO,\nNO_ENGINE_SUBSTITUTION\n" if sql_mode.nil? && !attributes.key?(:'sqlMode') # rubocop:disable Style/StringLiterals

  raise 'You cannot provide both :sqlMode and :sql_mode' if attributes.key?(:'sqlMode') && attributes.key?(:'sql_mode')

  self.sql_mode = attributes[:'sql_mode'] if attributes[:'sql_mode']
  self.sql_mode = "ONLY_FULL_GROUP_BY,\nSTRICT_TRANS_TABLES,\nNO_ZERO_IN_DATE,\nNO_ZERO_DATE,\nERROR_FOR_DIVISION_BY_ZERO,\nNO_ENGINE_SUBSTITUTION\n" if sql_mode.nil? && !attributes.key?(:'sqlMode') && !attributes.key?(:'sql_mode') # rubocop:disable Style/StringLiterals

  self.mysqlx_deflate_default_compression_level = attributes[:'mysqlxDeflateDefaultCompressionLevel'] if attributes[:'mysqlxDeflateDefaultCompressionLevel']

  raise 'You cannot provide both :mysqlxDeflateDefaultCompressionLevel and :mysqlx_deflate_default_compression_level' if attributes.key?(:'mysqlxDeflateDefaultCompressionLevel') && attributes.key?(:'mysqlx_deflate_default_compression_level')

  self.mysqlx_deflate_default_compression_level = attributes[:'mysqlx_deflate_default_compression_level'] if attributes[:'mysqlx_deflate_default_compression_level']

  self.mysqlx_deflate_max_client_compression_level = attributes[:'mysqlxDeflateMaxClientCompressionLevel'] if attributes[:'mysqlxDeflateMaxClientCompressionLevel']

  raise 'You cannot provide both :mysqlxDeflateMaxClientCompressionLevel and :mysqlx_deflate_max_client_compression_level' if attributes.key?(:'mysqlxDeflateMaxClientCompressionLevel') && attributes.key?(:'mysqlx_deflate_max_client_compression_level')

  self.mysqlx_deflate_max_client_compression_level = attributes[:'mysqlx_deflate_max_client_compression_level'] if attributes[:'mysqlx_deflate_max_client_compression_level']

  self.mysqlx_lz4_max_client_compression_level = attributes[:'mysqlxLz4MaxClientCompressionLevel'] if attributes[:'mysqlxLz4MaxClientCompressionLevel']

  raise 'You cannot provide both :mysqlxLz4MaxClientCompressionLevel and :mysqlx_lz4_max_client_compression_level' if attributes.key?(:'mysqlxLz4MaxClientCompressionLevel') && attributes.key?(:'mysqlx_lz4_max_client_compression_level')

  self.mysqlx_lz4_max_client_compression_level = attributes[:'mysqlx_lz4_max_client_compression_level'] if attributes[:'mysqlx_lz4_max_client_compression_level']

  self.mysqlx_lz4_default_compression_level = attributes[:'mysqlxLz4DefaultCompressionLevel'] if attributes[:'mysqlxLz4DefaultCompressionLevel']

  raise 'You cannot provide both :mysqlxLz4DefaultCompressionLevel and :mysqlx_lz4_default_compression_level' if attributes.key?(:'mysqlxLz4DefaultCompressionLevel') && attributes.key?(:'mysqlx_lz4_default_compression_level')

  self.mysqlx_lz4_default_compression_level = attributes[:'mysqlx_lz4_default_compression_level'] if attributes[:'mysqlx_lz4_default_compression_level']

  self.mysqlx_zstd_max_client_compression_level = attributes[:'mysqlxZstdMaxClientCompressionLevel'] if attributes[:'mysqlxZstdMaxClientCompressionLevel']

  raise 'You cannot provide both :mysqlxZstdMaxClientCompressionLevel and :mysqlx_zstd_max_client_compression_level' if attributes.key?(:'mysqlxZstdMaxClientCompressionLevel') && attributes.key?(:'mysqlx_zstd_max_client_compression_level')

  self.mysqlx_zstd_max_client_compression_level = attributes[:'mysqlx_zstd_max_client_compression_level'] if attributes[:'mysqlx_zstd_max_client_compression_level']

  self.mysql_zstd_default_compression_level = attributes[:'mysqlZstdDefaultCompressionLevel'] if attributes[:'mysqlZstdDefaultCompressionLevel']

  raise 'You cannot provide both :mysqlZstdDefaultCompressionLevel and :mysql_zstd_default_compression_level' if attributes.key?(:'mysqlZstdDefaultCompressionLevel') && attributes.key?(:'mysql_zstd_default_compression_level')

  self.mysql_zstd_default_compression_level = attributes[:'mysql_zstd_default_compression_level'] if attributes[:'mysql_zstd_default_compression_level']
end

Instance Attribute Details

#autocommitBOOLEAN

("autocommit")

Returns:

  • (BOOLEAN)


55
56
57
# File 'lib/oci/mysql/models/configuration_variables.rb', line 55

def autocommit
  @autocommit
end

#binlog_expire_logs_secondsInteger

("binlog_expire_logs_seconds")

Returns:

  • (Integer)


87
88
89
# File 'lib/oci/mysql/models/configuration_variables.rb', line 87

def binlog_expire_logs_seconds
  @binlog_expire_logs_seconds
end

#completion_typeString

("completion_type")

Returns:

  • (String)


35
36
37
# File 'lib/oci/mysql/models/configuration_variables.rb', line 35

def completion_type
  @completion_type
end

#connect_timeoutInteger

("connect_timeout")

Returns:

  • (Integer)


107
108
109
# File 'lib/oci/mysql/models/configuration_variables.rb', line 107

def connect_timeout
  @connect_timeout
end

#cte_max_recursion_depthInteger

("cte_max_recursion_depth")

Returns:

  • (Integer)


111
112
113
# File 'lib/oci/mysql/models/configuration_variables.rb', line 111

def cte_max_recursion_depth
  @cte_max_recursion_depth
end

#default_authentication_pluginString

("default_authentication_plugin")

Returns:

  • (String)


39
40
41
# File 'lib/oci/mysql/models/configuration_variables.rb', line 39

def default_authentication_plugin
  @default_authentication_plugin
end

#foreign_key_checksBOOLEAN

("foreign_key_checks")

Returns:

  • (BOOLEAN)


59
60
61
# File 'lib/oci/mysql/models/configuration_variables.rb', line 59

def foreign_key_checks
  @foreign_key_checks
end

#generated_random_password_lengthInteger

("generated_random_password_length")

Returns:

  • (Integer)


115
116
117
# File 'lib/oci/mysql/models/configuration_variables.rb', line 115

def generated_random_password_length
  @generated_random_password_length
end

#information_schema_stats_expiryInteger

("information_schema_stats_expiry")

Returns:

  • (Integer)


119
120
121
# File 'lib/oci/mysql/models/configuration_variables.rb', line 119

def information_schema_stats_expiry
  @information_schema_stats_expiry
end

#innodb_buffer_pool_instancesInteger

("innodb_buffer_pool_instances")

Returns:

  • (Integer)


123
124
125
# File 'lib/oci/mysql/models/configuration_variables.rb', line 123

def innodb_buffer_pool_instances
  @innodb_buffer_pool_instances
end

#innodb_buffer_pool_sizeInteger

("innodb_buffer_pool_size")

Returns:

  • (Integer)


91
92
93
# File 'lib/oci/mysql/models/configuration_variables.rb', line 91

def innodb_buffer_pool_size
  @innodb_buffer_pool_size
end

#innodb_ft_enable_stopwordBOOLEAN

("innodb_ft_enable_stopword")

Returns:

  • (BOOLEAN)


63
64
65
# File 'lib/oci/mysql/models/configuration_variables.rb', line 63

def innodb_ft_enable_stopword
  @innodb_ft_enable_stopword
end

#innodb_ft_max_token_sizeInteger

("innodb_ft_max_token_size")

Returns:

  • (Integer)


127
128
129
# File 'lib/oci/mysql/models/configuration_variables.rb', line 127

def innodb_ft_max_token_size
  @innodb_ft_max_token_size
end

#innodb_ft_min_token_sizeInteger

("innodb_ft_min_token_size")

Returns:

  • (Integer)


131
132
133
# File 'lib/oci/mysql/models/configuration_variables.rb', line 131

def innodb_ft_min_token_size
  @innodb_ft_min_token_size
end

#innodb_ft_num_word_optimizeInteger

("innodb_ft_num_word_optimize")

Returns:

  • (Integer)


135
136
137
# File 'lib/oci/mysql/models/configuration_variables.rb', line 135

def innodb_ft_num_word_optimize
  @innodb_ft_num_word_optimize
end

#innodb_ft_result_cache_limitInteger

("innodb_ft_result_cache_limit")

Returns:

  • (Integer)


95
96
97
# File 'lib/oci/mysql/models/configuration_variables.rb', line 95

def innodb_ft_result_cache_limit
  @innodb_ft_result_cache_limit
end

#innodb_ft_server_stopword_tableString

("innodb_ft_server_stopword_table")

Returns:

  • (String)


47
48
49
# File 'lib/oci/mysql/models/configuration_variables.rb', line 47

def innodb_ft_server_stopword_table
  @innodb_ft_server_stopword_table
end

#innodb_lock_wait_timeoutInteger

("innodb_lock_wait_timeout")

Returns:

  • (Integer)


139
140
141
# File 'lib/oci/mysql/models/configuration_variables.rb', line 139

def innodb_lock_wait_timeout
  @innodb_lock_wait_timeout
end

#innodb_max_purge_lagInteger

("innodb_max_purge_lag")

Returns:

  • (Integer)


143
144
145
# File 'lib/oci/mysql/models/configuration_variables.rb', line 143

def innodb_max_purge_lag
  @innodb_max_purge_lag
end

#innodb_max_purge_lag_delayInteger

("innodb_max_purge_lag_delay")

Returns:

  • (Integer)


147
148
149
# File 'lib/oci/mysql/models/configuration_variables.rb', line 147

def innodb_max_purge_lag_delay
  @innodb_max_purge_lag_delay
end

#local_infileBOOLEAN

("local_infile")

Returns:

  • (BOOLEAN)


67
68
69
# File 'lib/oci/mysql/models/configuration_variables.rb', line 67

def local_infile
  @local_infile
end

#mandatory_rolesString

("mandatory_roles")

Returns:

  • (String)


51
52
53
# File 'lib/oci/mysql/models/configuration_variables.rb', line 51

def mandatory_roles
  @mandatory_roles
end

#max_connectionsInteger

("max_connections")

Returns:

  • (Integer)


99
100
101
# File 'lib/oci/mysql/models/configuration_variables.rb', line 99

def max_connections
  @max_connections
end

#max_execution_timeInteger

("max_execution_time")

Returns:

  • (Integer)


151
152
153
# File 'lib/oci/mysql/models/configuration_variables.rb', line 151

def max_execution_time
  @max_execution_time
end

#max_prepared_stmt_countInteger

("max_prepared_stmt_count")

Returns:

  • (Integer)


103
104
105
# File 'lib/oci/mysql/models/configuration_variables.rb', line 103

def max_prepared_stmt_count
  @max_prepared_stmt_count
end

#mysql_firewall_modeBOOLEAN

("mysql_firewall_mode")

Returns:

  • (BOOLEAN)


71
72
73
# File 'lib/oci/mysql/models/configuration_variables.rb', line 71

def mysql_firewall_mode
  @mysql_firewall_mode
end

#mysql_zstd_default_compression_levelInteger

Set the default compression level for the zstd algorithm. ("mysqlx_zstd_default_compression_level")

Returns:

  • (Integer)


227
228
229
# File 'lib/oci/mysql/models/configuration_variables.rb', line 227

def mysql_zstd_default_compression_level
  @mysql_zstd_default_compression_level
end

#mysqlx_connect_timeoutInteger

("mysqlx_connect_timeout")

Returns:

  • (Integer)


155
156
157
# File 'lib/oci/mysql/models/configuration_variables.rb', line 155

def mysqlx_connect_timeout
  @mysqlx_connect_timeout
end

#mysqlx_deflate_default_compression_levelInteger

Set the default compression level for the deflate algorithm. ("mysqlx_deflate_default_compression_level")

Returns:

  • (Integer)


207
208
209
# File 'lib/oci/mysql/models/configuration_variables.rb', line 207

def mysqlx_deflate_default_compression_level
  @mysqlx_deflate_default_compression_level
end

#mysqlx_deflate_max_client_compression_levelInteger

Limit the upper bound of accepted compression levels for the deflate algorithm. ("mysqlx_deflate_max_client_compression_level")

Returns:

  • (Integer)


211
212
213
# File 'lib/oci/mysql/models/configuration_variables.rb', line 211

def mysqlx_deflate_max_client_compression_level
  @mysqlx_deflate_max_client_compression_level
end

#mysqlx_document_id_unique_prefixInteger

("mysqlx_document_id_unique_prefix")

Returns:

  • (Integer)


159
160
161
# File 'lib/oci/mysql/models/configuration_variables.rb', line 159

def mysqlx_document_id_unique_prefix
  @mysqlx_document_id_unique_prefix
end

#mysqlx_enable_hello_noticeBOOLEAN

("mysqlx_enable_hello_notice")

Returns:

  • (BOOLEAN)


75
76
77
# File 'lib/oci/mysql/models/configuration_variables.rb', line 75

def mysqlx_enable_hello_notice
  @mysqlx_enable_hello_notice
end

#mysqlx_idle_worker_thread_timeoutInteger

("mysqlx_idle_worker_thread_timeout")

Returns:

  • (Integer)


163
164
165
# File 'lib/oci/mysql/models/configuration_variables.rb', line 163

def mysqlx_idle_worker_thread_timeout
  @mysqlx_idle_worker_thread_timeout
end

#mysqlx_interactive_timeoutInteger

("mysqlx_interactive_timeout")

Returns:

  • (Integer)


167
168
169
# File 'lib/oci/mysql/models/configuration_variables.rb', line 167

def mysqlx_interactive_timeout
  @mysqlx_interactive_timeout
end

#mysqlx_lz4_default_compression_levelInteger

Set the default compression level for the lz4 algorithm. ("mysqlx_lz4_default_compression_level")

Returns:

  • (Integer)


219
220
221
# File 'lib/oci/mysql/models/configuration_variables.rb', line 219

def mysqlx_lz4_default_compression_level
  @mysqlx_lz4_default_compression_level
end

#mysqlx_lz4_max_client_compression_levelInteger

Limit the upper bound of accepted compression levels for the lz4 algorithm. ("mysqlx_lz4_max_client_compression_level")

Returns:

  • (Integer)


215
216
217
# File 'lib/oci/mysql/models/configuration_variables.rb', line 215

def mysqlx_lz4_max_client_compression_level
  @mysqlx_lz4_max_client_compression_level
end

#mysqlx_max_allowed_packetInteger

("mysqlx_max_allowed_packet")

Returns:

  • (Integer)


171
172
173
# File 'lib/oci/mysql/models/configuration_variables.rb', line 171

def mysqlx_max_allowed_packet
  @mysqlx_max_allowed_packet
end

#mysqlx_min_worker_threadsInteger

("mysqlx_min_worker_threads")

Returns:

  • (Integer)


175
176
177
# File 'lib/oci/mysql/models/configuration_variables.rb', line 175

def mysqlx_min_worker_threads
  @mysqlx_min_worker_threads
end

#mysqlx_read_timeoutInteger

("mysqlx_read_timeout")

Returns:

  • (Integer)


179
180
181
# File 'lib/oci/mysql/models/configuration_variables.rb', line 179

def mysqlx_read_timeout
  @mysqlx_read_timeout
end

#mysqlx_wait_timeoutInteger

("mysqlx_wait_timeout")

Returns:

  • (Integer)


183
184
185
# File 'lib/oci/mysql/models/configuration_variables.rb', line 183

def mysqlx_wait_timeout
  @mysqlx_wait_timeout
end

#mysqlx_write_timeoutInteger

("mysqlx_write_timeout")

Returns:

  • (Integer)


187
188
189
# File 'lib/oci/mysql/models/configuration_variables.rb', line 187

def mysqlx_write_timeout
  @mysqlx_write_timeout
end

#mysqlx_zstd_max_client_compression_levelInteger

Limit the upper bound of accepted compression levels for the zstd algorithm. ("mysqlx_zstd_max_client_compression_level")

Returns:

  • (Integer)


223
224
225
# File 'lib/oci/mysql/models/configuration_variables.rb', line 223

def mysqlx_zstd_max_client_compression_level
  @mysqlx_zstd_max_client_compression_level
end

#parser_max_mem_sizeInteger

("parser_max_mem_size")

Returns:

  • (Integer)


191
192
193
# File 'lib/oci/mysql/models/configuration_variables.rb', line 191

def parser_max_mem_size
  @parser_max_mem_size
end

#query_alloc_block_sizeInteger

("query_alloc_block_size")

Returns:

  • (Integer)


195
196
197
# File 'lib/oci/mysql/models/configuration_variables.rb', line 195

def query_alloc_block_size
  @query_alloc_block_size
end

#query_prealloc_sizeInteger

("query_prealloc_size")

Returns:

  • (Integer)


199
200
201
# File 'lib/oci/mysql/models/configuration_variables.rb', line 199

def query_prealloc_size
  @query_prealloc_size
end

#sql_modeString

("sql_mode")

Returns:

  • (String)


203
204
205
# File 'lib/oci/mysql/models/configuration_variables.rb', line 203

def sql_mode
  @sql_mode
end

#sql_require_primary_keyBOOLEAN

("sql_require_primary_key")

Returns:

  • (BOOLEAN)


79
80
81
# File 'lib/oci/mysql/models/configuration_variables.rb', line 79

def sql_require_primary_key
  @sql_require_primary_key
end

#sql_warningsBOOLEAN

("sql_warnings")

Returns:

  • (BOOLEAN)


83
84
85
# File 'lib/oci/mysql/models/configuration_variables.rb', line 83

def sql_warnings
  @sql_warnings
end

#transaction_isolationString

("transaction_isolation")

Returns:

  • (String)


43
44
45
# File 'lib/oci/mysql/models/configuration_variables.rb', line 43

def transaction_isolation
  @transaction_isolation
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
# File 'lib/oci/mysql/models/configuration_variables.rb', line 230

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'completion_type': :'completionType',
    'default_authentication_plugin': :'defaultAuthenticationPlugin',
    'transaction_isolation': :'transactionIsolation',
    'innodb_ft_server_stopword_table': :'innodbFtServerStopwordTable',
    'mandatory_roles': :'mandatoryRoles',
    'autocommit': :'autocommit',
    'foreign_key_checks': :'foreignKeyChecks',
    'innodb_ft_enable_stopword': :'innodbFtEnableStopword',
    'local_infile': :'localInfile',
    'mysql_firewall_mode': :'mysqlFirewallMode',
    'mysqlx_enable_hello_notice': :'mysqlxEnableHelloNotice',
    'sql_require_primary_key': :'sqlRequirePrimaryKey',
    'sql_warnings': :'sqlWarnings',
    'binlog_expire_logs_seconds': :'binlogExpireLogsSeconds',
    'innodb_buffer_pool_size': :'innodbBufferPoolSize',
    'innodb_ft_result_cache_limit': :'innodbFtResultCacheLimit',
    'max_connections': :'maxConnections',
    'max_prepared_stmt_count': :'maxPreparedStmtCount',
    'connect_timeout': :'connectTimeout',
    'cte_max_recursion_depth': :'cteMaxRecursionDepth',
    'generated_random_password_length': :'generatedRandomPasswordLength',
    'information_schema_stats_expiry': :'informationSchemaStatsExpiry',
    'innodb_buffer_pool_instances': :'innodbBufferPoolInstances',
    'innodb_ft_max_token_size': :'innodbFtMaxTokenSize',
    'innodb_ft_min_token_size': :'innodbFtMinTokenSize',
    'innodb_ft_num_word_optimize': :'innodbFtNumWordOptimize',
    'innodb_lock_wait_timeout': :'innodbLockWaitTimeout',
    'innodb_max_purge_lag': :'innodbMaxPurgeLag',
    'innodb_max_purge_lag_delay': :'innodbMaxPurgeLagDelay',
    'max_execution_time': :'maxExecutionTime',
    'mysqlx_connect_timeout': :'mysqlxConnectTimeout',
    'mysqlx_document_id_unique_prefix': :'mysqlxDocumentIdUniquePrefix',
    'mysqlx_idle_worker_thread_timeout': :'mysqlxIdleWorkerThreadTimeout',
    'mysqlx_interactive_timeout': :'mysqlxInteractiveTimeout',
    'mysqlx_max_allowed_packet': :'mysqlxMaxAllowedPacket',
    'mysqlx_min_worker_threads': :'mysqlxMinWorkerThreads',
    'mysqlx_read_timeout': :'mysqlxReadTimeout',
    'mysqlx_wait_timeout': :'mysqlxWaitTimeout',
    'mysqlx_write_timeout': :'mysqlxWriteTimeout',
    'parser_max_mem_size': :'parserMaxMemSize',
    'query_alloc_block_size': :'queryAllocBlockSize',
    'query_prealloc_size': :'queryPreallocSize',
    'sql_mode': :'sqlMode',
    'mysqlx_deflate_default_compression_level': :'mysqlxDeflateDefaultCompressionLevel',
    'mysqlx_deflate_max_client_compression_level': :'mysqlxDeflateMaxClientCompressionLevel',
    'mysqlx_lz4_max_client_compression_level': :'mysqlxLz4MaxClientCompressionLevel',
    'mysqlx_lz4_default_compression_level': :'mysqlxLz4DefaultCompressionLevel',
    'mysqlx_zstd_max_client_compression_level': :'mysqlxZstdMaxClientCompressionLevel',
    'mysql_zstd_default_compression_level': :'mysqlZstdDefaultCompressionLevel'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
# File 'lib/oci/mysql/models/configuration_variables.rb', line 287

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'completion_type': :'String',
    'default_authentication_plugin': :'String',
    'transaction_isolation': :'String',
    'innodb_ft_server_stopword_table': :'String',
    'mandatory_roles': :'String',
    'autocommit': :'BOOLEAN',
    'foreign_key_checks': :'BOOLEAN',
    'innodb_ft_enable_stopword': :'BOOLEAN',
    'local_infile': :'BOOLEAN',
    'mysql_firewall_mode': :'BOOLEAN',
    'mysqlx_enable_hello_notice': :'BOOLEAN',
    'sql_require_primary_key': :'BOOLEAN',
    'sql_warnings': :'BOOLEAN',
    'binlog_expire_logs_seconds': :'Integer',
    'innodb_buffer_pool_size': :'Integer',
    'innodb_ft_result_cache_limit': :'Integer',
    'max_connections': :'Integer',
    'max_prepared_stmt_count': :'Integer',
    'connect_timeout': :'Integer',
    'cte_max_recursion_depth': :'Integer',
    'generated_random_password_length': :'Integer',
    'information_schema_stats_expiry': :'Integer',
    'innodb_buffer_pool_instances': :'Integer',
    'innodb_ft_max_token_size': :'Integer',
    'innodb_ft_min_token_size': :'Integer',
    'innodb_ft_num_word_optimize': :'Integer',
    'innodb_lock_wait_timeout': :'Integer',
    'innodb_max_purge_lag': :'Integer',
    'innodb_max_purge_lag_delay': :'Integer',
    'max_execution_time': :'Integer',
    'mysqlx_connect_timeout': :'Integer',
    'mysqlx_document_id_unique_prefix': :'Integer',
    'mysqlx_idle_worker_thread_timeout': :'Integer',
    'mysqlx_interactive_timeout': :'Integer',
    'mysqlx_max_allowed_packet': :'Integer',
    'mysqlx_min_worker_threads': :'Integer',
    'mysqlx_read_timeout': :'Integer',
    'mysqlx_wait_timeout': :'Integer',
    'mysqlx_write_timeout': :'Integer',
    'parser_max_mem_size': :'Integer',
    'query_alloc_block_size': :'Integer',
    'query_prealloc_size': :'Integer',
    'sql_mode': :'String',
    'mysqlx_deflate_default_compression_level': :'Integer',
    'mysqlx_deflate_max_client_compression_level': :'Integer',
    'mysqlx_lz4_max_client_compression_level': :'Integer',
    'mysqlx_lz4_default_compression_level': :'Integer',
    'mysqlx_zstd_max_client_compression_level': :'Integer',
    'mysql_zstd_default_compression_level': :'Integer'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
# File 'lib/oci/mysql/models/configuration_variables.rb', line 770

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    completion_type == other.completion_type &&
    default_authentication_plugin == other.default_authentication_plugin &&
    transaction_isolation == other.transaction_isolation &&
    innodb_ft_server_stopword_table == other.innodb_ft_server_stopword_table &&
    mandatory_roles == other.mandatory_roles &&
    autocommit == other.autocommit &&
    foreign_key_checks == other.foreign_key_checks &&
    innodb_ft_enable_stopword == other.innodb_ft_enable_stopword &&
    local_infile == other.local_infile &&
    mysql_firewall_mode == other.mysql_firewall_mode &&
    mysqlx_enable_hello_notice == other.mysqlx_enable_hello_notice &&
    sql_require_primary_key == other.sql_require_primary_key &&
    sql_warnings == other.sql_warnings &&
    binlog_expire_logs_seconds == other.binlog_expire_logs_seconds &&
    innodb_buffer_pool_size == other.innodb_buffer_pool_size &&
    innodb_ft_result_cache_limit == other.innodb_ft_result_cache_limit &&
    max_connections == other.max_connections &&
    max_prepared_stmt_count == other.max_prepared_stmt_count &&
    connect_timeout == other.connect_timeout &&
    cte_max_recursion_depth == other.cte_max_recursion_depth &&
    generated_random_password_length == other.generated_random_password_length &&
    information_schema_stats_expiry == other.information_schema_stats_expiry &&
    innodb_buffer_pool_instances == other.innodb_buffer_pool_instances &&
    innodb_ft_max_token_size == other.innodb_ft_max_token_size &&
    innodb_ft_min_token_size == other.innodb_ft_min_token_size &&
    innodb_ft_num_word_optimize == other.innodb_ft_num_word_optimize &&
    innodb_lock_wait_timeout == other.innodb_lock_wait_timeout &&
    innodb_max_purge_lag == other.innodb_max_purge_lag &&
    innodb_max_purge_lag_delay == other.innodb_max_purge_lag_delay &&
    max_execution_time == other.max_execution_time &&
    mysqlx_connect_timeout == other.mysqlx_connect_timeout &&
    mysqlx_document_id_unique_prefix == other.mysqlx_document_id_unique_prefix &&
    mysqlx_idle_worker_thread_timeout == other.mysqlx_idle_worker_thread_timeout &&
    mysqlx_interactive_timeout == other.mysqlx_interactive_timeout &&
    mysqlx_max_allowed_packet == other.mysqlx_max_allowed_packet &&
    mysqlx_min_worker_threads == other.mysqlx_min_worker_threads &&
    mysqlx_read_timeout == other.mysqlx_read_timeout &&
    mysqlx_wait_timeout == other.mysqlx_wait_timeout &&
    mysqlx_write_timeout == other.mysqlx_write_timeout &&
    parser_max_mem_size == other.parser_max_mem_size &&
    query_alloc_block_size == other.query_alloc_block_size &&
    query_prealloc_size == other.query_prealloc_size &&
    sql_mode == other.sql_mode &&
    mysqlx_deflate_default_compression_level == other.mysqlx_deflate_default_compression_level &&
    mysqlx_deflate_max_client_compression_level == other.mysqlx_deflate_max_client_compression_level &&
    mysqlx_lz4_max_client_compression_level == other.mysqlx_lz4_max_client_compression_level &&
    mysqlx_lz4_default_compression_level == other.mysqlx_lz4_default_compression_level &&
    mysqlx_zstd_max_client_compression_level == other.mysqlx_zstd_max_client_compression_level &&
    mysql_zstd_default_compression_level == other.mysql_zstd_default_compression_level
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
# File 'lib/oci/mysql/models/configuration_variables.rb', line 848

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


828
829
830
# File 'lib/oci/mysql/models/configuration_variables.rb', line 828

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



837
838
839
# File 'lib/oci/mysql/models/configuration_variables.rb', line 837

def hash
  [completion_type, default_authentication_plugin, transaction_isolation, innodb_ft_server_stopword_table, mandatory_roles, autocommit, foreign_key_checks, innodb_ft_enable_stopword, local_infile, mysql_firewall_mode, mysqlx_enable_hello_notice, sql_require_primary_key, sql_warnings, binlog_expire_logs_seconds, innodb_buffer_pool_size, innodb_ft_result_cache_limit, max_connections, max_prepared_stmt_count, connect_timeout, cte_max_recursion_depth, generated_random_password_length, information_schema_stats_expiry, innodb_buffer_pool_instances, innodb_ft_max_token_size, innodb_ft_min_token_size, innodb_ft_num_word_optimize, innodb_lock_wait_timeout, innodb_max_purge_lag, innodb_max_purge_lag_delay, max_execution_time, mysqlx_connect_timeout, mysqlx_document_id_unique_prefix, mysqlx_idle_worker_thread_timeout, mysqlx_interactive_timeout, mysqlx_max_allowed_packet, mysqlx_min_worker_threads, mysqlx_read_timeout, mysqlx_wait_timeout, mysqlx_write_timeout, parser_max_mem_size, query_alloc_block_size, query_prealloc_size, sql_mode, mysqlx_deflate_default_compression_level, mysqlx_deflate_max_client_compression_level, mysqlx_lz4_max_client_compression_level, mysqlx_lz4_default_compression_level, mysqlx_zstd_max_client_compression_level, mysql_zstd_default_compression_level].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



881
882
883
884
885
886
887
888
889
890
# File 'lib/oci/mysql/models/configuration_variables.rb', line 881

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



875
876
877
# File 'lib/oci/mysql/models/configuration_variables.rb', line 875

def to_s
  to_hash.to_s
end