oci-databasemanagement 2.100.3 → 2.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -0
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/lib/client.d.ts +210 -0
- package/lib/client.js +1416 -123
- package/lib/client.js.map +1 -1
- package/lib/dbmanagement-waiter.d.ts +8 -0
- package/lib/dbmanagement-waiter.js +12 -0
- package/lib/dbmanagement-waiter.js.map +1 -1
- package/lib/managedmysqldatabases-waiter.d.ts +32 -0
- package/lib/managedmysqldatabases-waiter.js +68 -0
- package/lib/managedmysqldatabases-waiter.js.map +1 -0
- package/lib/model/alert-log-summary.d.ts +2 -0
- package/lib/model/alert-log-summary.js +2 -0
- package/lib/model/alert-log-summary.js.map +1 -1
- package/lib/model/attention-log-summary.d.ts +2 -0
- package/lib/model/attention-log-summary.js +2 -0
- package/lib/model/attention-log-summary.js.map +1 -1
- package/lib/model/awr-db-snapshot-range-summary.d.ts +12 -0
- package/lib/model/awr-db-snapshot-range-summary.js.map +1 -1
- package/lib/model/awr-db-summary.d.ts +12 -0
- package/lib/model/awr-db-summary.js.map +1 -1
- package/lib/model/base-database-ha-details.d.ts +71 -0
- package/lib/model/base-database-ha-details.js +32 -0
- package/lib/model/base-database-ha-details.js.map +1 -0
- package/lib/model/create-external-my-sql-database-connector-details.d.ts +30 -0
- package/lib/model/create-external-my-sql-database-connector-details.js +60 -0
- package/lib/model/create-external-my-sql-database-connector-details.js.map +1 -0
- package/lib/model/create-external-my-sql-database-details.d.ts +32 -0
- package/lib/model/create-external-my-sql-database-details.js +32 -0
- package/lib/model/create-external-my-sql-database-details.js.map +1 -0
- package/lib/model/create-my-sql-database-connector-details.d.ts +57 -0
- package/lib/model/create-my-sql-database-connector-details.js +32 -0
- package/lib/model/create-my-sql-database-connector-details.js.map +1 -0
- package/lib/model/database-backup-metrics.d.ts +92 -0
- package/lib/model/database-backup-metrics.js +80 -0
- package/lib/model/database-backup-metrics.js.map +1 -0
- package/lib/model/database-backup-summary.d.ts +62 -0
- package/lib/model/database-backup-summary.js +47 -0
- package/lib/model/database-backup-summary.js.map +1 -0
- package/lib/model/database-fleet-backup-metrics.d.ts +29 -0
- package/lib/model/database-fleet-backup-metrics.js +64 -0
- package/lib/model/database-fleet-backup-metrics.js.map +1 -0
- package/lib/model/database-fleet-dataguard-metrics.d.ts +29 -0
- package/lib/model/database-fleet-dataguard-metrics.js +64 -0
- package/lib/model/database-fleet-dataguard-metrics.js.map +1 -0
- package/lib/model/database-fleet-ha-overview-metrics.d.ts +29 -0
- package/lib/model/database-fleet-ha-overview-metrics.js +64 -0
- package/lib/model/database-fleet-ha-overview-metrics.js.map +1 -0
- package/lib/model/database-ha-backup-details.d.ts +92 -0
- package/lib/model/database-ha-backup-details.js +80 -0
- package/lib/model/database-ha-backup-details.js.map +1 -0
- package/lib/model/database-ha-metrics.d.ts +80 -0
- package/lib/model/database-ha-metrics.js +70 -0
- package/lib/model/database-ha-metrics.js.map +1 -0
- package/lib/model/database-hosted-in.d.ts +26 -0
- package/lib/model/database-hosted-in.js +37 -0
- package/lib/model/database-hosted-in.js.map +1 -0
- package/lib/model/dataguard-metrics.d.ts +87 -0
- package/lib/model/dataguard-metrics.js +74 -0
- package/lib/model/dataguard-metrics.js.map +1 -0
- package/lib/model/disable-external-mysql-associated-service-details.d.ts +37 -0
- package/lib/model/disable-external-mysql-associated-service-details.js +32 -0
- package/lib/model/disable-external-mysql-associated-service-details.js.map +1 -0
- package/lib/model/enable-external-database-management-details.d.ts +28 -0
- package/lib/model/enable-external-database-management-details.js +32 -0
- package/lib/model/enable-external-database-management-details.js.map +1 -0
- package/lib/model/enable-external-mysql-associated-service-details.d.ts +37 -0
- package/lib/model/enable-external-mysql-associated-service-details.js +32 -0
- package/lib/model/enable-external-mysql-associated-service-details.js.map +1 -0
- package/lib/model/exadata-infrastructure-lifecycle-state-values.d.ts +37 -0
- package/lib/model/exadata-infrastructure-lifecycle-state-values.js +42 -0
- package/lib/model/exadata-infrastructure-lifecycle-state-values.js.map +1 -0
- package/lib/model/external-my-sql-database-collection.d.ts +29 -0
- package/lib/model/external-my-sql-database-collection.js +64 -0
- package/lib/model/external-my-sql-database-collection.js.map +1 -0
- package/lib/model/external-my-sql-database-connector.d.ts +105 -0
- package/lib/model/external-my-sql-database-connector.js +32 -0
- package/lib/model/external-my-sql-database-connector.js.map +1 -0
- package/lib/model/external-my-sql-database-summary.d.ts +66 -0
- package/lib/model/external-my-sql-database-summary.js +32 -0
- package/lib/model/external-my-sql-database-summary.js.map +1 -0
- package/lib/model/external-my-sql-database.d.ts +41 -0
- package/lib/model/external-my-sql-database.js +32 -0
- package/lib/model/external-my-sql-database.js.map +1 -0
- package/lib/model/external-mysql-associated-service-name.d.ts +25 -0
- package/lib/model/external-mysql-associated-service-name.js +36 -0
- package/lib/model/external-mysql-associated-service-name.js.map +1 -0
- package/lib/model/ha-metric-definition.d.ts +53 -0
- package/lib/model/ha-metric-definition.js +32 -0
- package/lib/model/ha-metric-definition.js.map +1 -0
- package/lib/model/index.d.ts +68 -0
- package/lib/model/index.js +80 -11
- package/lib/model/index.js.map +1 -1
- package/lib/model/managed-my-sql-database-summary.d.ts +15 -0
- package/lib/model/managed-my-sql-database-summary.js.map +1 -1
- package/lib/model/managed-my-sql-database.d.ts +18 -0
- package/lib/model/managed-my-sql-database.js.map +1 -1
- package/lib/model/management-state.d.ts +31 -0
- package/lib/model/management-state.js +42 -0
- package/lib/model/management-state.js.map +1 -0
- package/lib/model/my-sql-connector-collection.d.ts +29 -0
- package/lib/model/my-sql-connector-collection.js +64 -0
- package/lib/model/my-sql-connector-collection.js.map +1 -0
- package/lib/model/my-sql-connector-type.d.ts +30 -0
- package/lib/model/my-sql-connector-type.js +41 -0
- package/lib/model/my-sql-connector-type.js.map +1 -0
- package/lib/model/my-sql-cred-type.d.ts +32 -0
- package/lib/model/my-sql-cred-type.js +43 -0
- package/lib/model/my-sql-cred-type.js.map +1 -0
- package/lib/model/my-sql-data-summary.d.ts +12 -0
- package/lib/model/my-sql-data-summary.js.map +1 -1
- package/lib/model/my-sql-database-connector-summary.d.ts +106 -0
- package/lib/model/my-sql-database-connector-summary.js +32 -0
- package/lib/model/my-sql-database-connector-summary.js.map +1 -0
- package/lib/model/my-sql-deployment-type.d.ts +6 -1
- package/lib/model/my-sql-deployment-type.js +5 -0
- package/lib/model/my-sql-deployment-type.js.map +1 -1
- package/lib/model/my-sql-network-protocol-type.d.ts +32 -0
- package/lib/model/my-sql-network-protocol-type.js +43 -0
- package/lib/model/my-sql-network-protocol-type.js.map +1 -0
- package/lib/model/my-sql-type.d.ts +31 -0
- package/lib/model/my-sql-type.js +42 -0
- package/lib/model/my-sql-type.js.map +1 -0
- package/lib/model/stand-by-database-dataguard-metrics.d.ts +53 -0
- package/lib/model/stand-by-database-dataguard-metrics.js +64 -0
- package/lib/model/stand-by-database-dataguard-metrics.js.map +1 -0
- package/lib/model/update-external-my-sql-database-connector-details.d.ts +30 -0
- package/lib/model/update-external-my-sql-database-connector-details.js +60 -0
- package/lib/model/update-external-my-sql-database-connector-details.js.map +1 -0
- package/lib/model/update-external-my-sql-database-details.d.ts +28 -0
- package/lib/model/update-external-my-sql-database-details.js +32 -0
- package/lib/model/update-external-my-sql-database-details.js.map +1 -0
- package/lib/model/update-my-sql-database-connector-details.d.ts +57 -0
- package/lib/model/update-my-sql-database-connector-details.js +32 -0
- package/lib/model/update-my-sql-database-connector-details.js.map +1 -0
- package/lib/model/work-request-operation-type.d.ts +5 -0
- package/lib/model/work-request-operation-type.js +5 -0
- package/lib/model/work-request-operation-type.js.map +1 -1
- package/lib/request/check-external-my-sql-database-connector-connection-status-request.d.ts +44 -0
- package/lib/request/check-external-my-sql-database-connector-connection-status-request.js +15 -0
- package/lib/request/check-external-my-sql-database-connector-connection-status-request.js.map +1 -0
- package/lib/request/create-external-my-sql-database-connector-request.d.ts +40 -0
- package/lib/request/create-external-my-sql-database-connector-request.js +15 -0
- package/lib/request/create-external-my-sql-database-connector-request.js.map +1 -0
- package/lib/request/create-external-my-sql-database-request.d.ts +36 -0
- package/lib/request/create-external-my-sql-database-request.js +15 -0
- package/lib/request/create-external-my-sql-database-request.js.map +1 -0
- package/lib/request/delete-external-my-sql-database-connector-request.d.ts +35 -0
- package/lib/request/delete-external-my-sql-database-connector-request.js +15 -0
- package/lib/request/delete-external-my-sql-database-connector-request.js.map +1 -0
- package/lib/request/delete-external-my-sql-database-request.d.ts +35 -0
- package/lib/request/delete-external-my-sql-database-request.js +15 -0
- package/lib/request/delete-external-my-sql-database-request.js.map +1 -0
- package/lib/request/disable-external-my-sql-database-management-request.d.ts +44 -0
- package/lib/request/disable-external-my-sql-database-management-request.js +15 -0
- package/lib/request/disable-external-my-sql-database-management-request.js.map +1 -0
- package/lib/request/disable-external-mysql-associated-service-request.d.ts +49 -0
- package/lib/request/disable-external-mysql-associated-service-request.js +15 -0
- package/lib/request/disable-external-mysql-associated-service-request.js.map +1 -0
- package/lib/request/enable-external-my-sql-database-management-request.d.ts +49 -0
- package/lib/request/enable-external-my-sql-database-management-request.js +15 -0
- package/lib/request/enable-external-my-sql-database-management-request.js.map +1 -0
- package/lib/request/enable-external-mysql-associated-service-request.d.ts +49 -0
- package/lib/request/enable-external-mysql-associated-service-request.js +15 -0
- package/lib/request/enable-external-mysql-associated-service-request.js.map +1 -0
- package/lib/request/get-database-fleet-backup-metrics-request.d.ts +109 -0
- package/lib/request/get-database-fleet-backup-metrics-request.js +23 -0
- package/lib/request/get-database-fleet-backup-metrics-request.js.map +1 -0
- package/lib/request/get-database-fleet-dataguard-metrics-request.d.ts +93 -0
- package/lib/request/get-database-fleet-dataguard-metrics-request.js +23 -0
- package/lib/request/get-database-fleet-dataguard-metrics-request.js.map +1 -0
- package/lib/request/get-database-fleet-ha-overview-metrics-request.d.ts +93 -0
- package/lib/request/get-database-fleet-ha-overview-metrics-request.js +23 -0
- package/lib/request/get-database-fleet-ha-overview-metrics-request.js.map +1 -0
- package/lib/request/get-database-ha-backup-details-request.d.ts +30 -0
- package/lib/request/get-database-ha-backup-details-request.js +15 -0
- package/lib/request/get-database-ha-backup-details-request.js.map +1 -0
- package/lib/request/get-external-my-sql-database-connector-request.d.ts +26 -0
- package/lib/request/get-external-my-sql-database-connector-request.js +15 -0
- package/lib/request/get-external-my-sql-database-connector-request.js.map +1 -0
- package/lib/request/get-external-my-sql-database-request.d.ts +26 -0
- package/lib/request/get-external-my-sql-database-request.js +15 -0
- package/lib/request/get-external-my-sql-database-request.js.map +1 -0
- package/lib/request/get-my-sql-fleet-metric-request.d.ts +4 -0
- package/lib/request/index.d.ts +38 -0
- package/lib/request/index.js +12 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-external-my-sql-databases-request.d.ts +58 -0
- package/lib/request/list-external-my-sql-databases-request.js +24 -0
- package/lib/request/list-external-my-sql-databases-request.js.map +1 -0
- package/lib/request/list-managed-my-sql-databases-request.d.ts +4 -0
- package/lib/request/list-managed-my-sql-databases-request.js.map +1 -1
- package/lib/request/list-my-sql-database-connectors-request.d.ts +62 -0
- package/lib/request/list-my-sql-database-connectors-request.js +24 -0
- package/lib/request/list-my-sql-database-connectors-request.js.map +1 -0
- package/lib/request/update-external-mysql-database-connector-request.d.ts +40 -0
- package/lib/request/update-external-mysql-database-connector-request.js +15 -0
- package/lib/request/update-external-mysql-database-connector-request.js.map +1 -0
- package/lib/request/update-external-mysql-database-request.d.ts +40 -0
- package/lib/request/update-external-mysql-database-request.js +15 -0
- package/lib/request/update-external-mysql-database-request.js.map +1 -0
- package/lib/response/check-external-my-sql-database-connector-connection-status-response.d.ts +25 -0
- package/lib/response/check-external-my-sql-database-connector-connection-status-response.js +15 -0
- package/lib/response/check-external-my-sql-database-connector-connection-status-response.js.map +1 -0
- package/lib/response/create-external-my-sql-database-connector-response.d.ts +38 -0
- package/lib/response/create-external-my-sql-database-connector-response.js +15 -0
- package/lib/response/create-external-my-sql-database-connector-response.js.map +1 -0
- package/lib/response/create-external-my-sql-database-response.d.ts +38 -0
- package/lib/response/create-external-my-sql-database-response.js +15 -0
- package/lib/response/create-external-my-sql-database-response.js.map +1 -0
- package/lib/response/delete-external-my-sql-database-connector-response.d.ts +25 -0
- package/lib/response/delete-external-my-sql-database-connector-response.js +15 -0
- package/lib/response/delete-external-my-sql-database-connector-response.js.map +1 -0
- package/lib/response/delete-external-my-sql-database-response.d.ts +25 -0
- package/lib/response/delete-external-my-sql-database-response.js +15 -0
- package/lib/response/delete-external-my-sql-database-response.js.map +1 -0
- package/lib/response/disable-external-my-sql-database-management-response.d.ts +25 -0
- package/lib/response/disable-external-my-sql-database-management-response.js +15 -0
- package/lib/response/disable-external-my-sql-database-management-response.js.map +1 -0
- package/lib/response/disable-external-mysql-associated-service-response.d.ts +20 -0
- package/lib/response/disable-external-mysql-associated-service-response.js +15 -0
- package/lib/response/disable-external-mysql-associated-service-response.js.map +1 -0
- package/lib/response/enable-external-my-sql-database-management-response.d.ts +25 -0
- package/lib/response/enable-external-my-sql-database-management-response.js +15 -0
- package/lib/response/enable-external-my-sql-database-management-response.js.map +1 -0
- package/lib/response/enable-external-mysql-associated-service-response.d.ts +20 -0
- package/lib/response/enable-external-mysql-associated-service-response.js +15 -0
- package/lib/response/enable-external-mysql-associated-service-response.js.map +1 -0
- package/lib/response/get-database-fleet-backup-metrics-response.d.ts +32 -0
- package/lib/response/get-database-fleet-backup-metrics-response.js +15 -0
- package/lib/response/get-database-fleet-backup-metrics-response.js.map +1 -0
- package/lib/response/get-database-fleet-dataguard-metrics-response.d.ts +32 -0
- package/lib/response/get-database-fleet-dataguard-metrics-response.js +15 -0
- package/lib/response/get-database-fleet-dataguard-metrics-response.js.map +1 -0
- package/lib/response/get-database-fleet-ha-overview-metrics-response.d.ts +32 -0
- package/lib/response/get-database-fleet-ha-overview-metrics-response.js +15 -0
- package/lib/response/get-database-fleet-ha-overview-metrics-response.js.map +1 -0
- package/lib/response/get-database-ha-backup-details-response.d.ts +25 -0
- package/lib/response/get-database-ha-backup-details-response.js +15 -0
- package/lib/response/get-database-ha-backup-details-response.js.map +1 -0
- package/lib/response/get-external-my-sql-database-connector-response.d.ts +30 -0
- package/lib/response/get-external-my-sql-database-connector-response.js +15 -0
- package/lib/response/get-external-my-sql-database-connector-response.js.map +1 -0
- package/lib/response/get-external-my-sql-database-response.d.ts +30 -0
- package/lib/response/get-external-my-sql-database-response.js +15 -0
- package/lib/response/get-external-my-sql-database-response.js.map +1 -0
- package/lib/response/index.d.ts +38 -0
- package/lib/response/list-external-my-sql-databases-response.d.ts +32 -0
- package/lib/response/list-external-my-sql-databases-response.js +15 -0
- package/lib/response/list-external-my-sql-databases-response.js.map +1 -0
- package/lib/response/list-my-sql-database-connectors-response.d.ts +32 -0
- package/lib/response/list-my-sql-database-connectors-response.js +15 -0
- package/lib/response/list-my-sql-database-connectors-response.js.map +1 -0
- package/lib/response/update-external-mysql-database-connector-response.d.ts +35 -0
- package/lib/response/update-external-mysql-database-connector-response.js +15 -0
- package/lib/response/update-external-mysql-database-connector-response.js.map +1 -0
- package/lib/response/update-external-mysql-database-response.d.ts +30 -0
- package/lib/response/update-external-mysql-database-response.js +15 -0
- package/lib/response/update-external-mysql-database-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -47,6 +47,7 @@ exports.SqlTuningClient = exports.SqlTuningApiKeys = exports.PerfhubClient = exp
|
|
|
47
47
|
const common = require("oci-common");
|
|
48
48
|
const model = __importStar(require("./model"));
|
|
49
49
|
const dbmanagement_waiter_1 = require("./dbmanagement-waiter");
|
|
50
|
+
const managedmysqldatabases_waiter_1 = require("./managedmysqldatabases-waiter");
|
|
50
51
|
const oci_common_1 = require("oci-common");
|
|
51
52
|
const Breaker = require("opossum");
|
|
52
53
|
// ===============================================
|
|
@@ -1144,6 +1145,69 @@ class DbManagementClient {
|
|
|
1144
1145
|
}
|
|
1145
1146
|
});
|
|
1146
1147
|
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Check the status of the external database connection specified in this connector.
|
|
1150
|
+
* This operation will refresh the connectionStatus and timeConnectionStatusLastUpdated fields.
|
|
1151
|
+
*
|
|
1152
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1153
|
+
* @param CheckExternalMySqlDatabaseConnectorConnectionStatusRequest
|
|
1154
|
+
* @return CheckExternalMySqlDatabaseConnectorConnectionStatusResponse
|
|
1155
|
+
* @throws OciError when an error occurs
|
|
1156
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/CheckExternalMySqlDatabaseConnectorConnectionStatus.ts.html |here} to see how to use CheckExternalMySqlDatabaseConnectorConnectionStatus API.
|
|
1157
|
+
*/
|
|
1158
|
+
checkExternalMySqlDatabaseConnectorConnectionStatus(checkExternalMySqlDatabaseConnectorConnectionStatusRequest) {
|
|
1159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1160
|
+
if (this.logger)
|
|
1161
|
+
this.logger.debug("Calling operation DbManagementClient#checkExternalMySqlDatabaseConnectorConnectionStatus.");
|
|
1162
|
+
const operationName = "checkExternalMySqlDatabaseConnectorConnectionStatus";
|
|
1163
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/CheckExternalMySqlDatabaseConnectorConnectionStatus";
|
|
1164
|
+
const pathParams = {
|
|
1165
|
+
"{externalMySqlDatabaseConnectorId}": checkExternalMySqlDatabaseConnectorConnectionStatusRequest.externalMySqlDatabaseConnectorId
|
|
1166
|
+
};
|
|
1167
|
+
const queryParams = {};
|
|
1168
|
+
let headerParams = {
|
|
1169
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1170
|
+
"opc-retry-token": checkExternalMySqlDatabaseConnectorConnectionStatusRequest.opcRetryToken,
|
|
1171
|
+
"if-match": checkExternalMySqlDatabaseConnectorConnectionStatusRequest.ifMatch,
|
|
1172
|
+
"opc-request-id": checkExternalMySqlDatabaseConnectorConnectionStatusRequest.opcRequestId
|
|
1173
|
+
};
|
|
1174
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1175
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, checkExternalMySqlDatabaseConnectorConnectionStatusRequest.retryConfiguration, specRetryConfiguration);
|
|
1176
|
+
if (this.logger)
|
|
1177
|
+
retrier.logger = this.logger;
|
|
1178
|
+
const request = yield oci_common_1.composeRequest({
|
|
1179
|
+
baseEndpoint: this._endpoint,
|
|
1180
|
+
defaultHeaders: this._defaultHeaders,
|
|
1181
|
+
path: "/externalMySqlDatabaseConnectors/{externalMySqlDatabaseConnectorId}/actions/checkConnectionStatus",
|
|
1182
|
+
method: "POST",
|
|
1183
|
+
pathParams: pathParams,
|
|
1184
|
+
headerParams: headerParams,
|
|
1185
|
+
queryParams: queryParams
|
|
1186
|
+
});
|
|
1187
|
+
try {
|
|
1188
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1189
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1190
|
+
responseObject: {},
|
|
1191
|
+
responseHeaders: [
|
|
1192
|
+
{
|
|
1193
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1194
|
+
key: "opcWorkRequestId",
|
|
1195
|
+
dataType: "string"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
value: response.headers.get("opc-request-id"),
|
|
1199
|
+
key: "opcRequestId",
|
|
1200
|
+
dataType: "string"
|
|
1201
|
+
}
|
|
1202
|
+
]
|
|
1203
|
+
});
|
|
1204
|
+
return sdkResponse;
|
|
1205
|
+
}
|
|
1206
|
+
catch (err) {
|
|
1207
|
+
throw err;
|
|
1208
|
+
}
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1147
1211
|
/**
|
|
1148
1212
|
* Configures automatic capture filters to capture only those statements
|
|
1149
1213
|
* that match the filter criteria.
|
|
@@ -1687,6 +1751,156 @@ class DbManagementClient {
|
|
|
1687
1751
|
}
|
|
1688
1752
|
});
|
|
1689
1753
|
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Creates an external MySQL database.
|
|
1756
|
+
*
|
|
1757
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1758
|
+
* @param CreateExternalMySqlDatabaseRequest
|
|
1759
|
+
* @return CreateExternalMySqlDatabaseResponse
|
|
1760
|
+
* @throws OciError when an error occurs
|
|
1761
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/CreateExternalMySqlDatabase.ts.html |here} to see how to use CreateExternalMySqlDatabase API.
|
|
1762
|
+
*/
|
|
1763
|
+
createExternalMySqlDatabase(createExternalMySqlDatabaseRequest) {
|
|
1764
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1765
|
+
if (this.logger)
|
|
1766
|
+
this.logger.debug("Calling operation DbManagementClient#createExternalMySqlDatabase.");
|
|
1767
|
+
const operationName = "createExternalMySqlDatabase";
|
|
1768
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/CreateExternalMySqlDatabase";
|
|
1769
|
+
const pathParams = {};
|
|
1770
|
+
const queryParams = {};
|
|
1771
|
+
let headerParams = {
|
|
1772
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1773
|
+
"opc-request-id": createExternalMySqlDatabaseRequest.opcRequestId,
|
|
1774
|
+
"opc-retry-token": createExternalMySqlDatabaseRequest.opcRetryToken
|
|
1775
|
+
};
|
|
1776
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1777
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createExternalMySqlDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1778
|
+
if (this.logger)
|
|
1779
|
+
retrier.logger = this.logger;
|
|
1780
|
+
const request = yield oci_common_1.composeRequest({
|
|
1781
|
+
baseEndpoint: this._endpoint,
|
|
1782
|
+
defaultHeaders: this._defaultHeaders,
|
|
1783
|
+
path: "/externalMySqlDatabases",
|
|
1784
|
+
method: "POST",
|
|
1785
|
+
bodyContent: common.ObjectSerializer.serialize(createExternalMySqlDatabaseRequest.createExternalMySqlDatabaseDetails, "CreateExternalMySqlDatabaseDetails", model.CreateExternalMySqlDatabaseDetails.getJsonObj),
|
|
1786
|
+
pathParams: pathParams,
|
|
1787
|
+
headerParams: headerParams,
|
|
1788
|
+
queryParams: queryParams
|
|
1789
|
+
});
|
|
1790
|
+
try {
|
|
1791
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1792
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1793
|
+
responseObject: {},
|
|
1794
|
+
body: yield response.json(),
|
|
1795
|
+
bodyKey: "externalMySqlDatabase",
|
|
1796
|
+
bodyModel: model.ExternalMySqlDatabase,
|
|
1797
|
+
type: "model.ExternalMySqlDatabase",
|
|
1798
|
+
responseHeaders: [
|
|
1799
|
+
{
|
|
1800
|
+
value: response.headers.get("etag"),
|
|
1801
|
+
key: "etag",
|
|
1802
|
+
dataType: "string"
|
|
1803
|
+
},
|
|
1804
|
+
{
|
|
1805
|
+
value: response.headers.get("opc-request-id"),
|
|
1806
|
+
key: "opcRequestId",
|
|
1807
|
+
dataType: "string"
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
value: response.headers.get("location"),
|
|
1811
|
+
key: "location",
|
|
1812
|
+
dataType: "string"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
value: response.headers.get("content-location"),
|
|
1816
|
+
key: "contentLocation",
|
|
1817
|
+
dataType: "string"
|
|
1818
|
+
}
|
|
1819
|
+
]
|
|
1820
|
+
});
|
|
1821
|
+
return sdkResponse;
|
|
1822
|
+
}
|
|
1823
|
+
catch (err) {
|
|
1824
|
+
throw err;
|
|
1825
|
+
}
|
|
1826
|
+
});
|
|
1827
|
+
}
|
|
1828
|
+
/**
|
|
1829
|
+
* Creates an external MySQL connector resource.
|
|
1830
|
+
*
|
|
1831
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1832
|
+
* @param CreateExternalMySqlDatabaseConnectorRequest
|
|
1833
|
+
* @return CreateExternalMySqlDatabaseConnectorResponse
|
|
1834
|
+
* @throws OciError when an error occurs
|
|
1835
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/CreateExternalMySqlDatabaseConnector.ts.html |here} to see how to use CreateExternalMySqlDatabaseConnector API.
|
|
1836
|
+
*/
|
|
1837
|
+
createExternalMySqlDatabaseConnector(createExternalMySqlDatabaseConnectorRequest) {
|
|
1838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1839
|
+
if (this.logger)
|
|
1840
|
+
this.logger.debug("Calling operation DbManagementClient#createExternalMySqlDatabaseConnector.");
|
|
1841
|
+
const operationName = "createExternalMySqlDatabaseConnector";
|
|
1842
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/CreateExternalMySqlDatabaseConnector";
|
|
1843
|
+
const pathParams = {};
|
|
1844
|
+
const queryParams = {
|
|
1845
|
+
"isTestConnectionParam": createExternalMySqlDatabaseConnectorRequest.isTestConnectionParam
|
|
1846
|
+
};
|
|
1847
|
+
let headerParams = {
|
|
1848
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1849
|
+
"opc-request-id": createExternalMySqlDatabaseConnectorRequest.opcRequestId,
|
|
1850
|
+
"opc-retry-token": createExternalMySqlDatabaseConnectorRequest.opcRetryToken
|
|
1851
|
+
};
|
|
1852
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1853
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createExternalMySqlDatabaseConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
1854
|
+
if (this.logger)
|
|
1855
|
+
retrier.logger = this.logger;
|
|
1856
|
+
const request = yield oci_common_1.composeRequest({
|
|
1857
|
+
baseEndpoint: this._endpoint,
|
|
1858
|
+
defaultHeaders: this._defaultHeaders,
|
|
1859
|
+
path: "/externalMySqlDatabaseConnectors",
|
|
1860
|
+
method: "POST",
|
|
1861
|
+
bodyContent: common.ObjectSerializer.serialize(createExternalMySqlDatabaseConnectorRequest.createExternalMySqlDatabaseConnectorDetails, "CreateExternalMySqlDatabaseConnectorDetails", model.CreateExternalMySqlDatabaseConnectorDetails.getJsonObj),
|
|
1862
|
+
pathParams: pathParams,
|
|
1863
|
+
headerParams: headerParams,
|
|
1864
|
+
queryParams: queryParams
|
|
1865
|
+
});
|
|
1866
|
+
try {
|
|
1867
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1868
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1869
|
+
responseObject: {},
|
|
1870
|
+
body: yield response.json(),
|
|
1871
|
+
bodyKey: "externalMySqlDatabaseConnector",
|
|
1872
|
+
bodyModel: model.ExternalMySqlDatabaseConnector,
|
|
1873
|
+
type: "model.ExternalMySqlDatabaseConnector",
|
|
1874
|
+
responseHeaders: [
|
|
1875
|
+
{
|
|
1876
|
+
value: response.headers.get("opc-request-id"),
|
|
1877
|
+
key: "opcRequestId",
|
|
1878
|
+
dataType: "string"
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
value: response.headers.get("location"),
|
|
1882
|
+
key: "location",
|
|
1883
|
+
dataType: "string"
|
|
1884
|
+
},
|
|
1885
|
+
{
|
|
1886
|
+
value: response.headers.get("content-location"),
|
|
1887
|
+
key: "contentLocation",
|
|
1888
|
+
dataType: "string"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
value: response.headers.get("etag"),
|
|
1892
|
+
key: "etag",
|
|
1893
|
+
dataType: "string"
|
|
1894
|
+
}
|
|
1895
|
+
]
|
|
1896
|
+
});
|
|
1897
|
+
return sdkResponse;
|
|
1898
|
+
}
|
|
1899
|
+
catch (err) {
|
|
1900
|
+
throw err;
|
|
1901
|
+
}
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1690
1904
|
/**
|
|
1691
1905
|
* Creates a job to be executed on a Managed Database or Managed Database Group. Only one
|
|
1692
1906
|
* of the parameters, managedDatabaseId or managedDatabaseGroupId should be provided as
|
|
@@ -2309,36 +2523,37 @@ class DbManagementClient {
|
|
|
2309
2523
|
});
|
|
2310
2524
|
}
|
|
2311
2525
|
/**
|
|
2312
|
-
* Deletes the
|
|
2526
|
+
* Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database.
|
|
2527
|
+
*
|
|
2313
2528
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2314
|
-
* @param
|
|
2315
|
-
* @return
|
|
2529
|
+
* @param DeleteExternalMySqlDatabaseRequest
|
|
2530
|
+
* @return DeleteExternalMySqlDatabaseResponse
|
|
2316
2531
|
* @throws OciError when an error occurs
|
|
2317
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/
|
|
2532
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DeleteExternalMySqlDatabase.ts.html |here} to see how to use DeleteExternalMySqlDatabase API.
|
|
2318
2533
|
*/
|
|
2319
|
-
|
|
2534
|
+
deleteExternalMySqlDatabase(deleteExternalMySqlDatabaseRequest) {
|
|
2320
2535
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2321
2536
|
if (this.logger)
|
|
2322
|
-
this.logger.debug("Calling operation DbManagementClient#
|
|
2323
|
-
const operationName = "
|
|
2324
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
|
2537
|
+
this.logger.debug("Calling operation DbManagementClient#deleteExternalMySqlDatabase.");
|
|
2538
|
+
const operationName = "deleteExternalMySqlDatabase";
|
|
2539
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DeleteExternalMySqlDatabase";
|
|
2325
2540
|
const pathParams = {
|
|
2326
|
-
"{
|
|
2541
|
+
"{externalMySqlDatabaseId}": deleteExternalMySqlDatabaseRequest.externalMySqlDatabaseId
|
|
2327
2542
|
};
|
|
2328
2543
|
const queryParams = {};
|
|
2329
2544
|
let headerParams = {
|
|
2330
2545
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2331
|
-
"if-match":
|
|
2332
|
-
"opc-request-id":
|
|
2546
|
+
"if-match": deleteExternalMySqlDatabaseRequest.ifMatch,
|
|
2547
|
+
"opc-request-id": deleteExternalMySqlDatabaseRequest.opcRequestId
|
|
2333
2548
|
};
|
|
2334
2549
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2335
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2550
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteExternalMySqlDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
2336
2551
|
if (this.logger)
|
|
2337
2552
|
retrier.logger = this.logger;
|
|
2338
2553
|
const request = yield oci_common_1.composeRequest({
|
|
2339
2554
|
baseEndpoint: this._endpoint,
|
|
2340
2555
|
defaultHeaders: this._defaultHeaders,
|
|
2341
|
-
path: "/
|
|
2556
|
+
path: "/externalMySqlDatabases/{externalMySqlDatabaseId}",
|
|
2342
2557
|
method: "DELETE",
|
|
2343
2558
|
pathParams: pathParams,
|
|
2344
2559
|
headerParams: headerParams,
|
|
@@ -2353,6 +2568,11 @@ class DbManagementClient {
|
|
|
2353
2568
|
value: response.headers.get("opc-request-id"),
|
|
2354
2569
|
key: "opcRequestId",
|
|
2355
2570
|
dataType: "string"
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2574
|
+
key: "opcWorkRequestId",
|
|
2575
|
+
dataType: "string"
|
|
2356
2576
|
}
|
|
2357
2577
|
]
|
|
2358
2578
|
});
|
|
@@ -2364,38 +2584,37 @@ class DbManagementClient {
|
|
|
2364
2584
|
});
|
|
2365
2585
|
}
|
|
2366
2586
|
/**
|
|
2367
|
-
* Deletes the
|
|
2368
|
-
* If the group contains Managed Databases, then it cannot be deleted.
|
|
2587
|
+
* Deletes the Oracle Cloud Infrastructure resource representing an external MySQL database connector.
|
|
2369
2588
|
*
|
|
2370
2589
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2371
|
-
* @param
|
|
2372
|
-
* @return
|
|
2590
|
+
* @param DeleteExternalMySqlDatabaseConnectorRequest
|
|
2591
|
+
* @return DeleteExternalMySqlDatabaseConnectorResponse
|
|
2373
2592
|
* @throws OciError when an error occurs
|
|
2374
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/
|
|
2593
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DeleteExternalMySqlDatabaseConnector.ts.html |here} to see how to use DeleteExternalMySqlDatabaseConnector API.
|
|
2375
2594
|
*/
|
|
2376
|
-
|
|
2595
|
+
deleteExternalMySqlDatabaseConnector(deleteExternalMySqlDatabaseConnectorRequest) {
|
|
2377
2596
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2378
2597
|
if (this.logger)
|
|
2379
|
-
this.logger.debug("Calling operation DbManagementClient#
|
|
2380
|
-
const operationName = "
|
|
2381
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
|
2598
|
+
this.logger.debug("Calling operation DbManagementClient#deleteExternalMySqlDatabaseConnector.");
|
|
2599
|
+
const operationName = "deleteExternalMySqlDatabaseConnector";
|
|
2600
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/DeleteExternalMySqlDatabaseConnector";
|
|
2382
2601
|
const pathParams = {
|
|
2383
|
-
"{
|
|
2602
|
+
"{externalMySqlDatabaseConnectorId}": deleteExternalMySqlDatabaseConnectorRequest.externalMySqlDatabaseConnectorId
|
|
2384
2603
|
};
|
|
2385
2604
|
const queryParams = {};
|
|
2386
2605
|
let headerParams = {
|
|
2387
2606
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2388
|
-
"if-match":
|
|
2389
|
-
"opc-request-id":
|
|
2607
|
+
"if-match": deleteExternalMySqlDatabaseConnectorRequest.ifMatch,
|
|
2608
|
+
"opc-request-id": deleteExternalMySqlDatabaseConnectorRequest.opcRequestId
|
|
2390
2609
|
};
|
|
2391
2610
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2392
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2611
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteExternalMySqlDatabaseConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
2393
2612
|
if (this.logger)
|
|
2394
2613
|
retrier.logger = this.logger;
|
|
2395
2614
|
const request = yield oci_common_1.composeRequest({
|
|
2396
2615
|
baseEndpoint: this._endpoint,
|
|
2397
2616
|
defaultHeaders: this._defaultHeaders,
|
|
2398
|
-
path: "/
|
|
2617
|
+
path: "/externalMySqlDatabaseConnectors/{externalMySqlDatabaseConnectorId}",
|
|
2399
2618
|
method: "DELETE",
|
|
2400
2619
|
pathParams: pathParams,
|
|
2401
2620
|
headerParams: headerParams,
|
|
@@ -2406,6 +2625,11 @@ class DbManagementClient {
|
|
|
2406
2625
|
const sdkResponse = oci_common_1.composeResponse({
|
|
2407
2626
|
responseObject: {},
|
|
2408
2627
|
responseHeaders: [
|
|
2628
|
+
{
|
|
2629
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2630
|
+
key: "opcWorkRequestId",
|
|
2631
|
+
dataType: "string"
|
|
2632
|
+
},
|
|
2409
2633
|
{
|
|
2410
2634
|
value: response.headers.get("opc-request-id"),
|
|
2411
2635
|
key: "opcRequestId",
|
|
@@ -2421,37 +2645,36 @@ class DbManagementClient {
|
|
|
2421
2645
|
});
|
|
2422
2646
|
}
|
|
2423
2647
|
/**
|
|
2424
|
-
* Deletes the
|
|
2425
|
-
*
|
|
2648
|
+
* Deletes the job specified by jobId.
|
|
2426
2649
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2427
|
-
* @param
|
|
2428
|
-
* @return
|
|
2650
|
+
* @param DeleteJobRequest
|
|
2651
|
+
* @return DeleteJobResponse
|
|
2429
2652
|
* @throws OciError when an error occurs
|
|
2430
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/
|
|
2653
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DeleteJob.ts.html |here} to see how to use DeleteJob API.
|
|
2431
2654
|
*/
|
|
2432
|
-
|
|
2655
|
+
deleteJob(deleteJobRequest) {
|
|
2433
2656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2434
2657
|
if (this.logger)
|
|
2435
|
-
this.logger.debug("Calling operation DbManagementClient#
|
|
2436
|
-
const operationName = "
|
|
2437
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
|
2658
|
+
this.logger.debug("Calling operation DbManagementClient#deleteJob.");
|
|
2659
|
+
const operationName = "deleteJob";
|
|
2660
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/Job/DeleteJob";
|
|
2438
2661
|
const pathParams = {
|
|
2439
|
-
"{
|
|
2662
|
+
"{jobId}": deleteJobRequest.jobId
|
|
2440
2663
|
};
|
|
2441
2664
|
const queryParams = {};
|
|
2442
2665
|
let headerParams = {
|
|
2443
2666
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2444
|
-
"if-match":
|
|
2445
|
-
"opc-request-id":
|
|
2667
|
+
"if-match": deleteJobRequest.ifMatch,
|
|
2668
|
+
"opc-request-id": deleteJobRequest.opcRequestId
|
|
2446
2669
|
};
|
|
2447
2670
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2448
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2671
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteJobRequest.retryConfiguration, specRetryConfiguration);
|
|
2449
2672
|
if (this.logger)
|
|
2450
2673
|
retrier.logger = this.logger;
|
|
2451
2674
|
const request = yield oci_common_1.composeRequest({
|
|
2452
2675
|
baseEndpoint: this._endpoint,
|
|
2453
2676
|
defaultHeaders: this._defaultHeaders,
|
|
2454
|
-
path: "/
|
|
2677
|
+
path: "/jobs/{jobId}",
|
|
2455
2678
|
method: "DELETE",
|
|
2456
2679
|
pathParams: pathParams,
|
|
2457
2680
|
headerParams: headerParams,
|
|
@@ -2477,31 +2700,144 @@ class DbManagementClient {
|
|
|
2477
2700
|
});
|
|
2478
2701
|
}
|
|
2479
2702
|
/**
|
|
2480
|
-
* Deletes the
|
|
2703
|
+
* Deletes the Managed Database Group specified by managedDatabaseGroupId.
|
|
2704
|
+
* If the group contains Managed Databases, then it cannot be deleted.
|
|
2481
2705
|
*
|
|
2482
2706
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2483
|
-
* @param
|
|
2484
|
-
* @return
|
|
2707
|
+
* @param DeleteManagedDatabaseGroupRequest
|
|
2708
|
+
* @return DeleteManagedDatabaseGroupResponse
|
|
2485
2709
|
* @throws OciError when an error occurs
|
|
2486
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/
|
|
2710
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DeleteManagedDatabaseGroup.ts.html |here} to see how to use DeleteManagedDatabaseGroup API.
|
|
2487
2711
|
*/
|
|
2488
|
-
|
|
2712
|
+
deleteManagedDatabaseGroup(deleteManagedDatabaseGroupRequest) {
|
|
2489
2713
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2490
2714
|
if (this.logger)
|
|
2491
|
-
this.logger.debug("Calling operation DbManagementClient#
|
|
2492
|
-
const operationName = "
|
|
2493
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
|
2715
|
+
this.logger.debug("Calling operation DbManagementClient#deleteManagedDatabaseGroup.");
|
|
2716
|
+
const operationName = "deleteManagedDatabaseGroup";
|
|
2717
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabaseGroup/DeleteManagedDatabaseGroup";
|
|
2494
2718
|
const pathParams = {
|
|
2495
|
-
"{
|
|
2496
|
-
"{credentialName}": deletePreferredCredentialRequest.credentialName
|
|
2719
|
+
"{managedDatabaseGroupId}": deleteManagedDatabaseGroupRequest.managedDatabaseGroupId
|
|
2497
2720
|
};
|
|
2498
2721
|
const queryParams = {};
|
|
2499
2722
|
let headerParams = {
|
|
2500
2723
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2501
|
-
"
|
|
2724
|
+
"if-match": deleteManagedDatabaseGroupRequest.ifMatch,
|
|
2725
|
+
"opc-request-id": deleteManagedDatabaseGroupRequest.opcRequestId
|
|
2502
2726
|
};
|
|
2503
2727
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2504
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
2728
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteManagedDatabaseGroupRequest.retryConfiguration, specRetryConfiguration);
|
|
2729
|
+
if (this.logger)
|
|
2730
|
+
retrier.logger = this.logger;
|
|
2731
|
+
const request = yield oci_common_1.composeRequest({
|
|
2732
|
+
baseEndpoint: this._endpoint,
|
|
2733
|
+
defaultHeaders: this._defaultHeaders,
|
|
2734
|
+
path: "/managedDatabaseGroups/{managedDatabaseGroupId}",
|
|
2735
|
+
method: "DELETE",
|
|
2736
|
+
pathParams: pathParams,
|
|
2737
|
+
headerParams: headerParams,
|
|
2738
|
+
queryParams: queryParams
|
|
2739
|
+
});
|
|
2740
|
+
try {
|
|
2741
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2742
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2743
|
+
responseObject: {},
|
|
2744
|
+
responseHeaders: [
|
|
2745
|
+
{
|
|
2746
|
+
value: response.headers.get("opc-request-id"),
|
|
2747
|
+
key: "opcRequestId",
|
|
2748
|
+
dataType: "string"
|
|
2749
|
+
}
|
|
2750
|
+
]
|
|
2751
|
+
});
|
|
2752
|
+
return sdkResponse;
|
|
2753
|
+
}
|
|
2754
|
+
catch (err) {
|
|
2755
|
+
throw err;
|
|
2756
|
+
}
|
|
2757
|
+
});
|
|
2758
|
+
}
|
|
2759
|
+
/**
|
|
2760
|
+
* Deletes the named credential specified by namedCredentialId.
|
|
2761
|
+
*
|
|
2762
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2763
|
+
* @param DeleteNamedCredentialRequest
|
|
2764
|
+
* @return DeleteNamedCredentialResponse
|
|
2765
|
+
* @throws OciError when an error occurs
|
|
2766
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DeleteNamedCredential.ts.html |here} to see how to use DeleteNamedCredential API.
|
|
2767
|
+
*/
|
|
2768
|
+
deleteNamedCredential(deleteNamedCredentialRequest) {
|
|
2769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2770
|
+
if (this.logger)
|
|
2771
|
+
this.logger.debug("Calling operation DbManagementClient#deleteNamedCredential.");
|
|
2772
|
+
const operationName = "deleteNamedCredential";
|
|
2773
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/NamedCredential/DeleteNamedCredential";
|
|
2774
|
+
const pathParams = {
|
|
2775
|
+
"{namedCredentialId}": deleteNamedCredentialRequest.namedCredentialId
|
|
2776
|
+
};
|
|
2777
|
+
const queryParams = {};
|
|
2778
|
+
let headerParams = {
|
|
2779
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2780
|
+
"if-match": deleteNamedCredentialRequest.ifMatch,
|
|
2781
|
+
"opc-request-id": deleteNamedCredentialRequest.opcRequestId
|
|
2782
|
+
};
|
|
2783
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2784
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteNamedCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
2785
|
+
if (this.logger)
|
|
2786
|
+
retrier.logger = this.logger;
|
|
2787
|
+
const request = yield oci_common_1.composeRequest({
|
|
2788
|
+
baseEndpoint: this._endpoint,
|
|
2789
|
+
defaultHeaders: this._defaultHeaders,
|
|
2790
|
+
path: "/namedCredentials/{namedCredentialId}",
|
|
2791
|
+
method: "DELETE",
|
|
2792
|
+
pathParams: pathParams,
|
|
2793
|
+
headerParams: headerParams,
|
|
2794
|
+
queryParams: queryParams
|
|
2795
|
+
});
|
|
2796
|
+
try {
|
|
2797
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2798
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2799
|
+
responseObject: {},
|
|
2800
|
+
responseHeaders: [
|
|
2801
|
+
{
|
|
2802
|
+
value: response.headers.get("opc-request-id"),
|
|
2803
|
+
key: "opcRequestId",
|
|
2804
|
+
dataType: "string"
|
|
2805
|
+
}
|
|
2806
|
+
]
|
|
2807
|
+
});
|
|
2808
|
+
return sdkResponse;
|
|
2809
|
+
}
|
|
2810
|
+
catch (err) {
|
|
2811
|
+
throw err;
|
|
2812
|
+
}
|
|
2813
|
+
});
|
|
2814
|
+
}
|
|
2815
|
+
/**
|
|
2816
|
+
* Deletes the preferred credential based on the credentialName.
|
|
2817
|
+
*
|
|
2818
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
2819
|
+
* @param DeletePreferredCredentialRequest
|
|
2820
|
+
* @return DeletePreferredCredentialResponse
|
|
2821
|
+
* @throws OciError when an error occurs
|
|
2822
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DeletePreferredCredential.ts.html |here} to see how to use DeletePreferredCredential API.
|
|
2823
|
+
*/
|
|
2824
|
+
deletePreferredCredential(deletePreferredCredentialRequest) {
|
|
2825
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2826
|
+
if (this.logger)
|
|
2827
|
+
this.logger.debug("Calling operation DbManagementClient#deletePreferredCredential.");
|
|
2828
|
+
const operationName = "deletePreferredCredential";
|
|
2829
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/PreferredCredential/DeletePreferredCredential";
|
|
2830
|
+
const pathParams = {
|
|
2831
|
+
"{managedDatabaseId}": deletePreferredCredentialRequest.managedDatabaseId,
|
|
2832
|
+
"{credentialName}": deletePreferredCredentialRequest.credentialName
|
|
2833
|
+
};
|
|
2834
|
+
const queryParams = {};
|
|
2835
|
+
let headerParams = {
|
|
2836
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2837
|
+
"opc-request-id": deletePreferredCredentialRequest.opcRequestId
|
|
2838
|
+
};
|
|
2839
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
2840
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deletePreferredCredentialRequest.retryConfiguration, specRetryConfiguration);
|
|
2505
2841
|
if (this.logger)
|
|
2506
2842
|
retrier.logger = this.logger;
|
|
2507
2843
|
const request = yield oci_common_1.composeRequest({
|
|
@@ -3031,6 +3367,68 @@ class DbManagementClient {
|
|
|
3031
3367
|
}
|
|
3032
3368
|
});
|
|
3033
3369
|
}
|
|
3370
|
+
/**
|
|
3371
|
+
* Disables Database Management for an external MySQL Database.
|
|
3372
|
+
*
|
|
3373
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
3374
|
+
* @param DisableExternalMySqlDatabaseManagementRequest
|
|
3375
|
+
* @return DisableExternalMySqlDatabaseManagementResponse
|
|
3376
|
+
* @throws OciError when an error occurs
|
|
3377
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DisableExternalMySqlDatabaseManagement.ts.html |here} to see how to use DisableExternalMySqlDatabaseManagement API.
|
|
3378
|
+
*/
|
|
3379
|
+
disableExternalMySqlDatabaseManagement(disableExternalMySqlDatabaseManagementRequest) {
|
|
3380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3381
|
+
if (this.logger)
|
|
3382
|
+
this.logger.debug("Calling operation DbManagementClient#disableExternalMySqlDatabaseManagement.");
|
|
3383
|
+
const operationName = "disableExternalMySqlDatabaseManagement";
|
|
3384
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DisableExternalMySqlDatabaseManagement";
|
|
3385
|
+
const pathParams = {
|
|
3386
|
+
"{externalMySqlDatabaseId}": disableExternalMySqlDatabaseManagementRequest.externalMySqlDatabaseId
|
|
3387
|
+
};
|
|
3388
|
+
const queryParams = {};
|
|
3389
|
+
let headerParams = {
|
|
3390
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
3391
|
+
"opc-retry-token": disableExternalMySqlDatabaseManagementRequest.opcRetryToken,
|
|
3392
|
+
"if-match": disableExternalMySqlDatabaseManagementRequest.ifMatch,
|
|
3393
|
+
"opc-request-id": disableExternalMySqlDatabaseManagementRequest.opcRequestId
|
|
3394
|
+
};
|
|
3395
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
3396
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableExternalMySqlDatabaseManagementRequest.retryConfiguration, specRetryConfiguration);
|
|
3397
|
+
if (this.logger)
|
|
3398
|
+
retrier.logger = this.logger;
|
|
3399
|
+
const request = yield oci_common_1.composeRequest({
|
|
3400
|
+
baseEndpoint: this._endpoint,
|
|
3401
|
+
defaultHeaders: this._defaultHeaders,
|
|
3402
|
+
path: "/externalMySqlDatabases/{externalMySqlDatabaseId}/actions/disableDatabaseManagement",
|
|
3403
|
+
method: "POST",
|
|
3404
|
+
pathParams: pathParams,
|
|
3405
|
+
headerParams: headerParams,
|
|
3406
|
+
queryParams: queryParams
|
|
3407
|
+
});
|
|
3408
|
+
try {
|
|
3409
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
3410
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
3411
|
+
responseObject: {},
|
|
3412
|
+
responseHeaders: [
|
|
3413
|
+
{
|
|
3414
|
+
value: response.headers.get("opc-work-request-id"),
|
|
3415
|
+
key: "opcWorkRequestId",
|
|
3416
|
+
dataType: "string"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
value: response.headers.get("opc-request-id"),
|
|
3420
|
+
key: "opcRequestId",
|
|
3421
|
+
dataType: "string"
|
|
3422
|
+
}
|
|
3423
|
+
]
|
|
3424
|
+
});
|
|
3425
|
+
return sdkResponse;
|
|
3426
|
+
}
|
|
3427
|
+
catch (err) {
|
|
3428
|
+
throw err;
|
|
3429
|
+
}
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3034
3432
|
/**
|
|
3035
3433
|
* Disables a Database Management feature for the specified external non-container database.
|
|
3036
3434
|
*
|
|
@@ -4054,6 +4452,69 @@ class DbManagementClient {
|
|
|
4054
4452
|
}
|
|
4055
4453
|
});
|
|
4056
4454
|
}
|
|
4455
|
+
/**
|
|
4456
|
+
* Enables Database Management for an external MySQL Database.
|
|
4457
|
+
*
|
|
4458
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
4459
|
+
* @param EnableExternalMySqlDatabaseManagementRequest
|
|
4460
|
+
* @return EnableExternalMySqlDatabaseManagementResponse
|
|
4461
|
+
* @throws OciError when an error occurs
|
|
4462
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/EnableExternalMySqlDatabaseManagement.ts.html |here} to see how to use EnableExternalMySqlDatabaseManagement API.
|
|
4463
|
+
*/
|
|
4464
|
+
enableExternalMySqlDatabaseManagement(enableExternalMySqlDatabaseManagementRequest) {
|
|
4465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4466
|
+
if (this.logger)
|
|
4467
|
+
this.logger.debug("Calling operation DbManagementClient#enableExternalMySqlDatabaseManagement.");
|
|
4468
|
+
const operationName = "enableExternalMySqlDatabaseManagement";
|
|
4469
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/EnableExternalMySqlDatabaseManagement";
|
|
4470
|
+
const pathParams = {
|
|
4471
|
+
"{externalMySqlDatabaseId}": enableExternalMySqlDatabaseManagementRequest.externalMySqlDatabaseId
|
|
4472
|
+
};
|
|
4473
|
+
const queryParams = {};
|
|
4474
|
+
let headerParams = {
|
|
4475
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4476
|
+
"opc-retry-token": enableExternalMySqlDatabaseManagementRequest.opcRetryToken,
|
|
4477
|
+
"if-match": enableExternalMySqlDatabaseManagementRequest.ifMatch,
|
|
4478
|
+
"opc-request-id": enableExternalMySqlDatabaseManagementRequest.opcRequestId
|
|
4479
|
+
};
|
|
4480
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
4481
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableExternalMySqlDatabaseManagementRequest.retryConfiguration, specRetryConfiguration);
|
|
4482
|
+
if (this.logger)
|
|
4483
|
+
retrier.logger = this.logger;
|
|
4484
|
+
const request = yield oci_common_1.composeRequest({
|
|
4485
|
+
baseEndpoint: this._endpoint,
|
|
4486
|
+
defaultHeaders: this._defaultHeaders,
|
|
4487
|
+
path: "/externalMySqlDatabases/{externalMySqlDatabaseId}/actions/enableDatabaseManagement",
|
|
4488
|
+
method: "POST",
|
|
4489
|
+
bodyContent: common.ObjectSerializer.serialize(enableExternalMySqlDatabaseManagementRequest.enableExternalDatabaseManagementDetails, "EnableExternalDatabaseManagementDetails", model.EnableExternalDatabaseManagementDetails.getJsonObj),
|
|
4490
|
+
pathParams: pathParams,
|
|
4491
|
+
headerParams: headerParams,
|
|
4492
|
+
queryParams: queryParams
|
|
4493
|
+
});
|
|
4494
|
+
try {
|
|
4495
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
4496
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
4497
|
+
responseObject: {},
|
|
4498
|
+
responseHeaders: [
|
|
4499
|
+
{
|
|
4500
|
+
value: response.headers.get("opc-work-request-id"),
|
|
4501
|
+
key: "opcWorkRequestId",
|
|
4502
|
+
dataType: "string"
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
value: response.headers.get("opc-request-id"),
|
|
4506
|
+
key: "opcRequestId",
|
|
4507
|
+
dataType: "string"
|
|
4508
|
+
}
|
|
4509
|
+
]
|
|
4510
|
+
});
|
|
4511
|
+
return sdkResponse;
|
|
4512
|
+
}
|
|
4513
|
+
catch (err) {
|
|
4514
|
+
throw err;
|
|
4515
|
+
}
|
|
4516
|
+
});
|
|
4517
|
+
}
|
|
4057
4518
|
/**
|
|
4058
4519
|
* Enables Database Management feature for the specified external non-container database.
|
|
4059
4520
|
*
|
|
@@ -4633,6 +5094,235 @@ class DbManagementClient {
|
|
|
4633
5094
|
}
|
|
4634
5095
|
});
|
|
4635
5096
|
}
|
|
5097
|
+
/**
|
|
5098
|
+
* Gets the fleet of container databases (CDBs) and their backup details and metrics, in a compartment or Database Group.
|
|
5099
|
+
* The databaseHostedIn query parameter must be provided to list either cloud or external databases.
|
|
5100
|
+
* Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be provided to retrieve the HA and backup metrics.
|
|
5101
|
+
*
|
|
5102
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5103
|
+
* @param GetDatabaseFleetBackupMetricsRequest
|
|
5104
|
+
* @return GetDatabaseFleetBackupMetricsResponse
|
|
5105
|
+
* @throws OciError when an error occurs
|
|
5106
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/GetDatabaseFleetBackupMetrics.ts.html |here} to see how to use GetDatabaseFleetBackupMetrics API.
|
|
5107
|
+
*/
|
|
5108
|
+
getDatabaseFleetBackupMetrics(getDatabaseFleetBackupMetricsRequest) {
|
|
5109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5110
|
+
if (this.logger)
|
|
5111
|
+
this.logger.debug("Calling operation DbManagementClient#getDatabaseFleetBackupMetrics.");
|
|
5112
|
+
const operationName = "getDatabaseFleetBackupMetrics";
|
|
5113
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetBackupMetrics/GetDatabaseFleetBackupMetrics";
|
|
5114
|
+
const pathParams = {};
|
|
5115
|
+
const queryParams = {
|
|
5116
|
+
"databaseHostedIn": getDatabaseFleetBackupMetricsRequest.databaseHostedIn,
|
|
5117
|
+
"managedDatabaseGroupId": getDatabaseFleetBackupMetricsRequest.managedDatabaseGroupId,
|
|
5118
|
+
"compartmentId": getDatabaseFleetBackupMetricsRequest.compartmentId,
|
|
5119
|
+
"startTime": getDatabaseFleetBackupMetricsRequest.startTime,
|
|
5120
|
+
"endTime": getDatabaseFleetBackupMetricsRequest.endTime,
|
|
5121
|
+
"filterByMetricNames": getDatabaseFleetBackupMetricsRequest.filterByMetricNames,
|
|
5122
|
+
"page": getDatabaseFleetBackupMetricsRequest.page,
|
|
5123
|
+
"limit": getDatabaseFleetBackupMetricsRequest.limit,
|
|
5124
|
+
"sortBy": getDatabaseFleetBackupMetricsRequest.sortBy,
|
|
5125
|
+
"sortOrder": getDatabaseFleetBackupMetricsRequest.sortOrder,
|
|
5126
|
+
"definedTagEquals": getDatabaseFleetBackupMetricsRequest.definedTagEquals,
|
|
5127
|
+
"freeformTagEquals": getDatabaseFleetBackupMetricsRequest.freeformTagEquals,
|
|
5128
|
+
"definedTagExists": getDatabaseFleetBackupMetricsRequest.definedTagExists,
|
|
5129
|
+
"freeformTagExists": getDatabaseFleetBackupMetricsRequest.freeformTagExists
|
|
5130
|
+
};
|
|
5131
|
+
let headerParams = {
|
|
5132
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5133
|
+
"opc-request-id": getDatabaseFleetBackupMetricsRequest.opcRequestId
|
|
5134
|
+
};
|
|
5135
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5136
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseFleetBackupMetricsRequest.retryConfiguration, specRetryConfiguration);
|
|
5137
|
+
if (this.logger)
|
|
5138
|
+
retrier.logger = this.logger;
|
|
5139
|
+
const request = yield oci_common_1.composeRequest({
|
|
5140
|
+
baseEndpoint: this._endpoint,
|
|
5141
|
+
defaultHeaders: this._defaultHeaders,
|
|
5142
|
+
path: "/databaseFleetBackupMetrics",
|
|
5143
|
+
method: "GET",
|
|
5144
|
+
pathParams: pathParams,
|
|
5145
|
+
headerParams: headerParams,
|
|
5146
|
+
queryParams: queryParams
|
|
5147
|
+
});
|
|
5148
|
+
try {
|
|
5149
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5150
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5151
|
+
responseObject: {},
|
|
5152
|
+
body: yield response.json(),
|
|
5153
|
+
bodyKey: "databaseFleetBackupMetrics",
|
|
5154
|
+
bodyModel: model.DatabaseFleetBackupMetrics,
|
|
5155
|
+
type: "model.DatabaseFleetBackupMetrics",
|
|
5156
|
+
responseHeaders: [
|
|
5157
|
+
{
|
|
5158
|
+
value: response.headers.get("opc-request-id"),
|
|
5159
|
+
key: "opcRequestId",
|
|
5160
|
+
dataType: "string"
|
|
5161
|
+
},
|
|
5162
|
+
{
|
|
5163
|
+
value: response.headers.get("opc-next-page"),
|
|
5164
|
+
key: "opcNextPage",
|
|
5165
|
+
dataType: "string"
|
|
5166
|
+
}
|
|
5167
|
+
]
|
|
5168
|
+
});
|
|
5169
|
+
return sdkResponse;
|
|
5170
|
+
}
|
|
5171
|
+
catch (err) {
|
|
5172
|
+
throw err;
|
|
5173
|
+
}
|
|
5174
|
+
});
|
|
5175
|
+
}
|
|
5176
|
+
/**
|
|
5177
|
+
* Gets the fleet of Oracle Data Guard-enabled container databases (CDBs) along with Data Guard metrics and standby databases, in a compartment or Database Group.
|
|
5178
|
+
* Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be provided to retrieve the list of databases and Data Guard metrics.
|
|
5179
|
+
*
|
|
5180
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5181
|
+
* @param GetDatabaseFleetDataguardMetricsRequest
|
|
5182
|
+
* @return GetDatabaseFleetDataguardMetricsResponse
|
|
5183
|
+
* @throws OciError when an error occurs
|
|
5184
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/GetDatabaseFleetDataguardMetrics.ts.html |here} to see how to use GetDatabaseFleetDataguardMetrics API.
|
|
5185
|
+
*/
|
|
5186
|
+
getDatabaseFleetDataguardMetrics(getDatabaseFleetDataguardMetricsRequest) {
|
|
5187
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5188
|
+
if (this.logger)
|
|
5189
|
+
this.logger.debug("Calling operation DbManagementClient#getDatabaseFleetDataguardMetrics.");
|
|
5190
|
+
const operationName = "getDatabaseFleetDataguardMetrics";
|
|
5191
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetDataguardMetrics/GetDatabaseFleetDataguardMetrics";
|
|
5192
|
+
const pathParams = {};
|
|
5193
|
+
const queryParams = {
|
|
5194
|
+
"managedDatabaseGroupId": getDatabaseFleetDataguardMetricsRequest.managedDatabaseGroupId,
|
|
5195
|
+
"compartmentId": getDatabaseFleetDataguardMetricsRequest.compartmentId,
|
|
5196
|
+
"filterByMetricNames": getDatabaseFleetDataguardMetricsRequest.filterByMetricNames,
|
|
5197
|
+
"page": getDatabaseFleetDataguardMetricsRequest.page,
|
|
5198
|
+
"limit": getDatabaseFleetDataguardMetricsRequest.limit,
|
|
5199
|
+
"sortBy": getDatabaseFleetDataguardMetricsRequest.sortBy,
|
|
5200
|
+
"sortOrder": getDatabaseFleetDataguardMetricsRequest.sortOrder,
|
|
5201
|
+
"definedTagEquals": getDatabaseFleetDataguardMetricsRequest.definedTagEquals,
|
|
5202
|
+
"freeformTagEquals": getDatabaseFleetDataguardMetricsRequest.freeformTagEquals,
|
|
5203
|
+
"definedTagExists": getDatabaseFleetDataguardMetricsRequest.definedTagExists,
|
|
5204
|
+
"freeformTagExists": getDatabaseFleetDataguardMetricsRequest.freeformTagExists
|
|
5205
|
+
};
|
|
5206
|
+
let headerParams = {
|
|
5207
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5208
|
+
"opc-request-id": getDatabaseFleetDataguardMetricsRequest.opcRequestId
|
|
5209
|
+
};
|
|
5210
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5211
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseFleetDataguardMetricsRequest.retryConfiguration, specRetryConfiguration);
|
|
5212
|
+
if (this.logger)
|
|
5213
|
+
retrier.logger = this.logger;
|
|
5214
|
+
const request = yield oci_common_1.composeRequest({
|
|
5215
|
+
baseEndpoint: this._endpoint,
|
|
5216
|
+
defaultHeaders: this._defaultHeaders,
|
|
5217
|
+
path: "/databaseFleetDataguardMetrics",
|
|
5218
|
+
method: "GET",
|
|
5219
|
+
pathParams: pathParams,
|
|
5220
|
+
headerParams: headerParams,
|
|
5221
|
+
queryParams: queryParams
|
|
5222
|
+
});
|
|
5223
|
+
try {
|
|
5224
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5225
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5226
|
+
responseObject: {},
|
|
5227
|
+
body: yield response.json(),
|
|
5228
|
+
bodyKey: "databaseFleetDataguardMetrics",
|
|
5229
|
+
bodyModel: model.DatabaseFleetDataguardMetrics,
|
|
5230
|
+
type: "model.DatabaseFleetDataguardMetrics",
|
|
5231
|
+
responseHeaders: [
|
|
5232
|
+
{
|
|
5233
|
+
value: response.headers.get("opc-request-id"),
|
|
5234
|
+
key: "opcRequestId",
|
|
5235
|
+
dataType: "string"
|
|
5236
|
+
},
|
|
5237
|
+
{
|
|
5238
|
+
value: response.headers.get("opc-next-page"),
|
|
5239
|
+
key: "opcNextPage",
|
|
5240
|
+
dataType: "string"
|
|
5241
|
+
}
|
|
5242
|
+
]
|
|
5243
|
+
});
|
|
5244
|
+
return sdkResponse;
|
|
5245
|
+
}
|
|
5246
|
+
catch (err) {
|
|
5247
|
+
throw err;
|
|
5248
|
+
}
|
|
5249
|
+
});
|
|
5250
|
+
}
|
|
5251
|
+
/**
|
|
5252
|
+
* Gets the fleet of container databases (CDBs) and their HA and backup metrics in a compartment or in a Database Group.
|
|
5253
|
+
* Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be provided to retrieve the HA and backup metrics.
|
|
5254
|
+
*
|
|
5255
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5256
|
+
* @param GetDatabaseFleetHaOverviewMetricsRequest
|
|
5257
|
+
* @return GetDatabaseFleetHaOverviewMetricsResponse
|
|
5258
|
+
* @throws OciError when an error occurs
|
|
5259
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/GetDatabaseFleetHaOverviewMetrics.ts.html |here} to see how to use GetDatabaseFleetHaOverviewMetrics API.
|
|
5260
|
+
*/
|
|
5261
|
+
getDatabaseFleetHaOverviewMetrics(getDatabaseFleetHaOverviewMetricsRequest) {
|
|
5262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5263
|
+
if (this.logger)
|
|
5264
|
+
this.logger.debug("Calling operation DbManagementClient#getDatabaseFleetHaOverviewMetrics.");
|
|
5265
|
+
const operationName = "getDatabaseFleetHaOverviewMetrics";
|
|
5266
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetHaOverviewMetrics/GetDatabaseFleetHaOverviewMetrics";
|
|
5267
|
+
const pathParams = {};
|
|
5268
|
+
const queryParams = {
|
|
5269
|
+
"managedDatabaseGroupId": getDatabaseFleetHaOverviewMetricsRequest.managedDatabaseGroupId,
|
|
5270
|
+
"compartmentId": getDatabaseFleetHaOverviewMetricsRequest.compartmentId,
|
|
5271
|
+
"filterByMetricNames": getDatabaseFleetHaOverviewMetricsRequest.filterByMetricNames,
|
|
5272
|
+
"page": getDatabaseFleetHaOverviewMetricsRequest.page,
|
|
5273
|
+
"limit": getDatabaseFleetHaOverviewMetricsRequest.limit,
|
|
5274
|
+
"sortBy": getDatabaseFleetHaOverviewMetricsRequest.sortBy,
|
|
5275
|
+
"sortOrder": getDatabaseFleetHaOverviewMetricsRequest.sortOrder,
|
|
5276
|
+
"definedTagEquals": getDatabaseFleetHaOverviewMetricsRequest.definedTagEquals,
|
|
5277
|
+
"freeformTagEquals": getDatabaseFleetHaOverviewMetricsRequest.freeformTagEquals,
|
|
5278
|
+
"definedTagExists": getDatabaseFleetHaOverviewMetricsRequest.definedTagExists,
|
|
5279
|
+
"freeformTagExists": getDatabaseFleetHaOverviewMetricsRequest.freeformTagExists
|
|
5280
|
+
};
|
|
5281
|
+
let headerParams = {
|
|
5282
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5283
|
+
"opc-request-id": getDatabaseFleetHaOverviewMetricsRequest.opcRequestId
|
|
5284
|
+
};
|
|
5285
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5286
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseFleetHaOverviewMetricsRequest.retryConfiguration, specRetryConfiguration);
|
|
5287
|
+
if (this.logger)
|
|
5288
|
+
retrier.logger = this.logger;
|
|
5289
|
+
const request = yield oci_common_1.composeRequest({
|
|
5290
|
+
baseEndpoint: this._endpoint,
|
|
5291
|
+
defaultHeaders: this._defaultHeaders,
|
|
5292
|
+
path: "/databaseFleetHaOverviewMetrics",
|
|
5293
|
+
method: "GET",
|
|
5294
|
+
pathParams: pathParams,
|
|
5295
|
+
headerParams: headerParams,
|
|
5296
|
+
queryParams: queryParams
|
|
5297
|
+
});
|
|
5298
|
+
try {
|
|
5299
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5300
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5301
|
+
responseObject: {},
|
|
5302
|
+
body: yield response.json(),
|
|
5303
|
+
bodyKey: "databaseFleetHaOverviewMetrics",
|
|
5304
|
+
bodyModel: model.DatabaseFleetHaOverviewMetrics,
|
|
5305
|
+
type: "model.DatabaseFleetHaOverviewMetrics",
|
|
5306
|
+
responseHeaders: [
|
|
5307
|
+
{
|
|
5308
|
+
value: response.headers.get("opc-request-id"),
|
|
5309
|
+
key: "opcRequestId",
|
|
5310
|
+
dataType: "string"
|
|
5311
|
+
},
|
|
5312
|
+
{
|
|
5313
|
+
value: response.headers.get("opc-next-page"),
|
|
5314
|
+
key: "opcNextPage",
|
|
5315
|
+
dataType: "string"
|
|
5316
|
+
}
|
|
5317
|
+
]
|
|
5318
|
+
});
|
|
5319
|
+
return sdkResponse;
|
|
5320
|
+
}
|
|
5321
|
+
catch (err) {
|
|
5322
|
+
throw err;
|
|
5323
|
+
}
|
|
5324
|
+
});
|
|
5325
|
+
}
|
|
4636
5326
|
/**
|
|
4637
5327
|
* Gets the health metrics for a fleet of databases in a compartment or in a Managed Database Group.
|
|
4638
5328
|
* Either the CompartmentId or the ManagedDatabaseGroupId query parameters must be provided to retrieve the health metrics.
|
|
@@ -4646,42 +5336,107 @@ class DbManagementClient {
|
|
|
4646
5336
|
getDatabaseFleetHealthMetrics(getDatabaseFleetHealthMetricsRequest) {
|
|
4647
5337
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4648
5338
|
if (this.logger)
|
|
4649
|
-
this.logger.debug("Calling operation DbManagementClient#getDatabaseFleetHealthMetrics.");
|
|
4650
|
-
const operationName = "getDatabaseFleetHealthMetrics";
|
|
4651
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetHealthMetrics/GetDatabaseFleetHealthMetrics";
|
|
4652
|
-
const pathParams = {};
|
|
4653
|
-
const queryParams = {
|
|
4654
|
-
"managedDatabaseGroupId": getDatabaseFleetHealthMetricsRequest.managedDatabaseGroupId,
|
|
4655
|
-
"compartmentId": getDatabaseFleetHealthMetricsRequest.compartmentId,
|
|
4656
|
-
"compareBaselineTime": getDatabaseFleetHealthMetricsRequest.compareBaselineTime,
|
|
4657
|
-
"compareTargetTime": getDatabaseFleetHealthMetricsRequest.compareTargetTime,
|
|
4658
|
-
"compareType": getDatabaseFleetHealthMetricsRequest.compareType,
|
|
4659
|
-
"filterByMetricNames": getDatabaseFleetHealthMetricsRequest.filterByMetricNames,
|
|
4660
|
-
"filterByDatabaseType": getDatabaseFleetHealthMetricsRequest.filterByDatabaseType,
|
|
4661
|
-
"filterByDatabaseSubType": getDatabaseFleetHealthMetricsRequest.filterByDatabaseSubType,
|
|
4662
|
-
"page": getDatabaseFleetHealthMetricsRequest.page,
|
|
4663
|
-
"limit": getDatabaseFleetHealthMetricsRequest.limit,
|
|
4664
|
-
"sortBy": getDatabaseFleetHealthMetricsRequest.sortBy,
|
|
4665
|
-
"sortOrder": getDatabaseFleetHealthMetricsRequest.sortOrder,
|
|
4666
|
-
"filterByDatabaseDeploymentType": getDatabaseFleetHealthMetricsRequest.filterByDatabaseDeploymentType,
|
|
4667
|
-
"filterByDatabaseVersion": getDatabaseFleetHealthMetricsRequest.filterByDatabaseVersion,
|
|
4668
|
-
"definedTagEquals": getDatabaseFleetHealthMetricsRequest.definedTagEquals,
|
|
4669
|
-
"freeformTagEquals": getDatabaseFleetHealthMetricsRequest.freeformTagEquals,
|
|
4670
|
-
"definedTagExists": getDatabaseFleetHealthMetricsRequest.definedTagExists,
|
|
4671
|
-
"freeformTagExists": getDatabaseFleetHealthMetricsRequest.freeformTagExists
|
|
5339
|
+
this.logger.debug("Calling operation DbManagementClient#getDatabaseFleetHealthMetrics.");
|
|
5340
|
+
const operationName = "getDatabaseFleetHealthMetrics";
|
|
5341
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseFleetHealthMetrics/GetDatabaseFleetHealthMetrics";
|
|
5342
|
+
const pathParams = {};
|
|
5343
|
+
const queryParams = {
|
|
5344
|
+
"managedDatabaseGroupId": getDatabaseFleetHealthMetricsRequest.managedDatabaseGroupId,
|
|
5345
|
+
"compartmentId": getDatabaseFleetHealthMetricsRequest.compartmentId,
|
|
5346
|
+
"compareBaselineTime": getDatabaseFleetHealthMetricsRequest.compareBaselineTime,
|
|
5347
|
+
"compareTargetTime": getDatabaseFleetHealthMetricsRequest.compareTargetTime,
|
|
5348
|
+
"compareType": getDatabaseFleetHealthMetricsRequest.compareType,
|
|
5349
|
+
"filterByMetricNames": getDatabaseFleetHealthMetricsRequest.filterByMetricNames,
|
|
5350
|
+
"filterByDatabaseType": getDatabaseFleetHealthMetricsRequest.filterByDatabaseType,
|
|
5351
|
+
"filterByDatabaseSubType": getDatabaseFleetHealthMetricsRequest.filterByDatabaseSubType,
|
|
5352
|
+
"page": getDatabaseFleetHealthMetricsRequest.page,
|
|
5353
|
+
"limit": getDatabaseFleetHealthMetricsRequest.limit,
|
|
5354
|
+
"sortBy": getDatabaseFleetHealthMetricsRequest.sortBy,
|
|
5355
|
+
"sortOrder": getDatabaseFleetHealthMetricsRequest.sortOrder,
|
|
5356
|
+
"filterByDatabaseDeploymentType": getDatabaseFleetHealthMetricsRequest.filterByDatabaseDeploymentType,
|
|
5357
|
+
"filterByDatabaseVersion": getDatabaseFleetHealthMetricsRequest.filterByDatabaseVersion,
|
|
5358
|
+
"definedTagEquals": getDatabaseFleetHealthMetricsRequest.definedTagEquals,
|
|
5359
|
+
"freeformTagEquals": getDatabaseFleetHealthMetricsRequest.freeformTagEquals,
|
|
5360
|
+
"definedTagExists": getDatabaseFleetHealthMetricsRequest.definedTagExists,
|
|
5361
|
+
"freeformTagExists": getDatabaseFleetHealthMetricsRequest.freeformTagExists
|
|
5362
|
+
};
|
|
5363
|
+
let headerParams = {
|
|
5364
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5365
|
+
"opc-request-id": getDatabaseFleetHealthMetricsRequest.opcRequestId
|
|
5366
|
+
};
|
|
5367
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
5368
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseFleetHealthMetricsRequest.retryConfiguration, specRetryConfiguration);
|
|
5369
|
+
if (this.logger)
|
|
5370
|
+
retrier.logger = this.logger;
|
|
5371
|
+
const request = yield oci_common_1.composeRequest({
|
|
5372
|
+
baseEndpoint: this._endpoint,
|
|
5373
|
+
defaultHeaders: this._defaultHeaders,
|
|
5374
|
+
path: "/fleetMetrics",
|
|
5375
|
+
method: "GET",
|
|
5376
|
+
pathParams: pathParams,
|
|
5377
|
+
headerParams: headerParams,
|
|
5378
|
+
queryParams: queryParams
|
|
5379
|
+
});
|
|
5380
|
+
try {
|
|
5381
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5382
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
5383
|
+
responseObject: {},
|
|
5384
|
+
body: yield response.json(),
|
|
5385
|
+
bodyKey: "databaseFleetHealthMetrics",
|
|
5386
|
+
bodyModel: model.DatabaseFleetHealthMetrics,
|
|
5387
|
+
type: "model.DatabaseFleetHealthMetrics",
|
|
5388
|
+
responseHeaders: [
|
|
5389
|
+
{
|
|
5390
|
+
value: response.headers.get("opc-request-id"),
|
|
5391
|
+
key: "opcRequestId",
|
|
5392
|
+
dataType: "string"
|
|
5393
|
+
},
|
|
5394
|
+
{
|
|
5395
|
+
value: response.headers.get("opc-next-page"),
|
|
5396
|
+
key: "opcNextPage",
|
|
5397
|
+
dataType: "string"
|
|
5398
|
+
}
|
|
5399
|
+
]
|
|
5400
|
+
});
|
|
5401
|
+
return sdkResponse;
|
|
5402
|
+
}
|
|
5403
|
+
catch (err) {
|
|
5404
|
+
throw err;
|
|
5405
|
+
}
|
|
5406
|
+
});
|
|
5407
|
+
}
|
|
5408
|
+
/**
|
|
5409
|
+
* Gets HA and backup details with metrics and backup history for a single database.
|
|
5410
|
+
*
|
|
5411
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5412
|
+
* @param GetDatabaseHaBackupDetailsRequest
|
|
5413
|
+
* @return GetDatabaseHaBackupDetailsResponse
|
|
5414
|
+
* @throws OciError when an error occurs
|
|
5415
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/GetDatabaseHaBackupDetails.ts.html |here} to see how to use GetDatabaseHaBackupDetails API.
|
|
5416
|
+
*/
|
|
5417
|
+
getDatabaseHaBackupDetails(getDatabaseHaBackupDetailsRequest) {
|
|
5418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5419
|
+
if (this.logger)
|
|
5420
|
+
this.logger.debug("Calling operation DbManagementClient#getDatabaseHaBackupDetails.");
|
|
5421
|
+
const operationName = "getDatabaseHaBackupDetails";
|
|
5422
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/DatabaseHaBackupDetails/GetDatabaseHaBackupDetails";
|
|
5423
|
+
const pathParams = {
|
|
5424
|
+
"{managedDatabaseId}": getDatabaseHaBackupDetailsRequest.managedDatabaseId
|
|
4672
5425
|
};
|
|
5426
|
+
const queryParams = {};
|
|
4673
5427
|
let headerParams = {
|
|
4674
5428
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
4675
|
-
"opc-request-id":
|
|
5429
|
+
"opc-request-id": getDatabaseHaBackupDetailsRequest.opcRequestId,
|
|
5430
|
+
"opc-named-credential-id": getDatabaseHaBackupDetailsRequest.opcNamedCredentialId
|
|
4676
5431
|
};
|
|
4677
|
-
const specRetryConfiguration = common.
|
|
4678
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
5432
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5433
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDatabaseHaBackupDetailsRequest.retryConfiguration, specRetryConfiguration);
|
|
4679
5434
|
if (this.logger)
|
|
4680
5435
|
retrier.logger = this.logger;
|
|
4681
5436
|
const request = yield oci_common_1.composeRequest({
|
|
4682
5437
|
baseEndpoint: this._endpoint,
|
|
4683
5438
|
defaultHeaders: this._defaultHeaders,
|
|
4684
|
-
path: "/
|
|
5439
|
+
path: "/managedDatabases/{managedDatabaseId}/haBackupDetails",
|
|
4685
5440
|
method: "GET",
|
|
4686
5441
|
pathParams: pathParams,
|
|
4687
5442
|
headerParams: headerParams,
|
|
@@ -4692,19 +5447,14 @@ class DbManagementClient {
|
|
|
4692
5447
|
const sdkResponse = oci_common_1.composeResponse({
|
|
4693
5448
|
responseObject: {},
|
|
4694
5449
|
body: yield response.json(),
|
|
4695
|
-
bodyKey: "
|
|
4696
|
-
bodyModel: model.
|
|
4697
|
-
type: "model.
|
|
5450
|
+
bodyKey: "databaseHaBackupDetails",
|
|
5451
|
+
bodyModel: model.DatabaseHaBackupDetails,
|
|
5452
|
+
type: "model.DatabaseHaBackupDetails",
|
|
4698
5453
|
responseHeaders: [
|
|
4699
5454
|
{
|
|
4700
5455
|
value: response.headers.get("opc-request-id"),
|
|
4701
5456
|
key: "opcRequestId",
|
|
4702
5457
|
dataType: "string"
|
|
4703
|
-
},
|
|
4704
|
-
{
|
|
4705
|
-
value: response.headers.get("opc-next-page"),
|
|
4706
|
-
key: "opcNextPage",
|
|
4707
|
-
dataType: "string"
|
|
4708
5458
|
}
|
|
4709
5459
|
]
|
|
4710
5460
|
});
|
|
@@ -5861,6 +6611,134 @@ class DbManagementClient {
|
|
|
5861
6611
|
}
|
|
5862
6612
|
});
|
|
5863
6613
|
}
|
|
6614
|
+
/**
|
|
6615
|
+
* Retrieves the external MySQL database information.
|
|
6616
|
+
*
|
|
6617
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
6618
|
+
* @param GetExternalMySqlDatabaseRequest
|
|
6619
|
+
* @return GetExternalMySqlDatabaseResponse
|
|
6620
|
+
* @throws OciError when an error occurs
|
|
6621
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/GetExternalMySqlDatabase.ts.html |here} to see how to use GetExternalMySqlDatabase API.
|
|
6622
|
+
*/
|
|
6623
|
+
getExternalMySqlDatabase(getExternalMySqlDatabaseRequest) {
|
|
6624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6625
|
+
if (this.logger)
|
|
6626
|
+
this.logger.debug("Calling operation DbManagementClient#getExternalMySqlDatabase.");
|
|
6627
|
+
const operationName = "getExternalMySqlDatabase";
|
|
6628
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/GetExternalMySqlDatabase";
|
|
6629
|
+
const pathParams = {
|
|
6630
|
+
"{externalMySqlDatabaseId}": getExternalMySqlDatabaseRequest.externalMySqlDatabaseId
|
|
6631
|
+
};
|
|
6632
|
+
const queryParams = {};
|
|
6633
|
+
let headerParams = {
|
|
6634
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
6635
|
+
"opc-request-id": getExternalMySqlDatabaseRequest.opcRequestId
|
|
6636
|
+
};
|
|
6637
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
6638
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExternalMySqlDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
6639
|
+
if (this.logger)
|
|
6640
|
+
retrier.logger = this.logger;
|
|
6641
|
+
const request = yield oci_common_1.composeRequest({
|
|
6642
|
+
baseEndpoint: this._endpoint,
|
|
6643
|
+
defaultHeaders: this._defaultHeaders,
|
|
6644
|
+
path: "/externalMySqlDatabases/{externalMySqlDatabaseId}",
|
|
6645
|
+
method: "GET",
|
|
6646
|
+
pathParams: pathParams,
|
|
6647
|
+
headerParams: headerParams,
|
|
6648
|
+
queryParams: queryParams
|
|
6649
|
+
});
|
|
6650
|
+
try {
|
|
6651
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
6652
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
6653
|
+
responseObject: {},
|
|
6654
|
+
body: yield response.json(),
|
|
6655
|
+
bodyKey: "externalMySqlDatabase",
|
|
6656
|
+
bodyModel: model.ExternalMySqlDatabase,
|
|
6657
|
+
type: "model.ExternalMySqlDatabase",
|
|
6658
|
+
responseHeaders: [
|
|
6659
|
+
{
|
|
6660
|
+
value: response.headers.get("opc-request-id"),
|
|
6661
|
+
key: "opcRequestId",
|
|
6662
|
+
dataType: "string"
|
|
6663
|
+
},
|
|
6664
|
+
{
|
|
6665
|
+
value: response.headers.get("etag"),
|
|
6666
|
+
key: "etag",
|
|
6667
|
+
dataType: "string"
|
|
6668
|
+
}
|
|
6669
|
+
]
|
|
6670
|
+
});
|
|
6671
|
+
return sdkResponse;
|
|
6672
|
+
}
|
|
6673
|
+
catch (err) {
|
|
6674
|
+
throw err;
|
|
6675
|
+
}
|
|
6676
|
+
});
|
|
6677
|
+
}
|
|
6678
|
+
/**
|
|
6679
|
+
* Retrieves the MySQL database connector.
|
|
6680
|
+
*
|
|
6681
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
6682
|
+
* @param GetExternalMySqlDatabaseConnectorRequest
|
|
6683
|
+
* @return GetExternalMySqlDatabaseConnectorResponse
|
|
6684
|
+
* @throws OciError when an error occurs
|
|
6685
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/GetExternalMySqlDatabaseConnector.ts.html |here} to see how to use GetExternalMySqlDatabaseConnector API.
|
|
6686
|
+
*/
|
|
6687
|
+
getExternalMySqlDatabaseConnector(getExternalMySqlDatabaseConnectorRequest) {
|
|
6688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6689
|
+
if (this.logger)
|
|
6690
|
+
this.logger.debug("Calling operation DbManagementClient#getExternalMySqlDatabaseConnector.");
|
|
6691
|
+
const operationName = "getExternalMySqlDatabaseConnector";
|
|
6692
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/GetExternalMySqlDatabaseConnector";
|
|
6693
|
+
const pathParams = {
|
|
6694
|
+
"{externalMySqlDatabaseConnectorId}": getExternalMySqlDatabaseConnectorRequest.externalMySqlDatabaseConnectorId
|
|
6695
|
+
};
|
|
6696
|
+
const queryParams = {};
|
|
6697
|
+
let headerParams = {
|
|
6698
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
6699
|
+
"opc-request-id": getExternalMySqlDatabaseConnectorRequest.opcRequestId
|
|
6700
|
+
};
|
|
6701
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
6702
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getExternalMySqlDatabaseConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
6703
|
+
if (this.logger)
|
|
6704
|
+
retrier.logger = this.logger;
|
|
6705
|
+
const request = yield oci_common_1.composeRequest({
|
|
6706
|
+
baseEndpoint: this._endpoint,
|
|
6707
|
+
defaultHeaders: this._defaultHeaders,
|
|
6708
|
+
path: "/externalMySqlDatabaseConnectors/{externalMySqlDatabaseConnectorId}",
|
|
6709
|
+
method: "GET",
|
|
6710
|
+
pathParams: pathParams,
|
|
6711
|
+
headerParams: headerParams,
|
|
6712
|
+
queryParams: queryParams
|
|
6713
|
+
});
|
|
6714
|
+
try {
|
|
6715
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
6716
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
6717
|
+
responseObject: {},
|
|
6718
|
+
body: yield response.json(),
|
|
6719
|
+
bodyKey: "externalMySqlDatabaseConnector",
|
|
6720
|
+
bodyModel: model.ExternalMySqlDatabaseConnector,
|
|
6721
|
+
type: "model.ExternalMySqlDatabaseConnector",
|
|
6722
|
+
responseHeaders: [
|
|
6723
|
+
{
|
|
6724
|
+
value: response.headers.get("opc-request-id"),
|
|
6725
|
+
key: "opcRequestId",
|
|
6726
|
+
dataType: "string"
|
|
6727
|
+
},
|
|
6728
|
+
{
|
|
6729
|
+
value: response.headers.get("etag"),
|
|
6730
|
+
key: "etag",
|
|
6731
|
+
dataType: "string"
|
|
6732
|
+
}
|
|
6733
|
+
]
|
|
6734
|
+
});
|
|
6735
|
+
return sdkResponse;
|
|
6736
|
+
}
|
|
6737
|
+
catch (err) {
|
|
6738
|
+
throw err;
|
|
6739
|
+
}
|
|
6740
|
+
});
|
|
6741
|
+
}
|
|
5864
6742
|
/**
|
|
5865
6743
|
* Get the IORM plan from the specific Exadata storage server.
|
|
5866
6744
|
*
|
|
@@ -8992,6 +9870,75 @@ class DbManagementClient {
|
|
|
8992
9870
|
}
|
|
8993
9871
|
});
|
|
8994
9872
|
}
|
|
9873
|
+
/**
|
|
9874
|
+
* Gets the list of External MySQL Databases.
|
|
9875
|
+
*
|
|
9876
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
9877
|
+
* @param ListExternalMySqlDatabasesRequest
|
|
9878
|
+
* @return ListExternalMySqlDatabasesResponse
|
|
9879
|
+
* @throws OciError when an error occurs
|
|
9880
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/ListExternalMySqlDatabases.ts.html |here} to see how to use ListExternalMySqlDatabases API.
|
|
9881
|
+
*/
|
|
9882
|
+
listExternalMySqlDatabases(listExternalMySqlDatabasesRequest) {
|
|
9883
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9884
|
+
if (this.logger)
|
|
9885
|
+
this.logger.debug("Calling operation DbManagementClient#listExternalMySqlDatabases.");
|
|
9886
|
+
const operationName = "listExternalMySqlDatabases";
|
|
9887
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseCollection/ListExternalMySqlDatabases";
|
|
9888
|
+
const pathParams = {};
|
|
9889
|
+
const queryParams = {
|
|
9890
|
+
"compartmentId": listExternalMySqlDatabasesRequest.compartmentId,
|
|
9891
|
+
"name": listExternalMySqlDatabasesRequest.name,
|
|
9892
|
+
"page": listExternalMySqlDatabasesRequest.page,
|
|
9893
|
+
"limit": listExternalMySqlDatabasesRequest.limit,
|
|
9894
|
+
"sortBy": listExternalMySqlDatabasesRequest.sortBy,
|
|
9895
|
+
"sortOrder": listExternalMySqlDatabasesRequest.sortOrder
|
|
9896
|
+
};
|
|
9897
|
+
let headerParams = {
|
|
9898
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9899
|
+
"opc-request-id": listExternalMySqlDatabasesRequest.opcRequestId
|
|
9900
|
+
};
|
|
9901
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
9902
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listExternalMySqlDatabasesRequest.retryConfiguration, specRetryConfiguration);
|
|
9903
|
+
if (this.logger)
|
|
9904
|
+
retrier.logger = this.logger;
|
|
9905
|
+
const request = yield oci_common_1.composeRequest({
|
|
9906
|
+
baseEndpoint: this._endpoint,
|
|
9907
|
+
defaultHeaders: this._defaultHeaders,
|
|
9908
|
+
path: "/externalMySqlDatabases",
|
|
9909
|
+
method: "GET",
|
|
9910
|
+
pathParams: pathParams,
|
|
9911
|
+
headerParams: headerParams,
|
|
9912
|
+
queryParams: queryParams
|
|
9913
|
+
});
|
|
9914
|
+
try {
|
|
9915
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
9916
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
9917
|
+
responseObject: {},
|
|
9918
|
+
body: yield response.json(),
|
|
9919
|
+
bodyKey: "externalMySqlDatabaseCollection",
|
|
9920
|
+
bodyModel: model.ExternalMySqlDatabaseCollection,
|
|
9921
|
+
type: "model.ExternalMySqlDatabaseCollection",
|
|
9922
|
+
responseHeaders: [
|
|
9923
|
+
{
|
|
9924
|
+
value: response.headers.get("opc-request-id"),
|
|
9925
|
+
key: "opcRequestId",
|
|
9926
|
+
dataType: "string"
|
|
9927
|
+
},
|
|
9928
|
+
{
|
|
9929
|
+
value: response.headers.get("opc-next-page"),
|
|
9930
|
+
key: "opcNextPage",
|
|
9931
|
+
dataType: "string"
|
|
9932
|
+
}
|
|
9933
|
+
]
|
|
9934
|
+
});
|
|
9935
|
+
return sdkResponse;
|
|
9936
|
+
}
|
|
9937
|
+
catch (err) {
|
|
9938
|
+
throw err;
|
|
9939
|
+
}
|
|
9940
|
+
});
|
|
9941
|
+
}
|
|
8995
9942
|
/**
|
|
8996
9943
|
* Gets the job execution for a specific ID or the list of job executions for a job, job run, Managed Database or Managed Database Group
|
|
8997
9944
|
* in a specific compartment. Only one of the parameters, ID, jobId, jobRunId, managedDatabaseId or managedDatabaseGroupId should be provided.
|
|
@@ -9254,16 +10201,94 @@ class DbManagementClient {
|
|
|
9254
10201
|
};
|
|
9255
10202
|
let headerParams = {
|
|
9256
10203
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9257
|
-
"opc-request-id": listManagedDatabaseGroupsRequest.opcRequestId
|
|
10204
|
+
"opc-request-id": listManagedDatabaseGroupsRequest.opcRequestId
|
|
10205
|
+
};
|
|
10206
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
10207
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagedDatabaseGroupsRequest.retryConfiguration, specRetryConfiguration);
|
|
10208
|
+
if (this.logger)
|
|
10209
|
+
retrier.logger = this.logger;
|
|
10210
|
+
const request = yield oci_common_1.composeRequest({
|
|
10211
|
+
baseEndpoint: this._endpoint,
|
|
10212
|
+
defaultHeaders: this._defaultHeaders,
|
|
10213
|
+
path: "/managedDatabaseGroups",
|
|
10214
|
+
method: "GET",
|
|
10215
|
+
pathParams: pathParams,
|
|
10216
|
+
headerParams: headerParams,
|
|
10217
|
+
queryParams: queryParams
|
|
10218
|
+
});
|
|
10219
|
+
try {
|
|
10220
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10221
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
10222
|
+
responseObject: {},
|
|
10223
|
+
body: yield response.json(),
|
|
10224
|
+
bodyKey: "managedDatabaseGroupCollection",
|
|
10225
|
+
bodyModel: model.ManagedDatabaseGroupCollection,
|
|
10226
|
+
type: "model.ManagedDatabaseGroupCollection",
|
|
10227
|
+
responseHeaders: [
|
|
10228
|
+
{
|
|
10229
|
+
value: response.headers.get("opc-request-id"),
|
|
10230
|
+
key: "opcRequestId",
|
|
10231
|
+
dataType: "string"
|
|
10232
|
+
},
|
|
10233
|
+
{
|
|
10234
|
+
value: response.headers.get("opc-next-page"),
|
|
10235
|
+
key: "opcNextPage",
|
|
10236
|
+
dataType: "string"
|
|
10237
|
+
}
|
|
10238
|
+
]
|
|
10239
|
+
});
|
|
10240
|
+
return sdkResponse;
|
|
10241
|
+
}
|
|
10242
|
+
catch (err) {
|
|
10243
|
+
throw err;
|
|
10244
|
+
}
|
|
10245
|
+
});
|
|
10246
|
+
}
|
|
10247
|
+
/**
|
|
10248
|
+
* Gets the Managed Database for a specific ID or the list of Managed Databases in a specific compartment.
|
|
10249
|
+
* Managed Databases can be filtered based on the name parameter. Only one of the parameters, ID or name
|
|
10250
|
+
* should be provided. If neither of these parameters is provided, all the Managed Databases in the compartment
|
|
10251
|
+
* are listed. Managed Databases can also be filtered based on the deployment type and management option.
|
|
10252
|
+
* If the deployment type is not specified or if it is `ONPREMISE`, then the management option is not
|
|
10253
|
+
* considered and Managed Databases with `ADVANCED` management option are listed.
|
|
10254
|
+
*
|
|
10255
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
10256
|
+
* @param ListManagedDatabasesRequest
|
|
10257
|
+
* @return ListManagedDatabasesResponse
|
|
10258
|
+
* @throws OciError when an error occurs
|
|
10259
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/ListManagedDatabases.ts.html |here} to see how to use ListManagedDatabases API.
|
|
10260
|
+
*/
|
|
10261
|
+
listManagedDatabases(listManagedDatabasesRequest) {
|
|
10262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10263
|
+
if (this.logger)
|
|
10264
|
+
this.logger.debug("Calling operation DbManagementClient#listManagedDatabases.");
|
|
10265
|
+
const operationName = "listManagedDatabases";
|
|
10266
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ManagedDatabase/ListManagedDatabases";
|
|
10267
|
+
const pathParams = {};
|
|
10268
|
+
const queryParams = {
|
|
10269
|
+
"compartmentId": listManagedDatabasesRequest.compartmentId,
|
|
10270
|
+
"id": listManagedDatabasesRequest.id,
|
|
10271
|
+
"name": listManagedDatabasesRequest.name,
|
|
10272
|
+
"managementOption": listManagedDatabasesRequest.managementOption,
|
|
10273
|
+
"deploymentType": listManagedDatabasesRequest.deploymentType,
|
|
10274
|
+
"externalExadataInfrastructureId": listManagedDatabasesRequest.externalExadataInfrastructureId,
|
|
10275
|
+
"page": listManagedDatabasesRequest.page,
|
|
10276
|
+
"limit": listManagedDatabasesRequest.limit,
|
|
10277
|
+
"sortBy": listManagedDatabasesRequest.sortBy,
|
|
10278
|
+
"sortOrder": listManagedDatabasesRequest.sortOrder
|
|
10279
|
+
};
|
|
10280
|
+
let headerParams = {
|
|
10281
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10282
|
+
"opc-request-id": listManagedDatabasesRequest.opcRequestId
|
|
9258
10283
|
};
|
|
9259
10284
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
9260
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10285
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listManagedDatabasesRequest.retryConfiguration, specRetryConfiguration);
|
|
9261
10286
|
if (this.logger)
|
|
9262
10287
|
retrier.logger = this.logger;
|
|
9263
10288
|
const request = yield oci_common_1.composeRequest({
|
|
9264
10289
|
baseEndpoint: this._endpoint,
|
|
9265
10290
|
defaultHeaders: this._defaultHeaders,
|
|
9266
|
-
path: "/
|
|
10291
|
+
path: "/managedDatabases",
|
|
9267
10292
|
method: "GET",
|
|
9268
10293
|
pathParams: pathParams,
|
|
9269
10294
|
headerParams: headerParams,
|
|
@@ -9274,9 +10299,9 @@ class DbManagementClient {
|
|
|
9274
10299
|
const sdkResponse = oci_common_1.composeResponse({
|
|
9275
10300
|
responseObject: {},
|
|
9276
10301
|
body: yield response.json(),
|
|
9277
|
-
bodyKey: "
|
|
9278
|
-
bodyModel: model.
|
|
9279
|
-
type: "model.
|
|
10302
|
+
bodyKey: "managedDatabaseCollection",
|
|
10303
|
+
bodyModel: model.ManagedDatabaseCollection,
|
|
10304
|
+
type: "model.ManagedDatabaseCollection",
|
|
9280
10305
|
responseHeaders: [
|
|
9281
10306
|
{
|
|
9282
10307
|
value: response.headers.get("opc-request-id"),
|
|
@@ -9298,50 +10323,42 @@ class DbManagementClient {
|
|
|
9298
10323
|
});
|
|
9299
10324
|
}
|
|
9300
10325
|
/**
|
|
9301
|
-
* Gets the
|
|
9302
|
-
* Managed Databases can be filtered based on the name parameter. Only one of the parameters, ID or name
|
|
9303
|
-
* should be provided. If neither of these parameters is provided, all the Managed Databases in the compartment
|
|
9304
|
-
* are listed. Managed Databases can also be filtered based on the deployment type and management option.
|
|
9305
|
-
* If the deployment type is not specified or if it is `ONPREMISE`, then the management option is not
|
|
9306
|
-
* considered and Managed Databases with `ADVANCED` management option are listed.
|
|
10326
|
+
* Gets the list of External MySQL Database connectors.
|
|
9307
10327
|
*
|
|
9308
10328
|
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
9309
|
-
* @param
|
|
9310
|
-
* @return
|
|
10329
|
+
* @param ListMySqlDatabaseConnectorsRequest
|
|
10330
|
+
* @return ListMySqlDatabaseConnectorsResponse
|
|
9311
10331
|
* @throws OciError when an error occurs
|
|
9312
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/
|
|
10332
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/ListMySqlDatabaseConnectors.ts.html |here} to see how to use ListMySqlDatabaseConnectors API.
|
|
9313
10333
|
*/
|
|
9314
|
-
|
|
10334
|
+
listMySqlDatabaseConnectors(listMySqlDatabaseConnectorsRequest) {
|
|
9315
10335
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9316
10336
|
if (this.logger)
|
|
9317
|
-
this.logger.debug("Calling operation DbManagementClient#
|
|
9318
|
-
const operationName = "
|
|
9319
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/
|
|
10337
|
+
this.logger.debug("Calling operation DbManagementClient#listMySqlDatabaseConnectors.");
|
|
10338
|
+
const operationName = "listMySqlDatabaseConnectors";
|
|
10339
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/MySqlConnectorCollection/ListMySqlDatabaseConnectors";
|
|
9320
10340
|
const pathParams = {};
|
|
9321
10341
|
const queryParams = {
|
|
9322
|
-
"
|
|
9323
|
-
"
|
|
9324
|
-
"
|
|
9325
|
-
"
|
|
9326
|
-
"
|
|
9327
|
-
"
|
|
9328
|
-
"
|
|
9329
|
-
"limit": listManagedDatabasesRequest.limit,
|
|
9330
|
-
"sortBy": listManagedDatabasesRequest.sortBy,
|
|
9331
|
-
"sortOrder": listManagedDatabasesRequest.sortOrder
|
|
10342
|
+
"externalDatabaseId": listMySqlDatabaseConnectorsRequest.externalDatabaseId,
|
|
10343
|
+
"name": listMySqlDatabaseConnectorsRequest.name,
|
|
10344
|
+
"compartmentId": listMySqlDatabaseConnectorsRequest.compartmentId,
|
|
10345
|
+
"page": listMySqlDatabaseConnectorsRequest.page,
|
|
10346
|
+
"limit": listMySqlDatabaseConnectorsRequest.limit,
|
|
10347
|
+
"sortBy": listMySqlDatabaseConnectorsRequest.sortBy,
|
|
10348
|
+
"sortOrder": listMySqlDatabaseConnectorsRequest.sortOrder
|
|
9332
10349
|
};
|
|
9333
10350
|
let headerParams = {
|
|
9334
10351
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9335
|
-
"opc-request-id":
|
|
10352
|
+
"opc-request-id": listMySqlDatabaseConnectorsRequest.opcRequestId
|
|
9336
10353
|
};
|
|
9337
10354
|
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
9338
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10355
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listMySqlDatabaseConnectorsRequest.retryConfiguration, specRetryConfiguration);
|
|
9339
10356
|
if (this.logger)
|
|
9340
10357
|
retrier.logger = this.logger;
|
|
9341
10358
|
const request = yield oci_common_1.composeRequest({
|
|
9342
10359
|
baseEndpoint: this._endpoint,
|
|
9343
10360
|
defaultHeaders: this._defaultHeaders,
|
|
9344
|
-
path: "/
|
|
10361
|
+
path: "/externalMySqlDatabaseConnectors",
|
|
9345
10362
|
method: "GET",
|
|
9346
10363
|
pathParams: pathParams,
|
|
9347
10364
|
headerParams: headerParams,
|
|
@@ -9352,9 +10369,9 @@ class DbManagementClient {
|
|
|
9352
10369
|
const sdkResponse = oci_common_1.composeResponse({
|
|
9353
10370
|
responseObject: {},
|
|
9354
10371
|
body: yield response.json(),
|
|
9355
|
-
bodyKey: "
|
|
9356
|
-
bodyModel: model.
|
|
9357
|
-
type: "model.
|
|
10372
|
+
bodyKey: "mySqlConnectorCollection",
|
|
10373
|
+
bodyModel: model.MySqlConnectorCollection,
|
|
10374
|
+
type: "model.MySqlConnectorCollection",
|
|
9358
10375
|
responseHeaders: [
|
|
9359
10376
|
{
|
|
9360
10377
|
value: response.headers.get("opc-request-id"),
|
|
@@ -13774,6 +14791,143 @@ class DbManagementClient {
|
|
|
13774
14791
|
}
|
|
13775
14792
|
});
|
|
13776
14793
|
}
|
|
14794
|
+
/**
|
|
14795
|
+
* Updates the External Mysql Database.
|
|
14796
|
+
*
|
|
14797
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
14798
|
+
* @param UpdateExternalMysqlDatabaseRequest
|
|
14799
|
+
* @return UpdateExternalMysqlDatabaseResponse
|
|
14800
|
+
* @throws OciError when an error occurs
|
|
14801
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/UpdateExternalMysqlDatabase.ts.html |here} to see how to use UpdateExternalMysqlDatabase API.
|
|
14802
|
+
*/
|
|
14803
|
+
updateExternalMysqlDatabase(updateExternalMysqlDatabaseRequest) {
|
|
14804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14805
|
+
if (this.logger)
|
|
14806
|
+
this.logger.debug("Calling operation DbManagementClient#updateExternalMysqlDatabase.");
|
|
14807
|
+
const operationName = "updateExternalMysqlDatabase";
|
|
14808
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/UpdateExternalMysqlDatabase";
|
|
14809
|
+
const pathParams = {
|
|
14810
|
+
"{externalMySqlDatabaseId}": updateExternalMysqlDatabaseRequest.externalMySqlDatabaseId
|
|
14811
|
+
};
|
|
14812
|
+
const queryParams = {};
|
|
14813
|
+
let headerParams = {
|
|
14814
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14815
|
+
"if-match": updateExternalMysqlDatabaseRequest.ifMatch,
|
|
14816
|
+
"opc-request-id": updateExternalMysqlDatabaseRequest.opcRequestId
|
|
14817
|
+
};
|
|
14818
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
14819
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateExternalMysqlDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
14820
|
+
if (this.logger)
|
|
14821
|
+
retrier.logger = this.logger;
|
|
14822
|
+
const request = yield oci_common_1.composeRequest({
|
|
14823
|
+
baseEndpoint: this._endpoint,
|
|
14824
|
+
defaultHeaders: this._defaultHeaders,
|
|
14825
|
+
path: "/externalMySqlDatabases/{externalMySqlDatabaseId}",
|
|
14826
|
+
method: "PUT",
|
|
14827
|
+
bodyContent: common.ObjectSerializer.serialize(updateExternalMysqlDatabaseRequest.updateExternalMySqlDatabaseDetails, "UpdateExternalMySqlDatabaseDetails", model.UpdateExternalMySqlDatabaseDetails.getJsonObj),
|
|
14828
|
+
pathParams: pathParams,
|
|
14829
|
+
headerParams: headerParams,
|
|
14830
|
+
queryParams: queryParams
|
|
14831
|
+
});
|
|
14832
|
+
try {
|
|
14833
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14834
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
14835
|
+
responseObject: {},
|
|
14836
|
+
body: yield response.json(),
|
|
14837
|
+
bodyKey: "externalMySqlDatabase",
|
|
14838
|
+
bodyModel: model.ExternalMySqlDatabase,
|
|
14839
|
+
type: "model.ExternalMySqlDatabase",
|
|
14840
|
+
responseHeaders: [
|
|
14841
|
+
{
|
|
14842
|
+
value: response.headers.get("opc-request-id"),
|
|
14843
|
+
key: "opcRequestId",
|
|
14844
|
+
dataType: "string"
|
|
14845
|
+
},
|
|
14846
|
+
{
|
|
14847
|
+
value: response.headers.get("etag"),
|
|
14848
|
+
key: "etag",
|
|
14849
|
+
dataType: "string"
|
|
14850
|
+
}
|
|
14851
|
+
]
|
|
14852
|
+
});
|
|
14853
|
+
return sdkResponse;
|
|
14854
|
+
}
|
|
14855
|
+
catch (err) {
|
|
14856
|
+
throw err;
|
|
14857
|
+
}
|
|
14858
|
+
});
|
|
14859
|
+
}
|
|
14860
|
+
/**
|
|
14861
|
+
* Updates the External Mysql Database Connector.
|
|
14862
|
+
*
|
|
14863
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
14864
|
+
* @param UpdateExternalMysqlDatabaseConnectorRequest
|
|
14865
|
+
* @return UpdateExternalMysqlDatabaseConnectorResponse
|
|
14866
|
+
* @throws OciError when an error occurs
|
|
14867
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/UpdateExternalMysqlDatabaseConnector.ts.html |here} to see how to use UpdateExternalMysqlDatabaseConnector API.
|
|
14868
|
+
*/
|
|
14869
|
+
updateExternalMysqlDatabaseConnector(updateExternalMysqlDatabaseConnectorRequest) {
|
|
14870
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14871
|
+
if (this.logger)
|
|
14872
|
+
this.logger.debug("Calling operation DbManagementClient#updateExternalMysqlDatabaseConnector.");
|
|
14873
|
+
const operationName = "updateExternalMysqlDatabaseConnector";
|
|
14874
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabaseConnector/UpdateExternalMysqlDatabaseConnector";
|
|
14875
|
+
const pathParams = {
|
|
14876
|
+
"{externalMySqlDatabaseConnectorId}": updateExternalMysqlDatabaseConnectorRequest.externalMySqlDatabaseConnectorId
|
|
14877
|
+
};
|
|
14878
|
+
const queryParams = {};
|
|
14879
|
+
let headerParams = {
|
|
14880
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14881
|
+
"if-match": updateExternalMysqlDatabaseConnectorRequest.ifMatch,
|
|
14882
|
+
"opc-request-id": updateExternalMysqlDatabaseConnectorRequest.opcRequestId
|
|
14883
|
+
};
|
|
14884
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
14885
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateExternalMysqlDatabaseConnectorRequest.retryConfiguration, specRetryConfiguration);
|
|
14886
|
+
if (this.logger)
|
|
14887
|
+
retrier.logger = this.logger;
|
|
14888
|
+
const request = yield oci_common_1.composeRequest({
|
|
14889
|
+
baseEndpoint: this._endpoint,
|
|
14890
|
+
defaultHeaders: this._defaultHeaders,
|
|
14891
|
+
path: "/externalMySqlDatabaseConnectors/{externalMySqlDatabaseConnectorId}",
|
|
14892
|
+
method: "PUT",
|
|
14893
|
+
bodyContent: common.ObjectSerializer.serialize(updateExternalMysqlDatabaseConnectorRequest.updateExternalMySqlDatabaseConnectorDetails, "UpdateExternalMySqlDatabaseConnectorDetails", model.UpdateExternalMySqlDatabaseConnectorDetails.getJsonObj),
|
|
14894
|
+
pathParams: pathParams,
|
|
14895
|
+
headerParams: headerParams,
|
|
14896
|
+
queryParams: queryParams
|
|
14897
|
+
});
|
|
14898
|
+
try {
|
|
14899
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14900
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
14901
|
+
responseObject: {},
|
|
14902
|
+
body: yield response.json(),
|
|
14903
|
+
bodyKey: "externalMySqlDatabaseConnector",
|
|
14904
|
+
bodyModel: model.ExternalMySqlDatabaseConnector,
|
|
14905
|
+
type: "model.ExternalMySqlDatabaseConnector",
|
|
14906
|
+
responseHeaders: [
|
|
14907
|
+
{
|
|
14908
|
+
value: response.headers.get("opc-request-id"),
|
|
14909
|
+
key: "opcRequestId",
|
|
14910
|
+
dataType: "string"
|
|
14911
|
+
},
|
|
14912
|
+
{
|
|
14913
|
+
value: response.headers.get("opc-work-request-id"),
|
|
14914
|
+
key: "opcWorkRequestId",
|
|
14915
|
+
dataType: "string"
|
|
14916
|
+
},
|
|
14917
|
+
{
|
|
14918
|
+
value: response.headers.get("etag"),
|
|
14919
|
+
key: "etag",
|
|
14920
|
+
dataType: "string"
|
|
14921
|
+
}
|
|
14922
|
+
]
|
|
14923
|
+
});
|
|
14924
|
+
return sdkResponse;
|
|
14925
|
+
}
|
|
14926
|
+
catch (err) {
|
|
14927
|
+
throw err;
|
|
14928
|
+
}
|
|
14929
|
+
});
|
|
14930
|
+
}
|
|
13777
14931
|
/**
|
|
13778
14932
|
* Updates the details for the recurring scheduled job specified by jobId. Note that non-recurring (one time) jobs cannot be updated.
|
|
13779
14933
|
*
|
|
@@ -14726,6 +15880,27 @@ class ManagedMySqlDatabasesClient {
|
|
|
14726
15880
|
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ManagedMySqlDatabasesClient.serviceEndpointTemplate, regionId, ManagedMySqlDatabasesClient.endpointServiceName);
|
|
14727
15881
|
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
14728
15882
|
}
|
|
15883
|
+
/**
|
|
15884
|
+
* Creates a new ManagedMySqlDatabasesWaiter for resources for this service.
|
|
15885
|
+
*
|
|
15886
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
15887
|
+
* @return The service waiters.
|
|
15888
|
+
*/
|
|
15889
|
+
createWaiters(config) {
|
|
15890
|
+
this._waiters = new managedmysqldatabases_waiter_1.ManagedMySqlDatabasesWaiter(this, config);
|
|
15891
|
+
return this._waiters;
|
|
15892
|
+
}
|
|
15893
|
+
/**
|
|
15894
|
+
* Gets the waiters available for resources for this service.
|
|
15895
|
+
*
|
|
15896
|
+
* @return The service waiters.
|
|
15897
|
+
*/
|
|
15898
|
+
getWaiters() {
|
|
15899
|
+
if (this._waiters) {
|
|
15900
|
+
return this._waiters;
|
|
15901
|
+
}
|
|
15902
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
15903
|
+
}
|
|
14729
15904
|
/**
|
|
14730
15905
|
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
14731
15906
|
*/
|
|
@@ -14750,6 +15925,122 @@ class ManagedMySqlDatabasesClient {
|
|
|
14750
15925
|
this.shutdownCircuitBreaker();
|
|
14751
15926
|
this.closeProvider();
|
|
14752
15927
|
}
|
|
15928
|
+
/**
|
|
15929
|
+
* Disable an Associated Service for an external MySQL database resource. An Associated Service example is OPSI.
|
|
15930
|
+
*
|
|
15931
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15932
|
+
* @param DisableExternalMysqlAssociatedServiceRequest
|
|
15933
|
+
* @return DisableExternalMysqlAssociatedServiceResponse
|
|
15934
|
+
* @throws OciError when an error occurs
|
|
15935
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/DisableExternalMysqlAssociatedService.ts.html |here} to see how to use DisableExternalMysqlAssociatedService API.
|
|
15936
|
+
*/
|
|
15937
|
+
disableExternalMysqlAssociatedService(disableExternalMysqlAssociatedServiceRequest) {
|
|
15938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15939
|
+
if (this.logger)
|
|
15940
|
+
this.logger.debug("Calling operation ManagedMySqlDatabasesClient#disableExternalMysqlAssociatedService.");
|
|
15941
|
+
const operationName = "disableExternalMysqlAssociatedService";
|
|
15942
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/DisableExternalMysqlAssociatedService";
|
|
15943
|
+
const pathParams = {
|
|
15944
|
+
"{externalMySqlDatabaseId}": disableExternalMysqlAssociatedServiceRequest.externalMySqlDatabaseId
|
|
15945
|
+
};
|
|
15946
|
+
const queryParams = {};
|
|
15947
|
+
let headerParams = {
|
|
15948
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15949
|
+
"opc-retry-token": disableExternalMysqlAssociatedServiceRequest.opcRetryToken,
|
|
15950
|
+
"if-match": disableExternalMysqlAssociatedServiceRequest.ifMatch,
|
|
15951
|
+
"opc-request-id": disableExternalMysqlAssociatedServiceRequest.opcRequestId
|
|
15952
|
+
};
|
|
15953
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
15954
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, disableExternalMysqlAssociatedServiceRequest.retryConfiguration, specRetryConfiguration);
|
|
15955
|
+
if (this.logger)
|
|
15956
|
+
retrier.logger = this.logger;
|
|
15957
|
+
const request = yield oci_common_1.composeRequest({
|
|
15958
|
+
baseEndpoint: this._endpoint,
|
|
15959
|
+
defaultHeaders: this._defaultHeaders,
|
|
15960
|
+
path: "/internal/externalMySqlDatabases/{externalMySqlDatabaseId}/actions/disableAssociatedService",
|
|
15961
|
+
method: "POST",
|
|
15962
|
+
bodyContent: common.ObjectSerializer.serialize(disableExternalMysqlAssociatedServiceRequest.disableExternalMysqlAssociatedServiceDetails, "DisableExternalMysqlAssociatedServiceDetails", model.DisableExternalMysqlAssociatedServiceDetails.getJsonObj),
|
|
15963
|
+
pathParams: pathParams,
|
|
15964
|
+
headerParams: headerParams,
|
|
15965
|
+
queryParams: queryParams
|
|
15966
|
+
});
|
|
15967
|
+
try {
|
|
15968
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15969
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
15970
|
+
responseObject: {},
|
|
15971
|
+
responseHeaders: [
|
|
15972
|
+
{
|
|
15973
|
+
value: response.headers.get("opc-request-id"),
|
|
15974
|
+
key: "opcRequestId",
|
|
15975
|
+
dataType: "string"
|
|
15976
|
+
}
|
|
15977
|
+
]
|
|
15978
|
+
});
|
|
15979
|
+
return sdkResponse;
|
|
15980
|
+
}
|
|
15981
|
+
catch (err) {
|
|
15982
|
+
throw err;
|
|
15983
|
+
}
|
|
15984
|
+
});
|
|
15985
|
+
}
|
|
15986
|
+
/**
|
|
15987
|
+
* Enable an Associated Service for an external MySQL database resource. An Associated Service example is OPSI.
|
|
15988
|
+
*
|
|
15989
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15990
|
+
* @param EnableExternalMysqlAssociatedServiceRequest
|
|
15991
|
+
* @return EnableExternalMysqlAssociatedServiceResponse
|
|
15992
|
+
* @throws OciError when an error occurs
|
|
15993
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemanagement/EnableExternalMysqlAssociatedService.ts.html |here} to see how to use EnableExternalMysqlAssociatedService API.
|
|
15994
|
+
*/
|
|
15995
|
+
enableExternalMysqlAssociatedService(enableExternalMysqlAssociatedServiceRequest) {
|
|
15996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15997
|
+
if (this.logger)
|
|
15998
|
+
this.logger.debug("Calling operation ManagedMySqlDatabasesClient#enableExternalMysqlAssociatedService.");
|
|
15999
|
+
const operationName = "enableExternalMysqlAssociatedService";
|
|
16000
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-management/20201101/ExternalMySqlDatabase/EnableExternalMysqlAssociatedService";
|
|
16001
|
+
const pathParams = {
|
|
16002
|
+
"{externalMySqlDatabaseId}": enableExternalMysqlAssociatedServiceRequest.externalMySqlDatabaseId
|
|
16003
|
+
};
|
|
16004
|
+
const queryParams = {};
|
|
16005
|
+
let headerParams = {
|
|
16006
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
16007
|
+
"opc-retry-token": enableExternalMysqlAssociatedServiceRequest.opcRetryToken,
|
|
16008
|
+
"if-match": enableExternalMysqlAssociatedServiceRequest.ifMatch,
|
|
16009
|
+
"opc-request-id": enableExternalMysqlAssociatedServiceRequest.opcRequestId
|
|
16010
|
+
};
|
|
16011
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
16012
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, enableExternalMysqlAssociatedServiceRequest.retryConfiguration, specRetryConfiguration);
|
|
16013
|
+
if (this.logger)
|
|
16014
|
+
retrier.logger = this.logger;
|
|
16015
|
+
const request = yield oci_common_1.composeRequest({
|
|
16016
|
+
baseEndpoint: this._endpoint,
|
|
16017
|
+
defaultHeaders: this._defaultHeaders,
|
|
16018
|
+
path: "/internal/externalMySqlDatabases/{externalMySqlDatabaseId}/actions/enableAssociatedService",
|
|
16019
|
+
method: "POST",
|
|
16020
|
+
bodyContent: common.ObjectSerializer.serialize(enableExternalMysqlAssociatedServiceRequest.enableExternalMysqlAssociatedServiceDetails, "EnableExternalMysqlAssociatedServiceDetails", model.EnableExternalMysqlAssociatedServiceDetails.getJsonObj),
|
|
16021
|
+
pathParams: pathParams,
|
|
16022
|
+
headerParams: headerParams,
|
|
16023
|
+
queryParams: queryParams
|
|
16024
|
+
});
|
|
16025
|
+
try {
|
|
16026
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
16027
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
16028
|
+
responseObject: {},
|
|
16029
|
+
responseHeaders: [
|
|
16030
|
+
{
|
|
16031
|
+
value: response.headers.get("opc-request-id"),
|
|
16032
|
+
key: "opcRequestId",
|
|
16033
|
+
dataType: "string"
|
|
16034
|
+
}
|
|
16035
|
+
]
|
|
16036
|
+
});
|
|
16037
|
+
return sdkResponse;
|
|
16038
|
+
}
|
|
16039
|
+
catch (err) {
|
|
16040
|
+
throw err;
|
|
16041
|
+
}
|
|
16042
|
+
});
|
|
16043
|
+
}
|
|
14753
16044
|
/**
|
|
14754
16045
|
* Gets the health metrics for a fleet of HeatWave clusters in a compartment.
|
|
14755
16046
|
*
|
|
@@ -14897,6 +16188,7 @@ class ManagedMySqlDatabasesClient {
|
|
|
14897
16188
|
"endTime": getMySqlFleetMetricRequest.endTime,
|
|
14898
16189
|
"filterByMySqlDeploymentTypeParam": getMySqlFleetMetricRequest.filterByMySqlDeploymentTypeParam,
|
|
14899
16190
|
"filterByMdsDeploymentType": getMySqlFleetMetricRequest.filterByMdsDeploymentType,
|
|
16191
|
+
"filterByMySqlDatabaseTypeParam": getMySqlFleetMetricRequest.filterByMySqlDatabaseTypeParam,
|
|
14900
16192
|
"filterByMySqlStatus": getMySqlFleetMetricRequest.filterByMySqlStatus,
|
|
14901
16193
|
"filterByMySqlDatabaseVersion": getMySqlFleetMetricRequest.filterByMySqlDatabaseVersion,
|
|
14902
16194
|
"isHeatWaveEnabled": getMySqlFleetMetricRequest.isHeatWaveEnabled
|
|
@@ -15102,6 +16394,7 @@ class ManagedMySqlDatabasesClient {
|
|
|
15102
16394
|
"compartmentId": listManagedMySqlDatabasesRequest.compartmentId,
|
|
15103
16395
|
"page": listManagedMySqlDatabasesRequest.page,
|
|
15104
16396
|
"limit": listManagedMySqlDatabasesRequest.limit,
|
|
16397
|
+
"filterByMySqlDatabaseTypeParam": listManagedMySqlDatabasesRequest.filterByMySqlDatabaseTypeParam,
|
|
15105
16398
|
"sortBy": listManagedMySqlDatabasesRequest.sortBy,
|
|
15106
16399
|
"sortOrder": listManagedMySqlDatabasesRequest.sortOrder
|
|
15107
16400
|
};
|