Class: OCI::Database::Models::CreatePluggableDatabaseFromRelocateDetails
- Inherits:
- 
      CreatePluggableDatabaseCreationTypeDetails
      
        - Object
- CreatePluggableDatabaseCreationTypeDetails
- OCI::Database::Models::CreatePluggableDatabaseFromRelocateDetails
 
- Defined in:
- lib/oci/database/models/create_pluggable_database_from_relocate_details.rb
Overview
Specifies the creation type Relocate. Additional input 'dblinkUsernameanddblinkUserPassword` can be provided for Relocate Operation. If not provided, Backend will create a temporary user to perform Relocate operation.
Constant Summary
Constants inherited from CreatePluggableDatabaseCreationTypeDetails
OCI::Database::Models::CreatePluggableDatabaseCreationTypeDetails::CREATION_TYPE_ENUM
Instance Attribute Summary collapse
- 
  
    
      #dblink_user_password  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The DB link user password. 
- 
  
    
      #dblink_username  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the DB link user. 
- 
  
    
      #source_container_database_admin_password  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] The DB system administrator password of the source Container Database. 
- 
  
    
      #source_pluggable_database_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] The OCID of the Source Pluggable Database. 
Attributes inherited from CreatePluggableDatabaseCreationTypeDetails
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 = {})  ⇒ CreatePluggableDatabaseFromRelocateDetails 
    
    
  
  
  
    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. 
Methods inherited from CreatePluggableDatabaseCreationTypeDetails
Constructor Details
#initialize(attributes = {}) ⇒ CreatePluggableDatabaseFromRelocateDetails
Initializes the object
| 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 67 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['creationType'] = 'RELOCATE_PDB' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.dblink_username = attributes[:'dblinkUsername'] if attributes[:'dblinkUsername'] raise 'You cannot provide both :dblinkUsername and :dblink_username' if attributes.key?(:'dblinkUsername') && attributes.key?(:'dblink_username') self.dblink_username = attributes[:'dblink_username'] if attributes[:'dblink_username'] self.dblink_user_password = attributes[:'dblinkUserPassword'] if attributes[:'dblinkUserPassword'] raise 'You cannot provide both :dblinkUserPassword and :dblink_user_password' if attributes.key?(:'dblinkUserPassword') && attributes.key?(:'dblink_user_password') self.dblink_user_password = attributes[:'dblink_user_password'] if attributes[:'dblink_user_password'] self.source_pluggable_database_id = attributes[:'sourcePluggableDatabaseId'] if attributes[:'sourcePluggableDatabaseId'] raise 'You cannot provide both :sourcePluggableDatabaseId and :source_pluggable_database_id' if attributes.key?(:'sourcePluggableDatabaseId') && attributes.key?(:'source_pluggable_database_id') self.source_pluggable_database_id = attributes[:'source_pluggable_database_id'] if attributes[:'source_pluggable_database_id'] self.source_container_database_admin_password = attributes[:'sourceContainerDatabaseAdminPassword'] if attributes[:'sourceContainerDatabaseAdminPassword'] raise 'You cannot provide both :sourceContainerDatabaseAdminPassword and :source_container_database_admin_password' if attributes.key?(:'sourceContainerDatabaseAdminPassword') && attributes.key?(:'source_container_database_admin_password') self.source_container_database_admin_password = attributes[:'source_container_database_admin_password'] if attributes[:'source_container_database_admin_password'] end | 
Instance Attribute Details
#dblink_user_password ⇒ String
The DB link user password.
| 21 22 23 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 21 def dblink_user_password @dblink_user_password end | 
#dblink_username ⇒ String
The name of the DB link user.
| 17 18 19 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 17 def dblink_username @dblink_username end | 
#source_container_database_admin_password ⇒ String
[Required] The DB system administrator password of the source Container Database.
| 29 30 31 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 29 def source_container_database_admin_password @source_container_database_admin_password end | 
#source_pluggable_database_id ⇒ String
[Required] The OCID of the Source Pluggable Database.
| 25 26 27 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 25 def source_pluggable_database_id @source_pluggable_database_id end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 32 33 34 35 36 37 38 39 40 41 42 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 32 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'creation_type': :'creationType', 'dblink_username': :'dblinkUsername', 'dblink_user_password': :'dblinkUserPassword', 'source_pluggable_database_id': :'sourcePluggableDatabaseId', 'source_container_database_admin_password': :'sourceContainerDatabaseAdminPassword' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 45 46 47 48 49 50 51 52 53 54 55 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 45 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'creation_type': :'String', 'dblink_username': :'String', 'dblink_user_password': :'String', 'source_pluggable_database_id': :'String', 'source_container_database_admin_password': :'String' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 109 110 111 112 113 114 115 116 117 118 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 109 def ==(other) return true if equal?(other) self.class == other.class && creation_type == other.creation_type && dblink_username == other.dblink_username && dblink_user_password == other.dblink_user_password && source_pluggable_database_id == other.source_pluggable_database_id && source_container_database_admin_password == other.source_container_database_admin_password end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 143 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
| 123 124 125 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 123 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 132 133 134 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 132 def hash [creation_type, dblink_username, dblink_user_password, source_pluggable_database_id, source_container_database_admin_password].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 176 177 178 179 180 181 182 183 184 185 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 176 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
| 170 171 172 | # File 'lib/oci/database/models/create_pluggable_database_from_relocate_details.rb', line 170 def to_s to_hash.to_s end |