Class: OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails
- Inherits:
-
Object
- Object
- OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails
- Defined in:
- lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb
Overview
The content of a Database Tools database API gateway config pool sub resource to be created. This class has direct subclasses. If you are using this class as input to a service operations then you should favor using a subclass over the base class
Direct Known Subclasses
CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails
Constant Summary collapse
- TYPE_ENUM =
[ TYPE_DEFAULT = 'DEFAULT'.freeze ].freeze
- DATABASE_ACTIONS_STATUS_ENUM =
[ DATABASE_ACTIONS_STATUS_ENABLED = 'ENABLED'.freeze, DATABASE_ACTIONS_STATUS_DISABLED = 'DISABLED'.freeze ].freeze
- REST_ENABLED_SQL_STATUS_ENUM =
[ REST_ENABLED_SQL_STATUS_ENABLED = 'ENABLED'.freeze, REST_ENABLED_SQL_STATUS_DISABLED = 'DISABLED'.freeze ].freeze
Instance Attribute Summary collapse
-
#advanced_properties ⇒ Hash<String, String>
Advanced pool properties.
-
#database_actions_status ⇒ String
Specifies to enable the Database Actions feature.
-
#database_tools_connection_id ⇒ String
[Required] The OCID of the related Database Tools connection.
-
#display_name ⇒ String
[Required] A user-friendly name.
-
#initial_pool_size ⇒ Integer
Specifies the initial size for the number of database connections that will be created for the pool.
-
#jwt_profile_audience ⇒ String
Specifies the expected audience for the JWT token.
-
#jwt_profile_issuer ⇒ String
Specifies the issuer of the JWT token.
-
#jwt_profile_jwk_url ⇒ String
Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token.
-
#jwt_profile_role_claim_name ⇒ String
Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users.
-
#max_pool_size ⇒ Integer
Specifies the maximum number of database connections allowed for the pool.
-
#min_pool_size ⇒ Integer
Specifies the minimum number of database connections allowed for the pool.
-
#pool_route_value ⇒ String
[Required] The pool route value provided in requests to target this pool.
-
#rest_enabled_sql_status ⇒ String
Specifies whether the REST-Enabled SQL service is active.
-
#type ⇒ String
[Required] The type of the Database Tools database API gateway config pool sub resource.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.get_subtype(object_hash) ⇒ Object
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
-
.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 = {}) ⇒ CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails
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 = {}) ⇒ CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails
Initializes the object
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 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 161 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.type = attributes[:'type'] if attributes[:'type'] 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.pool_route_value = attributes[:'poolRouteValue'] if attributes[:'poolRouteValue'] raise 'You cannot provide both :poolRouteValue and :pool_route_value' if attributes.key?(:'poolRouteValue') && attributes.key?(:'pool_route_value') self.pool_route_value = attributes[:'pool_route_value'] if attributes[:'pool_route_value'] self.database_tools_connection_id = attributes[:'databaseToolsConnectionId'] if attributes[:'databaseToolsConnectionId'] raise 'You cannot provide both :databaseToolsConnectionId and :database_tools_connection_id' if attributes.key?(:'databaseToolsConnectionId') && attributes.key?(:'database_tools_connection_id') self.database_tools_connection_id = attributes[:'database_tools_connection_id'] if attributes[:'database_tools_connection_id'] self.max_pool_size = attributes[:'maxPoolSize'] if attributes[:'maxPoolSize'] raise 'You cannot provide both :maxPoolSize and :max_pool_size' if attributes.key?(:'maxPoolSize') && attributes.key?(:'max_pool_size') self.max_pool_size = attributes[:'max_pool_size'] if attributes[:'max_pool_size'] self.min_pool_size = attributes[:'minPoolSize'] if attributes[:'minPoolSize'] raise 'You cannot provide both :minPoolSize and :min_pool_size' if attributes.key?(:'minPoolSize') && attributes.key?(:'min_pool_size') self.min_pool_size = attributes[:'min_pool_size'] if attributes[:'min_pool_size'] self.initial_pool_size = attributes[:'initialPoolSize'] if attributes[:'initialPoolSize'] raise 'You cannot provide both :initialPoolSize and :initial_pool_size' if attributes.key?(:'initialPoolSize') && attributes.key?(:'initial_pool_size') self.initial_pool_size = attributes[:'initial_pool_size'] if attributes[:'initial_pool_size'] self.jwt_profile_jwk_url = attributes[:'jwtProfileJwkUrl'] if attributes[:'jwtProfileJwkUrl'] raise 'You cannot provide both :jwtProfileJwkUrl and :jwt_profile_jwk_url' if attributes.key?(:'jwtProfileJwkUrl') && attributes.key?(:'jwt_profile_jwk_url') self.jwt_profile_jwk_url = attributes[:'jwt_profile_jwk_url'] if attributes[:'jwt_profile_jwk_url'] self.jwt_profile_issuer = attributes[:'jwtProfileIssuer'] if attributes[:'jwtProfileIssuer'] raise 'You cannot provide both :jwtProfileIssuer and :jwt_profile_issuer' if attributes.key?(:'jwtProfileIssuer') && attributes.key?(:'jwt_profile_issuer') self.jwt_profile_issuer = attributes[:'jwt_profile_issuer'] if attributes[:'jwt_profile_issuer'] self.jwt_profile_audience = attributes[:'jwtProfileAudience'] if attributes[:'jwtProfileAudience'] raise 'You cannot provide both :jwtProfileAudience and :jwt_profile_audience' if attributes.key?(:'jwtProfileAudience') && attributes.key?(:'jwt_profile_audience') self.jwt_profile_audience = attributes[:'jwt_profile_audience'] if attributes[:'jwt_profile_audience'] self.jwt_profile_role_claim_name = attributes[:'jwtProfileRoleClaimName'] if attributes[:'jwtProfileRoleClaimName'] raise 'You cannot provide both :jwtProfileRoleClaimName and :jwt_profile_role_claim_name' if attributes.key?(:'jwtProfileRoleClaimName') && attributes.key?(:'jwt_profile_role_claim_name') self.jwt_profile_role_claim_name = attributes[:'jwt_profile_role_claim_name'] if attributes[:'jwt_profile_role_claim_name'] self.database_actions_status = attributes[:'databaseActionsStatus'] if attributes[:'databaseActionsStatus'] self.database_actions_status = "DISABLED" if database_actions_status.nil? && !attributes.key?(:'databaseActionsStatus') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :databaseActionsStatus and :database_actions_status' if attributes.key?(:'databaseActionsStatus') && attributes.key?(:'database_actions_status') self.database_actions_status = attributes[:'database_actions_status'] if attributes[:'database_actions_status'] self.database_actions_status = "DISABLED" if database_actions_status.nil? && !attributes.key?(:'databaseActionsStatus') && !attributes.key?(:'database_actions_status') # rubocop:disable Style/StringLiterals self.rest_enabled_sql_status = attributes[:'restEnabledSqlStatus'] if attributes[:'restEnabledSqlStatus'] self.rest_enabled_sql_status = "DISABLED" if rest_enabled_sql_status.nil? && !attributes.key?(:'restEnabledSqlStatus') # rubocop:disable Style/StringLiterals raise 'You cannot provide both :restEnabledSqlStatus and :rest_enabled_sql_status' if attributes.key?(:'restEnabledSqlStatus') && attributes.key?(:'rest_enabled_sql_status') self.rest_enabled_sql_status = attributes[:'rest_enabled_sql_status'] if attributes[:'rest_enabled_sql_status'] self.rest_enabled_sql_status = "DISABLED" if rest_enabled_sql_status.nil? && !attributes.key?(:'restEnabledSqlStatus') && !attributes.key?(:'rest_enabled_sql_status') # rubocop:disable Style/StringLiterals self.advanced_properties = attributes[:'advancedProperties'] if attributes[:'advancedProperties'] raise 'You cannot provide both :advancedProperties and :advanced_properties' if attributes.key?(:'advancedProperties') && attributes.key?(:'advanced_properties') self.advanced_properties = attributes[:'advanced_properties'] if attributes[:'advanced_properties'] end |
Instance Attribute Details
#advanced_properties ⇒ Hash<String, String>
Advanced pool properties.
80 81 82 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 80 def advanced_properties @advanced_properties end |
#database_actions_status ⇒ String
Specifies to enable the Database Actions feature.
72 73 74 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 72 def database_actions_status @database_actions_status end |
#database_tools_connection_id ⇒ String
[Required] The OCID of the related Database Tools connection. Specifies the OCI database tools connection ocid to build the connection pool from.
40 41 42 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 40 def database_tools_connection_id @database_tools_connection_id end |
#display_name ⇒ String
[Required] A user-friendly name. Does not have to be unique, and itu2019s changeable. Avoid entering confidential information.
32 33 34 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 32 def display_name @display_name end |
#initial_pool_size ⇒ Integer
Specifies the initial size for the number of database connections that will be created for the pool.
52 53 54 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 52 def initial_pool_size @initial_pool_size end |
#jwt_profile_audience ⇒ String
Specifies the expected audience for the JWT token. This value is used to validate the aud claim in the JWT token.
64 65 66 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 64 def jwt_profile_audience @jwt_profile_audience end |
#jwt_profile_issuer ⇒ String
Specifies the issuer of the JWT token. This value is used to validate the iss claim in the JWT token.
60 61 62 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 60 def jwt_profile_issuer @jwt_profile_issuer end |
#jwt_profile_jwk_url ⇒ String
Specifies the URL of the JSON Web Key (JWK) that is used to verify the signature of the JWT token.
56 57 58 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 56 def jwt_profile_jwk_url @jwt_profile_jwk_url end |
#jwt_profile_role_claim_name ⇒ String
Specifies the JSON pointer to the claim in the JWT token that contains the roles of the users.
68 69 70 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 68 def jwt_profile_role_claim_name @jwt_profile_role_claim_name end |
#max_pool_size ⇒ Integer
Specifies the maximum number of database connections allowed for the pool.
44 45 46 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 44 def max_pool_size @max_pool_size end |
#min_pool_size ⇒ Integer
Specifies the minimum number of database connections allowed for the pool.
48 49 50 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 48 def min_pool_size @min_pool_size end |
#pool_route_value ⇒ String
[Required] The pool route value provided in requests to target this pool.
36 37 38 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 36 def pool_route_value @pool_route_value end |
#rest_enabled_sql_status ⇒ String
Specifies whether the REST-Enabled SQL service is active.
76 77 78 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 76 def rest_enabled_sql_status @rest_enabled_sql_status end |
#type ⇒ String
[Required] The type of the Database Tools database API gateway config pool sub resource.
28 29 30 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 28 def type @type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 83 def self.attribute_map { # rubocop:disable Style/SymbolLiteral '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' # rubocop:enable Style/SymbolLiteral } end |
.get_subtype(object_hash) ⇒ Object
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
131 132 133 134 135 136 137 138 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 131 def self.get_subtype(object_hash) type = object_hash[:'type'] # rubocop:disable Style/SymbolLiteral return 'OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails' if type == 'DEFAULT' # TODO: Log a warning when the subtype is not found. 'OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails' end |
.swagger_types ⇒ Object
Attribute type mapping.
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 105 def self.swagger_types { # rubocop:disable Style/SymbolLiteral '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>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 283 def ==(other) return true if equal?(other) self.class == other.class && 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 end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 326 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
306 307 308 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 306 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
315 316 317 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 315 def hash [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].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
359 360 361 362 363 364 365 366 367 368 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 359 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
353 354 355 |
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_details.rb', line 353 def to_s to_hash.to_s end |