Class: OCI::DatabaseManagement::Models::ExternalDatabaseDiagnosticsAndManagementFeatureDetails
- Inherits:
-
ExternalDatabaseFeatureDetails
- Object
- ExternalDatabaseFeatureDetails
- OCI::DatabaseManagement::Models::ExternalDatabaseDiagnosticsAndManagementFeatureDetails
- Defined in:
- lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb
Overview
The details required to enable the Diagnostics and Management feature.
Constant Summary collapse
- LICENSE_MODEL_ENUM =
[ LICENSE_MODEL_LICENSE_INCLUDED = 'LICENSE_INCLUDED'.freeze, LICENSE_MODEL_BRING_YOUR_OWN_LICENSE = 'BRING_YOUR_OWN_LICENSE'.freeze ].freeze
Constants inherited from ExternalDatabaseFeatureDetails
OCI::DatabaseManagement::Models::ExternalDatabaseFeatureDetails::FEATURE_ENUM
Instance Attribute Summary collapse
-
#can_enable_all_current_pdbs ⇒ BOOLEAN
Indicates whether Diagnostics & Management should be enabled for all the current pluggable databases in the container database.
-
#is_auto_enable_pluggable_database ⇒ BOOLEAN
Indicates whether Diagnostics & Management should be enabled automatically for all the pluggable databases in the container database.
-
#license_model ⇒ String
[Required] The Oracle license model that applies to the external database.
Attributes inherited from ExternalDatabaseFeatureDetails
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 = {}) ⇒ ExternalDatabaseDiagnosticsAndManagementFeatureDetails
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 ExternalDatabaseFeatureDetails
Constructor Details
#initialize(attributes = {}) ⇒ ExternalDatabaseDiagnosticsAndManagementFeatureDetails
Initializes the object
66 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 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 66 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['feature'] = 'DIAGNOSTICS_AND_MANAGEMENT' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.license_model = attributes[:'licenseModel'] if attributes[:'licenseModel'] raise 'You cannot provide both :licenseModel and :license_model' if attributes.key?(:'licenseModel') && attributes.key?(:'license_model') self.license_model = attributes[:'license_model'] if attributes[:'license_model'] self.can_enable_all_current_pdbs = attributes[:'canEnableAllCurrentPdbs'] unless attributes[:'canEnableAllCurrentPdbs'].nil? raise 'You cannot provide both :canEnableAllCurrentPdbs and :can_enable_all_current_pdbs' if attributes.key?(:'canEnableAllCurrentPdbs') && attributes.key?(:'can_enable_all_current_pdbs') self.can_enable_all_current_pdbs = attributes[:'can_enable_all_current_pdbs'] unless attributes[:'can_enable_all_current_pdbs'].nil? self.is_auto_enable_pluggable_database = attributes[:'isAutoEnablePluggableDatabase'] unless attributes[:'isAutoEnablePluggableDatabase'].nil? raise 'You cannot provide both :isAutoEnablePluggableDatabase and :is_auto_enable_pluggable_database' if attributes.key?(:'isAutoEnablePluggableDatabase') && attributes.key?(:'is_auto_enable_pluggable_database') self.is_auto_enable_pluggable_database = attributes[:'is_auto_enable_pluggable_database'] unless attributes[:'is_auto_enable_pluggable_database'].nil? end |
Instance Attribute Details
#can_enable_all_current_pdbs ⇒ BOOLEAN
Indicates whether Diagnostics & Management should be enabled for all the current pluggable databases in the container database.
24 25 26 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 24 def can_enable_all_current_pdbs @can_enable_all_current_pdbs end |
#is_auto_enable_pluggable_database ⇒ BOOLEAN
Indicates whether Diagnostics & Management should be enabled automatically for all the pluggable databases in the container database.
28 29 30 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 28 def is_auto_enable_pluggable_database @is_auto_enable_pluggable_database end |
#license_model ⇒ String
[Required] The Oracle license model that applies to the external database.
20 21 22 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 20 def license_model @license_model end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 31 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'feature': :'feature', 'connector_details': :'connectorDetails', 'license_model': :'licenseModel', 'can_enable_all_current_pdbs': :'canEnableAllCurrentPdbs', 'is_auto_enable_pluggable_database': :'isAutoEnablePluggableDatabase' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 44 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'feature': :'String', 'connector_details': :'OCI::DatabaseManagement::Models::ConnectorDetails', 'license_model': :'String', 'can_enable_all_current_pdbs': :'BOOLEAN', 'is_auto_enable_pluggable_database': :'BOOLEAN' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 110 def ==(other) return true if equal?(other) self.class == other.class && feature == other.feature && connector_details == other.connector_details && license_model == other.license_model && can_enable_all_current_pdbs == other.can_enable_all_current_pdbs && is_auto_enable_pluggable_database == other.is_auto_enable_pluggable_database end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 144 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
124 125 126 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 124 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
133 134 135 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 133 def hash [feature, connector_details, license_model, can_enable_all_current_pdbs, is_auto_enable_pluggable_database].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
177 178 179 180 181 182 183 184 185 186 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 177 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
171 172 173 |
# File 'lib/oci/database_management/models/external_database_diagnostics_and_management_feature_details.rb', line 171 def to_s to_hash.to_s end |