Class: OCI::Database::Models::CreateDatabaseDetails
- Inherits:
-
Object
- Object
- OCI::Database::Models::CreateDatabaseDetails
- Defined in:
- lib/oci/database/models/create_database_details.rb
Constant Summary collapse
- DB_WORKLOAD_ENUM =
[DB_WORKLOAD_OLTP = 'OLTP', DB_WORKLOAD_DSS = 'DSS']
Instance Attribute Summary collapse
-
#admin_password ⇒ String
A strong password for SYS, SYSTEM, and PDB Admin.
-
#character_set ⇒ String
The character set for the database.
- #db_backup_config ⇒ OCI::Database::Models::DbBackupConfig
-
#db_name ⇒ String
The database name.
-
#db_workload ⇒ String
Database workload type.
-
#ncharacter_set ⇒ String
National character set for the database.
-
#pdb_name ⇒ String
Pluggable database name.
Instance Method Summary collapse
-
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other_object) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CreateDatabaseDetails
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ CreateDatabaseDetails
Initializes the object
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/oci/database/models/create_database_details.rb', line 46 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} if attributes[:'adminPassword'] self.admin_password = attributes[:'adminPassword'] end if attributes[:'characterSet'] self.character_set = attributes[:'characterSet'] end if attributes[:'dbBackupConfig'] self.db_backup_config = attributes[:'dbBackupConfig'] end if attributes[:'dbName'] self.db_name = attributes[:'dbName'] end if attributes[:'dbWorkload'] self.db_workload = attributes[:'dbWorkload'] end if attributes[:'ncharacterSet'] self.ncharacter_set = attributes[:'ncharacterSet'] end if attributes[:'pdbName'] self.pdb_name = attributes[:'pdbName'] end end |
Instance Attribute Details
#admin_password ⇒ String
A strong password for SYS, SYSTEM, and PDB Admin. The password must be at least nine characters and contain at least two uppercase, two lowercase, two numbers, and two special characters. The special characters must be _, \#, or -.
13 14 15 |
# File 'lib/oci/database/models/create_database_details.rb', line 13 def admin_password @admin_password end |
#character_set ⇒ String
The character set for the database. The default is AL32UTF8. Allowed values are:
AL32UTF8, AR8ADOS710, AR8ADOS720, AR8APTEC715, AR8ARABICMACS, AR8ASMO8X, AR8ISO8859P6, AR8MSWIN1256, AR8MUSSAD768, AR8NAFITHA711, AR8NAFITHA721, AR8SAKHR706, AR8SAKHR707, AZ8ISO8859P9E, BG8MSWIN, BG8PC437S, BLT8CP921, BLT8ISO8859P13, BLT8MSWIN1257, BLT8PC775, BN8BSCII, CDN8PC863, CEL8ISO8859P14, CL8ISO8859P5, CL8ISOIR111, CL8KOI8R, CL8KOI8U, CL8MACCYRILLICS, CL8MSWIN1251, EE8ISO8859P2, EE8MACCES, EE8MACCROATIANS, EE8MSWIN1250, EE8PC852, EL8DEC, EL8ISO8859P7, EL8MACGREEKS, EL8MSWIN1253, EL8PC437S, EL8PC851, EL8PC869, ET8MSWIN923, HU8ABMOD, HU8CWI2, IN8ISCII, IS8PC861, IW8ISO8859P8, IW8MACHEBREWS, IW8MSWIN1255, IW8PC1507, JA16EUC, JA16EUCTILDE, JA16SJIS, JA16SJISTILDE, JA16VMS, KO16KSCCS, KO16MSWIN949, LA8ISO6937, LA8PASSPORT, LT8MSWIN921, LT8PC772, LT8PC774, LV8PC1117, LV8PC8LR, LV8RST104090, N8PC865, NE8ISO8859P10, NEE8ISO8859P4, RU8BESTA, RU8PC855, RU8PC866, SE8ISO8859P3, TH8MACTHAIS, TH8TISASCII, TR8DEC, TR8MACTURKISHS, TR8MSWIN1254, TR8PC857, US7ASCII, US8PC437, UTF8, VN8MSWIN1258, VN8VN3, WE8DEC, WE8DG, WE8ISO8859P15, WE8ISO8859P9, WE8MACROMAN8S, WE8MSWIN1252, WE8NCR4970, WE8NEXTSTEP, WE8PC850, WE8PC858, WE8PC860, WE8ROMAN8, ZHS16CGB231280, ZHS16GBK, ZHT16BIG5, ZHT16CCDC, ZHT16DBT, ZHT16HKSCS, ZHT16MSWIN950, ZHT32EUC, ZHT32SOPS, ZHT32TRIS
20 21 22 |
# File 'lib/oci/database/models/create_database_details.rb', line 20 def character_set @character_set end |
#db_backup_config ⇒ OCI::Database::Models::DbBackupConfig
23 24 25 |
# File 'lib/oci/database/models/create_database_details.rb', line 23 def db_backup_config @db_backup_config end |
#db_name ⇒ String
The database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted.
27 28 29 |
# File 'lib/oci/database/models/create_database_details.rb', line 27 def db_name @db_name end |
#db_workload ⇒ String
Database workload type.
31 32 33 |
# File 'lib/oci/database/models/create_database_details.rb', line 31 def db_workload @db_workload end |
#ncharacter_set ⇒ String
National character set for the database. The default is AL16UTF16. Allowed values are: AL16UTF16 or UTF8.
37 38 39 |
# File 'lib/oci/database/models/create_database_details.rb', line 37 def ncharacter_set @ncharacter_set end |
#pdb_name ⇒ String
Pluggable database name. It must begin with an alphabetic character and can contain a maximum of eight alphanumeric characters. Special characters are not permitted. Pluggable database should not be same as database name.
41 42 43 |
# File 'lib/oci/database/models/create_database_details.rb', line 41 def pdb_name @pdb_name end |
Instance Method Details
#==(other_object) ⇒ Object
Checks equality by comparing each attribute.
94 95 96 97 98 99 100 101 102 103 104 |
# File 'lib/oci/database/models/create_database_details.rb', line 94 def ==(other_object) return true if self.equal?(other_object) self.class == other_object.class && admin_password == other_object.admin_password && character_set == other_object.character_set && db_backup_config == other_object.db_backup_config && db_name == other_object.db_name && db_workload == other_object.db_workload && ncharacter_set == other_object.ncharacter_set && pdb_name == other_object.pdb_name end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/oci/database/models/create_database_details.rb', line 121 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) self.public_send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| OCI::Internal::Util.convert_to_type($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.public_send("#{key}=", 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_object) ⇒ Boolean
108 109 110 |
# File 'lib/oci/database/models/create_database_details.rb', line 108 def eql?(other_object) self == other_object end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
114 115 116 |
# File 'lib/oci/database/models/create_database_details.rb', line 114 def hash [admin_password, character_set, db_backup_config, db_name, db_workload, ncharacter_set, pdb_name].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
146 147 148 149 150 151 152 153 154 |
# File 'lib/oci/database/models/create_database_details.rb', line 146 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_send(attr) next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
140 141 142 |
# File 'lib/oci/database/models/create_database_details.rb', line 140 def to_s to_hash.to_s end |