Class: OCI::DatabaseTools::Models::DatabaseToolsMcpServerDefault
- Inherits:
-
DatabaseToolsMcpServer
- Object
- DatabaseToolsMcpServer
- OCI::DatabaseTools::Models::DatabaseToolsMcpServerDefault
- Defined in:
- lib/oci/database_tools/models/database_tools_mcp_server_default.rb
Overview
Allows the creation, configuration and management of an MCP server.
Constant Summary
Constants inherited from DatabaseToolsMcpServer
OCI::DatabaseTools::Models::DatabaseToolsMcpServer::LIFECYCLE_STATE_ENUM, OCI::DatabaseTools::Models::DatabaseToolsMcpServer::RUNTIME_IDENTITY_ENUM, OCI::DatabaseTools::Models::DatabaseToolsMcpServer::TYPE_ENUM
Instance Attribute Summary collapse
-
#domain_app_id ⇒ String
The OCID of the associated domain application (Oracle Cloud Service).
-
#domain_id ⇒ String
[Required] The OCID of the associated identity domain.
-
#storage ⇒ OCI::DatabaseTools::Models::DatabaseToolsMcpServerStorage
This attribute is required.
Attributes inherited from DatabaseToolsMcpServer
#access_token_expiry_in_seconds, #built_in_roles, #compartment_id, #custom_roles, #database_tools_connection_id, #defined_tags, #description, #display_name, #endpoints, #freeform_tags, #id, #lifecycle_details, #lifecycle_state, #locks, #refresh_token_expiry_in_seconds, #related_resource, #runtime_identity, #system_tags, #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 = {}) ⇒ DatabaseToolsMcpServerDefault
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 DatabaseToolsMcpServer
Constructor Details
#initialize(attributes = {}) ⇒ DatabaseToolsMcpServerDefault
Initializes the object
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 117 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.domain_app_id = attributes[:'domainAppId'] if attributes[:'domainAppId'] raise 'You cannot provide both :domainAppId and :domain_app_id' if attributes.key?(:'domainAppId') && attributes.key?(:'domain_app_id') self.domain_app_id = attributes[:'domain_app_id'] if attributes[:'domain_app_id'] self.storage = attributes[:'storage'] if attributes[:'storage'] end |
Instance Attribute Details
#domain_app_id ⇒ String
The OCID of the associated domain application (Oracle Cloud Service).
18 19 20 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 18 def domain_app_id @domain_app_id end |
#domain_id ⇒ String
[Required] The OCID of the associated identity domain.
14 15 16 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 14 def domain_id @domain_id end |
#storage ⇒ OCI::DatabaseTools::Models::DatabaseToolsMcpServerStorage
This attribute is required.
22 23 24 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 22 def storage @storage end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
25 26 27 28 29 30 31 32 33 34 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/models/database_tools_mcp_server_default.rb', line 25 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'id': :'id', 'type': :'type', 'compartment_id': :'compartmentId', 'display_name': :'displayName', 'description': :'description', 'database_tools_connection_id': :'databaseToolsConnectionId', 'endpoints': :'endpoints', 'built_in_roles': :'builtInRoles', 'custom_roles': :'customRoles', 'access_token_expiry_in_seconds': :'accessTokenExpiryInSeconds', 'refresh_token_expiry_in_seconds': :'refreshTokenExpiryInSeconds', 'related_resource': :'relatedResource', 'lifecycle_state': :'lifecycleState', 'lifecycle_details': :'lifecycleDetails', 'time_created': :'timeCreated', 'time_updated': :'timeUpdated', 'defined_tags': :'definedTags', 'freeform_tags': :'freeformTags', 'system_tags': :'systemTags', 'runtime_identity': :'runtimeIdentity', 'locks': :'locks', 'domain_id': :'domainId', 'domain_app_id': :'domainAppId', 'storage': :'storage' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 57 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'id': :'String', 'type': :'String', 'compartment_id': :'String', 'display_name': :'String', 'description': :'String', 'database_tools_connection_id': :'String', 'endpoints': :'Array<OCI::DatabaseTools::Models::DatabaseToolsMcpServerEndpoint>', 'built_in_roles': :'Array<OCI::DatabaseTools::Models::DatabaseToolsMcpServerBuiltInRole>', 'custom_roles': :'Array<OCI::DatabaseTools::Models::DatabaseToolsMcpServerCustomRole>', 'access_token_expiry_in_seconds': :'Integer', 'refresh_token_expiry_in_seconds': :'Integer', 'related_resource': :'OCI::DatabaseTools::Models::DatabaseToolsMcpServerRelatedResource', 'lifecycle_state': :'String', 'lifecycle_details': :'String', 'time_created': :'DateTime', 'time_updated': :'DateTime', 'defined_tags': :'Hash<String, Hash<String, Object>>', 'freeform_tags': :'Hash<String, String>', 'system_tags': :'Hash<String, Hash<String, Object>>', 'runtime_identity': :'String', 'locks': :'Array<OCI::DatabaseTools::Models::ResourceLock>', 'domain_id': :'String', 'domain_app_id': :'String', 'storage': :'OCI::DatabaseTools::Models::DatabaseToolsMcpServerStorage' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 149 def ==(other) return true if equal?(other) self.class == other.class && id == other.id && type == other.type && compartment_id == other.compartment_id && display_name == other.display_name && description == other.description && database_tools_connection_id == other.database_tools_connection_id && endpoints == other.endpoints && built_in_roles == other.built_in_roles && custom_roles == other.custom_roles && access_token_expiry_in_seconds == other.access_token_expiry_in_seconds && refresh_token_expiry_in_seconds == other.refresh_token_expiry_in_seconds && == other. && lifecycle_state == other.lifecycle_state && lifecycle_details == other.lifecycle_details && time_created == other.time_created && time_updated == other.time_updated && == other. && == other. && == other. && runtime_identity == other.runtime_identity && locks == other.locks && domain_id == other.domain_id && domain_app_id == other.domain_app_id && storage == other.storage end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 202 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
182 183 184 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 182 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
191 192 193 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 191 def hash [id, type, compartment_id, display_name, description, database_tools_connection_id, endpoints, built_in_roles, custom_roles, access_token_expiry_in_seconds, refresh_token_expiry_in_seconds, , lifecycle_state, lifecycle_details, time_created, time_updated, , , , runtime_identity, locks, domain_id, domain_app_id, storage].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
235 236 237 238 239 240 241 242 243 244 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 235 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
229 230 231 |
# File 'lib/oci/database_tools/models/database_tools_mcp_server_default.rb', line 229 def to_s to_hash.to_s end |