Class: OCI::Database::Models::CreateExternalBackupJobDetails
- Inherits:
-
Object
- Object
- OCI::Database::Models::CreateExternalBackupJobDetails
- Defined in:
- lib/oci/database/models/create_external_backup_job_details.rb
Overview
CreateExternalBackupJobDetails model.
Constant Summary collapse
- DATABASE_MODE_ENUM =
[ DATABASE_MODE_SI = 'SI'.freeze, DATABASE_MODE_RAC = 'RAC'.freeze ].freeze
- DATABASE_EDITION_ENUM =
[ DATABASE_EDITION_STANDARD_EDITION = 'STANDARD_EDITION'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION = 'ENTERPRISE_EDITION'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_HIGH_PERFORMANCE = 'ENTERPRISE_EDITION_HIGH_PERFORMANCE'.freeze, DATABASE_EDITION_ENTERPRISE_EDITION_EXTREME_PERFORMANCE = 'ENTERPRISE_EDITION_EXTREME_PERFORMANCE'.freeze ].freeze
Instance Attribute Summary collapse
-
#availability_domain ⇒ String
[Required] The targeted availability domain for the backup.
-
#character_set ⇒ String
[Required] The character set for the database.
-
#compartment_id ⇒ String
[Required] The OCID of the compartment where this backup should be created.
-
#database_edition ⇒ String
[Required] The Oracle Database edition to use for creating a database from this standalone backup.
-
#database_mode ⇒ String
[Required] The mode (single instance or RAC) of the database being backed up.
-
#db_name ⇒ String
[Required] The name of the database from which the backup is being taken.
-
#db_unique_name ⇒ String
The
DB_UNIQUE_NAME
of the Oracle Database being backed up. -
#db_version ⇒ String
[Required] A valid Oracle Database version.
-
#display_name ⇒ String
[Required] A user-friendly name for the backup.
-
#external_database_identifier ⇒ Integer
[Required] The
DBID
of the Oracle Database being backed up. -
#ncharacter_set ⇒ String
[Required] The national character set for the database.
-
#pdb_name ⇒ String
The pluggable database name.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ CreateExternalBackupJobDetails
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 = {}) ⇒ CreateExternalBackupJobDetails
Initializes the object
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 131 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.availability_domain = attributes[:'availabilityDomain'] if attributes[:'availabilityDomain'] raise 'You cannot provide both :availabilityDomain and :availability_domain' if attributes.key?(:'availabilityDomain') && attributes.key?(:'availability_domain') self.availability_domain = attributes[:'availability_domain'] if attributes[:'availability_domain'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.display_name = attributes[:'displayName'] if attributes[:'displayName'] raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name') self.display_name = attributes[:'display_name'] if attributes[:'display_name'] self.db_version = attributes[:'dbVersion'] if attributes[:'dbVersion'] raise 'You cannot provide both :dbVersion and :db_version' if attributes.key?(:'dbVersion') && attributes.key?(:'db_version') self.db_version = attributes[:'db_version'] if attributes[:'db_version'] self.db_name = attributes[:'dbName'] if attributes[:'dbName'] raise 'You cannot provide both :dbName and :db_name' if attributes.key?(:'dbName') && attributes.key?(:'db_name') self.db_name = attributes[:'db_name'] if attributes[:'db_name'] self.db_unique_name = attributes[:'dbUniqueName'] if attributes[:'dbUniqueName'] raise 'You cannot provide both :dbUniqueName and :db_unique_name' if attributes.key?(:'dbUniqueName') && attributes.key?(:'db_unique_name') self.db_unique_name = attributes[:'db_unique_name'] if attributes[:'db_unique_name'] self.pdb_name = attributes[:'pdbName'] if attributes[:'pdbName'] raise 'You cannot provide both :pdbName and :pdb_name' if attributes.key?(:'pdbName') && attributes.key?(:'pdb_name') self.pdb_name = attributes[:'pdb_name'] if attributes[:'pdb_name'] self.external_database_identifier = attributes[:'externalDatabaseIdentifier'] if attributes[:'externalDatabaseIdentifier'] raise 'You cannot provide both :externalDatabaseIdentifier and :external_database_identifier' if attributes.key?(:'externalDatabaseIdentifier') && attributes.key?(:'external_database_identifier') self.external_database_identifier = attributes[:'external_database_identifier'] if attributes[:'external_database_identifier'] self.character_set = attributes[:'characterSet'] if attributes[:'characterSet'] raise 'You cannot provide both :characterSet and :character_set' if attributes.key?(:'characterSet') && attributes.key?(:'character_set') self.character_set = attributes[:'character_set'] if attributes[:'character_set'] self.ncharacter_set = attributes[:'ncharacterSet'] if attributes[:'ncharacterSet'] raise 'You cannot provide both :ncharacterSet and :ncharacter_set' if attributes.key?(:'ncharacterSet') && attributes.key?(:'ncharacter_set') self.ncharacter_set = attributes[:'ncharacter_set'] if attributes[:'ncharacter_set'] self.database_mode = attributes[:'databaseMode'] if attributes[:'databaseMode'] raise 'You cannot provide both :databaseMode and :database_mode' if attributes.key?(:'databaseMode') && attributes.key?(:'database_mode') self.database_mode = attributes[:'database_mode'] if attributes[:'database_mode'] self.database_edition = attributes[:'databaseEdition'] if attributes[:'databaseEdition'] raise 'You cannot provide both :databaseEdition and :database_edition' if attributes.key?(:'databaseEdition') && attributes.key?(:'database_edition') self.database_edition = attributes[:'database_edition'] if attributes[:'database_edition'] end |
Instance Attribute Details
#availability_domain ⇒ String
[Required] The targeted availability domain for the backup.
25 26 27 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 25 def availability_domain @availability_domain end |
#character_set ⇒ String
[Required] The character set for the database.
57 58 59 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 57 def character_set @character_set end |
#compartment_id ⇒ String
[Required] The OCID of the compartment where this backup should be created.
29 30 31 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 29 def compartment_id @compartment_id end |
#database_edition ⇒ String
[Required] The Oracle Database edition to use for creating a database from this standalone backup. Note that 2-node RAC DB systems require Enterprise Edition - Extreme Performance.
71 72 73 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 71 def database_edition @database_edition end |
#database_mode ⇒ String
[Required] The mode (single instance or RAC) of the database being backed up.
65 66 67 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 65 def database_mode @database_mode end |
#db_name ⇒ String
[Required] The name of the database from which the backup is being taken.
41 42 43 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 41 def db_name @db_name end |
#db_unique_name ⇒ String
The DB_UNIQUE_NAME
of the Oracle Database being backed up.
45 46 47 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 45 def db_unique_name @db_unique_name end |
#db_version ⇒ String
[Required] A valid Oracle Database version.
37 38 39 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 37 def db_version @db_version end |
#display_name ⇒ String
[Required] A user-friendly name for the backup. This name does not have to be unique.
33 34 35 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 33 def display_name @display_name end |
#external_database_identifier ⇒ Integer
[Required] The DBID
of the Oracle Database being backed up.
53 54 55 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 53 def external_database_identifier @external_database_identifier end |
#ncharacter_set ⇒ String
[Required] The national character set for the database.
61 62 63 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 61 def ncharacter_set @ncharacter_set end |
#pdb_name ⇒ String
The pluggable database name.
49 50 51 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 49 def pdb_name @pdb_name end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 74 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'availability_domain': :'availabilityDomain', 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'db_version': :'dbVersion', 'db_name': :'dbName', 'db_unique_name': :'dbUniqueName', 'pdb_name': :'pdbName', 'external_database_identifier': :'externalDatabaseIdentifier', 'character_set': :'characterSet', 'ncharacter_set': :'ncharacterSet', 'database_mode': :'databaseMode', 'database_edition': :'databaseEdition' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 94 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'availability_domain': :'String', 'compartment_id': :'String', 'display_name': :'String', 'db_version': :'String', 'db_name': :'String', 'db_unique_name': :'String', 'pdb_name': :'String', 'external_database_identifier': :'Integer', 'character_set': :'String', 'ncharacter_set': :'String', 'database_mode': :'String', 'database_edition': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 233 def ==(other) return true if equal?(other) self.class == other.class && availability_domain == other.availability_domain && compartment_id == other.compartment_id && display_name == other.display_name && db_version == other.db_version && db_name == other.db_name && db_unique_name == other.db_unique_name && pdb_name == other.pdb_name && external_database_identifier == other.external_database_identifier && character_set == other.character_set && ncharacter_set == other.ncharacter_set && database_mode == other.database_mode && database_edition == other.database_edition end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 274 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
254 255 256 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 254 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
263 264 265 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 263 def hash [availability_domain, compartment_id, display_name, db_version, db_name, db_unique_name, pdb_name, external_database_identifier, character_set, ncharacter_set, database_mode, database_edition].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
307 308 309 310 311 312 313 314 315 316 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 307 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_s ⇒ String
Returns the string representation of the object
301 302 303 |
# File 'lib/oci/database/models/create_external_backup_job_details.rb', line 301 def to_s to_hash.to_s end |