Class: OCI::Database::Models::CreatePluggableDatabaseFromRemoteCloneDetails
- Inherits:
- 
      CreatePluggableDatabaseCreationTypeDetails
      
        - Object
- CreatePluggableDatabaseCreationTypeDetails
- OCI::Database::Models::CreatePluggableDatabaseFromRemoteCloneDetails
 
- Defined in:
- lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb
Overview
Specifies the creation type Remote Clone. Additional input 'dblinkUsernameanddblinkUserPassword` can be provided for RemoteClone/Create RefreshableClone Operation. If not provided, Backend will create a temporary user to perform RemoteClone operation. It is a required input parameter in case of creating Refreshable Clone PDB.
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. 
- 
  
    
      #is_thin_clone  ⇒ BOOLEAN 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    True if Pluggable Database needs to be thin cloned and false if Pluggable Database needs to be thick cloned. 
- #refreshable_clone_details ⇒ OCI::Database::Models::CreatePluggableDatabaseRefreshableCloneDetails
- 
  
    
      #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 = {})  ⇒ CreatePluggableDatabaseFromRemoteCloneDetails 
    
    
  
  
  
    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 = {}) ⇒ CreatePluggableDatabaseFromRemoteCloneDetails
Initializes the object
| 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 80 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['creationType'] = 'REMOTE_CLONE_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'] self.refreshable_clone_details = attributes[:'refreshableCloneDetails'] if attributes[:'refreshableCloneDetails'] raise 'You cannot provide both :refreshableCloneDetails and :refreshable_clone_details' if attributes.key?(:'refreshableCloneDetails') && attributes.key?(:'refreshable_clone_details') self.refreshable_clone_details = attributes[:'refreshable_clone_details'] if attributes[:'refreshable_clone_details'] self.is_thin_clone = attributes[:'isThinClone'] unless attributes[:'isThinClone'].nil? raise 'You cannot provide both :isThinClone and :is_thin_clone' if attributes.key?(:'isThinClone') && attributes.key?(:'is_thin_clone') self.is_thin_clone = attributes[:'is_thin_clone'] unless attributes[:'is_thin_clone'].nil? 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_remote_clone_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_remote_clone_details.rb', line 17 def dblink_username @dblink_username end | 
#is_thin_clone ⇒ BOOLEAN
True if Pluggable Database needs to be thin cloned and false if Pluggable Database needs to be thick cloned.
| 36 37 38 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 36 def is_thin_clone @is_thin_clone end | 
#refreshable_clone_details ⇒ OCI::Database::Models::CreatePluggableDatabaseRefreshableCloneDetails
| 32 33 34 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 32 def refreshable_clone_details @refreshable_clone_details 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_remote_clone_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_remote_clone_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.
| 39 40 41 42 43 44 45 46 47 48 49 50 51 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 39 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', 'refreshable_clone_details': :'refreshableCloneDetails', 'is_thin_clone': :'isThinClone' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 54 55 56 57 58 59 60 61 62 63 64 65 66 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 54 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', 'refreshable_clone_details': :'OCI::Database::Models::CreatePluggableDatabaseRefreshableCloneDetails', 'is_thin_clone': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 134 135 136 137 138 139 140 141 142 143 144 145 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 134 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 && refreshable_clone_details == other.refreshable_clone_details && is_thin_clone == other.is_thin_clone end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 170 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
| 150 151 152 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 150 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 159 160 161 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 159 def hash [creation_type, dblink_username, dblink_user_password, source_pluggable_database_id, source_container_database_admin_password, refreshable_clone_details, is_thin_clone].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 203 204 205 206 207 208 209 210 211 212 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 203 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
| 197 198 199 | # File 'lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb', line 197 def to_s to_hash.to_s end |