Class: OCI::DatabaseTools::Models::CreateDatabaseToolsMcpServerDefaultDetails
- Inherits:
-
CreateDatabaseToolsMcpServerDetails
- Object
- CreateDatabaseToolsMcpServerDetails
- OCI::DatabaseTools::Models::CreateDatabaseToolsMcpServerDefaultDetails
- Defined in:
- lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb
Overview
Details for the new Database Tools MCP server.
Constant Summary
Constants inherited from CreateDatabaseToolsMcpServerDetails
OCI::DatabaseTools::Models::CreateDatabaseToolsMcpServerDetails::RUNTIME_IDENTITY_ENUM, OCI::DatabaseTools::Models::CreateDatabaseToolsMcpServerDetails::TYPE_ENUM
Instance Attribute Summary collapse
-
#domain_id ⇒ String
[Required] The OCID of the associated identity domain.
-
#storage ⇒ OCI::DatabaseTools::Models::DatabaseToolsMcpServerStorage
This attribute is required.
Attributes inherited from CreateDatabaseToolsMcpServerDetails
#access_token_expiry_in_seconds, #compartment_id, #custom_roles, #database_tools_connection_id, #defined_tags, #description, #display_name, #freeform_tags, #locks, #refresh_token_expiry_in_seconds, #runtime_identity, #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 = {}) ⇒ CreateDatabaseToolsMcpServerDefaultDetails
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 CreateDatabaseToolsMcpServerDetails
Constructor Details
#initialize(attributes = {}) ⇒ CreateDatabaseToolsMcpServerDefaultDetails
Initializes the object
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 83 def initialize(attributes = {}) return unless attributes.is_a?(Hash) attributes['type'] = 'DEFAULT' super(attributes) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.domain_id = attributes[:'domainId'] if attributes[:'domainId'] raise 'You cannot provide both :domainId and :domain_id' if attributes.key?(:'domainId') && attributes.key?(:'domain_id') self.domain_id = attributes[:'domain_id'] if attributes[:'domain_id'] self.storage = attributes[:'storage'] if attributes[:'storage'] end |
Instance Attribute Details
#domain_id ⇒ String
[Required] The OCID of the associated identity domain.
14 15 16 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 14 def domain_id @domain_id end |
#storage ⇒ OCI::DatabaseTools::Models::DatabaseToolsMcpServerStorage
This attribute is required.
18 19 20 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 18 def storage @storage end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 21 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'type': :'type', 'compartment_id': :'compartmentId', 'custom_roles': :'customRoles', 'display_name': :'displayName', 'description': :'description', 'database_tools_connection_id': :'databaseToolsConnectionId', 'access_token_expiry_in_seconds': :'accessTokenExpiryInSeconds', 'refresh_token_expiry_in_seconds': :'refreshTokenExpiryInSeconds', 'defined_tags': :'definedTags', 'freeform_tags': :'freeformTags', 'runtime_identity': :'runtimeIdentity', 'locks': :'locks', 'domain_id': :'domainId', 'storage': :'storage' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 43 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'type': :'String', 'compartment_id': :'String', 'custom_roles': :'Array<OCI::DatabaseTools::Models::DatabaseToolsMcpServerCustomRole>', 'display_name': :'String', 'description': :'String', 'database_tools_connection_id': :'String', 'access_token_expiry_in_seconds': :'Integer', 'refresh_token_expiry_in_seconds': :'Integer', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'freeform_tags': :'Hash<String, String>', 'runtime_identity': :'String', 'locks': :'Array<OCI::DatabaseTools::Models::ResourceLock>', 'domain_id': :'String', 'storage': :'OCI::DatabaseTools::Models::DatabaseToolsMcpServerStorage' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 109 def ==(other) return true if equal?(other) self.class == other.class && type == other.type && compartment_id == other.compartment_id && custom_roles == other.custom_roles && display_name == other.display_name && description == other.description && database_tools_connection_id == other.database_tools_connection_id && access_token_expiry_in_seconds == other.access_token_expiry_in_seconds && refresh_token_expiry_in_seconds == other.refresh_token_expiry_in_seconds && == other. && == other. && runtime_identity == other.runtime_identity && locks == other.locks && domain_id == other.domain_id && storage == other.storage end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 152 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
132 133 134 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 132 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
141 142 143 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 141 def hash [type, compartment_id, custom_roles, display_name, description, database_tools_connection_id, access_token_expiry_in_seconds, refresh_token_expiry_in_seconds, , , runtime_identity, locks, domain_id, storage].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
185 186 187 188 189 190 191 192 193 194 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 185 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
179 180 181 |
# File 'lib/oci/database_tools/models/create_database_tools_mcp_server_default_details.rb', line 179 def to_s to_hash.to_s end |