Class: OCI::DatabaseToolsRuntime::Models::DatabaseToolsDatabaseApiGatewayConfigPoolDefault
- Inherits:
-
DatabaseToolsDatabaseApiGatewayConfigPool
- Object
- DatabaseToolsDatabaseApiGatewayConfigPool
- OCI::DatabaseToolsRuntime::Models::DatabaseToolsDatabaseApiGatewayConfigPoolDefault
- Defined in:
- lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb
Overview
The content of a Database Tools database API gateway config pool sub resource.
Constant Summary
Constants inherited from DatabaseToolsDatabaseApiGatewayConfigPool
OCI::DatabaseToolsRuntime::Models::DatabaseToolsDatabaseApiGatewayConfigPool::DATABASE_ACTIONS_STATUS_ENUM, OCI::DatabaseToolsRuntime::Models::DatabaseToolsDatabaseApiGatewayConfigPool::REST_ENABLED_SQL_STATUS_ENUM, OCI::DatabaseToolsRuntime::Models::DatabaseToolsDatabaseApiGatewayConfigPool::TYPE_ENUM
Instance Attribute Summary
Attributes inherited from DatabaseToolsDatabaseApiGatewayConfigPool
#advanced_properties, #database_actions_status, #database_tools_connection_id, #display_name, #initial_pool_size, #jwt_profile_audience, #jwt_profile_issuer, #jwt_profile_jwk_url, #jwt_profile_role_claim_name, #key, #max_pool_size, #min_pool_size, #pool_route_value, #rest_enabled_sql_status, #time_created, #time_updated, #type
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 = {}) ⇒ DatabaseToolsDatabaseApiGatewayConfigPoolDefault
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 DatabaseToolsDatabaseApiGatewayConfigPool
Constructor Details
#initialize(attributes = {}) ⇒ DatabaseToolsDatabaseApiGatewayConfigPoolDefault
Initializes the object
84 85 86 87 88 89 90 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 84 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['type'] = 'DEFAULT' super(attributes) end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 13 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'key': :'key', 'type': :'type', 'display_name': :'displayName', 'pool_route_value': :'poolRouteValue', 'database_tools_connection_id': :'databaseToolsConnectionId', 'max_pool_size': :'maxPoolSize', 'min_pool_size': :'minPoolSize', 'initial_pool_size': :'initialPoolSize', 'jwt_profile_jwk_url': :'jwtProfileJwkUrl', 'jwt_profile_issuer': :'jwtProfileIssuer', 'jwt_profile_audience': :'jwtProfileAudience', 'jwt_profile_role_claim_name': :'jwtProfileRoleClaimName', 'database_actions_status': :'databaseActionsStatus', 'rest_enabled_sql_status': :'restEnabledSqlStatus', 'advanced_properties': :'advancedProperties', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 38 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'key': :'String', 'type': :'String', 'display_name': :'String', 'pool_route_value': :'String', 'database_tools_connection_id': :'String', 'max_pool_size': :'Integer', 'min_pool_size': :'Integer', 'initial_pool_size': :'Integer', 'jwt_profile_jwk_url': :'String', 'jwt_profile_issuer': :'String', 'jwt_profile_audience': :'String', 'jwt_profile_role_claim_name': :'String', 'database_actions_status': :'String', 'rest_enabled_sql_status': :'String', 'advanced_properties': :'Hash<String, String>', 'time_created': :'DateTime', 'time_updated': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 99 def ==(other) return true if equal?(other) self.class == other.class && key == other.key && type == other.type && display_name == other.display_name && pool_route_value == other.pool_route_value && database_tools_connection_id == other.database_tools_connection_id && max_pool_size == other.max_pool_size && min_pool_size == other.min_pool_size && initial_pool_size == other.initial_pool_size && jwt_profile_jwk_url == other.jwt_profile_jwk_url && jwt_profile_issuer == other.jwt_profile_issuer && jwt_profile_audience == other.jwt_profile_audience && jwt_profile_role_claim_name == other.jwt_profile_role_claim_name && database_actions_status == other.database_actions_status && rest_enabled_sql_status == other.rest_enabled_sql_status && advanced_properties == other.advanced_properties && time_created == other.time_created && time_updated == other.time_updated end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 145 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
125 126 127 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 125 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
134 135 136 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 134 def hash [key, type, display_name, pool_route_value, database_tools_connection_id, max_pool_size, min_pool_size, initial_pool_size, jwt_profile_jwk_url, jwt_profile_issuer, jwt_profile_audience, jwt_profile_role_claim_name, database_actions_status, rest_enabled_sql_status, advanced_properties, time_created, time_updated].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
178 179 180 181 182 183 184 185 186 187 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 178 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
172 173 174 |
# File 'lib/oci/database_tools_runtime/models/database_tools_database_api_gateway_config_pool_default.rb', line 172 def to_s to_hash.to_s end |