Class: OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails

Inherits:
CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails show all
Defined in:
lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb

Overview

The content of a Database Tools database API gateway config pool sub resource to be created.

Constant Summary

Constants inherited from CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails

OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails::DATABASE_ACTIONS_STATUS_ENUM, OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails::REST_ENABLED_SQL_STATUS_ENUM, OCI::DatabaseToolsRuntime::Models::CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails::TYPE_ENUM

Instance Attribute Summary

Attributes inherited from CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails

#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, #max_pool_size, #min_pool_size, #pool_route_value, #rest_enabled_sql_status, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CreateDatabaseToolsDatabaseApiGatewayConfigPoolDetails

get_subtype

Constructor Details

#initialize(attributes = {}) ⇒ CreateDatabaseToolsDatabaseApiGatewayConfigPoolDefaultDetails

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



75
76
77
78
79
80
81
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 75

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  attributes['type'] = 'DEFAULT'

  super(attributes)
end

Class Method Details

.attribute_mapObject

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
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 13

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

.swagger_typesObject

Attribute type mapping.



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 35

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.

Parameters:

  • other (Object)

    the other object to be compared



90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 90

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

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 133

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

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


113
114
115
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 113

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



122
123
124
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 122

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_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



166
167
168
169
170
171
172
173
174
175
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 166

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_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



160
161
162
# File 'lib/oci/database_tools_runtime/models/create_database_tools_database_api_gateway_config_pool_default_details.rb', line 160

def to_s
  to_hash.to_s
end