/** * GoldenGate API * Use the Oracle Cloud Infrastructure GoldenGate APIs to perform data replication operations. * OpenAPI spec version: 20200407 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2026, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. */ import * as model from "../model"; /** * Represents the metadata of a DB2 Connection. * */ export interface Db2Connection extends model.Connection { /** * The DB2 technology type. */ "technologyType": Db2Connection.TechnologyType; /** * The username Oracle GoldenGate uses to connect to the DB2 database. * This username must already exist and be available by the DB2 to be connected to. * */ "username": string; /** * The name or address of a host. * */ "host": string; /** * The port of an endpoint usually specified for a connection. * Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues. */ "port": number; /** * The name of the database. * */ "databaseName": string; /** * An array of name-value pair attribute entries. * Used as additional parameters in connection string. * */ "additionalAttributes"?: Array; /** * Security Protocol for the DB2 database. */ "securityProtocol": Db2Connection.SecurityProtocol; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the password is stored, * that Oracle GoldenGate uses to connect the associated DB2 database. * Note: When provided, 'password' field must not be provided. * */ "passwordSecretId"?: string; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystore file stored, * which created at the client containing the server certificate / CA root certificate. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

Note: When provided, 'sslClientKeystoredb' field must not be provided. * */ "sslClientKeystoredbSecretId"?: string; /** * The [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Secret where the keystash file is stored, * which contains the encrypted password to the key database file. * This property is not supported for IBM Db2 for i, as client TLS mode is not available. *

Note: When provided, 'sslClientKeystash' field must not be provided. * */ "sslClientKeystashSecretId"?: string; /** * The base64 encoded file which contains the self-signed server certificate / Certificate Authority (CA) certificate. * It is not included in GET responses if the {@code view=COMPACT} query parameter is specified. * */ "sslServerCertificate"?: string; "connectionType": string; } export declare namespace Db2Connection { enum TechnologyType { Db2I = "DB2_I", Db2Zos = "DB2_ZOS", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. */ UnknownValue = "UNKNOWN_VALUE" } enum SecurityProtocol { Plain = "PLAIN", Tls = "TLS", /** * This value is used if a service returns a value for this enum that is not recognized by this * version of the SDK. */ UnknownValue = "UNKNOWN_VALUE" } function getJsonObj(obj: Db2Connection, isParentJsonObj?: boolean): object; const connectionType = "DB2"; function getDeserializedJsonObj(obj: Db2Connection, isParentJsonObj?: boolean): object; }